OSDN Git Service

09d2768e669c489c11a0b48883c1da0f3b8164e9
[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,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_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_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_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_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         misc)           ac_checking=1 ;;
7298         rtl)            ac_rtl_checking=1 ;;
7299         rtlflag)        ac_rtlflag_checking=1 ;;
7300         runtime)        ac_runtime_checking=1 ;;
7301         tree)           ac_tree_checking=1 ;;
7302         types)          ac_types_checking=1 ;;
7303         valgrind)       ac_valgrind_checking=1 ;;
7304         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7305 echo "$as_me: error: unknown check category $check" >&2;}
7306    { (exit 1); exit 1; }; } ;;
7307         esac
7308 done
7309 IFS="$ac_save_IFS"
7310
7311 nocommon_flag=""
7312 if test x$ac_checking != x ; then
7313
7314 cat >>confdefs.h <<\_ACEOF
7315 #define ENABLE_CHECKING 1
7316 _ACEOF
7317
7318   nocommon_flag=-fno-common
7319 fi
7320
7321 if test x$ac_df_checking != x ; then
7322
7323 cat >>confdefs.h <<\_ACEOF
7324 #define ENABLE_DF_CHECKING 1
7325 _ACEOF
7326
7327 fi
7328 if test x$ac_assert_checking != x ; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define ENABLE_ASSERT_CHECKING 1
7332 _ACEOF
7333
7334 fi
7335
7336 if test x$ac_runtime_checking != x ; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define ENABLE_RUNTIME_CHECKING 1
7340 _ACEOF
7341
7342 fi
7343 if test x$ac_tree_checking != x ; then
7344
7345 cat >>confdefs.h <<\_ACEOF
7346 #define ENABLE_TREE_CHECKING 1
7347 _ACEOF
7348
7349   TREEBROWSER=tree-browser.o
7350 fi
7351 if test x$ac_types_checking != x ; then
7352
7353 cat >>confdefs.h <<\_ACEOF
7354 #define ENABLE_TYPES_CHECKING 1
7355 _ACEOF
7356
7357 fi
7358
7359 if test x$ac_rtl_checking != x ; then
7360
7361 cat >>confdefs.h <<\_ACEOF
7362 #define ENABLE_RTL_CHECKING 1
7363 _ACEOF
7364
7365 fi
7366 if test x$ac_rtlflag_checking != x ; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define ENABLE_RTL_FLAG_CHECKING 1
7370 _ACEOF
7371
7372 fi
7373 if test x$ac_gc_checking != x ; then
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define ENABLE_GC_CHECKING 1
7377 _ACEOF
7378
7379 fi
7380 if test x$ac_gc_always_collect != x ; then
7381
7382 cat >>confdefs.h <<\_ACEOF
7383 #define ENABLE_GC_ALWAYS_COLLECT 1
7384 _ACEOF
7385
7386 fi
7387 if test x$ac_fold_checking != x ; then
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define ENABLE_FOLD_CHECKING 1
7391 _ACEOF
7392
7393 fi
7394 valgrind_path_defines=
7395 valgrind_command=
7396
7397 if test "${ac_cv_header_valgrind_h+set}" = set; then
7398   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7399 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7400 if test "${ac_cv_header_valgrind_h+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 fi
7403 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7404 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7405 else
7406   # Is the header compilable?
7407 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7408 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 $ac_includes_default
7416 #include <valgrind.h>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420   (eval $ac_compile) 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -z "$ac_c_werror_flag"
7428                          || test ! -s conftest.err'
7429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430   (eval $ac_try) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }; } &&
7434          { ac_try='test -s conftest.$ac_objext'
7435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436   (eval $ac_try) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; }; then
7440   ac_header_compiler=yes
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 ac_header_compiler=no
7446 fi
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7450
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7453 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460 #include <valgrind.h>
7461 _ACEOF
7462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464   ac_status=$?
7465   grep -v '^ *+' conftest.er1 >conftest.err
7466   rm -f conftest.er1
7467   cat conftest.err >&5
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } >/dev/null; then
7470   if test -s conftest.err; then
7471     ac_cpp_err=$ac_c_preproc_warn_flag
7472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473   else
7474     ac_cpp_err=
7475   fi
7476 else
7477   ac_cpp_err=yes
7478 fi
7479 if test -z "$ac_cpp_err"; then
7480   ac_header_preproc=yes
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485   ac_header_preproc=no
7486 fi
7487 rm -f conftest.err conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7490
7491 # So?  What about this header?
7492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7493   yes:no: )
7494     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7497 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7498     ac_header_preproc=yes
7499     ;;
7500   no:yes:* )
7501     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7502 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7504 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7506 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7507     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7508 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7509     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7511     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7512 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7513     (
7514       cat <<\_ASBOX
7515 ## ------------------------------------------ ##
7516 ## Report this to the AC_PACKAGE_NAME lists.  ##
7517 ## ------------------------------------------ ##
7518 _ASBOX
7519     ) |
7520       sed "s/^/$as_me: WARNING:     /" >&2
7521     ;;
7522 esac
7523 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7524 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7525 if test "${ac_cv_header_valgrind_h+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   ac_cv_header_valgrind_h=$ac_header_preproc
7529 fi
7530 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7531 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7532
7533 fi
7534 if test $ac_cv_header_valgrind_h = yes; then
7535   have_valgrind_h=yes
7536 else
7537   have_valgrind_h=no
7538 fi
7539
7540
7541
7542 if test x$ac_valgrind_checking != x ; then
7543   # It is certainly possible that there's valgrind but no valgrind.h.
7544   # GCC relies on making annotations so we must have both.
7545   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7546 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7547   cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553 #include <valgrind/memcheck.h>
7554 #ifndef VALGRIND_DISCARD
7555 #error VALGRIND_DISCARD not defined
7556 #endif
7557 _ACEOF
7558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } >/dev/null; then
7566   if test -s conftest.err; then
7567     ac_cpp_err=$ac_c_preproc_warn_flag
7568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7569   else
7570     ac_cpp_err=
7571   fi
7572 else
7573   ac_cpp_err=yes
7574 fi
7575 if test -z "$ac_cpp_err"; then
7576   gcc_cv_header_valgrind_memcheck_h=yes
7577 else
7578   echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581   gcc_cv_header_valgrind_memcheck_h=no
7582 fi
7583 rm -f conftest.err conftest.$ac_ext
7584   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7585 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7586   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7587 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 #include <memcheck.h>
7595 #ifndef VALGRIND_DISCARD
7596 #error VALGRIND_DISCARD not defined
7597 #endif
7598 _ACEOF
7599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7601   ac_status=$?
7602   grep -v '^ *+' conftest.er1 >conftest.err
7603   rm -f conftest.er1
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } >/dev/null; then
7607   if test -s conftest.err; then
7608     ac_cpp_err=$ac_c_preproc_warn_flag
7609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7610   else
7611     ac_cpp_err=
7612   fi
7613 else
7614   ac_cpp_err=yes
7615 fi
7616 if test -z "$ac_cpp_err"; then
7617   gcc_cv_header_memcheck_h=yes
7618 else
7619   echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622   gcc_cv_header_memcheck_h=no
7623 fi
7624 rm -f conftest.err conftest.$ac_ext
7625   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7626 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7627
7628 # Prepare PATH_SEPARATOR.
7629 # The user is always right.
7630 if test "${PATH_SEPARATOR+set}" != set; then
7631   echo "#! /bin/sh" >conf$$.sh
7632   echo  "exit 0"   >>conf$$.sh
7633   chmod +x conf$$.sh
7634   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7635     PATH_SEPARATOR=';'
7636   else
7637     PATH_SEPARATOR=:
7638   fi
7639   rm -f conf$$.sh
7640 fi
7641
7642 # Find out how to test for executable files. Don't use a zero-byte file,
7643 # as systems may use methods other than mode bits to determine executability.
7644 cat >conf$$.file <<_ASEOF
7645 #! /bin/sh
7646 exit 0
7647 _ASEOF
7648 chmod +x conf$$.file
7649 if test -x conf$$.file >/dev/null 2>&1; then
7650   ac_executable_p="test -x"
7651 else
7652   ac_executable_p="test -f"
7653 fi
7654 rm -f conf$$.file
7655
7656 # Extract the first word of "valgrind", so it can be a program name with args.
7657 set dummy valgrind; ac_word=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_path_valgrind_path+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   case "$valgrind_path" in
7664   [\\/]* | ?:[\\/]*)
7665     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7666     ;;
7667   *)
7668     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7669     for ac_dir in $PATH; do
7670       IFS="$ac_save_IFS"
7671       test -z "$ac_dir" && ac_dir=.
7672       for ac_exec_ext in '' $ac_executable_extensions; do
7673         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7674           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7675             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7676             break 2
7677           fi
7678         fi
7679       done
7680     done
7681     IFS="$ac_save_IFS"
7682     ;;
7683 esac
7684 fi
7685 valgrind_path="$ac_cv_path_valgrind_path"
7686 if test -n "$valgrind_path"; then
7687   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7688 echo "${ECHO_T}$valgrind_path" >&6
7689 else
7690   echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7692 fi
7693
7694   if test "x$valgrind_path" = "x" \
7695     || (test $have_valgrind_h = no \
7696         && test $gcc_cv_header_memcheck_h = no \
7697         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7698         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7699 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7700    { (exit 1); exit 1; }; }
7701   fi
7702   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7703   valgrind_command="$valgrind_path -q"
7704
7705 cat >>confdefs.h <<\_ACEOF
7706 #define ENABLE_VALGRIND_CHECKING 1
7707 _ACEOF
7708
7709   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7710
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_VALGRIND_MEMCHECK_H 1
7713 _ACEOF
7714
7715   fi
7716   if test $gcc_cv_header_memcheck_h = yes; then
7717
7718 cat >>confdefs.h <<\_ACEOF
7719 #define HAVE_MEMCHECK_H 1
7720 _ACEOF
7721
7722   fi
7723 fi
7724
7725
7726
7727 # Enable code coverage collection
7728 # Check whether --enable-coverage or --disable-coverage was given.
7729 if test "${enable_coverage+set}" = set; then
7730   enableval="$enable_coverage"
7731   case "${enableval}" in
7732   yes|noopt)
7733     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7734     ;;
7735   opt)
7736     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7737     ;;
7738   no)
7739     # a.k.a. --disable-coverage
7740     coverage_flags=""
7741     ;;
7742   *)
7743     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7744 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7745    { (exit 1); exit 1; }; }
7746     ;;
7747 esac
7748 else
7749   coverage_flags=""
7750 fi;
7751
7752
7753 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7754 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7755   enableval="$enable_gather_detailed_mem_stats"
7756
7757 else
7758   enable_gather_detailed_mem_stats=no
7759 fi;
7760 if test x$enable_gather_detailed_mem_stats = xyes ; then
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define GATHER_STATISTICS 1
7764 _ACEOF
7765
7766 fi
7767
7768 # -------------------------------
7769 # Miscenalleous configure options
7770 # -------------------------------
7771
7772 # With stabs
7773
7774 # Check whether --with-stabs or --without-stabs was given.
7775 if test "${with_stabs+set}" = set; then
7776   withval="$with_stabs"
7777   stabs="$with_stabs"
7778 else
7779   stabs=no
7780 fi;
7781
7782 # Determine whether or not multilibs are enabled.
7783 # Check whether --enable-multilib or --disable-multilib was given.
7784 if test "${enable_multilib+set}" = set; then
7785   enableval="$enable_multilib"
7786
7787 else
7788   enable_multilib=yes
7789 fi;
7790
7791
7792 # Enable __cxa_atexit for C++.
7793 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7794 if test "${enable___cxa_atexit+set}" = set; then
7795   enableval="$enable___cxa_atexit"
7796
7797 fi;
7798
7799 # Enable C extension for decimal float if target supports it.
7800 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7801 if test "${enable_decimal_float+set}" = set; then
7802   enableval="$enable_decimal_float"
7803
7804   case $enable_decimal_float in
7805     yes | no | bid | dpd) ;;
7806     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7807 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7808 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7809 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7810    { (exit 1); exit 1; }; } ;;
7811   esac
7812
7813 else
7814
7815   case $target in
7816     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7817       enable_decimal_float=yes
7818       ;;
7819     *)
7820       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7821 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7822       enable_decimal_float=no
7823       ;;
7824   esac
7825
7826 fi;
7827
7828 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7829
7830 cat >>confdefs.h <<_ACEOF
7831 #define ENABLE_DECIMAL_FLOAT $dfp
7832 _ACEOF
7833
7834
7835 # x86's use BID format instead of DPD
7836 case x$enable_decimal_float in
7837   xyes)
7838     case $target in
7839       i?86*-*-linux* | x86_64*-*-linux*)
7840         enable_decimal_float=bid
7841         ;;
7842       *)
7843         enable_decimal_float=dpd
7844         ;;
7845     esac
7846     ;;
7847   xno)
7848     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7849     # dependency on libdecnumber.
7850     enable_decimal_float=dpd
7851     ;;
7852 esac
7853
7854
7855 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7856
7857 cat >>confdefs.h <<_ACEOF
7858 #define ENABLE_DECIMAL_BID_FORMAT $bid
7859 _ACEOF
7860
7861
7862 # Enable C extension for fixed-point arithmetic.
7863 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7864 if test "${enable_fixed_point+set}" = set; then
7865   enableval="$enable_fixed_point"
7866
7867
7868 else
7869
7870   case $target in
7871     mips*-*-*)
7872       case $host in
7873         mips*-sgi-irix*)
7874           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7875 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7876           enable_fixed_point=no
7877           ;;
7878         *)
7879           enable_fixed_point=yes
7880           ;;
7881       esac
7882       ;;
7883     *)
7884       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7885 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7886       enable_fixed_point=no
7887       ;;
7888   esac
7889
7890 fi;
7891
7892
7893 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define ENABLE_FIXED_POINT $fixedpoint
7897 _ACEOF
7898
7899
7900 # Enable threads
7901 # Pass with no value to take the default
7902 # Pass with a value to specify a thread package
7903 # Check whether --enable-threads or --disable-threads was given.
7904 if test "${enable_threads+set}" = set; then
7905   enableval="$enable_threads"
7906
7907 else
7908   enable_threads=''
7909 fi;
7910
7911 # Check whether --enable-tls or --disable-tls was given.
7912 if test "${enable_tls+set}" = set; then
7913   enableval="$enable_tls"
7914
7915   case $enable_tls in
7916     yes | no) ;;
7917     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7918 Valid choices are 'yes' and 'no'." >&5
7919 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7920 Valid choices are 'yes' and 'no'." >&2;}
7921    { (exit 1); exit 1; }; } ;;
7922   esac
7923
7924 else
7925   enable_tls=''
7926 fi;
7927
7928 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7929 if test "${enable_objc_gc+set}" = set; then
7930   enableval="$enable_objc_gc"
7931   if test x$enable_objc_gc = xno; then
7932         objc_boehm_gc=''
7933 else
7934         objc_boehm_gc=1
7935 fi
7936 else
7937   objc_boehm_gc=''
7938 fi;
7939
7940
7941 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7942 if test "${with_dwarf2+set}" = set; then
7943   withval="$with_dwarf2"
7944   dwarf2="$with_dwarf2"
7945 else
7946   dwarf2=no
7947 fi;
7948
7949 # Check whether --enable-shared or --disable-shared was given.
7950 if test "${enable_shared+set}" = set; then
7951   enableval="$enable_shared"
7952
7953   case $enable_shared in
7954   yes | no) ;;
7955   *)
7956     enable_shared=no
7957     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7958     for pkg in $enableval; do
7959       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7960         enable_shared=yes
7961       fi
7962     done
7963     IFS="$ac_save_ifs"
7964     ;;
7965   esac
7966
7967 else
7968   enable_shared=yes
7969 fi;
7970
7971
7972
7973 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7974 if test "${with_build_sysroot+set}" = set; then
7975   withval="$with_build_sysroot"
7976
7977 fi;
7978
7979
7980 # Check whether --with-sysroot or --without-sysroot was given.
7981 if test "${with_sysroot+set}" = set; then
7982   withval="$with_sysroot"
7983
7984  case ${with_sysroot} in
7985  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7986  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7987  esac
7988
7989  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7990  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7991
7992  if test "x$prefix" = xNONE; then
7993   test_prefix=/usr/local
7994  else
7995   test_prefix=$prefix
7996  fi
7997  if test "x$exec_prefix" = xNONE; then
7998   test_exec_prefix=$test_prefix
7999  else
8000   test_exec_prefix=$exec_prefix
8001  fi
8002  case ${TARGET_SYSTEM_ROOT} in
8003  "${test_prefix}"|"${test_prefix}/"*|\
8004  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8005  '${prefix}'|'${prefix}/'*|\
8006  '${exec_prefix}'|'${exec_prefix}/'*)
8007    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8008    TARGET_SYSTEM_ROOT_DEFINE="$t"
8009    ;;
8010  esac
8011
8012 else
8013
8014  TARGET_SYSTEM_ROOT=
8015  TARGET_SYSTEM_ROOT_DEFINE=
8016  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8017
8018 fi;
8019
8020
8021
8022
8023 # Build with intermodule optimisations
8024 # Check whether --enable-intermodule or --disable-intermodule was given.
8025 if test "${enable_intermodule+set}" = set; then
8026   enableval="$enable_intermodule"
8027   case ${enable_intermodule} in
8028   yes) onestep="-onestep";;
8029   *) onestep="";;
8030 esac
8031 else
8032   onestep=""
8033 fi;
8034
8035
8036
8037
8038 # Check whether --with-pkgversion or --without-pkgversion was given.
8039 if test "${with_pkgversion+set}" = set; then
8040   withval="$with_pkgversion"
8041   case "$withval" in
8042       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8043 echo "$as_me: error: package version not specified" >&2;}
8044    { (exit 1); exit 1; }; } ;;
8045       no)  PKGVERSION= ;;
8046       *)   PKGVERSION="($withval) " ;;
8047      esac
8048 else
8049   PKGVERSION="(GCC) "
8050
8051 fi;
8052
8053
8054
8055
8056 # Check whether --with-bugurl or --without-bugurl was given.
8057 if test "${with_bugurl+set}" = set; then
8058   withval="$with_bugurl"
8059   case "$withval" in
8060       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8061 echo "$as_me: error: bug URL not specified" >&2;}
8062    { (exit 1); exit 1; }; } ;;
8063       no)  BUGURL=
8064            ;;
8065       *)   BUGURL="$withval"
8066            ;;
8067      esac
8068 else
8069   BUGURL="http://gcc.gnu.org/bugs.html"
8070
8071 fi;
8072   case ${BUGURL} in
8073   "")
8074     REPORT_BUGS_TO=
8075     REPORT_BUGS_TEXI=
8076     ;;
8077   *)
8078     REPORT_BUGS_TO="<$BUGURL>"
8079     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8080     ;;
8081   esac;
8082
8083
8084
8085
8086 # Sanity check enable_languages in case someone does not run the toplevel
8087 # configure # script.
8088 # Check whether --enable-languages or --disable-languages was given.
8089 if test "${enable_languages+set}" = set; then
8090   enableval="$enable_languages"
8091   case ,${enable_languages}, in
8092        ,,|,yes,)
8093                 # go safe -- we cannot be much sure without the toplevel
8094                 # configure's
8095                 # analysis of which target libs are present and usable
8096                 enable_languages=c
8097                 ;;
8098          *,all,*)
8099                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8100 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8101    { (exit 1); exit 1; }; }
8102                 ;;
8103         *,c,*)
8104                 ;;
8105         *)
8106                 enable_languages=c,${enable_languages}
8107                 ;;
8108 esac
8109 else
8110   enable_languages=c
8111 fi;
8112
8113 # Used by documentation targets
8114
8115
8116
8117
8118 # -------------------------
8119 # Checks for other programs
8120 # -------------------------
8121
8122 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8123 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   cat >conftest.make <<\_ACEOF
8129 all:
8130         @echo 'ac_maketemp="$(MAKE)"'
8131 _ACEOF
8132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8134 if test -n "$ac_maketemp"; then
8135   eval ac_cv_prog_make_${ac_make}_set=yes
8136 else
8137   eval ac_cv_prog_make_${ac_make}_set=no
8138 fi
8139 rm -f conftest.make
8140 fi
8141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8142   echo "$as_me:$LINENO: result: yes" >&5
8143 echo "${ECHO_T}yes" >&6
8144   SET_MAKE=
8145 else
8146   echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148   SET_MAKE="MAKE=${MAKE-make}"
8149 fi
8150
8151
8152 # Find some useful tools
8153 for ac_prog in gawk mawk nawk awk
8154 do
8155   # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 echo "$as_me:$LINENO: checking for $ac_word" >&5
8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159 if test "${ac_cv_prog_AWK+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   if test -n "$AWK"; then
8163   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170   for ac_exec_ext in '' $ac_executable_extensions; do
8171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_prog_AWK="$ac_prog"
8173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177 done
8178
8179 fi
8180 fi
8181 AWK=$ac_cv_prog_AWK
8182 if test -n "$AWK"; then
8183   echo "$as_me:$LINENO: result: $AWK" >&5
8184 echo "${ECHO_T}$AWK" >&6
8185 else
8186   echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8188 fi
8189
8190   test -n "$AWK" && break
8191 done
8192
8193 # We need awk to create options.c and options.h.
8194 # Bail out if it's missing.
8195 case ${AWK} in
8196   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8197 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8198    { (exit 1); exit 1; }; } ;;
8199 esac
8200
8201 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8202 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8203 if test "${gcc_cv_prog_LN_S+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   rm -f conftestdata_t
8207 echo >conftestdata_f
8208 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8209 then
8210   gcc_cv_prog_LN_S="ln -s"
8211 else
8212   if ln conftestdata_f conftestdata_t 2>/dev/null
8213   then
8214     gcc_cv_prog_LN_S=ln
8215   else
8216     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8217     then
8218       gcc_cv_prog_LN_S="cp -p"
8219     else
8220       gcc_cv_prog_LN_S=cp
8221     fi
8222   fi
8223 fi
8224 rm -f conftestdata_f conftestdata_t
8225
8226 fi
8227 LN_S="$gcc_cv_prog_LN_S"
8228 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8229   echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8231 else
8232   if test "$gcc_cv_prog_LN_S" = "ln"; then
8233     echo "$as_me:$LINENO: result: no, using ln" >&5
8234 echo "${ECHO_T}no, using ln" >&6
8235   else
8236     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8237 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8238   fi
8239 fi
8240
8241 echo "$as_me:$LINENO: checking whether ln works" >&5
8242 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8243 if test "${acx_cv_prog_LN+set}" = set; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   rm -f conftestdata_t
8247 echo >conftestdata_f
8248 if ln conftestdata_f conftestdata_t 2>/dev/null
8249 then
8250   acx_cv_prog_LN=ln
8251 else
8252   acx_cv_prog_LN=no
8253 fi
8254 rm -f conftestdata_f conftestdata_t
8255
8256 fi
8257 if test $acx_cv_prog_LN = no; then
8258   LN="$LN_S"
8259   echo "$as_me:$LINENO: result: no, using $LN" >&5
8260 echo "${ECHO_T}no, using $LN" >&6
8261 else
8262   LN="$acx_cv_prog_LN"
8263   echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6
8265 fi
8266
8267 if test -n "$ac_tool_prefix"; then
8268   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8270 echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272 if test "${ac_cv_prog_RANLIB+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   if test -n "$RANLIB"; then
8276   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283   for ac_exec_ext in '' $ac_executable_extensions; do
8284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290 done
8291
8292 fi
8293 fi
8294 RANLIB=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296   echo "$as_me:$LINENO: result: $RANLIB" >&5
8297 echo "${ECHO_T}$RANLIB" >&6
8298 else
8299   echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8301 fi
8302
8303 fi
8304 if test -z "$ac_cv_prog_RANLIB"; then
8305   ac_ct_RANLIB=$RANLIB
8306   # Extract the first word of "ranlib", so it can be a program name with args.
8307 set dummy ranlib; ac_word=$2
8308 echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   if test -n "$ac_ct_RANLIB"; then
8314   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321   for ac_exec_ext in '' $ac_executable_extensions; do
8322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323     ac_cv_prog_ac_ct_RANLIB="ranlib"
8324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328 done
8329
8330   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8331 fi
8332 fi
8333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8334 if test -n "$ac_ct_RANLIB"; then
8335   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8336 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8337 else
8338   echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340 fi
8341
8342   RANLIB=$ac_ct_RANLIB
8343 else
8344   RANLIB="$ac_cv_prog_RANLIB"
8345 fi
8346
8347 case "${host}" in
8348 *-*-darwin*)
8349   # By default, the Darwin ranlib will not treat common symbols as
8350   # definitions when  building the archive table of contents.  Other
8351   # ranlibs do that; pass an option to the Darwin ranlib that makes
8352   # it behave similarly.
8353   ranlib_flags="-c"
8354   ;;
8355 *)
8356   ranlib_flags=""
8357 esac
8358
8359
8360 # Find a good install program.  We prefer a C program (faster),
8361 # so one script is as good as another.  But avoid the broken or
8362 # incompatible versions:
8363 # SysV /etc/install, /usr/sbin/install
8364 # SunOS /usr/etc/install
8365 # IRIX /sbin/install
8366 # AIX /bin/install
8367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8369 # ./install, which can be erroneously created by make from ./install.sh.
8370 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8371 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8372 if test -z "$INSTALL"; then
8373 if test "${ac_cv_path_install+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8377   for ac_dir in $PATH; do
8378     # Account for people who put trailing slashes in PATH elements.
8379     case "$ac_dir/" in
8380     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8381     *)
8382       # OSF1 and SCO ODT 3.0 have their own names for install.
8383       for ac_prog in ginstall scoinst install; do
8384         if test -f $ac_dir/$ac_prog; then
8385           if test $ac_prog = install &&
8386             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8387             # AIX install.  It has an incompatible calling convention.
8388             # OSF/1 installbsd also uses dspmsg, but is usable.
8389             :
8390           else
8391             ac_cv_path_install="$ac_dir/$ac_prog -c"
8392             break 2
8393           fi
8394         fi
8395       done
8396       ;;
8397     esac
8398   done
8399   IFS="$ac_save_IFS"
8400
8401 fi
8402   if test "${ac_cv_path_install+set}" = set; then
8403     INSTALL="$ac_cv_path_install"
8404   else
8405     # As a last resort, use the slow shell script.  We don't cache a
8406     # path for INSTALL within a source directory, because that will
8407     # break other packages using the cache if that directory is
8408     # removed, or if the path is relative.
8409     INSTALL="$ac_install_sh"
8410   fi
8411 fi
8412 echo "$as_me:$LINENO: result: $INSTALL" >&5
8413 echo "${ECHO_T}$INSTALL" >&6
8414
8415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8416 # It thinks the first close brace ends the variable substitution.
8417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8418
8419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8420
8421
8422 # See if cmp has --ignore-initial.
8423 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8424 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8425 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428    echo abfoo >t1
8429   echo cdfoo >t2
8430   gcc_cv_prog_cmp_skip=slowcompare
8431   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8432     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8433       :
8434     else
8435       gcc_cv_prog_cmp_skip=gnucompare
8436     fi
8437   fi
8438   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8439     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8440       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8441         :
8442       else
8443         gcc_cv_prog_cmp_skip=fastcompare
8444       fi
8445     fi
8446   fi
8447   rm t1 t2
8448
8449 fi
8450 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8451 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8452 make_compare_target=$gcc_cv_prog_cmp_skip
8453
8454
8455
8456 # See if we have the mktemp command.
8457 # Extract the first word of "mktemp", so it can be a program name with args.
8458 set dummy mktemp; ac_word=$2
8459 echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   if test -n "$have_mktemp_command"; then
8465   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470   IFS=$as_save_IFS
8471   test -z "$as_dir" && as_dir=.
8472   for ac_exec_ext in '' $ac_executable_extensions; do
8473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474     ac_cv_prog_have_mktemp_command="yes"
8475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476     break 2
8477   fi
8478 done
8479 done
8480
8481   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8482 fi
8483 fi
8484 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8485 if test -n "$have_mktemp_command"; then
8486   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8487 echo "${ECHO_T}$have_mktemp_command" >&6
8488 else
8489   echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6
8491 fi
8492
8493
8494 # See if makeinfo has been installed and is modern enough
8495 # that we can use it.
8496
8497   # Extract the first word of "makeinfo", so it can be a program name with args.
8498 set dummy makeinfo; ac_word=$2
8499 echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8501 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   if test -n "$MAKEINFO"; then
8505   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510   IFS=$as_save_IFS
8511   test -z "$as_dir" && as_dir=.
8512   for ac_exec_ext in '' $ac_executable_extensions; do
8513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514     ac_cv_prog_MAKEINFO="makeinfo"
8515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516     break 2
8517   fi
8518 done
8519 done
8520
8521 fi
8522 fi
8523 MAKEINFO=$ac_cv_prog_MAKEINFO
8524 if test -n "$MAKEINFO"; then
8525   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8526 echo "${ECHO_T}$MAKEINFO" >&6
8527 else
8528   echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8530 fi
8531
8532   if test -n "$MAKEINFO"; then
8533     # Found it, now check the version.
8534     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8535 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8536 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8540                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8541
8542                     case $ac_prog_version in
8543                       '')  gcc_cv_prog_makeinfo_modern=no;;
8544                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8545                       *)   gcc_cv_prog_makeinfo_modern=no;;
8546                     esac
8547
8548 fi
8549 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8550 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8551   else
8552     gcc_cv_prog_makeinfo_modern=no
8553   fi
8554   if test $gcc_cv_prog_makeinfo_modern = no; then
8555     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8556   fi
8557
8558 if test $gcc_cv_prog_makeinfo_modern = no; then
8559   { echo "$as_me:$LINENO: WARNING:
8560 *** Makeinfo is missing or too old.
8561 *** Info documentation will not be built." >&5
8562 echo "$as_me: WARNING:
8563 *** Makeinfo is missing or too old.
8564 *** Info documentation will not be built." >&2;}
8565   BUILD_INFO=
8566 else
8567   BUILD_INFO=info
8568 fi
8569
8570
8571 # Is pod2man recent enough to regenerate manpages?
8572 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8573 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8574 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8575   echo "$as_me:$LINENO: result: yes" >&5
8576 echo "${ECHO_T}yes" >&6
8577   GENERATED_MANPAGES=generated-manpages
8578 else
8579   echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6
8581   GENERATED_MANPAGES=
8582 fi
8583
8584
8585 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8586
8587 # How about lex?
8588 for ac_prog in flex
8589 do
8590   # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy $ac_prog; ac_word=$2
8592 echo "$as_me:$LINENO: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8594 if test "${ac_cv_prog_FLEX+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   if test -n "$FLEX"; then
8598   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603   IFS=$as_save_IFS
8604   test -z "$as_dir" && as_dir=.
8605   for ac_exec_ext in '' $ac_executable_extensions; do
8606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607     ac_cv_prog_FLEX="$ac_prog"
8608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8609     break 2
8610   fi
8611 done
8612 done
8613
8614 fi
8615 fi
8616 FLEX=$ac_cv_prog_FLEX
8617 if test -n "$FLEX"; then
8618   echo "$as_me:$LINENO: result: $FLEX" >&5
8619 echo "${ECHO_T}$FLEX" >&6
8620 else
8621   echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8623 fi
8624
8625   test -n "$FLEX" && break
8626 done
8627 test -n "$FLEX" || FLEX="$MISSING flex"
8628
8629
8630 # Bison?
8631 for ac_prog in bison
8632 do
8633   # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy $ac_prog; ac_word=$2
8635 echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637 if test "${ac_cv_prog_BISON+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   if test -n "$BISON"; then
8641   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646   IFS=$as_save_IFS
8647   test -z "$as_dir" && as_dir=.
8648   for ac_exec_ext in '' $ac_executable_extensions; do
8649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650     ac_cv_prog_BISON="$ac_prog"
8651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652     break 2
8653   fi
8654 done
8655 done
8656
8657 fi
8658 fi
8659 BISON=$ac_cv_prog_BISON
8660 if test -n "$BISON"; then
8661   echo "$as_me:$LINENO: result: $BISON" >&5
8662 echo "${ECHO_T}$BISON" >&6
8663 else
8664   echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8666 fi
8667
8668   test -n "$BISON" && break
8669 done
8670 test -n "$BISON" || BISON="$MISSING bison"
8671
8672
8673 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8674 # check for build == host before using them.
8675
8676 # NM
8677 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8678   && test -d ../binutils ; then
8679   NM='$(objdir)/../binutils/nm-new'
8680 else
8681   # Extract the first word of "nm", so it can be a program name with args.
8682 set dummy nm; ac_word=$2
8683 echo "$as_me:$LINENO: checking for $ac_word" >&5
8684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685 if test "${ac_cv_prog_NM+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   if test -n "$NM"; then
8689   ac_cv_prog_NM="$NM" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694   IFS=$as_save_IFS
8695   test -z "$as_dir" && as_dir=.
8696   for ac_exec_ext in '' $ac_executable_extensions; do
8697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698     ac_cv_prog_NM="nm"
8699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700     break 2
8701   fi
8702 done
8703 done
8704
8705   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8706 fi
8707 fi
8708 NM=$ac_cv_prog_NM
8709 if test -n "$NM"; then
8710   echo "$as_me:$LINENO: result: $NM" >&5
8711 echo "${ECHO_T}$NM" >&6
8712 else
8713   echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8715 fi
8716
8717 fi
8718
8719 # AR
8720 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8721   && test -d ../binutils ; then
8722   AR='$(objdir)/../binutils/ar'
8723 else
8724   # Extract the first word of "ar", so it can be a program name with args.
8725 set dummy ar; ac_word=$2
8726 echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728 if test "${ac_cv_prog_AR+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   if test -n "$AR"; then
8732   ac_cv_prog_AR="$AR" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739   for ac_exec_ext in '' $ac_executable_extensions; do
8740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741     ac_cv_prog_AR="ar"
8742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746 done
8747
8748   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8749 fi
8750 fi
8751 AR=$ac_cv_prog_AR
8752 if test -n "$AR"; then
8753   echo "$as_me:$LINENO: result: $AR" >&5
8754 echo "${ECHO_T}$AR" >&6
8755 else
8756   echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758 fi
8759
8760 fi
8761
8762
8763 # --------------------
8764 # Checks for C headers
8765 # --------------------
8766
8767 # Need to reject headers which give warnings, so that the -Werror bootstrap
8768 # works later. *sigh*  This needs to come before all header checks.
8769
8770 ac_c_preproc_warn_flag=yes
8771
8772 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8773 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8774 if test "${ac_cv_header_stdc+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <stdlib.h>
8784 #include <stdarg.h>
8785 #include <string.h>
8786 #include <float.h>
8787
8788 int
8789 main ()
8790 {
8791
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798   (eval $ac_compile) 2>conftest.er1
8799   ac_status=$?
8800   grep -v '^ *+' conftest.er1 >conftest.err
8801   rm -f conftest.er1
8802   cat conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } &&
8805          { ac_try='test -z "$ac_c_werror_flag"
8806                          || test ! -s conftest.err'
8807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808   (eval $ac_try) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest.$ac_objext'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   ac_cv_header_stdc=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_cv_header_stdc=no
8824 fi
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826
8827 if test $ac_cv_header_stdc = yes; then
8828   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8829   cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835 #include <string.h>
8836
8837 _ACEOF
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839   $EGREP "memchr" >/dev/null 2>&1; then
8840   :
8841 else
8842   ac_cv_header_stdc=no
8843 fi
8844 rm -f conftest*
8845
8846 fi
8847
8848 if test $ac_cv_header_stdc = yes; then
8849   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8850   cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h.  */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h.  */
8856 #include <stdlib.h>
8857
8858 _ACEOF
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860   $EGREP "free" >/dev/null 2>&1; then
8861   :
8862 else
8863   ac_cv_header_stdc=no
8864 fi
8865 rm -f conftest*
8866
8867 fi
8868
8869 if test $ac_cv_header_stdc = yes; then
8870   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8871   if test "$cross_compiling" = yes; then
8872   :
8873 else
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 #include <ctype.h>
8881 #if ((' ' & 0x0FF) == 0x020)
8882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8884 #else
8885 # define ISLOWER(c) \
8886                    (('a' <= (c) && (c) <= 'i') \
8887                      || ('j' <= (c) && (c) <= 'r') \
8888                      || ('s' <= (c) && (c) <= 'z'))
8889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8890 #endif
8891
8892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8893 int
8894 main ()
8895 {
8896   int i;
8897   for (i = 0; i < 256; i++)
8898     if (XOR (islower (i), ISLOWER (i))
8899         || toupper (i) != TOUPPER (i))
8900       exit(2);
8901   exit (0);
8902 }
8903 _ACEOF
8904 rm -f conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   :
8916 else
8917   echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ( exit $ac_status )
8922 ac_cv_header_stdc=no
8923 fi
8924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 fi
8927 fi
8928 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8929 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8930 if test $ac_cv_header_stdc = yes; then
8931
8932 cat >>confdefs.h <<\_ACEOF
8933 #define STDC_HEADERS 1
8934 _ACEOF
8935
8936 fi
8937
8938 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8939 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8940 if test "${ac_cv_header_time+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 #include <sys/types.h>
8950 #include <sys/time.h>
8951 #include <time.h>
8952
8953 int
8954 main ()
8955 {
8956 if ((struct tm *) 0)
8957 return 0;
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -z "$ac_c_werror_flag"
8972                          || test ! -s conftest.err'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; } &&
8978          { ac_try='test -s conftest.$ac_objext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_header_time=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 ac_cv_header_time=no
8990 fi
8991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8994 echo "${ECHO_T}$ac_cv_header_time" >&6
8995 if test $ac_cv_header_time = yes; then
8996
8997 cat >>confdefs.h <<\_ACEOF
8998 #define TIME_WITH_SYS_TIME 1
8999 _ACEOF
9000
9001 fi
9002
9003 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9004 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9005 if test "${gcc_cv_header_string+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014 #include <string.h>
9015 #include <strings.h>
9016 int
9017 main ()
9018 {
9019
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026   (eval $ac_compile) 2>conftest.er1
9027   ac_status=$?
9028   grep -v '^ *+' conftest.er1 >conftest.err
9029   rm -f conftest.er1
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -z "$ac_c_werror_flag"
9034                          || test ! -s conftest.err'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; } &&
9040          { ac_try='test -s conftest.$ac_objext'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; }; then
9046   gcc_cv_header_string=yes
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 gcc_cv_header_string=no
9052 fi
9053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9056 echo "${ECHO_T}$gcc_cv_header_string" >&6
9057 if test $gcc_cv_header_string = yes; then
9058
9059 cat >>confdefs.h <<\_ACEOF
9060 #define STRING_WITH_STRINGS 1
9061 _ACEOF
9062
9063 fi
9064
9065 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9066 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9067 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h.  */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h.  */
9076 #include <sys/types.h>
9077 #include <sys/wait.h>
9078 #ifndef WEXITSTATUS
9079 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9080 #endif
9081 #ifndef WIFEXITED
9082 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9083 #endif
9084
9085 int
9086 main ()
9087 {
9088   int s;
9089   wait (&s);
9090   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9097   (eval $ac_compile) 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } &&
9104          { ac_try='test -z "$ac_c_werror_flag"
9105                          || test ! -s conftest.err'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; } &&
9111          { ac_try='test -s conftest.$ac_objext'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; }; then
9117   ac_cv_header_sys_wait_h=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_header_sys_wait_h=no
9123 fi
9124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9127 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9128 if test $ac_cv_header_sys_wait_h = yes; then
9129
9130 cat >>confdefs.h <<\_ACEOF
9131 #define HAVE_SYS_WAIT_H 1
9132 _ACEOF
9133
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9159                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9160                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9161                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9162 do
9163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169   cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h.  */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h.  */
9175 #include <$ac_header>
9176 _ACEOF
9177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } >/dev/null; then
9185   if test -s conftest.err; then
9186     ac_cpp_err=$ac_c_preproc_warn_flag
9187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9188   else
9189     ac_cpp_err=
9190   fi
9191 else
9192   ac_cpp_err=yes
9193 fi
9194 if test -z "$ac_cpp_err"; then
9195   eval "$as_ac_Header=yes"
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200   eval "$as_ac_Header=no"
9201 fi
9202 rm -f conftest.err conftest.$ac_ext
9203 fi
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207   cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 _ACEOF
9210
9211 fi
9212 done
9213
9214
9215 # Check for thread headers.
9216 echo "$as_me:$LINENO: checking for thread.h" >&5
9217 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9218 if test "${ac_cv_header_thread_h+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 #include <thread.h>
9228 _ACEOF
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9231   ac_status=$?
9232   grep -v '^ *+' conftest.er1 >conftest.err
9233   rm -f conftest.er1
9234   cat conftest.err >&5
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } >/dev/null; then
9237   if test -s conftest.err; then
9238     ac_cpp_err=$ac_c_preproc_warn_flag
9239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9240   else
9241     ac_cpp_err=
9242   fi
9243 else
9244   ac_cpp_err=yes
9245 fi
9246 if test -z "$ac_cpp_err"; then
9247   ac_cv_header_thread_h=yes
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252   ac_cv_header_thread_h=no
9253 fi
9254 rm -f conftest.err conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9257 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9258 if test $ac_cv_header_thread_h = yes; then
9259   have_thread_h=yes
9260 else
9261   have_thread_h=
9262 fi
9263
9264 echo "$as_me:$LINENO: checking for pthread.h" >&5
9265 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9266 if test "${ac_cv_header_pthread_h+set}" = set; then
9267   echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269   cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275 #include <pthread.h>
9276 _ACEOF
9277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } >/dev/null; then
9285   if test -s conftest.err; then
9286     ac_cpp_err=$ac_c_preproc_warn_flag
9287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288   else
9289     ac_cpp_err=
9290   fi
9291 else
9292   ac_cpp_err=yes
9293 fi
9294 if test -z "$ac_cpp_err"; then
9295   ac_cv_header_pthread_h=yes
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300   ac_cv_header_pthread_h=no
9301 fi
9302 rm -f conftest.err conftest.$ac_ext
9303 fi
9304 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9306 if test $ac_cv_header_pthread_h = yes; then
9307   have_pthread_h=yes
9308 else
9309   have_pthread_h=
9310 fi
9311
9312
9313 # These tests can't be done till we know if we have limits.h.
9314 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9315 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9316 if test "${gcc_cv_decl_char_bit+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #ifdef HAVE_LIMITS_H
9326 #include <limits.h>
9327 #endif
9328 #ifdef CHAR_BIT
9329 found
9330 #endif
9331 _ACEOF
9332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9333   $EGREP "found" >/dev/null 2>&1; then
9334   gcc_cv_decl_char_bit=yes
9335 else
9336   gcc_cv_decl_char_bit=no
9337 fi
9338 rm -f conftest*
9339
9340
9341 fi
9342 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9343 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9344 if test $gcc_cv_decl_char_bit = no; then
9345   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9346 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9347 if test "${gcc_cv_c_nbby+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   i=8
9351  gcc_cv_c_nbby=
9352  while test $i -lt 65; do
9353    cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359
9360 int
9361 main ()
9362 {
9363 switch(0) {
9364   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9365   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9366   ; }
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373   (eval $ac_compile) 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } &&
9380          { ac_try='test -z "$ac_c_werror_flag"
9381                          || test ! -s conftest.err'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; } &&
9387          { ac_try='test -s conftest.$ac_objext'
9388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389   (eval $ac_try) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); }; }; then
9393   gcc_cv_c_nbby=$i; break
9394 else
9395   echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 fi
9399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400    i=`expr $i + 1`
9401  done
9402  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9403
9404 fi
9405 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9406 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9407 if test $gcc_cv_c_nbby = failed; then
9408   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9409 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9410    { (exit 1); exit 1; }; }
9411 else
9412
9413 cat >>confdefs.h <<_ACEOF
9414 #define CHAR_BIT $gcc_cv_c_nbby
9415 _ACEOF
9416
9417 fi
9418 fi
9419 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9421 if test "${ac_cv_c_bigendian+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   # See if sys/param.h defines the BYTE_ORDER macro.
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431 #include <sys/types.h>
9432 #include <sys/param.h>
9433
9434 int
9435 main ()
9436 {
9437 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9438  bogus endian macros
9439 #endif
9440
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447   (eval $ac_compile) 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } &&
9454          { ac_try='test -z "$ac_c_werror_flag"
9455                          || test ! -s conftest.err'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; } &&
9461          { ac_try='test -s conftest.$ac_objext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   # It does; now see whether it defined to BIG_ENDIAN or not.
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 #include <sys/types.h>
9475 #include <sys/param.h>
9476
9477 int
9478 main ()
9479 {
9480 #if BYTE_ORDER != BIG_ENDIAN
9481  not big endian
9482 #endif
9483
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490   (eval $ac_compile) 2>conftest.er1
9491   ac_status=$?
9492   grep -v '^ *+' conftest.er1 >conftest.err
9493   rm -f conftest.er1
9494   cat conftest.err >&5
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } &&
9497          { ac_try='test -z "$ac_c_werror_flag"
9498                          || test ! -s conftest.err'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; } &&
9504          { ac_try='test -s conftest.$ac_objext'
9505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506   (eval $ac_try) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; }; then
9510   ac_cv_c_bigendian=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515 ac_cv_c_bigendian=no
9516 fi
9517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 # It does not; compile a test program.
9523 if test "$cross_compiling" = yes; then
9524   # try to guess the endianness by grepping values into an object file
9525   ac_cv_c_bigendian=unknown
9526   cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h.  */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h.  */
9532 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9533 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9534 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9535 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9536 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9537 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9538 int
9539 main ()
9540 {
9541  _ascii (); _ebcdic ();
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548   (eval $ac_compile) 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } &&
9555          { ac_try='test -z "$ac_c_werror_flag"
9556                          || test ! -s conftest.err'
9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558   (eval $ac_try) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9569   ac_cv_c_bigendian=yes
9570 fi
9571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9572   if test "$ac_cv_c_bigendian" = unknown; then
9573     ac_cv_c_bigendian=no
9574   else
9575     # finding both strings is unlikely to happen, but who knows?
9576     ac_cv_c_bigendian=unknown
9577   fi
9578 fi
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 fi
9584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9585 else
9586   cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592 int
9593 main ()
9594 {
9595   /* Are we little or big endian?  From Harbison&Steele.  */
9596   union
9597   {
9598     long l;
9599     char c[sizeof (long)];
9600   } u;
9601   u.l = 1;
9602   exit (u.c[sizeof (long) - 1] == 1);
9603 }
9604 _ACEOF
9605 rm -f conftest$ac_exeext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607   (eval $ac_link) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; }; then
9616   ac_cv_c_bigendian=no
9617 else
9618   echo "$as_me: program exited with status $ac_status" >&5
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9621
9622 ( exit $ac_status )
9623 ac_cv_c_bigendian=yes
9624 fi
9625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9626 fi
9627 fi
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9629 fi
9630 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9631 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9632 case $ac_cv_c_bigendian in
9633   yes)
9634
9635 cat >>confdefs.h <<\_ACEOF
9636 #define WORDS_BIGENDIAN 1
9637 _ACEOF
9638  ;;
9639   no)
9640      ;;
9641   *)
9642     { { echo "$as_me:$LINENO: error: unknown endianness
9643 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9644 echo "$as_me: error: unknown endianness
9645 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9646    { (exit 1); exit 1; }; } ;;
9647 esac
9648
9649
9650 # --------
9651 # UNSORTED
9652 # --------
9653
9654
9655 # These libraries may be used by collect2.
9656 # We may need a special search path to get them linked.
9657 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9658 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9659 if test "${gcc_cv_collect2_libs+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   save_LIBS="$LIBS"
9663 for libs in '' -lld -lmld \
9664                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9665                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9666 do
9667         LIBS="$libs"
9668         cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674
9675 /* Override any gcc2 internal prototype to avoid an error.  */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 /* We use char because int might match the return type of a gcc2
9680    builtin and then its argument prototype would still apply.  */
9681 char ldopen ();
9682 int
9683 main ()
9684 {
9685 ldopen ();
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692   (eval $ac_link) 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag"
9700                          || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest$ac_exeext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   gcc_cv_collect2_libs="$libs"; break
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 fi
9718 rm -f conftest.err conftest.$ac_objext \
9719       conftest$ac_exeext conftest.$ac_ext
9720 done
9721 LIBS="$save_LIBS"
9722 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9723 fi
9724 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9725 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9726 case $gcc_cv_collect2_libs in
9727         "none required")        ;;
9728         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9729 esac
9730
9731
9732 # When building Ada code on Alpha, we need exc_resume which is usually in
9733 # -lexc.  So test for it.
9734 save_LIBS="$LIBS"
9735 LIBS=
9736 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9737 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9738 if test "${ac_cv_search_exc_resume+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   ac_func_search_save_LIBS=$LIBS
9742 ac_cv_search_exc_resume=no
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749
9750 /* Override any gcc2 internal prototype to avoid an error.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755    builtin and then its argument prototype would still apply.  */
9756 char exc_resume ();
9757 int
9758 main ()
9759 {
9760 exc_resume ();
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } &&
9774          { ac_try='test -z "$ac_c_werror_flag"
9775                          || test ! -s conftest.err'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; } &&
9781          { ac_try='test -s conftest$ac_exeext'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787   ac_cv_search_exc_resume="none required"
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 fi
9793 rm -f conftest.err conftest.$ac_objext \
9794       conftest$ac_exeext conftest.$ac_ext
9795 if test "$ac_cv_search_exc_resume" = no; then
9796   for ac_lib in exc; do
9797     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9798     cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 /* Override any gcc2 internal prototype to avoid an error.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 /* We use char because int might match the return type of a gcc2
9810    builtin and then its argument prototype would still apply.  */
9811 char exc_resume ();
9812 int
9813 main ()
9814 {
9815 exc_resume ();
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag"
9830                          || test ! -s conftest.err'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; } &&
9836          { ac_try='test -s conftest$ac_exeext'
9837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838   (eval $ac_try) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; }; then
9842   ac_cv_search_exc_resume="-l$ac_lib"
9843 break
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 fi
9849 rm -f conftest.err conftest.$ac_objext \
9850       conftest$ac_exeext conftest.$ac_ext
9851   done
9852 fi
9853 LIBS=$ac_func_search_save_LIBS
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9856 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9857 if test "$ac_cv_search_exc_resume" != no; then
9858   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9859
9860 fi
9861
9862 GNAT_LIBEXC="$LIBS"
9863 LIBS="$save_LIBS"
9864
9865
9866 # Some systems put ldexp and frexp in libm instead of libc; assume
9867 # they're both in the same place.  jcf-dump needs them.
9868 save_LIBS="$LIBS"
9869 LIBS=
9870 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9871 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9872 if test "${ac_cv_search_ldexp+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   ac_func_search_save_LIBS=$LIBS
9876 ac_cv_search_ldexp=no
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883
9884 /* Override any gcc2 internal prototype to avoid an error.  */
9885 #ifdef __cplusplus
9886 extern "C"
9887 #endif
9888 /* We use char because int might match the return type of a gcc2
9889    builtin and then its argument prototype would still apply.  */
9890 char ldexp ();
9891 int
9892 main ()
9893 {
9894 ldexp ();
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext conftest$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901   (eval $ac_link) 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -z "$ac_c_werror_flag"
9909                          || test ! -s conftest.err'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; } &&
9915          { ac_try='test -s conftest$ac_exeext'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   ac_cv_search_ldexp="none required"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 fi
9927 rm -f conftest.err conftest.$ac_objext \
9928       conftest$ac_exeext conftest.$ac_ext
9929 if test "$ac_cv_search_ldexp" = no; then
9930   for ac_lib in m; do
9931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9932     cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938
9939 /* Override any gcc2 internal prototype to avoid an error.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 /* We use char because int might match the return type of a gcc2
9944    builtin and then its argument prototype would still apply.  */
9945 char ldexp ();
9946 int
9947 main ()
9948 {
9949 ldexp ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956   (eval $ac_link) 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag"
9964                          || test ! -s conftest.err'
9965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966   (eval $ac_try) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_search_ldexp="-l$ac_lib"
9977 break
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 fi
9983 rm -f conftest.err conftest.$ac_objext \
9984       conftest$ac_exeext conftest.$ac_ext
9985   done
9986 fi
9987 LIBS=$ac_func_search_save_LIBS
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9990 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9991 if test "$ac_cv_search_ldexp" != no; then
9992   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9993
9994 fi
9995
9996 LDEXP_LIB="$LIBS"
9997 LIBS="$save_LIBS"
9998
9999
10000 # Use <inttypes.h> only if it exists,
10001 # doesn't clash with <sys/types.h>, and declares intmax_t.
10002 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10003 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10004 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 #include <sys/types.h>
10014 #include <inttypes.h>
10015 int
10016 main ()
10017 {
10018 intmax_t i = -1;
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025   (eval $ac_compile) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest.$ac_objext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   gcc_cv_header_inttypes_h=yes
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 gcc_cv_header_inttypes_h=no
10051 fi
10052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054
10055 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10056 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10057 if test $gcc_cv_header_inttypes_h = yes; then
10058
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_INTTYPES_H 1
10061 _ACEOF
10062
10063 fi
10064
10065
10066
10067
10068
10069
10070
10071
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 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10101         sysconf strsignal getrusage nl_langinfo \
10102         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10103         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
10104 do
10105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10106 echo "$as_me:$LINENO: checking for $ac_func" >&5
10107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10108 if eval "test \"\${$as_ac_var+set}\" = set"; then
10109   echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10119 #define $ac_func innocuous_$ac_func
10120
10121 /* System header to define __stub macros and hopefully few prototypes,
10122     which can conflict with char $ac_func (); below.
10123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10124     <limits.h> exists even on freestanding compilers.  */
10125
10126 #ifdef __STDC__
10127 # include <limits.h>
10128 #else
10129 # include <assert.h>
10130 #endif
10131
10132 #undef $ac_func
10133
10134 /* Override any gcc2 internal prototype to avoid an error.  */
10135 #ifdef __cplusplus
10136 extern "C"
10137 {
10138 #endif
10139 /* We use char because int might match the return type of a gcc2
10140    builtin and then its argument prototype would still apply.  */
10141 char $ac_func ();
10142 /* The GNU C library defines this for functions which it implements
10143     to always fail with ENOSYS.  Some functions are actually named
10144     something starting with __ and the normal name is an alias.  */
10145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10146 choke me
10147 #else
10148 char (*f) () = $ac_func;
10149 #endif
10150 #ifdef __cplusplus
10151 }
10152 #endif
10153
10154 int
10155 main ()
10156 {
10157 return f != $ac_func;
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164   (eval $ac_link) 2>conftest.er1
10165   ac_status=$?
10166   grep -v '^ *+' conftest.er1 >conftest.err
10167   rm -f conftest.er1
10168   cat conftest.err >&5
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); } &&
10171          { ac_try='test -z "$ac_c_werror_flag"
10172                          || test ! -s conftest.err'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; } &&
10178          { ac_try='test -s conftest$ac_exeext'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   eval "$as_ac_var=yes"
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 eval "$as_ac_var=no"
10190 fi
10191 rm -f conftest.err conftest.$ac_objext \
10192       conftest$ac_exeext conftest.$ac_ext
10193 fi
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10196 if test `eval echo '${'$as_ac_var'}'` = yes; then
10197   cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 fi
10202 done
10203
10204
10205 if test x$ac_cv_func_mbstowcs = xyes; then
10206   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10207 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10208 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211       if test "$cross_compiling" = yes; then
10212   gcc_cv_func_mbstowcs_works=yes
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220 #include <stdlib.h>
10221 int main()
10222 {
10223   mbstowcs(0, "", 0);
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229   (eval $ac_link) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   gcc_cv_func_mbstowcs_works=yes
10239 else
10240   echo "$as_me: program exited with status $ac_status" >&5
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ( exit $ac_status )
10245 gcc_cv_func_mbstowcs_works=no
10246 fi
10247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10248 fi
10249 fi
10250 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10251 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10252   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_WORKING_MBSTOWCS 1
10256 _ACEOF
10257
10258   fi
10259 fi
10260
10261 echo "$as_me:$LINENO: checking for ssize_t" >&5
10262 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10263 if test "${ac_cv_type_ssize_t+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 $ac_includes_default
10273 int
10274 main ()
10275 {
10276 if ((ssize_t *) 0)
10277   return 0;
10278 if (sizeof (ssize_t))
10279   return 0;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286   (eval $ac_compile) 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag"
10294                          || test ! -s conftest.err'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; } &&
10300          { ac_try='test -s conftest.$ac_objext'
10301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302   (eval $ac_try) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   ac_cv_type_ssize_t=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ac_cv_type_ssize_t=no
10312 fi
10313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10316 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10317 if test $ac_cv_type_ssize_t = yes; then
10318   :
10319 else
10320
10321 cat >>confdefs.h <<_ACEOF
10322 #define ssize_t int
10323 _ACEOF
10324
10325 fi
10326
10327 echo "$as_me:$LINENO: checking for caddr_t" >&5
10328 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10329 if test "${ac_cv_type_caddr_t+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338 $ac_includes_default
10339 int
10340 main ()
10341 {
10342 if ((caddr_t *) 0)
10343   return 0;
10344 if (sizeof (caddr_t))
10345   return 0;
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352   (eval $ac_compile) 2>conftest.er1
10353   ac_status=$?
10354   grep -v '^ *+' conftest.er1 >conftest.err
10355   rm -f conftest.er1
10356   cat conftest.err >&5
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -z "$ac_c_werror_flag"
10360                          || test ! -s conftest.err'
10361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362   (eval $ac_try) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; } &&
10366          { ac_try='test -s conftest.$ac_objext'
10367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368   (eval $ac_try) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; }; then
10372   ac_cv_type_caddr_t=yes
10373 else
10374   echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_cv_type_caddr_t=no
10378 fi
10379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10382 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10383 if test $ac_cv_type_caddr_t = yes; then
10384   :
10385 else
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define caddr_t char *
10389 _ACEOF
10390
10391 fi
10392
10393
10394 # Try to determine the array type of the second argument of getgroups
10395 # for the target system (int or gid_t).
10396 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10397 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10398 if test "${ac_cv_type_uid_t+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 #include <sys/types.h>
10408
10409 _ACEOF
10410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10411   $EGREP "uid_t" >/dev/null 2>&1; then
10412   ac_cv_type_uid_t=yes
10413 else
10414   ac_cv_type_uid_t=no
10415 fi
10416 rm -f conftest*
10417
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10420 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10421 if test $ac_cv_type_uid_t = no; then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define uid_t int
10425 _ACEOF
10426
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define gid_t int
10430 _ACEOF
10431
10432 fi
10433
10434 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10435 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10436 if test "${ac_cv_type_getgroups+set}" = set; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439   if test "$cross_compiling" = yes; then
10440   ac_cv_type_getgroups=cross
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448 /* Thanks to Mike Rendell for this test.  */
10449 #include <sys/types.h>
10450 #define NGID 256
10451 #undef MAX
10452 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10453
10454 int
10455 main ()
10456 {
10457   gid_t gidset[NGID];
10458   int i, n;
10459   union { gid_t gval; long lval; }  val;
10460
10461   val.lval = -1;
10462   for (i = 0; i < NGID; i++)
10463     gidset[i] = val.gval;
10464   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10465                  gidset);
10466   /* Exit non-zero if getgroups seems to require an array of ints.  This
10467      happens when gid_t is short but getgroups modifies an array of ints.  */
10468   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10469 }
10470 _ACEOF
10471 rm -f conftest$ac_exeext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473   (eval $ac_link) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_cv_type_getgroups=gid_t
10483 else
10484   echo "$as_me: program exited with status $ac_status" >&5
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ( exit $ac_status )
10489 ac_cv_type_getgroups=int
10490 fi
10491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10492 fi
10493 if test $ac_cv_type_getgroups = cross; then
10494         cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500 #include <unistd.h>
10501
10502 _ACEOF
10503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10504   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10505   ac_cv_type_getgroups=gid_t
10506 else
10507   ac_cv_type_getgroups=int
10508 fi
10509 rm -f conftest*
10510
10511 fi
10512 fi
10513 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10514 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10515
10516 cat >>confdefs.h <<_ACEOF
10517 #define GETGROUPS_T $ac_cv_type_getgroups
10518 _ACEOF
10519
10520
10521 if test "${target}" = "${build}"; then
10522   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10523 else
10524   case "${target}" in
10525         # This condition may need some tweaking.  It should include all
10526         # targets where the array type of the second argument of getgroups
10527         # is int and the type of gid_t is not equivalent to int.
10528         *-*-sunos* | *-*-ultrix*)
10529                 TARGET_GETGROUPS_T=int
10530                 ;;
10531         *)
10532                 TARGET_GETGROUPS_T=gid_t
10533                 ;;
10534   esac
10535 fi
10536
10537
10538
10539 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10540 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10541 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10542   echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544   cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 #include <sys/mman.h>
10551 _ACEOF
10552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } >/dev/null; then
10560   if test -s conftest.err; then
10561     ac_cpp_err=$ac_c_preproc_warn_flag
10562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10563   else
10564     ac_cpp_err=
10565   fi
10566 else
10567   ac_cpp_err=yes
10568 fi
10569 if test -z "$ac_cpp_err"; then
10570   ac_cv_header_sys_mman_h=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575   ac_cv_header_sys_mman_h=no
10576 fi
10577 rm -f conftest.err conftest.$ac_ext
10578 fi
10579 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10580 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10581 if test $ac_cv_header_sys_mman_h = yes; then
10582   gcc_header_sys_mman_h=yes
10583 else
10584   gcc_header_sys_mman_h=no
10585 fi
10586
10587 echo "$as_me:$LINENO: checking for mmap" >&5
10588 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10589 if test "${ac_cv_func_mmap+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h.  */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h.  */
10598 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10600 #define mmap innocuous_mmap
10601
10602 /* System header to define __stub macros and hopefully few prototypes,
10603     which can conflict with char mmap (); below.
10604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605     <limits.h> exists even on freestanding compilers.  */
10606
10607 #ifdef __STDC__
10608 # include <limits.h>
10609 #else
10610 # include <assert.h>
10611 #endif
10612
10613 #undef mmap
10614
10615 /* Override any gcc2 internal prototype to avoid an error.  */
10616 #ifdef __cplusplus
10617 extern "C"
10618 {
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621    builtin and then its argument prototype would still apply.  */
10622 char mmap ();
10623 /* The GNU C library defines this for functions which it implements
10624     to always fail with ENOSYS.  Some functions are actually named
10625     something starting with __ and the normal name is an alias.  */
10626 #if defined (__stub_mmap) || defined (__stub___mmap)
10627 choke me
10628 #else
10629 char (*f) () = mmap;
10630 #endif
10631 #ifdef __cplusplus
10632 }
10633 #endif
10634
10635 int
10636 main ()
10637 {
10638 return f != mmap;
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645   (eval $ac_link) 2>conftest.er1
10646   ac_status=$?
10647   grep -v '^ *+' conftest.er1 >conftest.err
10648   rm -f conftest.er1
10649   cat conftest.err >&5
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -z "$ac_c_werror_flag"
10653                          || test ! -s conftest.err'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; } &&
10659          { ac_try='test -s conftest$ac_exeext'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; }; then
10665   ac_cv_func_mmap=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_cv_func_mmap=no
10671 fi
10672 rm -f conftest.err conftest.$ac_objext \
10673       conftest$ac_exeext conftest.$ac_ext
10674 fi
10675 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10676 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10677 if test $ac_cv_func_mmap = yes; then
10678   gcc_func_mmap=yes
10679 else
10680   gcc_func_mmap=no
10681 fi
10682
10683 if test "$gcc_header_sys_mman_h" != yes \
10684  || test "$gcc_func_mmap" != yes; then
10685    gcc_cv_func_mmap_file=no
10686    gcc_cv_func_mmap_dev_zero=no
10687    gcc_cv_func_mmap_anon=no
10688 else
10689    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10690 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10691 if test "${gcc_cv_func_mmap_file+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   # Add a system to this blacklist if
10695    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10696    # memory area containing the same data that you'd get if you applied
10697    # read() to the same fd.  The only system known to have a problem here
10698    # is VMS, where text files have record structure.
10699    case "$host_os" in
10700      vms* | ultrix*)
10701         gcc_cv_func_mmap_file=no ;;
10702      *)
10703         gcc_cv_func_mmap_file=yes;;
10704    esac
10705 fi
10706 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10707 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10708    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10709 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10710 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   # Add a system to this blacklist if it has mmap() but /dev/zero
10714    # does not exist, or if mmapping /dev/zero does not give anonymous
10715    # zeroed pages with both the following properties:
10716    # 1. If you map N consecutive pages in with one call, and then
10717    #    unmap any subset of those pages, the pages that were not
10718    #    explicitly unmapped remain accessible.
10719    # 2. If you map two adjacent blocks of memory and then unmap them
10720    #    both at once, they must both go away.
10721    # Systems known to be in this category are Windows (all variants),
10722    # VMS, and Darwin.
10723    case "$host_os" in
10724      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10725         gcc_cv_func_mmap_dev_zero=no ;;
10726      *)
10727         gcc_cv_func_mmap_dev_zero=yes;;
10728    esac
10729 fi
10730 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10731 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10732
10733    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10734    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10735 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10736 if test "${gcc_cv_decl_map_anon+set}" = set; then
10737   echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739   cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h.  */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h.  */
10745 #include <sys/types.h>
10746 #include <sys/mman.h>
10747 #include <unistd.h>
10748
10749 #ifndef MAP_ANONYMOUS
10750 #define MAP_ANONYMOUS MAP_ANON
10751 #endif
10752
10753 int
10754 main ()
10755 {
10756 int n = MAP_ANONYMOUS;
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763   (eval $ac_compile) 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -z "$ac_c_werror_flag"
10771                          || test ! -s conftest.err'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; } &&
10777          { ac_try='test -s conftest.$ac_objext'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; }; then
10783   gcc_cv_decl_map_anon=yes
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 gcc_cv_decl_map_anon=no
10789 fi
10790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10793 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10794
10795    if test $gcc_cv_decl_map_anon = no; then
10796      gcc_cv_func_mmap_anon=no
10797    else
10798      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10799 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10800 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10804    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10805    # doesn't give anonymous zeroed pages with the same properties listed
10806    # above for use of /dev/zero.
10807    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10808    case "$host_os" in
10809      vms* | cygwin* | pe | mingw* | sco* | udk* )
10810         gcc_cv_func_mmap_anon=no ;;
10811      *)
10812         gcc_cv_func_mmap_anon=yes;;
10813    esac
10814 fi
10815 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10816 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10817    fi
10818 fi
10819
10820 if test $gcc_cv_func_mmap_file = yes; then
10821
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_MMAP_FILE 1
10824 _ACEOF
10825
10826 fi
10827 if test $gcc_cv_func_mmap_dev_zero = yes; then
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define HAVE_MMAP_DEV_ZERO 1
10831 _ACEOF
10832
10833 fi
10834 if test $gcc_cv_func_mmap_anon = yes; then
10835
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_MMAP_ANON 1
10838 _ACEOF
10839
10840 fi
10841
10842
10843 case "${host}" in
10844 *-*-*vms*)
10845   # Under VMS, vfork works very differently than on Unix. The standard test
10846   # won't work, and it isn't easily adaptable. It makes more sense to
10847   # just force it.
10848   ac_cv_func_vfork_works=yes
10849   ;;
10850 esac
10851 echo "$as_me:$LINENO: checking for pid_t" >&5
10852 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10853 if test "${ac_cv_type_pid_t+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862 $ac_includes_default
10863 int
10864 main ()
10865 {
10866 if ((pid_t *) 0)
10867   return 0;
10868 if (sizeof (pid_t))
10869   return 0;
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876   (eval $ac_compile) 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -z "$ac_c_werror_flag"
10884                          || test ! -s conftest.err'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; } &&
10890          { ac_try='test -s conftest.$ac_objext'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_cv_type_pid_t=yes
10897 else
10898   echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 ac_cv_type_pid_t=no
10902 fi
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10906 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10907 if test $ac_cv_type_pid_t = yes; then
10908   :
10909 else
10910
10911 cat >>confdefs.h <<_ACEOF
10912 #define pid_t int
10913 _ACEOF
10914
10915 fi
10916
10917
10918
10919 for ac_header in unistd.h vfork.h
10920 do
10921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10922 echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927   cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 #include <$ac_header>
10934 _ACEOF
10935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } >/dev/null; then
10943   if test -s conftest.err; then
10944     ac_cpp_err=$ac_c_preproc_warn_flag
10945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10946   else
10947     ac_cpp_err=
10948   fi
10949 else
10950   ac_cpp_err=yes
10951 fi
10952 if test -z "$ac_cpp_err"; then
10953   eval "$as_ac_Header=yes"
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958   eval "$as_ac_Header=no"
10959 fi
10960 rm -f conftest.err conftest.$ac_ext
10961 fi
10962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970 done
10971
10972
10973
10974 for ac_func in fork vfork
10975 do
10976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10977 echo "$as_me:$LINENO: checking for $ac_func" >&5
10978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_var+set}\" = set"; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982   cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10990 #define $ac_func innocuous_$ac_func
10991
10992 /* System header to define __stub macros and hopefully few prototypes,
10993     which can conflict with char $ac_func (); below.
10994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995     <limits.h> exists even on freestanding compilers.  */
10996
10997 #ifdef __STDC__
10998 # include <limits.h>
10999 #else
11000 # include <assert.h>
11001 #endif
11002
11003 #undef $ac_func
11004
11005 /* Override any gcc2 internal prototype to avoid an error.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 {
11009 #endif
11010 /* We use char because int might match the return type of a gcc2
11011    builtin and then its argument prototype would still apply.  */
11012 char $ac_func ();
11013 /* The GNU C library defines this for functions which it implements
11014     to always fail with ENOSYS.  Some functions are actually named
11015     something starting with __ and the normal name is an alias.  */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 choke me
11018 #else
11019 char (*f) () = $ac_func;
11020 #endif
11021 #ifdef __cplusplus
11022 }
11023 #endif
11024
11025 int
11026 main ()
11027 {
11028 return f != $ac_func;
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035   (eval $ac_link) 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag"
11043                          || test ! -s conftest.err'
11044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045   (eval $ac_try) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; } &&
11049          { ac_try='test -s conftest$ac_exeext'
11050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051   (eval $ac_try) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }; }; then
11055   eval "$as_ac_var=yes"
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 eval "$as_ac_var=no"
11061 fi
11062 rm -f conftest.err conftest.$ac_objext \
11063       conftest$ac_exeext conftest.$ac_ext
11064 fi
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11067 if test `eval echo '${'$as_ac_var'}'` = yes; then
11068   cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 _ACEOF
11071
11072 fi
11073 done
11074
11075 if test "x$ac_cv_func_fork" = xyes; then
11076   echo "$as_me:$LINENO: checking for working fork" >&5
11077 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11078 if test "${ac_cv_func_fork_works+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   if test "$cross_compiling" = yes; then
11082   ac_cv_func_fork_works=cross
11083 else
11084   cat >conftest.$ac_ext <<_ACEOF
11085 /* By Ruediger Kuhlmann. */
11086       #include <sys/types.h>
11087       #if HAVE_UNISTD_H
11088       # include <unistd.h>
11089       #endif
11090       /* Some systems only have a dummy stub for fork() */
11091       int main ()
11092       {
11093         if (fork() < 0)
11094           exit (1);
11095         exit (0);
11096       }
11097 _ACEOF
11098 rm -f conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   ac_cv_func_fork_works=yes
11110 else
11111   echo "$as_me: program exited with status $ac_status" >&5
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ( exit $ac_status )
11116 ac_cv_func_fork_works=no
11117 fi
11118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11119 fi
11120 fi
11121 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11122 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11123
11124 else
11125   ac_cv_func_fork_works=$ac_cv_func_fork
11126 fi
11127 if test "x$ac_cv_func_fork_works" = xcross; then
11128   case $host in
11129     *-*-amigaos* | *-*-msdosdjgpp*)
11130       # Override, as these systems have only a dummy fork() stub
11131       ac_cv_func_fork_works=no
11132       ;;
11133     *)
11134       ac_cv_func_fork_works=yes
11135       ;;
11136   esac
11137   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11138 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11139 fi
11140 ac_cv_func_vfork_works=$ac_cv_func_vfork
11141 if test "x$ac_cv_func_vfork" = xyes; then
11142   echo "$as_me:$LINENO: checking for working vfork" >&5
11143 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11144 if test "${ac_cv_func_vfork_works+set}" = set; then
11145   echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147   if test "$cross_compiling" = yes; then
11148   ac_cv_func_vfork_works=cross
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156 /* Thanks to Paul Eggert for this test.  */
11157 #include <stdio.h>
11158 #include <stdlib.h>
11159 #include <sys/types.h>
11160 #include <sys/stat.h>
11161 #include <sys/wait.h>
11162 #if HAVE_UNISTD_H
11163 # include <unistd.h>
11164 #endif
11165 #if HAVE_VFORK_H
11166 # include <vfork.h>
11167 #endif
11168 /* On some sparc systems, changes by the child to local and incoming
11169    argument registers are propagated back to the parent.  The compiler
11170    is told about this with #include <vfork.h>, but some compilers
11171    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11172    static variable whose address is put into a register that is
11173    clobbered by the vfork.  */
11174 static void
11175 #ifdef __cplusplus
11176 sparc_address_test (int arg)
11177 # else
11178 sparc_address_test (arg) int arg;
11179 #endif
11180 {
11181   static pid_t child;
11182   if (!child) {
11183     child = vfork ();
11184     if (child < 0) {
11185       perror ("vfork");
11186       _exit(2);
11187     }
11188     if (!child) {
11189       arg = getpid();
11190       write(-1, "", 0);
11191       _exit (arg);
11192     }
11193   }
11194 }
11195
11196 int
11197 main ()
11198 {
11199   pid_t parent = getpid ();
11200   pid_t child;
11201
11202   sparc_address_test (0);
11203
11204   child = vfork ();
11205
11206   if (child == 0) {
11207     /* Here is another test for sparc vfork register problems.  This
11208        test uses lots of local variables, at least as many local
11209        variables as main has allocated so far including compiler
11210        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11211        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11212        reuse the register of parent for one of the local variables,
11213        since it will think that parent can't possibly be used any more
11214        in this routine.  Assigning to the local variable will thus
11215        munge parent in the parent process.  */
11216     pid_t
11217       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11218       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11219     /* Convince the compiler that p..p7 are live; otherwise, it might
11220        use the same hardware register for all 8 local variables.  */
11221     if (p != p1 || p != p2 || p != p3 || p != p4
11222         || p != p5 || p != p6 || p != p7)
11223       _exit(1);
11224
11225     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11226        from child file descriptors.  If the child closes a descriptor
11227        before it execs or exits, this munges the parent's descriptor
11228        as well.  Test for this by closing stdout in the child.  */
11229     _exit(close(fileno(stdout)) != 0);
11230   } else {
11231     int status;
11232     struct stat st;
11233
11234     while (wait(&status) != child)
11235       ;
11236     exit(
11237          /* Was there some problem with vforking?  */
11238          child < 0
11239
11240          /* Did the child fail?  (This shouldn't happen.)  */
11241          || status
11242
11243          /* Did the vfork/compiler bug occur?  */
11244          || parent != getpid()
11245
11246          /* Did the file descriptor bug occur?  */
11247          || fstat(fileno(stdout), &st) != 0
11248          );
11249   }
11250 }
11251 _ACEOF
11252 rm -f conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259   (eval $ac_try) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; }; then
11263   ac_cv_func_vfork_works=yes
11264 else
11265   echo "$as_me: program exited with status $ac_status" >&5
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ( exit $ac_status )
11270 ac_cv_func_vfork_works=no
11271 fi
11272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11276 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11277
11278 fi;
11279 if test "x$ac_cv_func_fork_works" = xcross; then
11280   ac_cv_func_vfork_works=$ac_cv_func_vfork
11281   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11282 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11283 fi
11284
11285 if test "x$ac_cv_func_vfork_works" = xyes; then
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_WORKING_VFORK 1
11289 _ACEOF
11290
11291 else
11292
11293 cat >>confdefs.h <<\_ACEOF
11294 #define vfork fork
11295 _ACEOF
11296
11297 fi
11298 if test "x$ac_cv_func_fork_works" = xyes; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_WORKING_FORK 1
11302 _ACEOF
11303
11304 fi
11305
11306
11307
11308       if test "X$prefix" = "XNONE"; then
11309     acl_final_prefix="$ac_default_prefix"
11310   else
11311     acl_final_prefix="$prefix"
11312   fi
11313   if test "X$exec_prefix" = "XNONE"; then
11314     acl_final_exec_prefix='${prefix}'
11315   else
11316     acl_final_exec_prefix="$exec_prefix"
11317   fi
11318   acl_save_prefix="$prefix"
11319   prefix="$acl_final_prefix"
11320   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11321   prefix="$acl_save_prefix"
11322
11323
11324 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11325 if test "${with_gnu_ld+set}" = set; then
11326   withval="$with_gnu_ld"
11327   test "$withval" = no || with_gnu_ld=yes
11328 else
11329   with_gnu_ld=no
11330 fi;
11331 # Prepare PATH_SEPARATOR.
11332 # The user is always right.
11333 if test "${PATH_SEPARATOR+set}" != set; then
11334   echo "#! /bin/sh" >conf$$.sh
11335   echo  "exit 0"   >>conf$$.sh
11336   chmod +x conf$$.sh
11337   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11338     PATH_SEPARATOR=';'
11339   else
11340     PATH_SEPARATOR=:
11341   fi
11342   rm -f conf$$.sh
11343 fi
11344 ac_prog=ld
11345 if test "$GCC" = yes; then
11346   # Check if gcc -print-prog-name=ld gives a path.
11347   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11348 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11349   case $host in
11350   *-*-mingw*)
11351     # gcc leaves a trailing carriage return which upsets mingw
11352     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11353   *)
11354     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11355   esac
11356   case $ac_prog in
11357     # Accept absolute paths.
11358     [\\/]* | [A-Za-z]:[\\/]*)
11359       re_direlt='/[^/][^/]*/\.\./'
11360       # Canonicalize the path of ld
11361       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11362       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11363         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11364       done
11365       test -z "$LD" && LD="$ac_prog"
11366       ;;
11367   "")
11368     # If it fails, then pretend we aren't using GCC.
11369     ac_prog=ld
11370     ;;
11371   *)
11372     # If it is relative, then search for the first ld in PATH.
11373     with_gnu_ld=unknown
11374     ;;
11375   esac
11376 elif test "$with_gnu_ld" = yes; then
11377   echo "$as_me:$LINENO: checking for GNU ld" >&5
11378 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11379 else
11380   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11381 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11382 fi
11383 if test "${acl_cv_path_LD+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   if test -z "$LD"; then
11387   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11388   for ac_dir in $PATH; do
11389     test -z "$ac_dir" && ac_dir=.
11390     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11391       acl_cv_path_LD="$ac_dir/$ac_prog"
11392       # Check to see if the program is GNU ld.  I'd rather use --version,
11393       # but apparently some GNU ld's only accept -v.
11394       # Break only if it was the GNU/non-GNU ld that we prefer.
11395       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11396         test "$with_gnu_ld" != no && break
11397       else
11398         test "$with_gnu_ld" != yes && break
11399       fi
11400     fi
11401   done
11402   IFS="$ac_save_ifs"
11403 else
11404   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11405 fi
11406 fi
11407
11408 LD="$acl_cv_path_LD"
11409 if test -n "$LD"; then
11410   echo "$as_me:$LINENO: result: $LD" >&5
11411 echo "${ECHO_T}$LD" >&6
11412 else
11413   echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6
11415 fi
11416 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11417 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11418    { (exit 1); exit 1; }; }
11419 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11420 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11421 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11422   echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11425 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11426   acl_cv_prog_gnu_ld=yes
11427 else
11428   acl_cv_prog_gnu_ld=no
11429 fi
11430 fi
11431 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11432 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11433 with_gnu_ld=$acl_cv_prog_gnu_ld
11434
11435
11436
11437                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11438 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11439 if test "${acl_cv_rpath+set}" = set; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442
11443     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11444     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11445     . ./conftest.sh
11446     rm -f ./conftest.sh
11447     acl_cv_rpath=done
11448
11449 fi
11450 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11451 echo "${ECHO_T}$acl_cv_rpath" >&6
11452   wl="$acl_cv_wl"
11453   libext="$acl_cv_libext"
11454   shlibext="$acl_cv_shlibext"
11455   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11456   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11457   hardcode_direct="$acl_cv_hardcode_direct"
11458   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11459     # Check whether --enable-rpath or --disable-rpath was given.
11460 if test "${enable_rpath+set}" = set; then
11461   enableval="$enable_rpath"
11462   :
11463 else
11464   enable_rpath=yes
11465 fi;
11466
11467
11468
11469
11470
11471
11472
11473     use_additional=yes
11474
11475   acl_save_prefix="$prefix"
11476   prefix="$acl_final_prefix"
11477   acl_save_exec_prefix="$exec_prefix"
11478   exec_prefix="$acl_final_exec_prefix"
11479
11480     eval additional_includedir=\"$includedir\"
11481     eval additional_libdir=\"$libdir\"
11482
11483   exec_prefix="$acl_save_exec_prefix"
11484   prefix="$acl_save_prefix"
11485
11486
11487 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11488 if test "${with_libiconv_prefix+set}" = set; then
11489   withval="$with_libiconv_prefix"
11490
11491     if test "X$withval" = "Xno"; then
11492       use_additional=no
11493     else
11494       if test "X$withval" = "X"; then
11495
11496   acl_save_prefix="$prefix"
11497   prefix="$acl_final_prefix"
11498   acl_save_exec_prefix="$exec_prefix"
11499   exec_prefix="$acl_final_exec_prefix"
11500
11501           eval additional_includedir=\"$includedir\"
11502           eval additional_libdir=\"$libdir\"
11503
11504   exec_prefix="$acl_save_exec_prefix"
11505   prefix="$acl_save_prefix"
11506
11507       else
11508         additional_includedir="$withval/include"
11509         additional_libdir="$withval/lib"
11510       fi
11511     fi
11512
11513 fi;
11514       LIBICONV=
11515   LTLIBICONV=
11516   INCICONV=
11517   rpathdirs=
11518   ltrpathdirs=
11519   names_already_handled=
11520   names_next_round='iconv '
11521   while test -n "$names_next_round"; do
11522     names_this_round="$names_next_round"
11523     names_next_round=
11524     for name in $names_this_round; do
11525       already_handled=
11526       for n in $names_already_handled; do
11527         if test "$n" = "$name"; then
11528           already_handled=yes
11529           break
11530         fi
11531       done
11532       if test -z "$already_handled"; then
11533         names_already_handled="$names_already_handled $name"
11534                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11535         eval value=\"\$HAVE_LIB$uppername\"
11536         if test -n "$value"; then
11537           if test "$value" = yes; then
11538             eval value=\"\$LIB$uppername\"
11539             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11540             eval value=\"\$LTLIB$uppername\"
11541             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11542           else
11543                                     :
11544           fi
11545         else
11546                               found_dir=
11547           found_la=
11548           found_so=
11549           found_a=
11550           if test $use_additional = yes; then
11551             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11552               found_dir="$additional_libdir"
11553               found_so="$additional_libdir/lib$name.$shlibext"
11554               if test -f "$additional_libdir/lib$name.la"; then
11555                 found_la="$additional_libdir/lib$name.la"
11556               fi
11557             else
11558               if test -f "$additional_libdir/lib$name.$libext"; then
11559                 found_dir="$additional_libdir"
11560                 found_a="$additional_libdir/lib$name.$libext"
11561                 if test -f "$additional_libdir/lib$name.la"; then
11562                   found_la="$additional_libdir/lib$name.la"
11563                 fi
11564               fi
11565             fi
11566           fi
11567           if test "X$found_dir" = "X"; then
11568             for x in $LDFLAGS $LTLIBICONV; do
11569
11570   acl_save_prefix="$prefix"
11571   prefix="$acl_final_prefix"
11572   acl_save_exec_prefix="$exec_prefix"
11573   exec_prefix="$acl_final_exec_prefix"
11574   eval x=\"$x\"
11575   exec_prefix="$acl_save_exec_prefix"
11576   prefix="$acl_save_prefix"
11577
11578               case "$x" in
11579                 -L*)
11580                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11581                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11582                     found_dir="$dir"
11583                     found_so="$dir/lib$name.$shlibext"
11584                     if test -f "$dir/lib$name.la"; then
11585                       found_la="$dir/lib$name.la"
11586                     fi
11587                   else
11588                     if test -f "$dir/lib$name.$libext"; then
11589                       found_dir="$dir"
11590                       found_a="$dir/lib$name.$libext"
11591                       if test -f "$dir/lib$name.la"; then
11592                         found_la="$dir/lib$name.la"
11593                       fi
11594                     fi
11595                   fi
11596                   ;;
11597               esac
11598               if test "X$found_dir" != "X"; then
11599                 break
11600               fi
11601             done
11602           fi
11603           if test "X$found_dir" != "X"; then
11604                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11605             if test "X$found_so" != "X"; then
11606                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11607                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11608               else
11609                                                                                 haveit=
11610                 for x in $ltrpathdirs; do
11611                   if test "X$x" = "X$found_dir"; then
11612                     haveit=yes
11613                     break
11614                   fi
11615                 done
11616                 if test -z "$haveit"; then
11617                   ltrpathdirs="$ltrpathdirs $found_dir"
11618                 fi
11619                                 if test "$hardcode_direct" = yes; then
11620                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11621                 else
11622                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11623                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11624                                                             haveit=
11625                     for x in $rpathdirs; do
11626                       if test "X$x" = "X$found_dir"; then
11627                         haveit=yes
11628                         break
11629                       fi
11630                     done
11631                     if test -z "$haveit"; then
11632                       rpathdirs="$rpathdirs $found_dir"
11633                     fi
11634                   else
11635                                                                                 haveit=
11636                     for x in $LDFLAGS $LIBICONV; do
11637
11638   acl_save_prefix="$prefix"
11639   prefix="$acl_final_prefix"
11640   acl_save_exec_prefix="$exec_prefix"
11641   exec_prefix="$acl_final_exec_prefix"
11642   eval x=\"$x\"
11643   exec_prefix="$acl_save_exec_prefix"
11644   prefix="$acl_save_prefix"
11645
11646                       if test "X$x" = "X-L$found_dir"; then
11647                         haveit=yes
11648                         break
11649                       fi
11650                     done
11651                     if test -z "$haveit"; then
11652                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11653                     fi
11654                     if test "$hardcode_minus_L" != no; then
11655                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11656                     else
11657                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11658                     fi
11659                   fi
11660                 fi
11661               fi
11662             else
11663               if test "X$found_a" != "X"; then
11664                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11665               else
11666                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11667               fi
11668             fi
11669                         additional_includedir=
11670             case "$found_dir" in
11671               */lib | */lib/)
11672                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11673                 additional_includedir="$basedir/include"
11674                 ;;
11675             esac
11676             if test "X$additional_includedir" != "X"; then
11677                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11678                 haveit=
11679                 if test "X$additional_includedir" = "X/usr/local/include"; then
11680                   if test -n "$GCC"; then
11681                     case $host_os in
11682                       linux*) haveit=yes;;
11683                     esac
11684                   fi
11685                 fi
11686                 if test -z "$haveit"; then
11687                   for x in $CPPFLAGS $INCICONV; do
11688
11689   acl_save_prefix="$prefix"
11690   prefix="$acl_final_prefix"
11691   acl_save_exec_prefix="$exec_prefix"
11692   exec_prefix="$acl_final_exec_prefix"
11693   eval x=\"$x\"
11694   exec_prefix="$acl_save_exec_prefix"
11695   prefix="$acl_save_prefix"
11696
11697                     if test "X$x" = "X-I$additional_includedir"; then
11698                       haveit=yes
11699                       break
11700                     fi
11701                   done
11702                   if test -z "$haveit"; then
11703                     if test -d "$additional_includedir"; then
11704                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11705                     fi
11706                   fi
11707                 fi
11708               fi
11709             fi
11710                         if test -n "$found_la"; then
11711                                                         save_libdir="$libdir"
11712               case "$found_la" in
11713                 */* | *\\*) . "$found_la" ;;
11714                 *) . "./$found_la" ;;
11715               esac
11716               libdir="$save_libdir"
11717                             for dep in $dependency_libs; do
11718                 case "$dep" in
11719                   -L*)
11720                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11721                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11722                       haveit=
11723                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11724                         if test -n "$GCC"; then
11725                           case $host_os in
11726                             linux*) haveit=yes;;
11727                           esac
11728                         fi
11729                       fi
11730                       if test -z "$haveit"; then
11731                         haveit=
11732                         for x in $LDFLAGS $LIBICONV; do
11733
11734   acl_save_prefix="$prefix"
11735   prefix="$acl_final_prefix"
11736   acl_save_exec_prefix="$exec_prefix"
11737   exec_prefix="$acl_final_exec_prefix"
11738   eval x=\"$x\"
11739   exec_prefix="$acl_save_exec_prefix"
11740   prefix="$acl_save_prefix"
11741
11742                           if test "X$x" = "X-L$additional_libdir"; then
11743                             haveit=yes
11744                             break
11745                           fi
11746                         done
11747                         if test -z "$haveit"; then
11748                           if test -d "$additional_libdir"; then
11749                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11750                           fi
11751                         fi
11752                         haveit=
11753                         for x in $LDFLAGS $LTLIBICONV; do
11754
11755   acl_save_prefix="$prefix"
11756   prefix="$acl_final_prefix"
11757   acl_save_exec_prefix="$exec_prefix"
11758   exec_prefix="$acl_final_exec_prefix"
11759   eval x=\"$x\"
11760   exec_prefix="$acl_save_exec_prefix"
11761   prefix="$acl_save_prefix"
11762
11763                           if test "X$x" = "X-L$additional_libdir"; then
11764                             haveit=yes
11765                             break
11766                           fi
11767                         done
11768                         if test -z "$haveit"; then
11769                           if test -d "$additional_libdir"; then
11770                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11771                           fi
11772                         fi
11773                       fi
11774                     fi
11775                     ;;
11776                   -R*)
11777                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11778                     if test "$enable_rpath" != no; then
11779                                                                   haveit=
11780                       for x in $rpathdirs; do
11781                         if test "X$x" = "X$dir"; then
11782                           haveit=yes
11783                           break
11784                         fi
11785                       done
11786                       if test -z "$haveit"; then
11787                         rpathdirs="$rpathdirs $dir"
11788                       fi
11789                                                                   haveit=
11790                       for x in $ltrpathdirs; do
11791                         if test "X$x" = "X$dir"; then
11792                           haveit=yes
11793                           break
11794                         fi
11795                       done
11796                       if test -z "$haveit"; then
11797                         ltrpathdirs="$ltrpathdirs $dir"
11798                       fi
11799                     fi
11800                     ;;
11801                   -l*)
11802                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11803                     ;;
11804                   *.la)
11805                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11806                     ;;
11807                   *)
11808                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11809                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11810                     ;;
11811                 esac
11812               done
11813             fi
11814           else
11815                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11816             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11817           fi
11818         fi
11819       fi
11820     done
11821   done
11822   if test "X$rpathdirs" != "X"; then
11823     if test -n "$hardcode_libdir_separator"; then
11824                         alldirs=
11825       for found_dir in $rpathdirs; do
11826         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11827       done
11828             acl_save_libdir="$libdir"
11829       libdir="$alldirs"
11830       eval flag=\"$hardcode_libdir_flag_spec\"
11831       libdir="$acl_save_libdir"
11832       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11833     else
11834             for found_dir in $rpathdirs; do
11835         acl_save_libdir="$libdir"
11836         libdir="$found_dir"
11837         eval flag=\"$hardcode_libdir_flag_spec\"
11838         libdir="$acl_save_libdir"
11839         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11840       done
11841     fi
11842   fi
11843   if test "X$ltrpathdirs" != "X"; then
11844             for found_dir in $ltrpathdirs; do
11845       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11846     done
11847   fi
11848
11849
11850
11851
11852
11853
11854
11855           am_save_CPPFLAGS="$CPPFLAGS"
11856
11857   for element in $INCICONV; do
11858     haveit=
11859     for x in $CPPFLAGS; do
11860
11861   acl_save_prefix="$prefix"
11862   prefix="$acl_final_prefix"
11863   acl_save_exec_prefix="$exec_prefix"
11864   exec_prefix="$acl_final_exec_prefix"
11865   eval x=\"$x\"
11866   exec_prefix="$acl_save_exec_prefix"
11867   prefix="$acl_save_prefix"
11868
11869       if test "X$x" = "X$element"; then
11870         haveit=yes
11871         break
11872       fi
11873     done
11874     if test -z "$haveit"; then
11875       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11876     fi
11877   done
11878
11879
11880   echo "$as_me:$LINENO: checking for iconv" >&5
11881 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11882 if test "${am_cv_func_iconv+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885
11886     am_cv_func_iconv="no, consider installing GNU libiconv"
11887     am_cv_lib_iconv=no
11888     cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11894 #include <stdlib.h>
11895 #include <iconv.h>
11896 int
11897 main ()
11898 {
11899 iconv_t cd = iconv_open("","");
11900        iconv(cd,NULL,NULL,NULL,NULL);
11901        iconv_close(cd);
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -z "$ac_c_werror_flag"
11916                          || test ! -s conftest.err'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; } &&
11922          { ac_try='test -s conftest$ac_exeext'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; }; then
11928   am_cv_func_iconv=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 fi
11934 rm -f conftest.err conftest.$ac_objext \
11935       conftest$ac_exeext conftest.$ac_ext
11936     if test "$am_cv_func_iconv" != yes; then
11937       am_save_LIBS="$LIBS"
11938       LIBS="$LIBS $LIBICONV"
11939       cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945 #include <stdlib.h>
11946 #include <iconv.h>
11947 int
11948 main ()
11949 {
11950 iconv_t cd = iconv_open("","");
11951          iconv(cd,NULL,NULL,NULL,NULL);
11952          iconv_close(cd);
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959   (eval $ac_link) 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -z "$ac_c_werror_flag"
11967                          || test ! -s conftest.err'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; } &&
11973          { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   am_cv_lib_iconv=yes
11980         am_cv_func_iconv=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 fi
11986 rm -f conftest.err conftest.$ac_objext \
11987       conftest$ac_exeext conftest.$ac_ext
11988       LIBS="$am_save_LIBS"
11989     fi
11990
11991 fi
11992 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11993 echo "${ECHO_T}$am_cv_func_iconv" >&6
11994   if test "$am_cv_func_iconv" = yes; then
11995
11996 cat >>confdefs.h <<\_ACEOF
11997 #define HAVE_ICONV 1
11998 _ACEOF
11999
12000   fi
12001   if test "$am_cv_lib_iconv" = yes; then
12002     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12003 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12004     echo "$as_me:$LINENO: result: $LIBICONV" >&5
12005 echo "${ECHO_T}$LIBICONV" >&6
12006   else
12007             CPPFLAGS="$am_save_CPPFLAGS"
12008     LIBICONV=
12009     LTLIBICONV=
12010   fi
12011
12012
12013
12014   if test "$am_cv_func_iconv" = yes; then
12015     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12016 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12017     if test "${am_cv_proto_iconv+set}" = set; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020
12021       cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h.  */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h.  */
12027
12028 #include <stdlib.h>
12029 #include <iconv.h>
12030 extern
12031 #ifdef __cplusplus
12032 "C"
12033 #endif
12034 #if defined(__STDC__) || defined(__cplusplus)
12035 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12036 #else
12037 size_t iconv();
12038 #endif
12039
12040 int
12041 main ()
12042 {
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050   (eval $ac_compile) 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } &&
12057          { ac_try='test -z "$ac_c_werror_flag"
12058                          || test ! -s conftest.err'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; } &&
12064          { ac_try='test -s conftest.$ac_objext'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; }; then
12070   am_cv_proto_iconv_arg1=""
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 am_cv_proto_iconv_arg1="const"
12076 fi
12077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078       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);"
12079 fi
12080
12081     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12082     echo "$as_me:$LINENO: result: ${ac_t:-
12083          }$am_cv_proto_iconv" >&5
12084 echo "${ECHO_T}${ac_t:-
12085          }$am_cv_proto_iconv" >&6
12086
12087 cat >>confdefs.h <<_ACEOF
12088 #define ICONV_CONST $am_cv_proto_iconv_arg1
12089 _ACEOF
12090
12091   fi
12092
12093 # Until we have in-tree GNU iconv:
12094 LIBICONV_DEP=
12095
12096
12097
12098   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12099 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12100 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 #include <locale.h>
12110 int
12111 main ()
12112 {
12113 return LC_MESSAGES
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120   (eval $ac_link) 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -z "$ac_c_werror_flag"
12128                          || test ! -s conftest.err'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest$ac_exeext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   am_cv_val_LC_MESSAGES=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 am_cv_val_LC_MESSAGES=no
12146 fi
12147 rm -f conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 fi
12150 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12151 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12152   if test $am_cv_val_LC_MESSAGES = yes; then
12153
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_LC_MESSAGES 1
12156 _ACEOF
12157
12158   fi
12159
12160
12161
12162   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12163 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12164 if test "${am_cv_langinfo_codeset+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 #include <langinfo.h>
12174 int
12175 main ()
12176 {
12177 char* cs = nl_langinfo(CODESET);
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184   (eval $ac_link) 2>conftest.er1
12185   ac_status=$?
12186   grep -v '^ *+' conftest.er1 >conftest.err
12187   rm -f conftest.er1
12188   cat conftest.err >&5
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -z "$ac_c_werror_flag"
12192                          || test ! -s conftest.err'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; } &&
12198          { ac_try='test -s conftest$ac_exeext'
12199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200   (eval $ac_try) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; }; then
12204   am_cv_langinfo_codeset=yes
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 am_cv_langinfo_codeset=no
12210 fi
12211 rm -f conftest.err conftest.$ac_objext \
12212       conftest$ac_exeext conftest.$ac_ext
12213
12214 fi
12215 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12216 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12217   if test $am_cv_langinfo_codeset = yes; then
12218
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_LANGINFO_CODESET 1
12221 _ACEOF
12222
12223   fi
12224
12225
12226 # We will need to find libiberty.h and ansidecl.h
12227 saved_CFLAGS="$CFLAGS"
12228 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12229
12230
12231
12232
12233
12234
12235
12236
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 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12269         strsignal strstr strverscmp \
12270         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12271         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
12272 do
12273   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12274 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12275 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12276 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h.  */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h.  */
12285 #undef $ac_tr_decl
12286 #define $ac_tr_decl 1
12287
12288 #include "ansidecl.h"
12289 #include "system.h"
12290
12291 int
12292 main ()
12293 {
12294 #ifndef $ac_func
12295 char *(*pfn) = (char *(*)) $ac_func ;
12296 #endif
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303   (eval $ac_compile) 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -z "$ac_c_werror_flag"
12311                          || test ! -s conftest.err'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; } &&
12317          { ac_try='test -s conftest.$ac_objext'
12318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319   (eval $ac_try) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   eval "gcc_cv_have_decl_$ac_func=yes"
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328 eval "gcc_cv_have_decl_$ac_func=no"
12329 fi
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12331 fi
12332
12333 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12334   echo "$as_me:$LINENO: result: yes" >&5
12335 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12336 #define $ac_tr_decl 1
12337 _ACEOF
12338
12339 else
12340   echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12342 #define $ac_tr_decl 0
12343 _ACEOF
12344
12345 fi
12346
12347 done
12348
12349
12350
12351
12352
12353 for ac_func in getrlimit setrlimit getrusage
12354 do
12355   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12356 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12357 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12358 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361   cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h.  */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h.  */
12367 #undef $ac_tr_decl
12368 #define $ac_tr_decl 1
12369
12370 #include "ansidecl.h"
12371 #include "system.h"
12372 #ifdef HAVE_SYS_RESOURCE_H
12373 #include <sys/resource.h>
12374 #endif
12375
12376
12377 int
12378 main ()
12379 {
12380 #ifndef $ac_func
12381 char *(*pfn) = (char *(*)) $ac_func ;
12382 #endif
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12389   (eval $ac_compile) 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } &&
12396          { ac_try='test -z "$ac_c_werror_flag"
12397                          || test ! -s conftest.err'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; } &&
12403          { ac_try='test -s conftest.$ac_objext'
12404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405   (eval $ac_try) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); }; }; then
12409   eval "gcc_cv_have_decl_$ac_func=yes"
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 eval "gcc_cv_have_decl_$ac_func=no"
12415 fi
12416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12417 fi
12418
12419 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12420   echo "$as_me:$LINENO: result: yes" >&5
12421 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12422 #define $ac_tr_decl 1
12423 _ACEOF
12424
12425 else
12426   echo "$as_me:$LINENO: result: no" >&5
12427 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12428 #define $ac_tr_decl 0
12429 _ACEOF
12430
12431 fi
12432
12433 done
12434
12435
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442
12443 #include "ansidecl.h"
12444 #include "system.h"
12445 #ifdef HAVE_SYS_RESOURCE_H
12446 #include <sys/resource.h>
12447 #endif
12448
12449 int
12450 main ()
12451 {
12452 rlim_t l = 0;
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459   (eval $ac_compile) 2>conftest.er1
12460   ac_status=$?
12461   grep -v '^ *+' conftest.er1 >conftest.err
12462   rm -f conftest.er1
12463   cat conftest.err >&5
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } &&
12466          { ac_try='test -z "$ac_c_werror_flag"
12467                          || test ! -s conftest.err'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; } &&
12473          { ac_try='test -s conftest.$ac_objext'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; }; then
12479   :
12480 else
12481   echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define rlim_t long
12487 _ACEOF
12488
12489 fi
12490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491
12492 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12493 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12494 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12495 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12496
12497 for ac_func in ldgetname
12498 do
12499   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12500 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12501 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12502 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 #undef $ac_tr_decl
12512 #define $ac_tr_decl 1
12513
12514 #include "ansidecl.h"
12515 #include "system.h"
12516 #ifdef HAVE_LDFCN_H
12517 #undef FREAD
12518 #undef FWRITE
12519 #include <ldfcn.h>
12520 #endif
12521
12522
12523 int
12524 main ()
12525 {
12526 #ifndef $ac_func
12527 char *(*pfn) = (char *(*)) $ac_func ;
12528 #endif
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"
12543                          || test ! -s conftest.err'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest.$ac_objext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   eval "gcc_cv_have_decl_$ac_func=yes"
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560 eval "gcc_cv_have_decl_$ac_func=no"
12561 fi
12562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12563 fi
12564
12565 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12566   echo "$as_me:$LINENO: result: yes" >&5
12567 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12568 #define $ac_tr_decl 1
12569 _ACEOF
12570
12571 else
12572   echo "$as_me:$LINENO: result: no" >&5
12573 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12574 #define $ac_tr_decl 0
12575 _ACEOF
12576
12577 fi
12578
12579 done
12580
12581
12582
12583 for ac_func in times
12584 do
12585   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12586 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12587 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12588 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 #undef $ac_tr_decl
12598 #define $ac_tr_decl 1
12599
12600 #include "ansidecl.h"
12601 #include "system.h"
12602 #ifdef HAVE_SYS_TIMES_H
12603 #include <sys/times.h>
12604 #endif
12605
12606
12607 int
12608 main ()
12609 {
12610 #ifndef $ac_func
12611 char *(*pfn) = (char *(*)) $ac_func ;
12612 #endif
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619   (eval $ac_compile) 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -z "$ac_c_werror_flag"
12627                          || test ! -s conftest.err'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; } &&
12633          { ac_try='test -s conftest.$ac_objext'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }; then
12639   eval "gcc_cv_have_decl_$ac_func=yes"
12640 else
12641   echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 eval "gcc_cv_have_decl_$ac_func=no"
12645 fi
12646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 fi
12648
12649 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12650   echo "$as_me:$LINENO: result: yes" >&5
12651 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12652 #define $ac_tr_decl 1
12653 _ACEOF
12654
12655 else
12656   echo "$as_me:$LINENO: result: no" >&5
12657 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12658 #define $ac_tr_decl 0
12659 _ACEOF
12660
12661 fi
12662
12663 done
12664
12665
12666
12667 for ac_func in sigaltstack
12668 do
12669   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12670 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12671 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12672 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675   cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 #undef $ac_tr_decl
12682 #define $ac_tr_decl 1
12683
12684 #include "ansidecl.h"
12685 #include "system.h"
12686 #include <signal.h>
12687
12688
12689 int
12690 main ()
12691 {
12692 #ifndef $ac_func
12693 char *(*pfn) = (char *(*)) $ac_func ;
12694 #endif
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701   (eval $ac_compile) 2>conftest.er1
12702   ac_status=$?
12703   grep -v '^ *+' conftest.er1 >conftest.err
12704   rm -f conftest.er1
12705   cat conftest.err >&5
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } &&
12708          { ac_try='test -z "$ac_c_werror_flag"
12709                          || test ! -s conftest.err'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; } &&
12715          { ac_try='test -s conftest.$ac_objext'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   eval "gcc_cv_have_decl_$ac_func=yes"
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 eval "gcc_cv_have_decl_$ac_func=no"
12727 fi
12728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12729 fi
12730
12731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12732   echo "$as_me:$LINENO: result: yes" >&5
12733 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12734 #define $ac_tr_decl 1
12735 _ACEOF
12736
12737 else
12738   echo "$as_me:$LINENO: result: no" >&5
12739 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12740 #define $ac_tr_decl 0
12741 _ACEOF
12742
12743 fi
12744
12745 done
12746
12747
12748 # More time-related stuff.
12749 echo "$as_me:$LINENO: checking for struct tms" >&5
12750 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12751 if test "${ac_cv_struct_tms+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761
12762 #include "ansidecl.h"
12763 #include "system.h"
12764 #ifdef HAVE_SYS_TIMES_H
12765 #include <sys/times.h>
12766 #endif
12767
12768 int
12769 main ()
12770 {
12771 struct tms tms;
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778   (eval $ac_compile) 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag"
12786                          || test ! -s conftest.err'
12787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788   (eval $ac_try) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest.$ac_objext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_struct_tms=yes
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 ac_cv_struct_tms=no
12804 fi
12805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12808 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12809 if test $ac_cv_struct_tms = yes; then
12810
12811 cat >>confdefs.h <<\_ACEOF
12812 #define HAVE_STRUCT_TMS 1
12813 _ACEOF
12814
12815 fi
12816
12817 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12818 # revisit after autoconf 2.50.
12819 echo "$as_me:$LINENO: checking for clock_t" >&5
12820 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12821 if test "${gcc_cv_type_clock_t+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831
12832 #include "ansidecl.h"
12833 #include "system.h"
12834
12835 int
12836 main ()
12837 {
12838 clock_t x;
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845   (eval $ac_compile) 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -z "$ac_c_werror_flag"
12853                          || test ! -s conftest.err'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; } &&
12859          { ac_try='test -s conftest.$ac_objext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   gcc_cv_type_clock_t=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 gcc_cv_type_clock_t=no
12871 fi
12872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12875 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12876 if test $gcc_cv_type_clock_t = yes; then
12877
12878 cat >>confdefs.h <<\_ACEOF
12879 #define HAVE_CLOCK_T 1
12880 _ACEOF
12881
12882 fi
12883
12884 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12885 CFLAGS="$saved_CFLAGS"
12886
12887 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12888 if test "${enable_initfini_array+set}" = set; then
12889   enableval="$enable_initfini_array"
12890
12891 else
12892
12893 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12894 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12895 if test "${gcc_cv_initfini_array+set}" = set; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898     if test "$cross_compiling" = yes; then
12899   gcc_cv_initfini_array=no
12900 else
12901   cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907
12908 static int x = -1;
12909 int main (void) { return x; }
12910 int foo (void) { x = 0; }
12911 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12912 _ACEOF
12913 rm -f conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915   (eval $ac_link) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920   (eval $ac_try) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; }; then
12924   gcc_cv_initfini_array=yes
12925 else
12926   echo "$as_me: program exited with status $ac_status" >&5
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ( exit $ac_status )
12931 gcc_cv_initfini_array=no
12932 fi
12933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12934 fi
12935 fi
12936 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12937 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12938   enable_initfini_array=$gcc_cv_initfini_array
12939
12940 fi;
12941 if test $enable_initfini_array = yes; then
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_INITFINI_ARRAY 1
12945 _ACEOF
12946
12947 fi
12948
12949 # mkdir takes a single argument on some systems.
12950 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12951 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12952 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961
12962 #include <sys/types.h>
12963 #ifdef HAVE_SYS_STAT_H
12964 # include <sys/stat.h>
12965 #endif
12966 #ifdef HAVE_UNISTD_H
12967 # include <unistd.h>
12968 #endif
12969 #ifdef HAVE_DIRECT_H
12970 # include <direct.h>
12971 #endif
12972 int
12973 main ()
12974 {
12975 mkdir ("foo", 0);
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982   (eval $ac_compile) 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag"
12990                          || test ! -s conftest.err'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; } &&
12996          { ac_try='test -s conftest.$ac_objext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   gcc_cv_mkdir_takes_one_arg=no
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 gcc_cv_mkdir_takes_one_arg=yes
13008 fi
13009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13012 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13013 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13014
13015 cat >>confdefs.h <<\_ACEOF
13016 #define MKDIR_TAKES_ONE_ARG 1
13017 _ACEOF
13018
13019 fi
13020
13021
13022 # File extensions
13023 manext='.1'
13024 objext='.o'
13025
13026
13027
13028 # With Setjmp/Longjmp based exception handling.
13029 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13030 if test "${enable_sjlj_exceptions+set}" = set; then
13031   enableval="$enable_sjlj_exceptions"
13032   case $target in
13033   *-*-hpux10*)
13034     if test $enableval != yes; then
13035       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13036 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13037       enableval=yes
13038     fi
13039     ;;
13040 esac
13041 force_sjlj_exceptions=yes
13042 else
13043   case $target in
13044   *-*-hpux10*)
13045     force_sjlj_exceptions=yes
13046     enableval=yes
13047     ;;
13048   *)
13049     force_sjlj_exceptions=no
13050     ;;
13051 esac
13052 fi;
13053 if test $force_sjlj_exceptions = yes; then
13054   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13055
13056 cat >>confdefs.h <<_ACEOF
13057 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13058 _ACEOF
13059
13060 fi
13061
13062 # For platforms with the unwind ABI which includes an unwind library,
13063 # libunwind, we can choose to use the system libunwind.
13064
13065 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13066 if test "${with_system_libunwind+set}" = set; then
13067   withval="$with_system_libunwind"
13068
13069 fi;
13070
13071 # config.gcc also contains tests of with_system_libunwind.
13072 if test x$with_system_libunwind = xyes; then
13073
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_GETIPINFO 1
13076 _ACEOF
13077
13078 fi
13079
13080 # --------------------------------------------------------
13081 # Build, host, and target specific configuration fragments
13082 # --------------------------------------------------------
13083
13084 # Collect build-machine-specific information.
13085 . ${srcdir}/config.build
13086
13087 # Collect host-machine-specific information.
13088 . ${srcdir}/config.host
13089
13090 target_gtfiles=
13091
13092 # Collect target-machine-specific information.
13093 . ${srcdir}/config.gcc
13094
13095 extra_objs="${host_extra_objs} ${extra_objs}"
13096 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13097
13098 # Default the target-machine variables that were not explicitly set.
13099 if test x"$tm_file" = x
13100 then tm_file=$cpu_type/$cpu_type.h; fi
13101
13102 if test x"$extra_headers" = x
13103 then extra_headers=; fi
13104
13105 if test x$md_file = x
13106 then md_file=$cpu_type/$cpu_type.md; fi
13107
13108 if test x$out_file = x
13109 then out_file=$cpu_type/$cpu_type.c; fi
13110
13111 if test x"$tmake_file" = x
13112 then tmake_file=$cpu_type/t-$cpu_type
13113 fi
13114
13115 if test x"$dwarf2" = xyes
13116 then tm_file="$tm_file tm-dwarf2.h"
13117 fi
13118
13119 # Say what files are being used for the output code and MD file.
13120 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13121 echo "Using \`$srcdir/config/$md_file' as machine description file."
13122
13123 # If any of the xm_file variables contain nonexistent files, warn
13124 # about them and drop them.
13125
13126 bx=
13127 for x in $build_xm_file; do
13128   if    test -f $srcdir/config/$x
13129   then      bx="$bx $x"
13130   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13131 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13132   fi
13133 done
13134 build_xm_file="$bx"
13135
13136 hx=
13137 for x in $host_xm_file; do
13138   if    test -f $srcdir/config/$x
13139   then      hx="$hx $x"
13140   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13141 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13142   fi
13143 done
13144 host_xm_file="$hx"
13145
13146 tx=
13147 for x in $xm_file; do
13148   if    test -f $srcdir/config/$x
13149   then      tx="$tx $x"
13150   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13151 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13152   fi
13153 done
13154 xm_file="$tx"
13155
13156 count=a
13157 for f in $tm_file; do
13158         count=${count}x
13159 done
13160 if test $count = ax; then
13161         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13162 else
13163         echo "Using the following target machine macro files:"
13164         for f in $tm_file; do
13165                 echo "  $srcdir/config/$f"
13166         done
13167 fi
13168
13169 if test x$need_64bit_hwint = xyes; then
13170
13171 cat >>confdefs.h <<\_ACEOF
13172 #define NEED_64BIT_HOST_WIDE_INT 1
13173 _ACEOF
13174
13175 fi
13176
13177 if test x$use_long_long_for_widest_fast_int = xyes; then
13178
13179 cat >>confdefs.h <<\_ACEOF
13180 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13181 _ACEOF
13182
13183 fi
13184
13185 count=a
13186 for f in $host_xm_file; do
13187         count=${count}x
13188 done
13189 if test $count = a; then
13190         :
13191 elif test $count = ax; then
13192         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13193 else
13194         echo "Using the following host machine macro files:"
13195         for f in $host_xm_file; do
13196                 echo "  $srcdir/config/$f"
13197         done
13198 fi
13199 echo "Using ${out_host_hook_obj} for host machine hooks."
13200
13201 if test "$host_xm_file" != "$build_xm_file"; then
13202         count=a
13203         for f in $build_xm_file; do
13204                 count=${count}x
13205         done
13206         if test $count = a; then
13207                 :
13208         elif test $count = ax; then
13209                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13210         else
13211                 echo "Using the following build machine macro files:"
13212                 for f in $build_xm_file; do
13213                         echo "  $srcdir/config/$f"
13214                 done
13215         fi
13216 fi
13217
13218 case ${host} in
13219   powerpc*-*-darwin*)
13220     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13221 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13222 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   cat >conftest.$ac_ext <<_ACEOF
13226
13227 #include <sys/cdefs.h>
13228 #include <sys/signal.h>
13229 #include <ucontext.h>
13230 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13231
13232 _ACEOF
13233 rm -f conftest.$ac_objext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235   (eval $ac_compile) 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -z "$ac_c_werror_flag"
13243                          || test ! -s conftest.err'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; } &&
13249          { ac_try='test -s conftest.$ac_objext'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }; then
13255   gcc_cv_mcontext_underscores=no
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 gcc_cv_mcontext_underscores=yes
13261 fi
13262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13265 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13266       if test $gcc_cv_mcontext_underscores = yes; then
13267
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAS_MCONTEXT_T_UNDERSCORES
13270 _ACEOF
13271
13272       fi
13273     ;;
13274 esac
13275
13276 # ---------
13277 # Threading
13278 # ---------
13279
13280 # Check if a valid thread package
13281 case ${enable_threads} in
13282   "" | no)
13283     # No threads
13284     target_thread_file='single'
13285     ;;
13286   yes)
13287     # default
13288     target_thread_file='single'
13289     ;;
13290   aix | dce | gnat | irix | posix | posix95 | rtems | \
13291   single | solaris | vxworks | win32 | mipssde)
13292     target_thread_file=${enable_threads}
13293     ;;
13294   *)
13295     echo "${enable_threads} is an unknown thread package" 1>&2
13296     exit 1
13297     ;;
13298 esac
13299
13300 if test x${thread_file} = x; then
13301   # No thread file set by target-specific clauses in config.gcc,
13302   # so use file chosen by default logic above
13303   thread_file=${target_thread_file}
13304 fi
13305
13306 # Make gthr-default.h if we have a thread file.
13307 gthread_flags=
13308 if test $thread_file != single; then
13309   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13310   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13311     rm -f gthr-default.h-t
13312   else
13313     mv -f gthr-default.h-t gthr-default.h
13314   fi
13315   gthread_flags=-DHAVE_GTHR_DEFAULT
13316 fi
13317
13318
13319 # --------
13320 # UNSORTED
13321 # --------
13322
13323 use_cxa_atexit=no
13324 if test x$enable___cxa_atexit = xyes || \
13325    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13326   if test x$host = x$target; then
13327     case $host in
13328       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13329       # keyed to flag_use_cxa_atexit
13330       *-*-mingw32*)
13331         use_cxa_atexit=yes
13332         ;;
13333       *)
13334         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13335 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13336 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13347 #define __cxa_atexit innocuous___cxa_atexit
13348
13349 /* System header to define __stub macros and hopefully few prototypes,
13350     which can conflict with char __cxa_atexit (); below.
13351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13352     <limits.h> exists even on freestanding compilers.  */
13353
13354 #ifdef __STDC__
13355 # include <limits.h>
13356 #else
13357 # include <assert.h>
13358 #endif
13359
13360 #undef __cxa_atexit
13361
13362 /* Override any gcc2 internal prototype to avoid an error.  */
13363 #ifdef __cplusplus
13364 extern "C"
13365 {
13366 #endif
13367 /* We use char because int might match the return type of a gcc2
13368    builtin and then its argument prototype would still apply.  */
13369 char __cxa_atexit ();
13370 /* The GNU C library defines this for functions which it implements
13371     to always fail with ENOSYS.  Some functions are actually named
13372     something starting with __ and the normal name is an alias.  */
13373 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13374 choke me
13375 #else
13376 char (*f) () = __cxa_atexit;
13377 #endif
13378 #ifdef __cplusplus
13379 }
13380 #endif
13381
13382 int
13383 main ()
13384 {
13385 return f != __cxa_atexit;
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392   (eval $ac_link) 2>conftest.er1
13393   ac_status=$?
13394   grep -v '^ *+' conftest.er1 >conftest.err
13395   rm -f conftest.er1
13396   cat conftest.err >&5
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } &&
13399          { ac_try='test -z "$ac_c_werror_flag"
13400                          || test ! -s conftest.err'
13401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402   (eval $ac_try) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; } &&
13406          { ac_try='test -s conftest$ac_exeext'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; }; then
13412   ac_cv_func___cxa_atexit=yes
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 ac_cv_func___cxa_atexit=no
13418 fi
13419 rm -f conftest.err conftest.$ac_objext \
13420       conftest$ac_exeext conftest.$ac_ext
13421 fi
13422 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13423 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13424 if test $ac_cv_func___cxa_atexit = yes; then
13425   use_cxa_atexit=yes
13426 else
13427   echo "__cxa_atexit can't be enabled on this target"
13428 fi
13429
13430         ;;
13431     esac
13432   else
13433     # We can't check for __cxa_atexit when building a cross, so assume
13434     # it is available
13435     use_cxa_atexit=yes
13436   fi
13437   if test x$use_cxa_atexit = xyes; then
13438
13439 cat >>confdefs.h <<\_ACEOF
13440 #define DEFAULT_USE_CXA_ATEXIT 2
13441 _ACEOF
13442
13443   fi
13444 fi
13445
13446 use_getipinfo=yes
13447 if test x$with_system_libunwind = xyes; then
13448    if test x$host = x$target; then
13449      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13450 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13451 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   ac_func_search_save_LIBS=$LIBS
13455 ac_cv_search__Unwind_GetIPInfo=no
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462
13463 /* Override any gcc2 internal prototype to avoid an error.  */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 /* We use char because int might match the return type of a gcc2
13468    builtin and then its argument prototype would still apply.  */
13469 char _Unwind_GetIPInfo ();
13470 int
13471 main ()
13472 {
13473 _Unwind_GetIPInfo ();
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13480   (eval $ac_link) 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } &&
13487          { ac_try='test -z "$ac_c_werror_flag"
13488                          || test ! -s conftest.err'
13489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490   (eval $ac_try) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; } &&
13494          { ac_try='test -s conftest$ac_exeext'
13495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496   (eval $ac_try) 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   ac_cv_search__Unwind_GetIPInfo="none required"
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 fi
13506 rm -f conftest.err conftest.$ac_objext \
13507       conftest$ac_exeext conftest.$ac_ext
13508 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13509   for ac_lib in unwind; do
13510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13511     cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517
13518 /* Override any gcc2 internal prototype to avoid an error.  */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 /* We use char because int might match the return type of a gcc2
13523    builtin and then its argument prototype would still apply.  */
13524 char _Unwind_GetIPInfo ();
13525 int
13526 main ()
13527 {
13528 _Unwind_GetIPInfo ();
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535   (eval $ac_link) 2>conftest.er1
13536   ac_status=$?
13537   grep -v '^ *+' conftest.er1 >conftest.err
13538   rm -f conftest.er1
13539   cat conftest.err >&5
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); } &&
13542          { ac_try='test -z "$ac_c_werror_flag"
13543                          || test ! -s conftest.err'
13544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545   (eval $ac_try) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; } &&
13549          { ac_try='test -s conftest$ac_exeext'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13556 break
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 fi
13562 rm -f conftest.err conftest.$ac_objext \
13563       conftest$ac_exeext conftest.$ac_ext
13564   done
13565 fi
13566 LIBS=$ac_func_search_save_LIBS
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13569 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13570 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13571   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13572
13573 else
13574   use_getipinfo=no
13575 fi
13576
13577    fi
13578 fi
13579
13580 if test x$use_getipinfo = xyes; then
13581
13582 cat >>confdefs.h <<\_ACEOF
13583 #define HAVE_GETIPINFO 1
13584 _ACEOF
13585
13586 else
13587    echo "The system unwind library does not support _Unwind_GetIPInfo."
13588 fi
13589
13590 # Look for a file containing extra machine modes.
13591 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13592   extra_modes_file='$(srcdir)'/config/${extra_modes}
13593
13594
13595 cat >>confdefs.h <<_ACEOF
13596 #define EXTRA_MODES_FILE "config/$extra_modes"
13597 _ACEOF
13598
13599 fi
13600
13601 # Convert extra_options into a form suitable for Makefile use.
13602 extra_opt_files=
13603 for f in $extra_options; do
13604   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13605 done
13606
13607
13608 # auto-host.h is the file containing items generated by autoconf and is
13609 # the first file included by config.h.
13610 # If host=build, it is correct to have bconfig include auto-host.h
13611 # as well.  If host!=build, we are in error and need to do more
13612 # work to find out the build config parameters.
13613 if test x$host = x$build
13614 then
13615         build_auto=auto-host.h
13616 else
13617         # We create a subdir, then run autoconf in the subdir.
13618         # To prevent recursion we set host and build for the new
13619         # invocation of configure to the build for this invocation
13620         # of configure.
13621         tempdir=build.$$
13622         rm -rf $tempdir
13623         mkdir $tempdir
13624         cd $tempdir
13625         case ${srcdir} in
13626         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13627         *) realsrcdir=../${srcdir};;
13628         esac
13629         saved_CFLAGS="${CFLAGS}"
13630         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13631         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13632         ${realsrcdir}/configure \
13633                 --enable-languages=${enable_languages-all} \
13634                 --target=$target_alias --host=$build_alias --build=$build_alias
13635         CFLAGS="${saved_CFLAGS}"
13636
13637         # We just finished tests for the build machine, so rename
13638         # the file auto-build.h in the gcc directory.
13639         mv auto-host.h ../auto-build.h
13640         cd ..
13641         rm -rf $tempdir
13642         build_auto=auto-build.h
13643 fi
13644
13645
13646 tm_file="${tm_file} defaults.h"
13647 tm_p_file="${tm_p_file} tm-preds.h"
13648 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13649 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13650 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13651 # put this back in temporarily.
13652 xm_file="auto-host.h ansidecl.h ${xm_file}"
13653
13654 # --------
13655 # UNSORTED
13656 # --------
13657
13658 # Compile in configure arguments.
13659 if test -f configargs.h ; then
13660         # Being re-configured.
13661         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13662         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13663 else
13664         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13665 fi
13666
13667 # Double all backslashes and backslash all quotes to turn
13668 # gcc_config_arguments into a C string.
13669 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13670 $gcc_config_arguments
13671 EOF
13672 gcc_config_arguments_str=`cat conftest.out`
13673 rm -f conftest.out
13674
13675 cat > configargs.h <<EOF
13676 /* Generated automatically. */
13677 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13678 static const char thread_model[] = "$thread_file";
13679
13680 static const struct {
13681   const char *name, *value;
13682 } configure_default_options[] = $configure_default_options;
13683 EOF
13684
13685 # Internationalization
13686 # If we haven't got the data from the intl directory,
13687 # assume NLS is disabled.
13688 USE_NLS=no
13689 LIBINTL=
13690 LIBINTL_DEP=
13691 INCINTL=
13692 XGETTEXT=
13693 GMSGFMT=
13694 POSUB=
13695
13696 if test -f  ../intl/config.intl; then
13697   .  ../intl/config.intl
13698 fi
13699 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13700 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13701 if test x"$USE_NLS" != xyes; then
13702   echo "$as_me:$LINENO: result: no" >&5
13703 echo "${ECHO_T}no" >&6
13704 else
13705   echo "$as_me:$LINENO: result: yes" >&5
13706 echo "${ECHO_T}yes" >&6
13707
13708 cat >>confdefs.h <<\_ACEOF
13709 #define ENABLE_NLS 1
13710 _ACEOF
13711
13712
13713   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13714 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13715   # Look for .po and .gmo files in the source directory.
13716   CATALOGS=
13717   XLINGUAS=
13718   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13719     # If there aren't any .gmo files the shell will give us the
13720     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13721     # weeded out.
13722     case "$cat" in *\**)
13723       continue;;
13724     esac
13725     # The quadruple backslash is collapsed to a double backslash
13726     # by the backticks, then collapsed again by the double quotes,
13727     # leaving us with one backslash in the sed expression (right
13728     # before the dot that mustn't act as a wildcard).
13729     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13730     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13731     # The user is allowed to set LINGUAS to a list of languages to
13732     # install catalogs for.  If it's empty that means "all of them."
13733     if test "x$LINGUAS" = x; then
13734       CATALOGS="$CATALOGS $cat"
13735       XLINGUAS="$XLINGUAS $lang"
13736     else
13737       case "$LINGUAS" in *$lang*)
13738         CATALOGS="$CATALOGS $cat"
13739         XLINGUAS="$XLINGUAS $lang"
13740         ;;
13741       esac
13742     fi
13743   done
13744   LINGUAS="$XLINGUAS"
13745   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13746 echo "${ECHO_T}$LINGUAS" >&6
13747
13748
13749     DATADIRNAME=share
13750
13751   INSTOBJEXT=.mo
13752
13753   GENCAT=gencat
13754
13755   CATOBJEXT=.gmo
13756
13757 fi
13758
13759 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13760 # -liconv on the link line twice.
13761 case "$LIBINTL" in *$LIBICONV*)
13762         LIBICONV= ;;
13763 esac
13764
13765 # Check whether --enable-secureplt or --disable-secureplt was given.
13766 if test "${enable_secureplt+set}" = set; then
13767   enableval="$enable_secureplt"
13768
13769 fi;
13770
13771 # Check whether --enable-cld or --disable-cld was given.
13772 if test "${enable_cld+set}" = set; then
13773   enableval="$enable_cld"
13774
13775 else
13776   enable_cld=no
13777 fi;
13778
13779 # Windows32 Registry support for specifying GCC installation paths.
13780 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13781 if test "${enable_win32_registry+set}" = set; then
13782   enableval="$enable_win32_registry"
13783
13784 fi;
13785
13786 case $host_os in
13787   win32 | pe | cygwin* | mingw32* | uwin*)
13788     if test "x$enable_win32_registry" != xno; then
13789       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13790 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13791 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   ac_func_search_save_LIBS=$LIBS
13795 ac_cv_search_RegOpenKeyExA=no
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802
13803 /* Override any gcc2 internal prototype to avoid an error.  */
13804 #ifdef __cplusplus
13805 extern "C"
13806 #endif
13807 /* We use char because int might match the return type of a gcc2
13808    builtin and then its argument prototype would still apply.  */
13809 char RegOpenKeyExA ();
13810 int
13811 main ()
13812 {
13813 RegOpenKeyExA ();
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 rm -f conftest.$ac_objext conftest$ac_exeext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820   (eval $ac_link) 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } &&
13827          { ac_try='test -z "$ac_c_werror_flag"
13828                          || test ! -s conftest.err'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest$ac_exeext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_cv_search_RegOpenKeyExA="none required"
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 fi
13846 rm -f conftest.err conftest.$ac_objext \
13847       conftest$ac_exeext conftest.$ac_ext
13848 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13849   for ac_lib in advapi32; do
13850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13851     cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857
13858 /* Override any gcc2 internal prototype to avoid an error.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 #endif
13862 /* We use char because int might match the return type of a gcc2
13863    builtin and then its argument prototype would still apply.  */
13864 char RegOpenKeyExA ();
13865 int
13866 main ()
13867 {
13868 RegOpenKeyExA ();
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875   (eval $ac_link) 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag"
13883                          || test ! -s conftest.err'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; } &&
13889          { ac_try='test -s conftest$ac_exeext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13896 break
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 fi
13902 rm -f conftest.err conftest.$ac_objext \
13903       conftest$ac_exeext conftest.$ac_ext
13904   done
13905 fi
13906 LIBS=$ac_func_search_save_LIBS
13907 fi
13908 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13909 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13910 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13911   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13912
13913 else
13914   enable_win32_registry=no
13915 fi
13916
13917     fi
13918
13919     if test "x$enable_win32_registry" != xno; then
13920
13921 cat >>confdefs.h <<\_ACEOF
13922 #define ENABLE_WIN32_REGISTRY 1
13923 _ACEOF
13924
13925
13926       if test "x$enable_win32_registry" != xyes \
13927          && test "x$enable_win32_registry" != x; then
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13931 _ACEOF
13932
13933       fi
13934     fi
13935   ;;
13936 esac
13937
13938 # Get an absolute path to the GCC top-level source directory
13939 holddir=`${PWDCMD-pwd}`
13940 cd $srcdir
13941 topdir=`${PWDCMD-pwd}`
13942 cd $holddir
13943
13944 # Conditionalize the makefile for this host machine.
13945 xmake_file=
13946 for f in ${host_xmake_file}
13947 do
13948         if test -f ${srcdir}/config/$f
13949         then
13950                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13951         fi
13952 done
13953
13954 # Conditionalize the makefile for this target machine.
13955 tmake_file_=
13956 for f in ${tmake_file}
13957 do
13958         if test -f ${srcdir}/config/$f
13959         then
13960                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13961         fi
13962 done
13963 tmake_file="${tmake_file_}"
13964
13965 # This is a terrible hack which will go away some day.
13966 host_cc_for_libada=${CC}
13967
13968
13969 out_object_file=`basename $out_file .c`.o
13970
13971 tm_file_list="options.h"
13972 tm_include_list="options.h"
13973 for f in $tm_file; do
13974   case $f in
13975     ./* )
13976        f=`echo $f | sed 's/^..//'`
13977        tm_file_list="${tm_file_list} $f"
13978        tm_include_list="${tm_include_list} $f"
13979        ;;
13980     defaults.h )
13981        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13982        tm_include_list="${tm_include_list} $f"
13983        ;;
13984     * )
13985        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13986        tm_include_list="${tm_include_list} config/$f"
13987        ;;
13988   esac
13989 done
13990
13991 tm_p_file_list=
13992 tm_p_include_list=
13993 for f in $tm_p_file; do
13994   case $f in
13995     tm-preds.h )
13996        tm_p_file_list="${tm_p_file_list} $f"
13997        tm_p_include_list="${tm_p_include_list} $f"
13998        ;;
13999     * )
14000        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14001        tm_p_include_list="${tm_p_include_list} config/$f"
14002   esac
14003 done
14004
14005 xm_file_list=
14006 xm_include_list=
14007 for f in $xm_file; do
14008   case $f in
14009     ansidecl.h )
14010        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14011        xm_include_list="${xm_include_list} $f"
14012        ;;
14013     auto-host.h )
14014        xm_file_list="${xm_file_list} $f"
14015        xm_include_list="${xm_include_list} $f"
14016        ;;
14017     * )
14018        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14019        xm_include_list="${xm_include_list} config/$f"
14020        ;;
14021   esac
14022 done
14023
14024 host_xm_file_list=
14025 host_xm_include_list=
14026 for f in $host_xm_file; do
14027   case $f in
14028     ansidecl.h )
14029        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14030        host_xm_include_list="${host_xm_include_list} $f"
14031        ;;
14032     auto-host.h )
14033        host_xm_file_list="${host_xm_file_list} $f"
14034        host_xm_include_list="${host_xm_include_list} $f"
14035        ;;
14036     * )
14037        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14038        host_xm_include_list="${host_xm_include_list} config/$f"
14039        ;;
14040   esac
14041 done
14042
14043 build_xm_file_list=
14044 for f in $build_xm_file; do
14045   case $f in
14046     ansidecl.h )
14047        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14048        build_xm_include_list="${build_xm_include_list} $f"
14049        ;;
14050     auto-build.h | auto-host.h )
14051        build_xm_file_list="${build_xm_file_list} $f"
14052        build_xm_include_list="${build_xm_include_list} $f"
14053        ;;
14054     * )
14055        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14056        build_xm_include_list="${build_xm_include_list} config/$f"
14057        ;;
14058   esac
14059 done
14060
14061 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14062 # cross-compiler which does not use the native headers and libraries.
14063 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14064 CROSS=
14065 ALL=all.internal
14066 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14067
14068 if test "x$with_build_sysroot" != x; then
14069   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14070 else
14071   # This value is used, even on a native system, because
14072   # CROSS_SYSTEM_HEADER_DIR is just
14073   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14074   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14075 fi
14076
14077 if test x$host != x$target
14078 then
14079         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14080         ALL=all.cross
14081         SYSTEM_HEADER_DIR=$build_system_header_dir
14082         case "$host","$target" in
14083         # Darwin crosses can use the host system's libraries and headers,
14084         # because of the fat library support.  Of course, it must be the
14085         # same version of Darwin on both sides.  Allow the user to
14086         # just say --target=foo-darwin without a version number to mean
14087         # "the version on this system".
14088             *-*-darwin*,*-*-darwin*)
14089                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14090                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14091                 if test $hostos = $targetos -o $targetos = darwin ; then
14092                     CROSS=
14093                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14094                     with_headers=yes
14095                 fi
14096                 ;;
14097
14098             i?86-*-*,x86_64-*-* \
14099             | powerpc*-*-*,powerpc64*-*-*)
14100                 CROSS="$CROSS -DNATIVE_CROSS" ;;
14101         esac
14102 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14103         SYSTEM_HEADER_DIR=$build_system_header_dir
14104 fi
14105
14106 # If this is a cross-compiler that does not
14107 # have its own set of headers then define
14108 # inhibit_libc
14109
14110 # If this is using newlib, without having the headers available now,
14111 # then define inhibit_libc in LIBGCC2_CFLAGS.
14112 # This prevents libgcc2 from containing any code which requires libc
14113 # support.
14114 : ${inhibit_libc=false}
14115 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14116        test x$with_newlib = xyes ; } &&
14117      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14118        inhibit_libc=true
14119 fi
14120
14121
14122 # When building gcc with a cross-compiler, we need to adjust things so
14123 # that the generator programs are still built with the native compiler.
14124 # Also, we cannot run fixincludes or fix-header.
14125
14126 # These are the normal (build=host) settings:
14127 CC_FOR_BUILD='$(CC)'
14128 BUILD_CFLAGS='$(ALL_CFLAGS)'
14129 BUILD_LDFLAGS='$(LDFLAGS)'
14130 STMP_FIXINC=stmp-fixinc
14131
14132 # Possibly disable fixproto, on a per-target basis.
14133 case ${use_fixproto} in
14134   no)
14135     STMP_FIXPROTO=
14136     ;;
14137   yes)
14138     STMP_FIXPROTO=stmp-fixproto
14139     ;;
14140 esac
14141
14142
14143 # And these apply if build != host, or we are generating coverage data
14144 if test x$build != x$host || test "x$coverage_flags" != x
14145 then
14146     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14147     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14148
14149     if test "x$TARGET_SYSTEM_ROOT" = x; then
14150         if test "x$STMP_FIXPROTO" != x; then
14151           STMP_FIXPROTO=stmp-install-fixproto
14152         fi
14153     fi
14154 fi
14155
14156 # Expand extra_headers to include complete path.
14157 # This substitutes for lots of t-* files.
14158 extra_headers_list=
14159 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14160 for file in ${extra_headers} ; do
14161   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14162 done
14163
14164 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14165 if test x"$use_gcc_tgmath" = xyes
14166 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14167 fi
14168
14169 # Define collect2 in Makefile.
14170 case $host_can_use_collect2 in
14171   no) collect2= ;;
14172   *) collect2='collect2$(exeext)' ;;
14173 esac
14174
14175
14176 # Add a definition of USE_COLLECT2 if system wants one.
14177 case $use_collect2 in
14178   no) use_collect2= ;;
14179   "") ;;
14180   *)
14181     host_xm_defines="${host_xm_defines} USE_COLLECT2"
14182     xm_defines="${xm_defines} USE_COLLECT2"
14183     case $host_can_use_collect2 in
14184       no)
14185         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14186 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14187    { (exit 1); exit 1; }; }
14188         ;;
14189     esac
14190     ;;
14191 esac
14192
14193 # ---------------------------
14194 # Assembler & linker features
14195 # ---------------------------
14196
14197 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14198 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14199 # However when ld-new is first executed from the build tree, libtool will
14200 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14201 # to the build tree.  While doing this we need to use the previous-stage
14202 # linker, or we have an infinite loop.  The presence of a shell script as
14203 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14204 # the gcc/collect-ld script.  So we need to know how libtool works, or
14205 # exec-tool will fail.
14206
14207
14208
14209
14210 macro_version='2.1a'
14211 macro_revision='1.2435'
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224 ltmain="$ac_aux_dir/ltmain.sh"
14225
14226 # Set options
14227
14228 enable_dlopen=no
14229
14230
14231 enable_win32_dll=no
14232
14233
14234 # Check whether --enable-shared or --disable-shared was given.
14235 if test "${enable_shared+set}" = set; then
14236   enableval="$enable_shared"
14237   p=${PACKAGE-default}
14238     case $enableval in
14239     yes) enable_shared=yes ;;
14240     no) enable_shared=no ;;
14241     *)
14242       enable_shared=no
14243       # Look at the argument we got.  We use all the common list separators.
14244       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14245       for pkg in $enableval; do
14246         IFS="$lt_save_ifs"
14247         if test "X$pkg" = "X$p"; then
14248           enable_shared=yes
14249         fi
14250       done
14251       IFS="$lt_save_ifs"
14252       ;;
14253     esac
14254 else
14255   enable_shared=yes
14256 fi;
14257
14258
14259
14260
14261
14262
14263
14264
14265 # Check whether --enable-static or --disable-static was given.
14266 if test "${enable_static+set}" = set; then
14267   enableval="$enable_static"
14268   p=${PACKAGE-default}
14269     case $enableval in
14270     yes) enable_static=yes ;;
14271     no) enable_static=no ;;
14272     *)
14273      enable_static=no
14274       # Look at the argument we got.  We use all the common list separators.
14275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14276       for pkg in $enableval; do
14277         IFS="$lt_save_ifs"
14278         if test "X$pkg" = "X$p"; then
14279           enable_static=yes
14280         fi
14281       done
14282       IFS="$lt_save_ifs"
14283       ;;
14284     esac
14285 else
14286   enable_static=yes
14287 fi;
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297 # Check whether --with-pic or --without-pic was given.
14298 if test "${with_pic+set}" = set; then
14299   withval="$with_pic"
14300   pic_mode="$withval"
14301 else
14302   pic_mode=default
14303 fi;
14304
14305 test -z "$pic_mode" && pic_mode=default
14306
14307
14308
14309
14310
14311
14312
14313 # Check whether --enable-fast-install or --disable-fast-install was given.
14314 if test "${enable_fast_install+set}" = set; then
14315   enableval="$enable_fast_install"
14316   p=${PACKAGE-default}
14317     case $enableval in
14318     yes) enable_fast_install=yes ;;
14319     no) enable_fast_install=no ;;
14320     *)
14321       enable_fast_install=no
14322       # Look at the argument we got.  We use all the common list separators.
14323       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14324       for pkg in $enableval; do
14325         IFS="$lt_save_ifs"
14326         if test "X$pkg" = "X$p"; then
14327           enable_fast_install=yes
14328         fi
14329       done
14330       IFS="$lt_save_ifs"
14331       ;;
14332     esac
14333 else
14334   enable_fast_install=yes
14335 fi;
14336
14337
14338
14339
14340
14341
14342
14343
14344 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14345 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14346 if test "${lt_cv_path_SED+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   # Loop through the user's path and test for sed and gsed.
14350 # Then use that list of sed's as ones to test for truncation.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354   IFS=$as_save_IFS
14355   test -z "$as_dir" && as_dir=.
14356   for lt_ac_prog in sed gsed; do
14357     for ac_exec_ext in '' $ac_executable_extensions; do
14358       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14359         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14360       fi
14361     done
14362   done
14363 done
14364 IFS=$as_save_IFS
14365 lt_ac_max=0
14366 lt_ac_count=0
14367 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14368 # along with /bin/sed that truncates output.
14369 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14370   test ! -f $lt_ac_sed && continue
14371   cat /dev/null > conftest.in
14372   lt_ac_count=0
14373   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14374   # Check for GNU sed and select it if it is found.
14375   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14376     lt_cv_path_SED=$lt_ac_sed
14377     break
14378   fi
14379   while true; do
14380     cat conftest.in conftest.in >conftest.tmp
14381     mv conftest.tmp conftest.in
14382     cp conftest.in conftest.nl
14383     echo >>conftest.nl
14384     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14385     cmp -s conftest.out conftest.nl || break
14386     # 10000 chars as input seems more than enough
14387     test $lt_ac_count -gt 10 && break
14388     lt_ac_count=`expr $lt_ac_count + 1`
14389     if test $lt_ac_count -gt $lt_ac_max; then
14390       lt_ac_max=$lt_ac_count
14391       lt_cv_path_SED=$lt_ac_sed
14392     fi
14393   done
14394 done
14395
14396 fi
14397
14398 SED=$lt_cv_path_SED
14399
14400 echo "$as_me:$LINENO: result: $SED" >&5
14401 echo "${ECHO_T}$SED" >&6
14402
14403 test -z "$SED" && SED=sed
14404 Xsed="$SED -e 1s/^X//"
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416 echo "$as_me:$LINENO: checking for fgrep" >&5
14417 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14418 if test "${ac_cv_prog_fgrep+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14422     then ac_cv_prog_fgrep='grep -F'
14423     else ac_cv_prog_fgrep='fgrep'
14424     fi
14425 fi
14426 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14427 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14428  FGREP=$ac_cv_prog_fgrep
14429
14430
14431 test -z "$GREP" && GREP=grep
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14452 if test "${with_gnu_ld+set}" = set; then
14453   withval="$with_gnu_ld"
14454   test "$withval" = no || with_gnu_ld=yes
14455 else
14456   with_gnu_ld=no
14457 fi;
14458 ac_prog=ld
14459 if test "$GCC" = yes; then
14460   # Check if gcc -print-prog-name=ld gives a path.
14461   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14463   case $host in
14464   *-*-mingw*)
14465     # gcc leaves a trailing carriage return which upsets mingw
14466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14467   *)
14468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14469   esac
14470   case $ac_prog in
14471     # Accept absolute paths.
14472     [\\/]* | ?:[\\/]*)
14473       re_direlt='/[^/][^/]*/\.\./'
14474       # Canonicalize the pathname of ld
14475       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14476       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14477         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14478       done
14479       test -z "$LD" && LD="$ac_prog"
14480       ;;
14481   "")
14482     # If it fails, then pretend we aren't using GCC.
14483     ac_prog=ld
14484     ;;
14485   *)
14486     # If it is relative, then search for the first ld in PATH.
14487     with_gnu_ld=unknown
14488     ;;
14489   esac
14490 elif test "$with_gnu_ld" = yes; then
14491   echo "$as_me:$LINENO: checking for GNU ld" >&5
14492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14493 else
14494   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14496 fi
14497 if test "${lt_cv_path_LD+set}" = set; then
14498   echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500   if test -z "$LD"; then
14501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14502   for ac_dir in $PATH; do
14503     IFS="$lt_save_ifs"
14504     test -z "$ac_dir" && ac_dir=.
14505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14506       lt_cv_path_LD="$ac_dir/$ac_prog"
14507       # Check to see if the program is GNU ld.  I'd rather use --version,
14508       # but apparently some variants of GNU ld only accept -v.
14509       # Break only if it was the GNU/non-GNU ld that we prefer.
14510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14511       *GNU* | *'with BFD'*)
14512         test "$with_gnu_ld" != no && break
14513         ;;
14514       *)
14515         test "$with_gnu_ld" != yes && break
14516         ;;
14517       esac
14518     fi
14519   done
14520   IFS="$lt_save_ifs"
14521 else
14522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14523 fi
14524 fi
14525
14526 LD="$lt_cv_path_LD"
14527 if test -n "$LD"; then
14528   echo "$as_me:$LINENO: result: $LD" >&5
14529 echo "${ECHO_T}$LD" >&6
14530 else
14531   echo "$as_me:$LINENO: result: no" >&5
14532 echo "${ECHO_T}no" >&6
14533 fi
14534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14536    { (exit 1); exit 1; }; }
14537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14543 case `$LD -v 2>&1 </dev/null` in
14544 *GNU* | *'with BFD'*)
14545   lt_cv_prog_gnu_ld=yes
14546   ;;
14547 *)
14548   lt_cv_prog_gnu_ld=no
14549   ;;
14550 esac
14551 fi
14552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14554 with_gnu_ld=$lt_cv_prog_gnu_ld
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14566 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14567 if test "${lt_cv_path_NM+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   if test -n "$NM"; then
14571   # Let the user override the test.
14572   lt_cv_path_NM="$NM"
14573 else
14574   lt_nm_to_check="${ac_tool_prefix}nm"
14575   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14576     lt_nm_to_check="$lt_nm_to_check nm"
14577   fi
14578   for lt_tmp_nm in $lt_nm_to_check; do
14579     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14580     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14581       IFS="$lt_save_ifs"
14582       test -z "$ac_dir" && ac_dir=.
14583       tmp_nm="$ac_dir/$lt_tmp_nm"
14584       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14585         # Check to see if the nm accepts a BSD-compat flag.
14586         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14587         #   nm: unknown option "B" ignored
14588         # Tru64's nm complains that /dev/null is an invalid object file
14589         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14590         */dev/null* | *'Invalid file or object type'*)
14591           lt_cv_path_NM="$tmp_nm -B"
14592           break
14593           ;;
14594         *)
14595           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14596           */dev/null*)
14597             lt_cv_path_NM="$tmp_nm -p"
14598             break
14599             ;;
14600           *)
14601             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14602             continue # so that we can try to find one that supports BSD flags
14603             ;;
14604           esac
14605           ;;
14606         esac
14607       fi
14608     done
14609     IFS="$lt_save_ifs"
14610   done
14611   : ${lt_cv_path_NM=no}
14612 fi
14613 fi
14614 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14615 echo "${ECHO_T}$lt_cv_path_NM" >&6
14616 if test "$lt_cv_path_NM" != "no"; then
14617   NM="$lt_cv_path_NM"
14618 else
14619   # Didn't find any BSD compatible name lister, look for dumpbin.
14620   if test -n "$ac_tool_prefix"; then
14621   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14622   do
14623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14625 echo "$as_me:$LINENO: checking for $ac_word" >&5
14626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14627 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   if test -n "$DUMPBIN"; then
14631   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14632 else
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14635 do
14636   IFS=$as_save_IFS
14637   test -z "$as_dir" && as_dir=.
14638   for ac_exec_ext in '' $ac_executable_extensions; do
14639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14642     break 2
14643   fi
14644 done
14645 done
14646
14647 fi
14648 fi
14649 DUMPBIN=$ac_cv_prog_DUMPBIN
14650 if test -n "$DUMPBIN"; then
14651   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14652 echo "${ECHO_T}$DUMPBIN" >&6
14653 else
14654   echo "$as_me:$LINENO: result: no" >&5
14655 echo "${ECHO_T}no" >&6
14656 fi
14657
14658     test -n "$DUMPBIN" && break
14659   done
14660 fi
14661 if test -z "$DUMPBIN"; then
14662   ac_ct_DUMPBIN=$DUMPBIN
14663   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14664 do
14665   # Extract the first word of "$ac_prog", so it can be a program name with args.
14666 set dummy $ac_prog; ac_word=$2
14667 echo "$as_me:$LINENO: checking for $ac_word" >&5
14668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14669 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   if test -n "$ac_ct_DUMPBIN"; then
14673   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14674 else
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $PATH
14677 do
14678   IFS=$as_save_IFS
14679   test -z "$as_dir" && as_dir=.
14680   for ac_exec_ext in '' $ac_executable_extensions; do
14681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14684     break 2
14685   fi
14686 done
14687 done
14688
14689 fi
14690 fi
14691 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14692 if test -n "$ac_ct_DUMPBIN"; then
14693   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14694 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14695 else
14696   echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6
14698 fi
14699
14700   test -n "$ac_ct_DUMPBIN" && break
14701 done
14702 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14703
14704   DUMPBIN=$ac_ct_DUMPBIN
14705 fi
14706
14707
14708   if test "$DUMPBIN" != ":"; then
14709     NM="$DUMPBIN"
14710   fi
14711 fi
14712 test -z "$NM" && NM=nm
14713
14714
14715
14716
14717
14718
14719 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14720 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14721 if test "${lt_cv_nm_interface+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   lt_cv_nm_interface="BSD nm"
14725   echo "int some_variable = 0;" > conftest.$ac_ext
14726   (eval echo "\"\$as_me:14726: $ac_compile\"" >&5)
14727   (eval "$ac_compile" 2>conftest.err)
14728   cat conftest.err >&5
14729   (eval echo "\"\$as_me:14729: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14730   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14731   cat conftest.err >&5
14732   (eval echo "\"\$as_me:14732: output\"" >&5)
14733   cat conftest.out >&5
14734   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14735     lt_cv_nm_interface="MS dumpbin"
14736   fi
14737   rm -f conftest*
14738 fi
14739 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14740 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14741
14742 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14744 LN_S=$as_ln_s
14745 if test "$LN_S" = "ln -s"; then
14746   echo "$as_me:$LINENO: result: yes" >&5
14747 echo "${ECHO_T}yes" >&6
14748 else
14749   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14750 echo "${ECHO_T}no, using $LN_S" >&6
14751 fi
14752
14753 # find the maximum length of command line arguments
14754 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14755 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14756 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759     i=0
14760   teststring="ABCD"
14761
14762   case $build_os in
14763   msdosdjgpp*)
14764     # On DJGPP, this test can blow up pretty badly due to problems in libc
14765     # (any single argument exceeding 2000 bytes causes a buffer overrun
14766     # during glob expansion).  Even if it were fixed, the result of this
14767     # check would be larger than it should be.
14768     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14769     ;;
14770
14771   gnu*)
14772     # Under GNU Hurd, this test is not required because there is
14773     # no limit to the length of command line arguments.
14774     # Libtool will interpret -1 as no limit whatsoever
14775     lt_cv_sys_max_cmd_len=-1;
14776     ;;
14777
14778   cygwin* | mingw*)
14779     # On Win9x/ME, this test blows up -- it succeeds, but takes
14780     # about 5 minutes as the teststring grows exponentially.
14781     # Worse, since 9x/ME are not pre-emptively multitasking,
14782     # you end up with a "frozen" computer, even though with patience
14783     # the test eventually succeeds (with a max line length of 256k).
14784     # Instead, let's just punt: use the minimum linelength reported by
14785     # all of the supported platforms: 8192 (on NT/2K/XP).
14786     lt_cv_sys_max_cmd_len=8192;
14787     ;;
14788
14789   amigaos*)
14790     # On AmigaOS with pdksh, this test takes hours, literally.
14791     # So we just punt and use a minimum line length of 8192.
14792     lt_cv_sys_max_cmd_len=8192;
14793     ;;
14794
14795   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14796     # This has been around since 386BSD, at least.  Likely further.
14797     if test -x /sbin/sysctl; then
14798       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14799     elif test -x /usr/sbin/sysctl; then
14800       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14801     else
14802       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14803     fi
14804     # And add a safety zone
14805     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14806     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14807     ;;
14808
14809   interix*)
14810     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14811     lt_cv_sys_max_cmd_len=196608
14812     ;;
14813
14814   osf*)
14815     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14816     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14817     # nice to cause kernel panics so lets avoid the loop below.
14818     # First set a reasonable default.
14819     lt_cv_sys_max_cmd_len=16384
14820     #
14821     if test -x /sbin/sysconfig; then
14822       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14823         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14824       esac
14825     fi
14826     ;;
14827   sco3.2v5*)
14828     lt_cv_sys_max_cmd_len=102400
14829     ;;
14830   sysv5* | sco5v6* | sysv4.2uw2*)
14831     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14832     if test -n "$kargmax"; then
14833       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14834     else
14835       lt_cv_sys_max_cmd_len=32768
14836     fi
14837     ;;
14838   *)
14839     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14840     if test -n $lt_cv_sys_max_cmd_len; then
14841       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14842       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14843     else
14844       # Make teststring a little bigger before we do anything with it.
14845       # a 1K string should be a reasonable start.
14846       for i in 1 2 3 4 5 6 7 8 ; do
14847         teststring=$teststring$teststring
14848       done
14849       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14850       # If test is not a shell built-in, we'll probably end up computing a
14851       # maximum length that is only half of the actual maximum length, but
14852       # we can't tell.
14853       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14854                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14855               test $i != 17 # 1/2 MB should be enough
14856       do
14857         i=`expr $i + 1`
14858         teststring=$teststring$teststring
14859       done
14860       # Only check the string length outside the loop.
14861       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14862       teststring=
14863       # Add a significant safety factor because C++ compilers can tack on
14864       # massive amounts of additional arguments before passing them to the
14865       # linker.  It appears as though 1/2 is a usable value.
14866       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14867     fi
14868     ;;
14869   esac
14870
14871 fi
14872
14873 if test -n $lt_cv_sys_max_cmd_len ; then
14874   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14875 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14876 else
14877   echo "$as_me:$LINENO: result: none" >&5
14878 echo "${ECHO_T}none" >&6
14879 fi
14880 max_cmd_len=$lt_cv_sys_max_cmd_len
14881
14882
14883
14884
14885
14886
14887
14888 : ${CP="cp -f"}
14889 : ${MV="mv -f"}
14890 : ${RM="rm -f"}
14891
14892 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14893 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14894 # Try some XSI features
14895 xsi_shell=no
14896 ( _lt_dummy="a/b/c"
14897   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14898       = c,a/b,, ) >/dev/null 2>&1 \
14899   && xsi_shell=yes
14900 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14901 echo "${ECHO_T}$xsi_shell" >&6
14902
14903
14904 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14905 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14906 lt_shell_append=no
14907 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14908     >/dev/null 2>&1 \
14909   && lt_shell_append=yes
14910 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14911 echo "${ECHO_T}$lt_shell_append" >&6
14912
14913
14914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14915   lt_unset=unset
14916 else
14917   lt_unset=false
14918 fi
14919
14920
14921
14922
14923
14924 # test EBCDIC or ASCII
14925 case `echo X|tr X '\101'` in
14926  A) # ASCII based system
14927     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14928   lt_SP2NL='tr \040 \012'
14929   lt_NL2SP='tr \015\012 \040\040'
14930   ;;
14931  *) # EBCDIC based system
14932   lt_SP2NL='tr \100 \n'
14933   lt_NL2SP='tr \r\n \100\100'
14934   ;;
14935 esac
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14946 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14947 if test "${lt_cv_ld_reload_flag+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   lt_cv_ld_reload_flag='-r'
14951 fi
14952 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14953 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14954 reload_flag=$lt_cv_ld_reload_flag
14955 case $reload_flag in
14956 "" | " "*) ;;
14957 *) reload_flag=" $reload_flag" ;;
14958 esac
14959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14960 case $host_os in
14961   darwin*)
14962     if test "$GCC" = yes; then
14963       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14964     else
14965       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14966     fi
14967     ;;
14968 esac
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14980 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14981 if test "${lt_cv_deplibs_check_method+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   lt_cv_file_magic_cmd='$MAGIC_CMD'
14985 lt_cv_file_magic_test_file=
14986 lt_cv_deplibs_check_method='unknown'
14987 # Need to set the preceding variable on all platforms that support
14988 # interlibrary dependencies.
14989 # 'none' -- dependencies not supported.
14990 # `unknown' -- same as none, but documents that we really don't know.
14991 # 'pass_all' -- all dependencies passed with no checks.
14992 # 'test_compile' -- check by making test program.
14993 # 'file_magic [[regex]]' -- check by looking for files in library path
14994 # which responds to the $file_magic_cmd with a given extended regex.
14995 # If you have `file' or equivalent on your system and you're not sure
14996 # whether `pass_all' will *always* work, you probably want this one.
14997
14998 case $host_os in
14999 aix[4-9]*)
15000   lt_cv_deplibs_check_method=pass_all
15001   ;;
15002
15003 beos*)
15004   lt_cv_deplibs_check_method=pass_all
15005   ;;
15006
15007 bsdi[45]*)
15008   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15009   lt_cv_file_magic_cmd='/usr/bin/file -L'
15010   lt_cv_file_magic_test_file=/shlib/libc.so
15011   ;;
15012
15013 cygwin*)
15014   # func_win32_libid is a shell function defined in ltmain.sh
15015   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15016   lt_cv_file_magic_cmd='func_win32_libid'
15017   ;;
15018
15019 mingw* | pw32*)
15020   # Base MSYS/MinGW do not provide the 'file' command needed by
15021   # func_win32_libid shell function, so use a weaker test based on 'objdump',
15022   # unless we find 'file', for example because we are cross-compiling.
15023   if ( file / ) >/dev/null 2>&1; then
15024     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15025     lt_cv_file_magic_cmd='func_win32_libid'
15026   else
15027     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15028     lt_cv_file_magic_cmd='$OBJDUMP -f'
15029   fi
15030   ;;
15031
15032 darwin* | rhapsody*)
15033   lt_cv_deplibs_check_method=pass_all
15034   ;;
15035
15036 freebsd* | dragonfly*)
15037   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15038     case $host_cpu in
15039     i*86 )
15040       # Not sure whether the presence of OpenBSD here was a mistake.
15041       # Let's accept both of them until this is cleared up.
15042       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15043       lt_cv_file_magic_cmd=/usr/bin/file
15044       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15045       ;;
15046     esac
15047   else
15048     lt_cv_deplibs_check_method=pass_all
15049   fi
15050   ;;
15051
15052 gnu*)
15053   lt_cv_deplibs_check_method=pass_all
15054   ;;
15055
15056 hpux10.20* | hpux11*)
15057   lt_cv_file_magic_cmd=/usr/bin/file
15058   case $host_cpu in
15059   ia64*)
15060     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15061     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15062     ;;
15063   hppa*64*)
15064     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]'
15065     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15066     ;;
15067   *)
15068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15069     lt_cv_file_magic_test_file=/usr/lib/libc.sl
15070     ;;
15071   esac
15072   ;;
15073
15074 interix[3-9]*)
15075   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15076   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15077   ;;
15078
15079 irix5* | irix6* | nonstopux*)
15080   case $LD in
15081   *-32|*"-32 ") libmagic=32-bit;;
15082   *-n32|*"-n32 ") libmagic=N32;;
15083   *-64|*"-64 ") libmagic=64-bit;;
15084   *) libmagic=never-match;;
15085   esac
15086   lt_cv_deplibs_check_method=pass_all
15087   ;;
15088
15089 # This must be Linux ELF.
15090 linux* | k*bsd*-gnu)
15091   lt_cv_deplibs_check_method=pass_all
15092   ;;
15093
15094 netbsd*)
15095   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15097   else
15098     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15099   fi
15100   ;;
15101
15102 newos6*)
15103   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15104   lt_cv_file_magic_cmd=/usr/bin/file
15105   lt_cv_file_magic_test_file=/usr/lib/libnls.so
15106   ;;
15107
15108 *nto* | *qnx*)
15109   lt_cv_deplibs_check_method=pass_all
15110   ;;
15111
15112 openbsd*)
15113   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15115   else
15116     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15117   fi
15118   ;;
15119
15120 osf3* | osf4* | osf5*)
15121   lt_cv_deplibs_check_method=pass_all
15122   ;;
15123
15124 rdos*)
15125   lt_cv_deplibs_check_method=pass_all
15126   ;;
15127
15128 solaris*)
15129   lt_cv_deplibs_check_method=pass_all
15130   ;;
15131
15132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15133   lt_cv_deplibs_check_method=pass_all
15134   ;;
15135
15136 sysv4 | sysv4.3*)
15137   case $host_vendor in
15138   motorola)
15139     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]'
15140     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15141     ;;
15142   ncr)
15143     lt_cv_deplibs_check_method=pass_all
15144     ;;
15145   sequent)
15146     lt_cv_file_magic_cmd='/bin/file'
15147     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15148     ;;
15149   sni)
15150     lt_cv_file_magic_cmd='/bin/file'
15151     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15152     lt_cv_file_magic_test_file=/lib/libc.so
15153     ;;
15154   siemens)
15155     lt_cv_deplibs_check_method=pass_all
15156     ;;
15157   pc)
15158     lt_cv_deplibs_check_method=pass_all
15159     ;;
15160   esac
15161   ;;
15162
15163 tpf*)
15164   lt_cv_deplibs_check_method=pass_all
15165   ;;
15166 esac
15167
15168 fi
15169 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15170 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15171 file_magic_cmd=$lt_cv_file_magic_cmd
15172 deplibs_check_method=$lt_cv_deplibs_check_method
15173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 if test -n "$ac_tool_prefix"; then
15187   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15188 set dummy ${ac_tool_prefix}ar; ac_word=$2
15189 echo "$as_me:$LINENO: checking for $ac_word" >&5
15190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15191 if test "${ac_cv_prog_AR+set}" = set; then
15192   echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194   if test -n "$AR"; then
15195   ac_cv_prog_AR="$AR" # Let the user override the test.
15196 else
15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198 for as_dir in $PATH
15199 do
15200   IFS=$as_save_IFS
15201   test -z "$as_dir" && as_dir=.
15202   for ac_exec_ext in '' $ac_executable_extensions; do
15203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15204     ac_cv_prog_AR="${ac_tool_prefix}ar"
15205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15206     break 2
15207   fi
15208 done
15209 done
15210
15211 fi
15212 fi
15213 AR=$ac_cv_prog_AR
15214 if test -n "$AR"; then
15215   echo "$as_me:$LINENO: result: $AR" >&5
15216 echo "${ECHO_T}$AR" >&6
15217 else
15218   echo "$as_me:$LINENO: result: no" >&5
15219 echo "${ECHO_T}no" >&6
15220 fi
15221
15222 fi
15223 if test -z "$ac_cv_prog_AR"; then
15224   ac_ct_AR=$AR
15225   # Extract the first word of "ar", so it can be a program name with args.
15226 set dummy ar; ac_word=$2
15227 echo "$as_me:$LINENO: checking for $ac_word" >&5
15228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   if test -n "$ac_ct_AR"; then
15233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15234 else
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $PATH
15237 do
15238   IFS=$as_save_IFS
15239   test -z "$as_dir" && as_dir=.
15240   for ac_exec_ext in '' $ac_executable_extensions; do
15241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242     ac_cv_prog_ac_ct_AR="ar"
15243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15244     break 2
15245   fi
15246 done
15247 done
15248
15249   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15250 fi
15251 fi
15252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15253 if test -n "$ac_ct_AR"; then
15254   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15255 echo "${ECHO_T}$ac_ct_AR" >&6
15256 else
15257   echo "$as_me:$LINENO: result: no" >&5
15258 echo "${ECHO_T}no" >&6
15259 fi
15260
15261   AR=$ac_ct_AR
15262 else
15263   AR="$ac_cv_prog_AR"
15264 fi
15265
15266 test -z "$AR" && AR=ar
15267 test -z "$AR_FLAGS" && AR_FLAGS=cru
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279 if test -n "$ac_tool_prefix"; then
15280   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15281 set dummy ${ac_tool_prefix}strip; ac_word=$2
15282 echo "$as_me:$LINENO: checking for $ac_word" >&5
15283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15284 if test "${ac_cv_prog_STRIP+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   if test -n "$STRIP"; then
15288   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15289 else
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293   IFS=$as_save_IFS
15294   test -z "$as_dir" && as_dir=.
15295   for ac_exec_ext in '' $ac_executable_extensions; do
15296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15299     break 2
15300   fi
15301 done
15302 done
15303
15304 fi
15305 fi
15306 STRIP=$ac_cv_prog_STRIP
15307 if test -n "$STRIP"; then
15308   echo "$as_me:$LINENO: result: $STRIP" >&5
15309 echo "${ECHO_T}$STRIP" >&6
15310 else
15311   echo "$as_me:$LINENO: result: no" >&5
15312 echo "${ECHO_T}no" >&6
15313 fi
15314
15315 fi
15316 if test -z "$ac_cv_prog_STRIP"; then
15317   ac_ct_STRIP=$STRIP
15318   # Extract the first word of "strip", so it can be a program name with args.
15319 set dummy strip; ac_word=$2
15320 echo "$as_me:$LINENO: checking for $ac_word" >&5
15321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   if test -n "$ac_ct_STRIP"; then
15326   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15327 else
15328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15329 for as_dir in $PATH
15330 do
15331   IFS=$as_save_IFS
15332   test -z "$as_dir" && as_dir=.
15333   for ac_exec_ext in '' $ac_executable_extensions; do
15334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15335     ac_cv_prog_ac_ct_STRIP="strip"
15336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15337     break 2
15338   fi
15339 done
15340 done
15341
15342   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15343 fi
15344 fi
15345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15346 if test -n "$ac_ct_STRIP"; then
15347   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15348 echo "${ECHO_T}$ac_ct_STRIP" >&6
15349 else
15350   echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15352 fi
15353
15354   STRIP=$ac_ct_STRIP
15355 else
15356   STRIP="$ac_cv_prog_STRIP"
15357 fi
15358
15359 test -z "$STRIP" && STRIP=:
15360
15361
15362
15363
15364
15365
15366 if test -n "$ac_tool_prefix"; then
15367   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15369 echo "$as_me:$LINENO: checking for $ac_word" >&5
15370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15371 if test "${ac_cv_prog_RANLIB+set}" = set; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   if test -n "$RANLIB"; then
15375   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15376 else
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15379 do
15380   IFS=$as_save_IFS
15381   test -z "$as_dir" && as_dir=.
15382   for ac_exec_ext in '' $ac_executable_extensions; do
15383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15384     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15386     break 2
15387   fi
15388 done
15389 done
15390
15391 fi
15392 fi
15393 RANLIB=$ac_cv_prog_RANLIB
15394 if test -n "$RANLIB"; then
15395   echo "$as_me:$LINENO: result: $RANLIB" >&5
15396 echo "${ECHO_T}$RANLIB" >&6
15397 else
15398   echo "$as_me:$LINENO: result: no" >&5
15399 echo "${ECHO_T}no" >&6
15400 fi
15401
15402 fi
15403 if test -z "$ac_cv_prog_RANLIB"; then
15404   ac_ct_RANLIB=$RANLIB
15405   # Extract the first word of "ranlib", so it can be a program name with args.
15406 set dummy ranlib; ac_word=$2
15407 echo "$as_me:$LINENO: checking for $ac_word" >&5
15408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   if test -n "$ac_ct_RANLIB"; then
15413   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15414 else
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418   IFS=$as_save_IFS
15419   test -z "$as_dir" && as_dir=.
15420   for ac_exec_ext in '' $ac_executable_extensions; do
15421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422     ac_cv_prog_ac_ct_RANLIB="ranlib"
15423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15424     break 2
15425   fi
15426 done
15427 done
15428
15429   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15430 fi
15431 fi
15432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15433 if test -n "$ac_ct_RANLIB"; then
15434   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15435 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15436 else
15437   echo "$as_me:$LINENO: result: no" >&5
15438 echo "${ECHO_T}no" >&6
15439 fi
15440
15441   RANLIB=$ac_ct_RANLIB
15442 else
15443   RANLIB="$ac_cv_prog_RANLIB"
15444 fi
15445
15446 test -z "$RANLIB" && RANLIB=:
15447
15448
15449
15450
15451
15452
15453 # Determine commands to create old-style static archives.
15454 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15455 old_postinstall_cmds='chmod 644 $oldlib'
15456 old_postuninstall_cmds=
15457
15458 if test -n "$RANLIB"; then
15459   case $host_os in
15460   openbsd*)
15461     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15462     ;;
15463   *)
15464     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15465     ;;
15466   esac
15467   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15468 fi
15469
15470
15471
15472
15473
15474
15475
15476
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 # If no C compiler was specified, use CC.
15504 LTCC=${LTCC-"$CC"}
15505
15506 # If no C compiler flags were specified, use CFLAGS.
15507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15508
15509 # Allow CC to be a program name with arguments.
15510 compiler=$CC
15511
15512
15513 # Check for command to grab the raw symbol name followed by C symbol from nm.
15514 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15515 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15516 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15517   echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519
15520 # These are sane defaults that work on at least a few old systems.
15521 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15522
15523 # Character class describing NM global symbol codes.
15524 symcode='[BCDEGRST]'
15525
15526 # Regexp to match symbols that can be accessed directly from C.
15527 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15528
15529 # Define system-specific variables.
15530 case $host_os in
15531 aix*)
15532   symcode='[BCDT]'
15533   ;;
15534 cygwin* | mingw* | pw32*)
15535   symcode='[ABCDGISTW]'
15536   ;;
15537 hpux*)
15538   if test "$host_cpu" = ia64; then
15539     symcode='[ABCDEGRST]'
15540   fi
15541   ;;
15542 irix* | nonstopux*)
15543   symcode='[BCDEGRST]'
15544   ;;
15545 osf*)
15546   symcode='[BCDEGQRST]'
15547   ;;
15548 solaris*)
15549   symcode='[BDRT]'
15550   ;;
15551 sco3.2v5*)
15552   symcode='[DT]'
15553   ;;
15554 sysv4.2uw2*)
15555   symcode='[DT]'
15556   ;;
15557 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15558   symcode='[ABDT]'
15559   ;;
15560 sysv4)
15561   symcode='[DFNSTU]'
15562   ;;
15563 esac
15564
15565 # If we're using GNU nm, then use its standard symbol codes.
15566 case `$NM -V 2>&1` in
15567 *GNU* | *'with BFD'*)
15568   symcode='[ABCDGIRSTW]' ;;
15569 esac
15570
15571 # Transform an extracted symbol line into a proper C declaration.
15572 # Some systems (esp. on ia64) link data and code symbols differently,
15573 # so use this general approach.
15574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15575
15576 # Transform an extracted symbol line into symbol name and symbol address
15577 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15578
15579 # Handle CRLF in mingw tool chain
15580 opt_cr=
15581 case $build_os in
15582 mingw*)
15583   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15584   ;;
15585 esac
15586
15587 # Try without a prefix underscore, then with it.
15588 for ac_symprfx in "" "_"; do
15589
15590   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15591   symxfrm="\\1 $ac_symprfx\\2 \\2"
15592
15593   # Write the raw and C identifiers.
15594   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15595     # Fake it for dumpbin and say T for any non-static function
15596     # and D for any global variable.
15597     # Also find C++ and __fastcall symbols from MSVC++,
15598     # which start with @ or ?.
15599     lt_cv_sys_global_symbol_pipe="$AWK '"\
15600 "     {last_section=section; section=\$ 3};"\
15601 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15602 "     \$ 0!~/External *\|/{next};"\
15603 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15604 "     {if(hide[section]) next};"\
15605 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15606 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15607 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15608 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15609 "     ' prfx=^$ac_symprfx"
15610   else
15611     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15612   fi
15613
15614   # Check to see that the pipe works correctly.
15615   pipe_works=no
15616
15617   rm -f conftest*
15618   cat > conftest.$ac_ext <<_LT_EOF
15619 #ifdef __cplusplus
15620 extern "C" {
15621 #endif
15622 char nm_test_var;
15623 void nm_test_func(void);
15624 void nm_test_func(void){}
15625 #ifdef __cplusplus
15626 }
15627 #endif
15628 int main(){nm_test_var='a';nm_test_func();return(0);}
15629 _LT_EOF
15630
15631   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632   (eval $ac_compile) 2>&5
15633   ac_status=$?
15634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635   (exit $ac_status); }; then
15636     # Now try to grab the symbols.
15637     nlist=conftest.nm
15638     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15639   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } && test -s "$nlist"; then
15643       # Try sorting and uniquifying the output.
15644       if sort "$nlist" | uniq > "$nlist"T; then
15645         mv -f "$nlist"T "$nlist"
15646       else
15647         rm -f "$nlist"T
15648       fi
15649
15650       # Make sure that we snagged all the symbols we need.
15651       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15652         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15653           cat <<_LT_EOF > conftest.$ac_ext
15654 #ifdef __cplusplus
15655 extern "C" {
15656 #endif
15657
15658 _LT_EOF
15659           # Now generate the symbol file.
15660           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15661
15662           cat <<_LT_EOF >> conftest.$ac_ext
15663
15664 /* The mapping between symbol names and symbols.  */
15665 const struct {
15666   const char *name;
15667   void       *address;
15668 }
15669 lt__PROGRAM__LTX_preloaded_symbols[] =
15670 {
15671   { "@PROGRAM@", (void *) 0 },
15672 _LT_EOF
15673           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15674           cat <<\_LT_EOF >> conftest.$ac_ext
15675   {0, (void *) 0}
15676 };
15677
15678 /* This works around a problem in FreeBSD linker */
15679 #ifdef FREEBSD_WORKAROUND
15680 static const void *lt_preloaded_setup() {
15681   return lt__PROGRAM__LTX_preloaded_symbols;
15682 }
15683 #endif
15684
15685 #ifdef __cplusplus
15686 }
15687 #endif
15688 _LT_EOF
15689           # Now try linking the two files.
15690           mv conftest.$ac_objext conftstm.$ac_objext
15691           lt_save_LIBS="$LIBS"
15692           lt_save_CFLAGS="$CFLAGS"
15693           LIBS="conftstm.$ac_objext"
15694           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15695           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696   (eval $ac_link) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15700             pipe_works=yes
15701           fi
15702           LIBS="$lt_save_LIBS"
15703           CFLAGS="$lt_save_CFLAGS"
15704         else
15705           echo "cannot find nm_test_func in $nlist" >&5
15706         fi
15707       else
15708         echo "cannot find nm_test_var in $nlist" >&5
15709       fi
15710     else
15711       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15712     fi
15713   else
15714     echo "$progname: failed program was:" >&5
15715     cat conftest.$ac_ext >&5
15716   fi
15717   rm -f conftest* conftst*
15718
15719   # Do not use the global_symbol_pipe unless it works.
15720   if test "$pipe_works" = yes; then
15721     break
15722   else
15723     lt_cv_sys_global_symbol_pipe=
15724   fi
15725 done
15726
15727 fi
15728
15729 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15730   lt_cv_sys_global_symbol_to_cdecl=
15731 fi
15732 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15733   echo "$as_me:$LINENO: result: failed" >&5
15734 echo "${ECHO_T}failed" >&6
15735 else
15736   echo "$as_me:$LINENO: result: ok" >&5
15737 echo "${ECHO_T}ok" >&6
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15757 if test "${enable_libtool_lock+set}" = set; then
15758   enableval="$enable_libtool_lock"
15759
15760 fi;
15761 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15762
15763 # Some flags need to be propagated to the compiler or linker for good
15764 # libtool support.
15765 case $host in
15766 ia64-*-hpux*)
15767   # Find out which ABI we are using.
15768   echo 'int i;' > conftest.$ac_ext
15769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770   (eval $ac_compile) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; then
15774     case `/usr/bin/file conftest.$ac_objext` in
15775       *ELF-32*)
15776         HPUX_IA64_MODE="32"
15777         ;;
15778       *ELF-64*)
15779         HPUX_IA64_MODE="64"
15780         ;;
15781     esac
15782   fi
15783   rm -rf conftest*
15784   ;;
15785 *-*-irix6*)
15786   # Find out which ABI we are using.
15787   echo '#line 15787 "configure"' > conftest.$ac_ext
15788   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15789   (eval $ac_compile) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; then
15793     if test "$lt_cv_prog_gnu_ld" = yes; then
15794       case `/usr/bin/file conftest.$ac_objext` in
15795         *32-bit*)
15796           LD="${LD-ld} -melf32bsmip"
15797           ;;
15798         *N32*)
15799           LD="${LD-ld} -melf32bmipn32"
15800           ;;
15801         *64-bit*)
15802           LD="${LD-ld} -melf64bmip"
15803         ;;
15804       esac
15805     else
15806       case `/usr/bin/file conftest.$ac_objext` in
15807         *32-bit*)
15808           LD="${LD-ld} -32"
15809           ;;
15810         *N32*)
15811           LD="${LD-ld} -n32"
15812           ;;
15813         *64-bit*)
15814           LD="${LD-ld} -64"
15815           ;;
15816       esac
15817     fi
15818   fi
15819   rm -rf conftest*
15820   ;;
15821
15822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15824   # Find out which ABI we are using.
15825   echo 'int i;' > conftest.$ac_ext
15826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827   (eval $ac_compile) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; then
15831     case `/usr/bin/file conftest.o` in
15832       *32-bit*)
15833         case $host in
15834           x86_64-*kfreebsd*-gnu)
15835             LD="${LD-ld} -m elf_i386_fbsd"
15836             ;;
15837           x86_64-*linux*)
15838             LD="${LD-ld} -m elf_i386"
15839             ;;
15840           ppc64-*linux*|powerpc64-*linux*)
15841             LD="${LD-ld} -m elf32ppclinux"
15842             ;;
15843           s390x-*linux*)
15844             LD="${LD-ld} -m elf_s390"
15845             ;;
15846           sparc64-*linux*)
15847             LD="${LD-ld} -m elf32_sparc"
15848             ;;
15849         esac
15850         ;;
15851       *64-bit*)
15852         case $host in
15853           x86_64-*kfreebsd*-gnu)
15854             LD="${LD-ld} -m elf_x86_64_fbsd"
15855             ;;
15856           x86_64-*linux*)
15857             LD="${LD-ld} -m elf_x86_64"
15858             ;;
15859           ppc*-*linux*|powerpc*-*linux*)
15860             LD="${LD-ld} -m elf64ppc"
15861             ;;
15862           s390*-*linux*|s390*-*tpf*)
15863             LD="${LD-ld} -m elf64_s390"
15864             ;;
15865           sparc*-*linux*)
15866             LD="${LD-ld} -m elf64_sparc"
15867             ;;
15868         esac
15869         ;;
15870     esac
15871   fi
15872   rm -rf conftest*
15873   ;;
15874
15875 *-*-sco3.2v5*)
15876   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15877   SAVE_CFLAGS="$CFLAGS"
15878   CFLAGS="$CFLAGS -belf"
15879   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15880 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15881 if test "${lt_cv_cc_needs_belf+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   ac_ext=c
15885 ac_cpp='$CPP $CPPFLAGS'
15886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15889
15890      cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 int
15898 main ()
15899 {
15900
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907   (eval $ac_link) 2>conftest.er1
15908   ac_status=$?
15909   grep -v '^ *+' conftest.er1 >conftest.err
15910   rm -f conftest.er1
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -z "$ac_c_werror_flag"
15915                          || test ! -s conftest.err'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; } &&
15921          { ac_try='test -s conftest$ac_exeext'
15922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923   (eval $ac_try) 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; }; then
15927   lt_cv_cc_needs_belf=yes
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 lt_cv_cc_needs_belf=no
15933 fi
15934 rm -f conftest.err conftest.$ac_objext \
15935       conftest$ac_exeext conftest.$ac_ext
15936      ac_ext=c
15937 ac_cpp='$CPP $CPPFLAGS'
15938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15941
15942 fi
15943 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15944 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15945   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15946     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15947     CFLAGS="$SAVE_CFLAGS"
15948   fi
15949   ;;
15950 sparc*-*solaris*)
15951   # Find out which ABI we are using.
15952   echo 'int i;' > conftest.$ac_ext
15953   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15954   (eval $ac_compile) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; then
15958     case `/usr/bin/file conftest.o` in
15959     *64-bit*)
15960       case $lt_cv_prog_gnu_ld in
15961       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15962       *)    LD="${LD-ld} -64" ;;
15963       esac
15964       ;;
15965     esac
15966   fi
15967   rm -rf conftest*
15968   ;;
15969 esac
15970
15971 need_locks="$enable_libtool_lock"
15972
15973
15974 for ac_header in dlfcn.h
15975 do
15976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977 echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988 #include <$ac_header>
15989 _ACEOF
15990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } >/dev/null; then
15998   if test -s conftest.err; then
15999     ac_cpp_err=$ac_c_preproc_warn_flag
16000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16001   else
16002     ac_cpp_err=
16003   fi
16004 else
16005   ac_cpp_err=yes
16006 fi
16007 if test -z "$ac_cpp_err"; then
16008   eval "$as_ac_Header=yes"
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013   eval "$as_ac_Header=no"
16014 fi
16015 rm -f conftest.err conftest.$ac_ext
16016 fi
16017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020   cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 _ACEOF
16023
16024 fi
16025 done
16026
16027
16028
16029 # This can be used to rebuild libtool when needed
16030 LIBTOOL_DEPS="$ltmain"
16031
16032 # Always use our own libtool.
16033 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059 test -z "$LN_S" && LN_S="ln -s"
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074 if test -n "${ZSH_VERSION+set}" ; then
16075    setopt NO_GLOB_SUBST
16076 fi
16077
16078 echo "$as_me:$LINENO: checking for objdir" >&5
16079 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16080 if test "${lt_cv_objdir+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   rm -f .libs 2>/dev/null
16084 mkdir .libs 2>/dev/null
16085 if test -d .libs; then
16086   lt_cv_objdir=.libs
16087 else
16088   # MS-DOS does not allow filenames that begin with a dot.
16089   lt_cv_objdir=_libs
16090 fi
16091 rmdir .libs 2>/dev/null
16092 fi
16093 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16094 echo "${ECHO_T}$lt_cv_objdir" >&6
16095 objdir=$lt_cv_objdir
16096
16097
16098
16099
16100
16101 cat >>confdefs.h <<_ACEOF
16102 #define LT_OBJDIR "$lt_cv_objdir/"
16103 _ACEOF
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121 case $host_os in
16122 aix3*)
16123   # AIX sometimes has problems with the GCC collect2 program.  For some
16124   # reason, if we set the COLLECT_NAMES environment variable, the problems
16125   # vanish in a puff of smoke.
16126   if test "X${COLLECT_NAMES+set}" != Xset; then
16127     COLLECT_NAMES=
16128     export COLLECT_NAMES
16129   fi
16130   ;;
16131 esac
16132
16133 # Sed substitution that helps us do robust quoting.  It backslashifies
16134 # metacharacters that are still active within double-quoted strings.
16135 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16136
16137 # Same as above, but do not quote variable references.
16138 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16139
16140 # Sed substitution to delay expansion of an escaped shell variable in a
16141 # double_quote_subst'ed string.
16142 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16143
16144 # Sed substitution to delay expansion of an escaped single quote.
16145 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16146
16147 # Sed substitution to avoid accidental globbing in evaled expressions
16148 no_glob_subst='s/\*/\\\*/g'
16149
16150 # Global variables:
16151 ofile=libtool
16152 can_build_shared=yes
16153
16154 # All known linkers require a `.a' archive for static linking (except MSVC,
16155 # which needs '.lib').
16156 libext=a
16157
16158 with_gnu_ld="$lt_cv_prog_gnu_ld"
16159
16160 old_CC="$CC"
16161 old_CFLAGS="$CFLAGS"
16162
16163 # Set sane defaults for various variables
16164 test -z "$CC" && CC=cc
16165 test -z "$LTCC" && LTCC=$CC
16166 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16167 test -z "$LD" && LD=ld
16168 test -z "$ac_objext" && ac_objext=o
16169
16170 for cc_temp in $compiler""; do
16171   case $cc_temp in
16172     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16173     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16174     \-*) ;;
16175     *) break;;
16176   esac
16177 done
16178 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16179
16180
16181 # Only perform the check for file, if the check method requires it
16182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16183 case $deplibs_check_method in
16184 file_magic*)
16185   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16186     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16187 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   case $MAGIC_CMD in
16192 [\\/*] |  ?:[\\/]*)
16193   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16194   ;;
16195 *)
16196   lt_save_MAGIC_CMD="$MAGIC_CMD"
16197   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16198   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16199   for ac_dir in $ac_dummy; do
16200     IFS="$lt_save_ifs"
16201     test -z "$ac_dir" && ac_dir=.
16202     if test -f $ac_dir/${ac_tool_prefix}file; then
16203       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16204       if test -n "$file_magic_test_file"; then
16205         case $deplibs_check_method in
16206         "file_magic "*)
16207           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16208           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16209           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16210             $EGREP "$file_magic_regex" > /dev/null; then
16211             :
16212           else
16213             cat <<_LT_EOF 1>&2
16214
16215 *** Warning: the command libtool uses to detect shared libraries,
16216 *** $file_magic_cmd, produces output that libtool cannot recognize.
16217 *** The result is that libtool may fail to recognize shared libraries
16218 *** as such.  This will affect the creation of libtool libraries that
16219 *** depend on shared libraries, but programs linked with such libtool
16220 *** libraries will work regardless of this problem.  Nevertheless, you
16221 *** may want to report the problem to your system manager and/or to
16222 *** bug-libtool@gnu.org
16223
16224 _LT_EOF
16225           fi ;;
16226         esac
16227       fi
16228       break
16229     fi
16230   done
16231   IFS="$lt_save_ifs"
16232   MAGIC_CMD="$lt_save_MAGIC_CMD"
16233   ;;
16234 esac
16235 fi
16236
16237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16238 if test -n "$MAGIC_CMD"; then
16239   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16240 echo "${ECHO_T}$MAGIC_CMD" >&6
16241 else
16242   echo "$as_me:$LINENO: result: no" >&5
16243 echo "${ECHO_T}no" >&6
16244 fi
16245
16246
16247
16248
16249
16250 if test -z "$lt_cv_path_MAGIC_CMD"; then
16251   if test -n "$ac_tool_prefix"; then
16252     echo "$as_me:$LINENO: checking for file" >&5
16253 echo $ECHO_N "checking for file... $ECHO_C" >&6
16254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   case $MAGIC_CMD in
16258 [\\/*] |  ?:[\\/]*)
16259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16260   ;;
16261 *)
16262   lt_save_MAGIC_CMD="$MAGIC_CMD"
16263   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16264   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16265   for ac_dir in $ac_dummy; do
16266     IFS="$lt_save_ifs"
16267     test -z "$ac_dir" && ac_dir=.
16268     if test -f $ac_dir/file; then
16269       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16270       if test -n "$file_magic_test_file"; then
16271         case $deplibs_check_method in
16272         "file_magic "*)
16273           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16274           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16275           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16276             $EGREP "$file_magic_regex" > /dev/null; then
16277             :
16278           else
16279             cat <<_LT_EOF 1>&2
16280
16281 *** Warning: the command libtool uses to detect shared libraries,
16282 *** $file_magic_cmd, produces output that libtool cannot recognize.
16283 *** The result is that libtool may fail to recognize shared libraries
16284 *** as such.  This will affect the creation of libtool libraries that
16285 *** depend on shared libraries, but programs linked with such libtool
16286 *** libraries will work regardless of this problem.  Nevertheless, you
16287 *** may want to report the problem to your system manager and/or to
16288 *** bug-libtool@gnu.org
16289
16290 _LT_EOF
16291           fi ;;
16292         esac
16293       fi
16294       break
16295     fi
16296   done
16297   IFS="$lt_save_ifs"
16298   MAGIC_CMD="$lt_save_MAGIC_CMD"
16299   ;;
16300 esac
16301 fi
16302
16303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16304 if test -n "$MAGIC_CMD"; then
16305   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16306 echo "${ECHO_T}$MAGIC_CMD" >&6
16307 else
16308   echo "$as_me:$LINENO: result: no" >&5
16309 echo "${ECHO_T}no" >&6
16310 fi
16311
16312
16313   else
16314     MAGIC_CMD=:
16315   fi
16316 fi
16317
16318   fi
16319   ;;
16320 esac
16321
16322 # Use C for the default configuration in the libtool script
16323
16324 lt_save_CC="$CC"
16325 ac_ext=c
16326 ac_cpp='$CPP $CPPFLAGS'
16327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16330
16331
16332 # Source file extension for C test sources.
16333 ac_ext=c
16334
16335 # Object file extension for compiled C test sources.
16336 objext=o
16337 objext=$objext
16338
16339 # Code to be used in simple compile tests
16340 lt_simple_compile_test_code="int some_variable = 0;"
16341
16342 # Code to be used in simple link tests
16343 lt_simple_link_test_code='int main(){return(0);}'
16344
16345
16346
16347
16348
16349
16350
16351 # If no C compiler was specified, use CC.
16352 LTCC=${LTCC-"$CC"}
16353
16354 # If no C compiler flags were specified, use CFLAGS.
16355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16356
16357 # Allow CC to be a program name with arguments.
16358 compiler=$CC
16359
16360 # Save the default compiler, since it gets overwritten when the other
16361 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16362 compiler_DEFAULT=$CC
16363
16364 # save warnings/boilerplate of simple test code
16365 ac_outfile=conftest.$ac_objext
16366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16368 _lt_compiler_boilerplate=`cat conftest.err`
16369 $RM conftest*
16370
16371 ac_outfile=conftest.$ac_objext
16372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16374 _lt_linker_boilerplate=`cat conftest.err`
16375 $RM conftest*
16376
16377
16378 ## CAVEAT EMPTOR:
16379 ## There is no encapsulation within the following macros, do not change
16380 ## the running order or otherwise move them around unless you know exactly
16381 ## what you are doing...
16382 if test -n "$compiler"; then
16383
16384 lt_prog_compiler_no_builtin_flag=
16385
16386 if test "$GCC" = yes; then
16387   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16388
16389   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16392   echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394   lt_cv_prog_compiler_rtti_exceptions=no
16395    ac_outfile=conftest.$ac_objext
16396    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397    lt_compiler_flag="-fno-rtti -fno-exceptions"
16398    # Insert the option either (1) after the last *FLAGS variable, or
16399    # (2) before a word containing "conftest.", or (3) at the end.
16400    # Note that $ac_compile itself does not contain backslashes and begins
16401    # with a dollar sign (not a hyphen), so the echo should work correctly.
16402    # The option is referenced via a variable to avoid confusing sed.
16403    lt_compile=`echo "$ac_compile" | $SED \
16404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16406    -e 's:$: $lt_compiler_flag:'`
16407    (eval echo "\"\$as_me:16407: $lt_compile\"" >&5)
16408    (eval "$lt_compile" 2>conftest.err)
16409    ac_status=$?
16410    cat conftest.err >&5
16411    echo "$as_me:16411: \$? = $ac_status" >&5
16412    if (exit $ac_status) && test -s "$ac_outfile"; then
16413      # The compiler can only warn and ignore the option if not recognized
16414      # So say no if there are warnings other than the usual output.
16415      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16416      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16418        lt_cv_prog_compiler_rtti_exceptions=yes
16419      fi
16420    fi
16421    $RM conftest*
16422
16423 fi
16424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16426
16427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16428     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16429 else
16430     :
16431 fi
16432
16433 fi
16434
16435
16436
16437
16438
16439
16440   lt_prog_compiler_wl=
16441 lt_prog_compiler_pic=
16442 lt_prog_compiler_static=
16443
16444 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16446
16447   if test "$GCC" = yes; then
16448     lt_prog_compiler_wl='-Wl,'
16449     lt_prog_compiler_static='-static'
16450
16451     case $host_os in
16452       aix*)
16453       # All AIX code is PIC.
16454       if test "$host_cpu" = ia64; then
16455         # AIX 5 now supports IA64 processor
16456         lt_prog_compiler_static='-Bstatic'
16457       fi
16458       ;;
16459
16460     amigaos*)
16461       if test "$host_cpu" = m68k; then
16462         # FIXME: we need at least 68020 code to build shared libraries, but
16463         # adding the `-m68020' flag to GCC prevents building anything better,
16464         # like `-m68040'.
16465         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16466       fi
16467       ;;
16468
16469     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16470       # PIC is the default for these OSes.
16471       ;;
16472
16473     mingw* | cygwin* | pw32* | os2*)
16474       # This hack is so that the source file can tell whether it is being
16475       # built for inclusion in a dll (and should export symbols for example).
16476       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16477       # (--disable-auto-import) libraries
16478       lt_prog_compiler_pic='-DDLL_EXPORT'
16479       ;;
16480
16481     darwin* | rhapsody*)
16482       # PIC is the default on this platform
16483       # Common symbols not allowed in MH_DYLIB files
16484       lt_prog_compiler_pic='-fno-common'
16485       ;;
16486
16487     hpux*)
16488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16489       # not for PA HP-UX.
16490       case $host_cpu in
16491       hppa*64*|ia64*)
16492         # +Z the default
16493         ;;
16494       *)
16495         lt_prog_compiler_pic='-fPIC'
16496         ;;
16497       esac
16498       ;;
16499
16500     interix[3-9]*)
16501       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16502       # Instead, we relocate shared libraries at runtime.
16503       ;;
16504
16505     msdosdjgpp*)
16506       # Just because we use GCC doesn't mean we suddenly get shared libraries
16507       # on systems that don't support them.
16508       lt_prog_compiler_can_build_shared=no
16509       enable_shared=no
16510       ;;
16511
16512     *nto* | *qnx*)
16513       # QNX uses GNU C++, but need to define -shared option too, otherwise
16514       # it will coredump.
16515       lt_prog_compiler_pic='-fPIC -shared'
16516       ;;
16517
16518     sysv4*MP*)
16519       if test -d /usr/nec; then
16520         lt_prog_compiler_pic=-Kconform_pic
16521       fi
16522       ;;
16523
16524     *)
16525       lt_prog_compiler_pic='-fPIC'
16526       ;;
16527     esac
16528   else
16529     # PORTME Check for flag to pass linker flags through the system compiler.
16530     case $host_os in
16531     aix*)
16532       lt_prog_compiler_wl='-Wl,'
16533       if test "$host_cpu" = ia64; then
16534         # AIX 5 now supports IA64 processor
16535         lt_prog_compiler_static='-Bstatic'
16536       else
16537         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16538       fi
16539       ;;
16540     darwin*)
16541       # PIC is the default on this platform
16542       # Common symbols not allowed in MH_DYLIB files
16543       case $cc_basename in
16544       xlc*)
16545         lt_prog_compiler_pic='-qnocommon'
16546         lt_prog_compiler_wl='-Wl,'
16547         ;;
16548       esac
16549       ;;
16550
16551     mingw* | cygwin* | pw32* | os2*)
16552       # This hack is so that the source file can tell whether it is being
16553       # built for inclusion in a dll (and should export symbols for example).
16554       lt_prog_compiler_pic='-DDLL_EXPORT'
16555       ;;
16556
16557     hpux9* | hpux10* | hpux11*)
16558       lt_prog_compiler_wl='-Wl,'
16559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16560       # not for PA HP-UX.
16561       case $host_cpu in
16562       hppa*64*|ia64*)
16563         # +Z the default
16564         ;;
16565       *)
16566         lt_prog_compiler_pic='+Z'
16567         ;;
16568       esac
16569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16570       lt_prog_compiler_static='${wl}-a ${wl}archive'
16571       ;;
16572
16573     irix5* | irix6* | nonstopux*)
16574       lt_prog_compiler_wl='-Wl,'
16575       # PIC (with -KPIC) is the default.
16576       lt_prog_compiler_static='-non_shared'
16577       ;;
16578
16579     linux* | k*bsd*-gnu)
16580       case $cc_basename in
16581       icc* | ecc*)
16582         lt_prog_compiler_wl='-Wl,'
16583         lt_prog_compiler_pic='-KPIC'
16584         lt_prog_compiler_static='-static'
16585         ;;
16586       pgcc* | pgf77* | pgf90* | pgf95*)
16587         # Portland Group compilers (*not* the Pentium gcc compiler,
16588         # which looks to be a dead project)
16589         lt_prog_compiler_wl='-Wl,'
16590         lt_prog_compiler_pic='-fpic'
16591         lt_prog_compiler_static='-Bstatic'
16592         ;;
16593       ccc*)
16594         lt_prog_compiler_wl='-Wl,'
16595         # All Alpha code is PIC.
16596         lt_prog_compiler_static='-non_shared'
16597         ;;
16598       *)
16599         case `$CC -V 2>&1 | sed 5q` in
16600         *Sun\ C*)
16601           # Sun C 5.9
16602           lt_prog_compiler_pic='-KPIC'
16603           lt_prog_compiler_static='-Bstatic'
16604           lt_prog_compiler_wl='-Wl,'
16605           ;;
16606         *Sun\ F*)
16607           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16608           lt_prog_compiler_pic='-KPIC'
16609           lt_prog_compiler_static='-Bstatic'
16610           lt_prog_compiler_wl=''
16611           ;;
16612         esac
16613         ;;
16614       esac
16615       ;;
16616
16617     newsos6)
16618       lt_prog_compiler_pic='-KPIC'
16619       lt_prog_compiler_static='-Bstatic'
16620       ;;
16621
16622     *nto* | *qnx*)
16623       # QNX uses GNU C++, but need to define -shared option too, otherwise
16624       # it will coredump.
16625       lt_prog_compiler_pic='-fPIC -shared'
16626       ;;
16627
16628     osf3* | osf4* | osf5*)
16629       lt_prog_compiler_wl='-Wl,'
16630       # All OSF/1 code is PIC.
16631       lt_prog_compiler_static='-non_shared'
16632       ;;
16633
16634     rdos*)
16635       lt_prog_compiler_static='-non_shared'
16636       ;;
16637
16638     solaris*)
16639       lt_prog_compiler_pic='-KPIC'
16640       lt_prog_compiler_static='-Bstatic'
16641       case $cc_basename in
16642       f77* | f90* | f95*)
16643         lt_prog_compiler_wl='-Qoption ld ';;
16644       *)
16645         lt_prog_compiler_wl='-Wl,';;
16646       esac
16647       ;;
16648
16649     sunos4*)
16650       lt_prog_compiler_wl='-Qoption ld '
16651       lt_prog_compiler_pic='-PIC'
16652       lt_prog_compiler_static='-Bstatic'
16653       ;;
16654
16655     sysv4 | sysv4.2uw2* | sysv4.3*)
16656       lt_prog_compiler_wl='-Wl,'
16657       lt_prog_compiler_pic='-KPIC'
16658       lt_prog_compiler_static='-Bstatic'
16659       ;;
16660
16661     sysv4*MP*)
16662       if test -d /usr/nec ;then
16663         lt_prog_compiler_pic='-Kconform_pic'
16664         lt_prog_compiler_static='-Bstatic'
16665       fi
16666       ;;
16667
16668     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16669       lt_prog_compiler_wl='-Wl,'
16670       lt_prog_compiler_pic='-KPIC'
16671       lt_prog_compiler_static='-Bstatic'
16672       ;;
16673
16674     unicos*)
16675       lt_prog_compiler_wl='-Wl,'
16676       lt_prog_compiler_can_build_shared=no
16677       ;;
16678
16679     uts4*)
16680       lt_prog_compiler_pic='-pic'
16681       lt_prog_compiler_static='-Bstatic'
16682       ;;
16683
16684     *)
16685       lt_prog_compiler_can_build_shared=no
16686       ;;
16687     esac
16688   fi
16689
16690 case $host_os in
16691   # For platforms which do not support PIC, -DPIC is meaningless:
16692   *djgpp*)
16693     lt_prog_compiler_pic=
16694     ;;
16695   *)
16696     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16697     ;;
16698 esac
16699 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16700 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16701
16702
16703
16704
16705
16706
16707 #
16708 # Check to make sure the PIC flag actually works.
16709 #
16710 if test -n "$lt_prog_compiler_pic"; then
16711   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16713 if test "${lt_prog_compiler_pic_works+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716   lt_prog_compiler_pic_works=no
16717    ac_outfile=conftest.$ac_objext
16718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16720    # Insert the option either (1) after the last *FLAGS variable, or
16721    # (2) before a word containing "conftest.", or (3) at the end.
16722    # Note that $ac_compile itself does not contain backslashes and begins
16723    # with a dollar sign (not a hyphen), so the echo should work correctly.
16724    # The option is referenced via a variable to avoid confusing sed.
16725    lt_compile=`echo "$ac_compile" | $SED \
16726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728    -e 's:$: $lt_compiler_flag:'`
16729    (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730    (eval "$lt_compile" 2>conftest.err)
16731    ac_status=$?
16732    cat conftest.err >&5
16733    echo "$as_me:16733: \$? = $ac_status" >&5
16734    if (exit $ac_status) && test -s "$ac_outfile"; then
16735      # The compiler can only warn and ignore the option if not recognized
16736      # So say no if there are warnings other than the usual output.
16737      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16738      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16740        lt_prog_compiler_pic_works=yes
16741      fi
16742    fi
16743    $RM conftest*
16744
16745 fi
16746 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16747 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16748
16749 if test x"$lt_prog_compiler_pic_works" = xyes; then
16750     case $lt_prog_compiler_pic in
16751      "" | " "*) ;;
16752      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16753      esac
16754 else
16755     lt_prog_compiler_pic=
16756      lt_prog_compiler_can_build_shared=no
16757 fi
16758
16759 fi
16760
16761
16762
16763
16764
16765
16766 #
16767 # Check to make sure the static flag actually works.
16768 #
16769 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16770 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16771 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16772 if test "${lt_prog_compiler_static_works+set}" = set; then
16773   echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775   lt_prog_compiler_static_works=no
16776    save_LDFLAGS="$LDFLAGS"
16777    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16778    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16779    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16780      # The linker can only warn and ignore the option if not recognized
16781      # So say no if there are warnings
16782      if test -s conftest.err; then
16783        # Append any errors to the config.log.
16784        cat conftest.err 1>&5
16785        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16786        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16787        if diff conftest.exp conftest.er2 >/dev/null; then
16788          lt_prog_compiler_static_works=yes
16789        fi
16790      else
16791        lt_prog_compiler_static_works=yes
16792      fi
16793    fi
16794    $RM conftest*
16795    LDFLAGS="$save_LDFLAGS"
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16799 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16800
16801 if test x"$lt_prog_compiler_static_works" = xyes; then
16802     :
16803 else
16804     lt_prog_compiler_static=
16805 fi
16806
16807
16808
16809
16810
16811
16812
16813   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16815 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   lt_cv_prog_compiler_c_o=no
16819    $RM -r conftest 2>/dev/null
16820    mkdir conftest
16821    cd conftest
16822    mkdir out
16823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16824
16825    lt_compiler_flag="-o out/conftest2.$ac_objext"
16826    # Insert the option either (1) after the last *FLAGS variable, or
16827    # (2) before a word containing "conftest.", or (3) at the end.
16828    # Note that $ac_compile itself does not contain backslashes and begins
16829    # with a dollar sign (not a hyphen), so the echo should work correctly.
16830    lt_compile=`echo "$ac_compile" | $SED \
16831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16833    -e 's:$: $lt_compiler_flag:'`
16834    (eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
16835    (eval "$lt_compile" 2>out/conftest.err)
16836    ac_status=$?
16837    cat out/conftest.err >&5
16838    echo "$as_me:16838: \$? = $ac_status" >&5
16839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16840    then
16841      # The compiler can only warn and ignore the option if not recognized
16842      # So say no if there are warnings
16843      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16846        lt_cv_prog_compiler_c_o=yes
16847      fi
16848    fi
16849    chmod u+w . 2>&5
16850    $RM conftest*
16851    # SGI C++ compiler will create directory out/ii_files/ for
16852    # template instantiation
16853    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16854    $RM out/* && rmdir out
16855    cd ..
16856    $RM -r conftest
16857    $RM conftest*
16858
16859 fi
16860 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16861 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16862
16863
16864
16865
16866
16867
16868   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16869 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16870 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873   lt_cv_prog_compiler_c_o=no
16874    $RM -r conftest 2>/dev/null
16875    mkdir conftest
16876    cd conftest
16877    mkdir out
16878    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16879
16880    lt_compiler_flag="-o out/conftest2.$ac_objext"
16881    # Insert the option either (1) after the last *FLAGS variable, or
16882    # (2) before a word containing "conftest.", or (3) at the end.
16883    # Note that $ac_compile itself does not contain backslashes and begins
16884    # with a dollar sign (not a hyphen), so the echo should work correctly.
16885    lt_compile=`echo "$ac_compile" | $SED \
16886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16888    -e 's:$: $lt_compiler_flag:'`
16889    (eval echo "\"\$as_me:16889: $lt_compile\"" >&5)
16890    (eval "$lt_compile" 2>out/conftest.err)
16891    ac_status=$?
16892    cat out/conftest.err >&5
16893    echo "$as_me:16893: \$? = $ac_status" >&5
16894    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16895    then
16896      # The compiler can only warn and ignore the option if not recognized
16897      # So say no if there are warnings
16898      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16899      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16900      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16901        lt_cv_prog_compiler_c_o=yes
16902      fi
16903    fi
16904    chmod u+w . 2>&5
16905    $RM conftest*
16906    # SGI C++ compiler will create directory out/ii_files/ for
16907    # template instantiation
16908    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16909    $RM out/* && rmdir out
16910    cd ..
16911    $RM -r conftest
16912    $RM conftest*
16913
16914 fi
16915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16917
16918
16919
16920
16921 hard_links="nottested"
16922 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16923   # do not overwrite the value of need_locks provided by the user
16924   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16926   hard_links=yes
16927   $RM conftest*
16928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16929   touch conftest.a
16930   ln conftest.a conftest.b 2>&5 || hard_links=no
16931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16932   echo "$as_me:$LINENO: result: $hard_links" >&5
16933 echo "${ECHO_T}$hard_links" >&6
16934   if test "$hard_links" = no; then
16935     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16937     need_locks=warn
16938   fi
16939 else
16940   need_locks=no
16941 fi
16942
16943
16944
16945
16946
16947
16948   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16950
16951   runpath_var=
16952   allow_undefined_flag=
16953   always_export_symbols=no
16954   archive_cmds=
16955   archive_expsym_cmds=
16956   compiler_needs_object=no
16957   enable_shared_with_static_runtimes=no
16958   export_dynamic_flag_spec=
16959   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16960   hardcode_automatic=no
16961   hardcode_direct=no
16962   hardcode_direct_absolute=no
16963   hardcode_libdir_flag_spec=
16964   hardcode_libdir_flag_spec_ld=
16965   hardcode_libdir_separator=
16966   hardcode_minus_L=no
16967   hardcode_shlibpath_var=unsupported
16968   inherit_rpath=no
16969   link_all_deplibs=unknown
16970   module_cmds=
16971   module_expsym_cmds=
16972   old_archive_from_new_cmds=
16973   old_archive_from_expsyms_cmds=
16974   thread_safe_flag_spec=
16975   whole_archive_flag_spec=
16976   # include_expsyms should be a list of space-separated symbols to be *always*
16977   # included in the symbol list
16978   include_expsyms=
16979   # exclude_expsyms can be an extended regexp of symbols to exclude
16980   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16981   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16982   # as well as any symbol that contains `d'.
16983   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16984   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16985   # platforms (ab)use it in PIC code, but their linkers get confused if
16986   # the symbol is explicitly referenced.  Since portable code cannot
16987   # rely on this symbol name, it's probably fine to never include it in
16988   # preloaded symbol tables.
16989   extract_expsyms_cmds=
16990
16991   case $host_os in
16992   cygwin* | mingw* | pw32*)
16993     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16994     # When not using gcc, we currently assume that we are using
16995     # Microsoft Visual C++.
16996     if test "$GCC" != yes; then
16997       with_gnu_ld=no
16998     fi
16999     ;;
17000   interix*)
17001     # we just hope/assume this is gcc and not c89 (= MSVC++)
17002     with_gnu_ld=yes
17003     ;;
17004   openbsd*)
17005     with_gnu_ld=no
17006     ;;
17007   esac
17008
17009   ld_shlibs=yes
17010   if test "$with_gnu_ld" = yes; then
17011     # If archive_cmds runs LD, not CC, wlarc should be empty
17012     wlarc='${wl}'
17013
17014     # Set some defaults for GNU ld with shared library support. These
17015     # are reset later if shared libraries are not supported. Putting them
17016     # here allows them to be overridden if necessary.
17017     runpath_var=LD_RUN_PATH
17018     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17019     export_dynamic_flag_spec='${wl}--export-dynamic'
17020     # ancient GNU ld didn't support --whole-archive et. al.
17021     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17022       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17023     else
17024       whole_archive_flag_spec=
17025     fi
17026     supports_anon_versioning=no
17027     case `$LD -v 2>&1` in
17028       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17029       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17030       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17031       *\ 2.11.*) ;; # other 2.11 versions
17032       *) supports_anon_versioning=yes ;;
17033     esac
17034
17035     # See if GNU ld supports shared libraries.
17036     case $host_os in
17037     aix[3-9]*)
17038       # On AIX/PPC, the GNU linker is very broken
17039       if test "$host_cpu" != ia64; then
17040         ld_shlibs=no
17041         cat <<_LT_EOF 1>&2
17042
17043 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17044 *** to be unable to reliably create shared libraries on AIX.
17045 *** Therefore, libtool is disabling shared libraries support.  If you
17046 *** really care for shared libraries, you may want to modify your PATH
17047 *** so that a non-GNU linker is found, and then restart.
17048
17049 _LT_EOF
17050       fi
17051       ;;
17052
17053     amigaos*)
17054       if test "$host_cpu" = m68k; then
17055         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)'
17056         hardcode_libdir_flag_spec='-L$libdir'
17057         hardcode_minus_L=yes
17058       fi
17059
17060       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17061       # that the semantics of dynamic libraries on AmigaOS, at least up
17062       # to version 4, is to share data among multiple programs linked
17063       # with the same dynamic library.  Since this doesn't match the
17064       # behavior of shared libraries on other platforms, we can't use
17065       # them.
17066       ld_shlibs=no
17067       ;;
17068
17069     beos*)
17070       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17071         allow_undefined_flag=unsupported
17072         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17073         # support --undefined.  This deserves some investigation.  FIXME
17074         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17075       else
17076         ld_shlibs=no
17077       fi
17078       ;;
17079
17080     cygwin* | mingw* | pw32*)
17081       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17082       # as there is no search path for DLLs.
17083       hardcode_libdir_flag_spec='-L$libdir'
17084       allow_undefined_flag=unsupported
17085       always_export_symbols=no
17086       enable_shared_with_static_runtimes=yes
17087       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17088
17089       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17091         # If the export-symbols file already is a .def file (1st line
17092         # is EXPORTS), use it as is; otherwise, prepend...
17093         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17094           cp $export_symbols $output_objdir/$soname.def;
17095         else
17096           echo EXPORTS > $output_objdir/$soname.def;
17097           cat $export_symbols >> $output_objdir/$soname.def;
17098         fi~
17099         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17100       else
17101         ld_shlibs=no
17102       fi
17103       ;;
17104
17105     interix[3-9]*)
17106       hardcode_direct=no
17107       hardcode_shlibpath_var=no
17108       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17109       export_dynamic_flag_spec='${wl}-E'
17110       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17111       # Instead, shared libraries are loaded at an image base (0x10000000 by
17112       # default) and relocated if they conflict, which is a slow very memory
17113       # consuming and fragmenting process.  To avoid this, we pick a random,
17114       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17115       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17116       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17117       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'
17118       ;;
17119
17120     gnu* | linux* | tpf* | k*bsd*-gnu)
17121       tmp_diet=no
17122       if test "$host_os" = linux-dietlibc; then
17123         case $cc_basename in
17124           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17125         esac
17126       fi
17127       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17128          && test "$tmp_diet" = no
17129       then
17130         tmp_addflag=
17131         case $cc_basename,$host_cpu in
17132         pgcc*)                          # Portland Group C compiler
17133           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'
17134           tmp_addflag=' $pic_flag'
17135           ;;
17136         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17137           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'
17138           tmp_addflag=' $pic_flag -Mnomain' ;;
17139         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17140           tmp_addflag=' -i_dynamic' ;;
17141         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17142           tmp_addflag=' -i_dynamic -nofor_main' ;;
17143         ifc* | ifort*)                  # Intel Fortran compiler
17144           tmp_addflag=' -nofor_main' ;;
17145         esac
17146         case `$CC -V 2>&1 | sed 5q` in
17147         *Sun\ C*)                       # Sun C 5.9
17148           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'
17149           compiler_needs_object=yes
17150           tmp_sharedflag='-G' ;;
17151         *Sun\ F*)                       # Sun Fortran 8.3
17152           tmp_sharedflag='-G' ;;
17153         *)
17154           tmp_sharedflag='-shared' ;;
17155         esac
17156         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17157
17158         if test "x$supports_anon_versioning" = xyes; then
17159           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17160             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17161             echo "local: *; };" >> $output_objdir/$libname.ver~
17162             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17163         fi
17164       else
17165         ld_shlibs=no
17166       fi
17167       ;;
17168
17169     netbsd*)
17170       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17171         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17172         wlarc=
17173       else
17174         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17175         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17176       fi
17177       ;;
17178
17179     solaris*)
17180       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17181         ld_shlibs=no
17182         cat <<_LT_EOF 1>&2
17183
17184 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17185 *** create shared libraries on Solaris systems.  Therefore, libtool
17186 *** is disabling shared libraries support.  We urge you to upgrade GNU
17187 *** binutils to release 2.9.1 or newer.  Another option is to modify
17188 *** your PATH or compiler configuration so that the native linker is
17189 *** used, and then restart.
17190
17191 _LT_EOF
17192       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17193         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17194         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17195       else
17196         ld_shlibs=no
17197       fi
17198       ;;
17199
17200     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17201       case `$LD -v 2>&1` in
17202         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17203         ld_shlibs=no
17204         cat <<_LT_EOF 1>&2
17205
17206 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17207 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17208 *** is disabling shared libraries support.  We urge you to upgrade GNU
17209 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17210 *** your PATH or compiler configuration so that the native linker is
17211 *** used, and then restart.
17212
17213 _LT_EOF
17214         ;;
17215         *)
17216           # For security reasons, it is highly recommended that you always
17217           # use absolute paths for naming shared libraries, and exclude the
17218           # DT_RUNPATH tag from executables and libraries.  But doing so
17219           # requires that you compile everything twice, which is a pain.
17220           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17221             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17222             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17223             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17224           else
17225             ld_shlibs=no
17226           fi
17227         ;;
17228       esac
17229       ;;
17230
17231     sunos4*)
17232       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17233       wlarc=
17234       hardcode_direct=yes
17235       hardcode_shlibpath_var=no
17236       ;;
17237
17238     *)
17239       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17240         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17241         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17242       else
17243         ld_shlibs=no
17244       fi
17245       ;;
17246     esac
17247
17248     if test "$ld_shlibs" = no; then
17249       runpath_var=
17250       hardcode_libdir_flag_spec=
17251       export_dynamic_flag_spec=
17252       whole_archive_flag_spec=
17253     fi
17254   else
17255     # PORTME fill in a description of your system's linker (not GNU ld)
17256     case $host_os in
17257     aix3*)
17258       allow_undefined_flag=unsupported
17259       always_export_symbols=yes
17260       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'
17261       # Note: this linker hardcodes the directories in LIBPATH if there
17262       # are no directories specified by -L.
17263       hardcode_minus_L=yes
17264       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17265         # Neither direct hardcoding nor static linking is supported with a
17266         # broken collect2.
17267         hardcode_direct=unsupported
17268       fi
17269       ;;
17270
17271     aix[4-9]*)
17272       if test "$host_cpu" = ia64; then
17273         # On IA64, the linker does run time linking by default, so we don't
17274         # have to do anything special.
17275         aix_use_runtimelinking=no
17276         exp_sym_flag='-Bexport'
17277         no_entry_flag=""
17278       else
17279         # If we're using GNU nm, then we don't want the "-C" option.
17280         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17281         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17282           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'
17283         else
17284           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'
17285         fi
17286         aix_use_runtimelinking=no
17287
17288         # Test if we are trying to use run time linking or normal
17289         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17290         # need to do runtime linking.
17291         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17292           for ld_flag in $LDFLAGS; do
17293           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17294             aix_use_runtimelinking=yes
17295             break
17296           fi
17297           done
17298           ;;
17299         esac
17300
17301         exp_sym_flag='-bexport'
17302         no_entry_flag='-bnoentry'
17303       fi
17304
17305       # When large executables or shared objects are built, AIX ld can
17306       # have problems creating the table of contents.  If linking a library
17307       # or program results in "error TOC overflow" add -mminimal-toc to
17308       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17309       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17310
17311       archive_cmds=''
17312       hardcode_direct=yes
17313       hardcode_direct_absolute=yes
17314       hardcode_libdir_separator=':'
17315       link_all_deplibs=yes
17316       file_list_spec='${wl}-f,'
17317
17318       if test "$GCC" = yes; then
17319         case $host_os in aix4.[012]|aix4.[012].*)
17320         # We only want to do this on AIX 4.2 and lower, the check
17321         # below for broken collect2 doesn't work under 4.3+
17322           collect2name=`${CC} -print-prog-name=collect2`
17323           if test -f "$collect2name" &&
17324            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17325           then
17326           # We have reworked collect2
17327           :
17328           else
17329           # We have old collect2
17330           hardcode_direct=unsupported
17331           # It fails to find uninstalled libraries when the uninstalled
17332           # path is not listed in the libpath.  Setting hardcode_minus_L
17333           # to unsupported forces relinking
17334           hardcode_minus_L=yes
17335           hardcode_libdir_flag_spec='-L$libdir'
17336           hardcode_libdir_separator=
17337           fi
17338           ;;
17339         esac
17340         shared_flag='-shared'
17341         if test "$aix_use_runtimelinking" = yes; then
17342           shared_flag="$shared_flag "'${wl}-G'
17343         fi
17344       else
17345         # not using gcc
17346         if test "$host_cpu" = ia64; then
17347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17348         # chokes on -Wl,-G. The following line is correct:
17349           shared_flag='-G'
17350         else
17351           if test "$aix_use_runtimelinking" = yes; then
17352             shared_flag='${wl}-G'
17353           else
17354             shared_flag='${wl}-bM:SRE'
17355           fi
17356         fi
17357       fi
17358
17359       # It seems that -bexpall does not export symbols beginning with
17360       # underscore (_), so it is better to generate a list of symbols to export.
17361       always_export_symbols=yes
17362       if test "$aix_use_runtimelinking" = yes; then
17363         # Warning - without using the other runtime loading flags (-brtl),
17364         # -berok will link without error, but may produce a broken library.
17365         allow_undefined_flag='-berok'
17366         # Determine the default libpath from the value encoded in an
17367         # empty executable.
17368         cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375 int
17376 main ()
17377 {
17378
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag"
17393                          || test ! -s conftest.err'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; } &&
17399          { ac_try='test -s conftest$ac_exeext'
17400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401   (eval $ac_try) 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); }; }; then
17405
17406 lt_aix_libpath_sed='
17407     /Import File Strings/,/^$/ {
17408         /^0/ {
17409             s/^0  *\(.*\)$/\1/
17410             p
17411         }
17412     }'
17413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17414 # Check for a 64-bit object if we didn't find anything.
17415 if test -z "$aix_libpath"; then
17416   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17417 fi
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 fi
17423 rm -f conftest.err conftest.$ac_objext \
17424       conftest$ac_exeext conftest.$ac_ext
17425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17426
17427         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17428         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"
17429       else
17430         if test "$host_cpu" = ia64; then
17431           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17432           allow_undefined_flag="-z nodefs"
17433           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"
17434         else
17435          # Determine the default libpath from the value encoded in an
17436          # empty executable.
17437          cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h.  */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h.  */
17443
17444 int
17445 main ()
17446 {
17447
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454   (eval $ac_link) 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } &&
17461          { ac_try='test -z "$ac_c_werror_flag"
17462                          || test ! -s conftest.err'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest$ac_exeext'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; }; then
17474
17475 lt_aix_libpath_sed='
17476     /Import File Strings/,/^$/ {
17477         /^0/ {
17478             s/^0  *\(.*\)$/\1/
17479             p
17480         }
17481     }'
17482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17483 # Check for a 64-bit object if we didn't find anything.
17484 if test -z "$aix_libpath"; then
17485   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17486 fi
17487 else
17488   echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17490
17491 fi
17492 rm -f conftest.err conftest.$ac_objext \
17493       conftest$ac_exeext conftest.$ac_ext
17494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17495
17496          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17497           # Warning - without using the other run time loading flags,
17498           # -berok will link without error, but may produce a broken library.
17499           no_undefined_flag=' ${wl}-bernotok'
17500           allow_undefined_flag=' ${wl}-berok'
17501           # Exported symbols can be pulled into shared objects from archives
17502           whole_archive_flag_spec='$convenience'
17503           archive_cmds_need_lc=yes
17504           # This is similar to how AIX traditionally builds its shared libraries.
17505           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'
17506         fi
17507       fi
17508       ;;
17509
17510     amigaos*)
17511       if test "$host_cpu" = m68k; then
17512         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)'
17513         hardcode_libdir_flag_spec='-L$libdir'
17514         hardcode_minus_L=yes
17515       fi
17516       # see comment about different semantics on the GNU ld section
17517       ld_shlibs=no
17518       ;;
17519
17520     bsdi[45]*)
17521       export_dynamic_flag_spec=-rdynamic
17522       ;;
17523
17524     cygwin* | mingw* | pw32*)
17525       # When not using gcc, we currently assume that we are using
17526       # Microsoft Visual C++.
17527       # hardcode_libdir_flag_spec is actually meaningless, as there is
17528       # no search path for DLLs.
17529       hardcode_libdir_flag_spec=' '
17530       allow_undefined_flag=unsupported
17531       # Tell ltmain to make .lib files, not .a files.
17532       libext=lib
17533       # Tell ltmain to make .dll files, not .so files.
17534       shrext_cmds=".dll"
17535       # FIXME: Setting linknames here is a bad hack.
17536       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17537       # The linker will automatically build a .lib file if we build a DLL.
17538       old_archive_from_new_cmds='true'
17539       # FIXME: Should let the user specify the lib program.
17540       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17541       fix_srcfile_path='`cygpath -w "$srcfile"`'
17542       enable_shared_with_static_runtimes=yes
17543       ;;
17544
17545     darwin* | rhapsody*)
17546       case $host_os in
17547       rhapsody* | darwin1.[012])
17548         allow_undefined_flag='${wl}-undefined ${wl}suppress'
17549         ;;
17550       *) # Darwin 1.3 on
17551         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17552         10.[012])
17553           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17554           ;;
17555         10.*)
17556           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17557           ;;
17558         esac
17559         ;;
17560       esac
17561       archive_cmds_need_lc=no
17562       hardcode_direct=no
17563       hardcode_automatic=yes
17564       hardcode_shlibpath_var=unsupported
17565       whole_archive_flag_spec=''
17566       link_all_deplibs=yes
17567       if test "$GCC" = yes ; then
17568         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   lt_cv_apple_cc_single_mod=no
17572         if test -z "${LT_MULTI_MODULE}"; then
17573           # By default we will add the -single_module flag. You can override
17574           # by either setting the environment variable LT_MULTI_MODULE
17575           # non-empty at configure time, or by adding -multi-module to the
17576           # link flags.
17577           echo "int foo(void){return 1;}" > conftest.c
17578           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17579               -dynamiclib ${wl}-single_module conftest.c
17580           if test -f libconftest.dylib; then
17581               lt_cv_apple_cc_single_mod=yes
17582               rm libconftest.dylib
17583           fi
17584           rm conftest.$ac_ext
17585         fi
17586 fi
17587
17588         output_verbose_link_cmd=echo
17589         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17590           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17591           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}'
17592         else
17593           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17594           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}'
17595         fi
17596         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17597         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}'
17598       else
17599         case $cc_basename in
17600         xlc*)
17601           output_verbose_link_cmd=echo
17602           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17603           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17604           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17605           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}'
17606           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}'
17607           ;;
17608         *)
17609           ld_shlibs=no
17610           ;;
17611         esac
17612       fi
17613       ;;
17614
17615     dgux*)
17616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17617       hardcode_libdir_flag_spec='-L$libdir'
17618       hardcode_shlibpath_var=no
17619       ;;
17620
17621     freebsd1*)
17622       ld_shlibs=no
17623       ;;
17624
17625     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17626     # support.  Future versions do this automatically, but an explicit c++rt0.o
17627     # does not break anything, and helps significantly (at the cost of a little
17628     # extra space).
17629     freebsd2.2*)
17630       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17631       hardcode_libdir_flag_spec='-R$libdir'
17632       hardcode_direct=yes
17633       hardcode_shlibpath_var=no
17634       ;;
17635
17636     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17637     freebsd2*)
17638       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17639       hardcode_direct=yes
17640       hardcode_minus_L=yes
17641       hardcode_shlibpath_var=no
17642       ;;
17643
17644     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17645     freebsd* | dragonfly*)
17646       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17647       hardcode_libdir_flag_spec='-R$libdir'
17648       hardcode_direct=yes
17649       hardcode_shlibpath_var=no
17650       ;;
17651
17652     hpux9*)
17653       if test "$GCC" = yes; then
17654         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'
17655       else
17656         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'
17657       fi
17658       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17659       hardcode_libdir_separator=:
17660       hardcode_direct=yes
17661
17662       # hardcode_minus_L: Not really in the search PATH,
17663       # but as the default location of the library.
17664       hardcode_minus_L=yes
17665       export_dynamic_flag_spec='${wl}-E'
17666       ;;
17667
17668     hpux10*)
17669       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17670         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17671       else
17672         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17673       fi
17674       if test "$with_gnu_ld" = no; then
17675         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17676         hardcode_libdir_flag_spec_ld='+b $libdir'
17677         hardcode_libdir_separator=:
17678         hardcode_direct=yes
17679         hardcode_direct_absolute=yes
17680         export_dynamic_flag_spec='${wl}-E'
17681         # hardcode_minus_L: Not really in the search PATH,
17682         # but as the default location of the library.
17683         hardcode_minus_L=yes
17684       fi
17685       ;;
17686
17687     hpux11*)
17688       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17689         case $host_cpu in
17690         hppa*64*)
17691           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17692           ;;
17693         ia64*)
17694           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17695           ;;
17696         *)
17697           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17698           ;;
17699         esac
17700       else
17701         case $host_cpu in
17702         hppa*64*)
17703           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17704           ;;
17705         ia64*)
17706           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17707           ;;
17708         *)
17709           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17710           ;;
17711         esac
17712       fi
17713       if test "$with_gnu_ld" = no; then
17714         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17715         hardcode_libdir_separator=:
17716
17717         case $host_cpu in
17718         hppa*64*|ia64*)
17719           hardcode_direct=no
17720           hardcode_shlibpath_var=no
17721           ;;
17722         *)
17723           hardcode_direct=yes
17724           hardcode_direct_absolute=yes
17725           export_dynamic_flag_spec='${wl}-E'
17726
17727           # hardcode_minus_L: Not really in the search PATH,
17728           # but as the default location of the library.
17729           hardcode_minus_L=yes
17730           ;;
17731         esac
17732       fi
17733       ;;
17734
17735     irix5* | irix6* | nonstopux*)
17736       if test "$GCC" = yes; then
17737         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'
17738         # Try to use the -exported_symbol ld option, if it does not
17739         # work, assume that -exports_file does not work either and
17740         # implicitly export all symbols.
17741         save_LDFLAGS="$LDFLAGS"
17742         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17743         cat >conftest.$ac_ext <<_ACEOF
17744 int foo(void) {}
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748   (eval $ac_link) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   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'
17769
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 fi
17775 rm -f conftest.err conftest.$ac_objext \
17776       conftest$ac_exeext conftest.$ac_ext
17777         LDFLAGS="$save_LDFLAGS"
17778       else
17779         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'
17780         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'
17781       fi
17782       archive_cmds_need_lc='no'
17783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17784       hardcode_libdir_separator=:
17785       inherit_rpath=yes
17786       link_all_deplibs=yes
17787       ;;
17788
17789     netbsd*)
17790       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17791         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17792       else
17793         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17794       fi
17795       hardcode_libdir_flag_spec='-R$libdir'
17796       hardcode_direct=yes
17797       hardcode_shlibpath_var=no
17798       ;;
17799
17800     newsos6)
17801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17802       hardcode_direct=yes
17803       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17804       hardcode_libdir_separator=:
17805       hardcode_shlibpath_var=no
17806       ;;
17807
17808     *nto* | *qnx*)
17809       ;;
17810
17811     openbsd*)
17812       hardcode_direct=yes
17813       hardcode_shlibpath_var=no
17814       hardcode_direct_absolute=yes
17815       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17816         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17817         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17818         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17819         export_dynamic_flag_spec='${wl}-E'
17820       else
17821         case $host_os in
17822         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17823           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17824           hardcode_libdir_flag_spec='-R$libdir'
17825           ;;
17826         *)
17827           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17828           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17829           ;;
17830         esac
17831       fi
17832       ;;
17833
17834     os2*)
17835       hardcode_libdir_flag_spec='-L$libdir'
17836       hardcode_minus_L=yes
17837       allow_undefined_flag=unsupported
17838       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'
17839       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17840       ;;
17841
17842     osf3*)
17843       if test "$GCC" = yes; then
17844         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17845         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'
17846       else
17847         allow_undefined_flag=' -expect_unresolved \*'
17848         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'
17849       fi
17850       archive_cmds_need_lc='no'
17851       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17852       hardcode_libdir_separator=:
17853       ;;
17854
17855     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17856       if test "$GCC" = yes; then
17857         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17858         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'
17859         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17860       else
17861         allow_undefined_flag=' -expect_unresolved \*'
17862         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'
17863         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~
17864         $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'
17865
17866         # Both c and cxx compiler support -rpath directly
17867         hardcode_libdir_flag_spec='-rpath $libdir'
17868       fi
17869       archive_cmds_need_lc='no'
17870       hardcode_libdir_separator=:
17871       ;;
17872
17873     solaris*)
17874       no_undefined_flag=' -z defs'
17875       if test "$GCC" = yes; then
17876         wlarc='${wl}'
17877         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17878         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17879           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17880       else
17881         case `$CC -V 2>&1` in
17882         *"Compilers 5.0"*)
17883           wlarc=''
17884           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17885           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17886           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17887           ;;
17888         *)
17889           wlarc='${wl}'
17890           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17891           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17892           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17893           ;;
17894         esac
17895       fi
17896       hardcode_libdir_flag_spec='-R$libdir'
17897       hardcode_shlibpath_var=no
17898       case $host_os in
17899       solaris2.[0-5] | solaris2.[0-5].*) ;;
17900       *)
17901         # The compiler driver will combine and reorder linker options,
17902         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17903         # but is careful enough not to reorder.
17904         # Supported since Solaris 2.6 (maybe 2.5.1?)
17905         if test "$GCC" = yes; then
17906           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17907         else
17908           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17909         fi
17910         ;;
17911       esac
17912       link_all_deplibs=yes
17913       ;;
17914
17915     sunos4*)
17916       if test "x$host_vendor" = xsequent; then
17917         # Use $CC to link under sequent, because it throws in some extra .o
17918         # files that make .init and .fini sections work.
17919         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17920       else
17921         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17922       fi
17923       hardcode_libdir_flag_spec='-L$libdir'
17924       hardcode_direct=yes
17925       hardcode_minus_L=yes
17926       hardcode_shlibpath_var=no
17927       ;;
17928
17929     sysv4)
17930       case $host_vendor in
17931         sni)
17932           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17933           hardcode_direct=yes # is this really true???
17934         ;;
17935         siemens)
17936           ## LD is ld it makes a PLAMLIB
17937           ## CC just makes a GrossModule.
17938           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17939           reload_cmds='$CC -r -o $output$reload_objs'
17940           hardcode_direct=no
17941         ;;
17942         motorola)
17943           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17944           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17945         ;;
17946       esac
17947       runpath_var='LD_RUN_PATH'
17948       hardcode_shlibpath_var=no
17949       ;;
17950
17951     sysv4.3*)
17952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17953       hardcode_shlibpath_var=no
17954       export_dynamic_flag_spec='-Bexport'
17955       ;;
17956
17957     sysv4*MP*)
17958       if test -d /usr/nec; then
17959         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960         hardcode_shlibpath_var=no
17961         runpath_var=LD_RUN_PATH
17962         hardcode_runpath_var=yes
17963         ld_shlibs=yes
17964       fi
17965       ;;
17966
17967     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17968       no_undefined_flag='${wl}-z,text'
17969       archive_cmds_need_lc=no
17970       hardcode_shlibpath_var=no
17971       runpath_var='LD_RUN_PATH'
17972
17973       if test "$GCC" = yes; then
17974         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976       else
17977         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979       fi
17980       ;;
17981
17982     sysv5* | sco3.2v5* | sco5v6*)
17983       # Note: We can NOT use -z defs as we might desire, because we do not
17984       # link with -lc, and that would cause any symbols used from libc to
17985       # always be unresolved, which means just about no library would
17986       # ever link correctly.  If we're not using GNU ld we use -z text
17987       # though, which does catch some bad symbols but isn't as heavy-handed
17988       # as -z defs.
17989       no_undefined_flag='${wl}-z,text'
17990       allow_undefined_flag='${wl}-z,nodefs'
17991       archive_cmds_need_lc=no
17992       hardcode_shlibpath_var=no
17993       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17994       hardcode_libdir_separator=':'
17995       link_all_deplibs=yes
17996       export_dynamic_flag_spec='${wl}-Bexport'
17997       runpath_var='LD_RUN_PATH'
17998
17999       if test "$GCC" = yes; then
18000         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18001         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18002       else
18003         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005       fi
18006       ;;
18007
18008     uts4*)
18009       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18010       hardcode_libdir_flag_spec='-L$libdir'
18011       hardcode_shlibpath_var=no
18012       ;;
18013
18014     *)
18015       ld_shlibs=no
18016       ;;
18017     esac
18018
18019     if test x$host_vendor = xsni; then
18020       case $host in
18021       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18022         export_dynamic_flag_spec='${wl}-Blargedynsym'
18023         ;;
18024       esac
18025     fi
18026   fi
18027
18028 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18029 echo "${ECHO_T}$ld_shlibs" >&6
18030 test "$ld_shlibs" = no && can_build_shared=no
18031
18032 with_gnu_ld=$with_gnu_ld
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048 #
18049 # Do we need to explicitly link libc?
18050 #
18051 case "x$archive_cmds_need_lc" in
18052 x|xyes)
18053   # Assume -lc should be added
18054   archive_cmds_need_lc=yes
18055
18056   if test "$enable_shared" = yes && test "$GCC" = yes; then
18057     case $archive_cmds in
18058     *'~'*)
18059       # FIXME: we may have to deal with multi-command sequences.
18060       ;;
18061     '$CC '*)
18062       # Test whether the compiler implicitly links with -lc since on some
18063       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18064       # to ld, don't add -lc before -lgcc.
18065       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18066 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18067       $RM conftest*
18068       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18069
18070       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071   (eval $ac_compile) 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } 2>conftest.err; then
18075         soname=conftest
18076         lib=conftest
18077         libobjs=conftest.$ac_objext
18078         deplibs=
18079         wl=$lt_prog_compiler_wl
18080         pic_flag=$lt_prog_compiler_pic
18081         compiler_flags=-v
18082         linker_flags=-v
18083         verstring=
18084         output_objdir=.
18085         libname=conftest
18086         lt_save_allow_undefined_flag=$allow_undefined_flag
18087         allow_undefined_flag=
18088         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18089   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); }
18093         then
18094           archive_cmds_need_lc=no
18095         else
18096           archive_cmds_need_lc=yes
18097         fi
18098         allow_undefined_flag=$lt_save_allow_undefined_flag
18099       else
18100         cat conftest.err 1>&5
18101       fi
18102       $RM conftest*
18103       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18104 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18105       ;;
18106     esac
18107   fi
18108   ;;
18109 esac
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
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   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18269 withGCC=$GCC
18270 if test "$withGCC" = yes; then
18271   case $host_os in
18272     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18273     *) lt_awk_arg="/^libraries:/" ;;
18274   esac
18275   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18276   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18277     # if the path contains ";" then we assume it to be the separator
18278     # otherwise default to the standard path separator (i.e. ":") - it is
18279     # assumed that no part of a normal pathname contains ";" but that should
18280     # okay in the real world where ";" in dirpaths is itself problematic.
18281     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18282   else
18283     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18284   fi
18285   # Ok, now we have the path, separated by spaces, we can step through it
18286   # and add multilib dir if necessary.
18287   lt_tmp_lt_search_path_spec=
18288   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18289   for lt_sys_path in $lt_search_path_spec; do
18290     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18291       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18292     else
18293       test -d "$lt_sys_path" && \
18294         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18295     fi
18296   done
18297   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18298 BEGIN {RS=" "; FS="/|\n";} {
18299   lt_foo="";
18300   lt_count=0;
18301   for (lt_i = NF; lt_i > 0; lt_i--) {
18302     if ($lt_i != "" && $lt_i != ".") {
18303       if ($lt_i == "..") {
18304         lt_count++;
18305       } else {
18306         if (lt_count == 0) {
18307           lt_foo="/" $lt_i lt_foo;
18308         } else {
18309           lt_count--;
18310         }
18311       }
18312     }
18313   }
18314   if (lt_foo != "") { lt_freq[lt_foo]++; }
18315   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18316 }'`
18317   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18318 else
18319   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18320 fi
18321 library_names_spec=
18322 libname_spec='lib$name'
18323 soname_spec=
18324 shrext_cmds=".so"
18325 postinstall_cmds=
18326 postuninstall_cmds=
18327 finish_cmds=
18328 finish_eval=
18329 shlibpath_var=
18330 shlibpath_overrides_runpath=unknown
18331 version_type=none
18332 dynamic_linker="$host_os ld.so"
18333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18334 need_lib_prefix=unknown
18335 hardcode_into_libs=no
18336
18337 # when you set need_version to no, make sure it does not cause -set_version
18338 # flags to be left without arguments
18339 need_version=unknown
18340
18341 case $host_os in
18342 aix3*)
18343   version_type=linux
18344   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18345   shlibpath_var=LIBPATH
18346
18347   # AIX 3 has no versioning support, so we append a major version to the name.
18348   soname_spec='${libname}${release}${shared_ext}$major'
18349   ;;
18350
18351 aix[4-9]*)
18352   version_type=linux
18353   need_lib_prefix=no
18354   need_version=no
18355   hardcode_into_libs=yes
18356   if test "$host_cpu" = ia64; then
18357     # AIX 5 supports IA64
18358     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18359     shlibpath_var=LD_LIBRARY_PATH
18360   else
18361     # With GCC up to 2.95.x, collect2 would create an import file
18362     # for dependence libraries.  The import file would start with
18363     # the line `#! .'.  This would cause the generated library to
18364     # depend on `.', always an invalid library.  This was fixed in
18365     # development snapshots of GCC prior to 3.0.
18366     case $host_os in
18367       aix4 | aix4.[01] | aix4.[01].*)
18368       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18369            echo ' yes '
18370            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18371         :
18372       else
18373         can_build_shared=no
18374       fi
18375       ;;
18376     esac
18377     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18378     # soname into executable. Probably we can add versioning support to
18379     # collect2, so additional links can be useful in future.
18380     if test "$aix_use_runtimelinking" = yes; then
18381       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18382       # instead of lib<name>.a to let people know that these are not
18383       # typical AIX shared libraries.
18384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385     else
18386       # We preserve .a as extension for shared libraries through AIX4.2
18387       # and later when we are not doing run time linking.
18388       library_names_spec='${libname}${release}.a $libname.a'
18389       soname_spec='${libname}${release}${shared_ext}$major'
18390     fi
18391     shlibpath_var=LIBPATH
18392   fi
18393   ;;
18394
18395 amigaos*)
18396   if test "$host_cpu" = m68k; then
18397     library_names_spec='$libname.ixlibrary $libname.a'
18398     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18399     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'
18400   else
18401     dynamic_linker=no
18402   fi
18403   ;;
18404
18405 beos*)
18406   library_names_spec='${libname}${shared_ext}'
18407   dynamic_linker="$host_os ld.so"
18408   shlibpath_var=LIBRARY_PATH
18409   ;;
18410
18411 bsdi[45]*)
18412   version_type=linux
18413   need_version=no
18414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415   soname_spec='${libname}${release}${shared_ext}$major'
18416   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18417   shlibpath_var=LD_LIBRARY_PATH
18418   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18419   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18420   # the default ld.so.conf also contains /usr/contrib/lib and
18421   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18422   # libtool to hard-code these into programs
18423   ;;
18424
18425 cygwin* | mingw* | pw32*)
18426   version_type=windows
18427   shrext_cmds=".dll"
18428   need_version=no
18429   need_lib_prefix=no
18430
18431   case $withGCC,$host_os in
18432   yes,cygwin* | yes,mingw* | yes,pw32*)
18433     library_names_spec='$libname.dll.a'
18434     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18435     postinstall_cmds='base_file=`basename \${file}`~
18436       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18437       dldir=$destdir/`dirname \$dlpath`~
18438       test -d \$dldir || mkdir -p \$dldir~
18439       $install_prog $dir/$dlname \$dldir/$dlname~
18440       chmod a+x \$dldir/$dlname~
18441       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18442         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18443       fi'
18444     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445       dlpath=$dir/\$dldll~
18446        $RM \$dlpath'
18447     shlibpath_overrides_runpath=yes
18448
18449     case $host_os in
18450     cygwin*)
18451       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18452       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18453       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18454       ;;
18455     mingw*)
18456       # MinGW DLLs use traditional 'lib' prefix
18457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18459       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18460         # It is most probably a Windows format PATH printed by
18461         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18462         # path with ; separators, and with drive letters. We can handle the
18463         # drive letters (cygwin fileutils understands them), so leave them,
18464         # especially as we might pass files found there to a mingw objdump,
18465         # which wouldn't understand a cygwinified path. Ahh.
18466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18467       else
18468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18469       fi
18470       ;;
18471     pw32*)
18472       # pw32 DLLs use 'pw' prefix rather than 'lib'
18473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18474       ;;
18475     esac
18476     ;;
18477
18478   *)
18479     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18480     ;;
18481   esac
18482   dynamic_linker='Win32 ld.exe'
18483   # FIXME: first we should search . and the directory the executable is in
18484   shlibpath_var=PATH
18485   ;;
18486
18487 darwin* | rhapsody*)
18488   dynamic_linker="$host_os dyld"
18489   version_type=darwin
18490   need_lib_prefix=no
18491   need_version=no
18492   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18493   soname_spec='${libname}${release}${major}$shared_ext'
18494   shlibpath_overrides_runpath=yes
18495   shlibpath_var=DYLD_LIBRARY_PATH
18496   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18497
18498   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18499   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18500   ;;
18501
18502 dgux*)
18503   version_type=linux
18504   need_lib_prefix=no
18505   need_version=no
18506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18507   soname_spec='${libname}${release}${shared_ext}$major'
18508   shlibpath_var=LD_LIBRARY_PATH
18509   ;;
18510
18511 freebsd1*)
18512   dynamic_linker=no
18513   ;;
18514
18515 freebsd* | dragonfly*)
18516   # DragonFly does not have aout.  When/if they implement a new
18517   # versioning mechanism, adjust this.
18518   if test -x /usr/bin/objformat; then
18519     objformat=`/usr/bin/objformat`
18520   else
18521     case $host_os in
18522     freebsd[123]*) objformat=aout ;;
18523     *) objformat=elf ;;
18524     esac
18525   fi
18526   version_type=freebsd-$objformat
18527   case $version_type in
18528     freebsd-elf*)
18529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18530       need_version=no
18531       need_lib_prefix=no
18532       ;;
18533     freebsd-*)
18534       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18535       need_version=yes
18536       ;;
18537   esac
18538   shlibpath_var=LD_LIBRARY_PATH
18539   case $host_os in
18540   freebsd2*)
18541     shlibpath_overrides_runpath=yes
18542     ;;
18543   freebsd3.[01]* | freebsdelf3.[01]*)
18544     shlibpath_overrides_runpath=yes
18545     hardcode_into_libs=yes
18546     ;;
18547   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18548   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18549     shlibpath_overrides_runpath=no
18550     hardcode_into_libs=yes
18551     ;;
18552   *) # from 4.6 on, and DragonFly
18553     shlibpath_overrides_runpath=yes
18554     hardcode_into_libs=yes
18555     ;;
18556   esac
18557   ;;
18558
18559 gnu*)
18560   version_type=linux
18561   need_lib_prefix=no
18562   need_version=no
18563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18564   soname_spec='${libname}${release}${shared_ext}$major'
18565   shlibpath_var=LD_LIBRARY_PATH
18566   hardcode_into_libs=yes
18567   ;;
18568
18569 hpux9* | hpux10* | hpux11*)
18570   # Give a soname corresponding to the major version so that dld.sl refuses to
18571   # link against other versions.
18572   version_type=sunos
18573   need_lib_prefix=no
18574   need_version=no
18575   case $host_cpu in
18576   ia64*)
18577     shrext_cmds='.so'
18578     hardcode_into_libs=yes
18579     dynamic_linker="$host_os dld.so"
18580     shlibpath_var=LD_LIBRARY_PATH
18581     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583     soname_spec='${libname}${release}${shared_ext}$major'
18584     if test "X$HPUX_IA64_MODE" = X32; then
18585       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18586     else
18587       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18588     fi
18589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18590     ;;
18591   hppa*64*)
18592     shrext_cmds='.sl'
18593     hardcode_into_libs=yes
18594     dynamic_linker="$host_os dld.sl"
18595     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18598     soname_spec='${libname}${release}${shared_ext}$major'
18599     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18600     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18601     ;;
18602   *)
18603     shrext_cmds='.sl'
18604     dynamic_linker="$host_os dld.sl"
18605     shlibpath_var=SHLIB_PATH
18606     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608     soname_spec='${libname}${release}${shared_ext}$major'
18609     ;;
18610   esac
18611   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18612   postinstall_cmds='chmod 555 $lib'
18613   ;;
18614
18615 interix[3-9]*)
18616   version_type=linux
18617   need_lib_prefix=no
18618   need_version=no
18619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18620   soname_spec='${libname}${release}${shared_ext}$major'
18621   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=no
18624   hardcode_into_libs=yes
18625   ;;
18626
18627 irix5* | irix6* | nonstopux*)
18628   case $host_os in
18629     nonstopux*) version_type=nonstopux ;;
18630     *)
18631         if test "$lt_cv_prog_gnu_ld" = yes; then
18632                 version_type=linux
18633         else
18634                 version_type=irix
18635         fi ;;
18636   esac
18637   need_lib_prefix=no
18638   need_version=no
18639   soname_spec='${libname}${release}${shared_ext}$major'
18640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18641   case $host_os in
18642   irix5* | nonstopux*)
18643     libsuff= shlibsuff=
18644     ;;
18645   *)
18646     case $LD in # libtool.m4 will add one of these switches to LD
18647     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18648       libsuff= shlibsuff= libmagic=32-bit;;
18649     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18650       libsuff=32 shlibsuff=N32 libmagic=N32;;
18651     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18652       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18653     *) libsuff= shlibsuff= libmagic=never-match;;
18654     esac
18655     ;;
18656   esac
18657   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18658   shlibpath_overrides_runpath=no
18659   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18660   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18661   hardcode_into_libs=yes
18662   ;;
18663
18664 # No shared lib support for Linux oldld, aout, or coff.
18665 linux*oldld* | linux*aout* | linux*coff*)
18666   dynamic_linker=no
18667   ;;
18668
18669 # This must be Linux ELF.
18670 linux* | k*bsd*-gnu)
18671   version_type=linux
18672   need_lib_prefix=no
18673   need_version=no
18674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18677   shlibpath_var=LD_LIBRARY_PATH
18678   shlibpath_overrides_runpath=no
18679   # Some binutils ld are patched to set DT_RUNPATH
18680   save_LDFLAGS=$LDFLAGS
18681   save_libdir=$libdir
18682   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18683        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18684   cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h.  */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h.  */
18690
18691 int
18692 main ()
18693 {
18694
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701   (eval $ac_link) 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } &&
18708          { ac_try='test -z "$ac_c_werror_flag"
18709                          || test ! -s conftest.err'
18710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711   (eval $ac_try) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; } &&
18715          { ac_try='test -s conftest$ac_exeext'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18722   shlibpath_overrides_runpath=yes
18723 fi
18724
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729 fi
18730 rm -f conftest.err conftest.$ac_objext \
18731       conftest$ac_exeext conftest.$ac_ext
18732   LDFLAGS=$save_LDFLAGS
18733   libdir=$save_libdir
18734
18735   # This implies no fast_install, which is unacceptable.
18736   # Some rework will be needed to allow for fast_install
18737   # before this can be enabled.
18738   hardcode_into_libs=yes
18739
18740   # Append ld.so.conf contents to the search path
18741   if test -f /etc/ld.so.conf; then
18742     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' ' '`
18743     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18744   fi
18745
18746   # We used to test for /lib/ld.so.1 and disable shared libraries on
18747   # powerpc, because MkLinux only supported shared libraries with the
18748   # GNU dynamic linker.  Since this was broken with cross compilers,
18749   # most powerpc-linux boxes support dynamic linking these days and
18750   # people can always --disable-shared, the test was removed, and we
18751   # assume the GNU/Linux dynamic linker is in use.
18752   dynamic_linker='GNU/Linux ld.so'
18753   ;;
18754
18755 netbsd*)
18756   version_type=sunos
18757   need_lib_prefix=no
18758   need_version=no
18759   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762     dynamic_linker='NetBSD (a.out) ld.so'
18763   else
18764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18765     soname_spec='${libname}${release}${shared_ext}$major'
18766     dynamic_linker='NetBSD ld.elf_so'
18767   fi
18768   shlibpath_var=LD_LIBRARY_PATH
18769   shlibpath_overrides_runpath=yes
18770   hardcode_into_libs=yes
18771   ;;
18772
18773 newsos6)
18774   version_type=linux
18775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776   shlibpath_var=LD_LIBRARY_PATH
18777   shlibpath_overrides_runpath=yes
18778   ;;
18779
18780 *nto* | *qnx*)
18781   version_type=qnx
18782   need_lib_prefix=no
18783   need_version=no
18784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785   soname_spec='${libname}${release}${shared_ext}$major'
18786   shlibpath_var=LD_LIBRARY_PATH
18787   shlibpath_overrides_runpath=no
18788   hardcode_into_libs=yes
18789   dynamic_linker='ldqnx.so'
18790   ;;
18791
18792 openbsd*)
18793   version_type=sunos
18794   sys_lib_dlsearch_path_spec="/usr/lib"
18795   need_lib_prefix=no
18796   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18797   case $host_os in
18798     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18799     *)                          need_version=no  ;;
18800   esac
18801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18803   shlibpath_var=LD_LIBRARY_PATH
18804   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18805     case $host_os in
18806       openbsd2.[89] | openbsd2.[89].*)
18807         shlibpath_overrides_runpath=no
18808         ;;
18809       *)
18810         shlibpath_overrides_runpath=yes
18811         ;;
18812       esac
18813   else
18814     shlibpath_overrides_runpath=yes
18815   fi
18816   ;;
18817
18818 os2*)
18819   libname_spec='$name'
18820   shrext_cmds=".dll"
18821   need_lib_prefix=no
18822   library_names_spec='$libname${shared_ext} $libname.a'
18823   dynamic_linker='OS/2 ld.exe'
18824   shlibpath_var=LIBPATH
18825   ;;
18826
18827 osf3* | osf4* | osf5*)
18828   version_type=osf
18829   need_lib_prefix=no
18830   need_version=no
18831   soname_spec='${libname}${release}${shared_ext}$major'
18832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18833   shlibpath_var=LD_LIBRARY_PATH
18834   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18835   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18836   ;;
18837
18838 rdos*)
18839   dynamic_linker=no
18840   ;;
18841
18842 solaris*)
18843   version_type=linux
18844   need_lib_prefix=no
18845   need_version=no
18846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847   soname_spec='${libname}${release}${shared_ext}$major'
18848   shlibpath_var=LD_LIBRARY_PATH
18849   shlibpath_overrides_runpath=yes
18850   hardcode_into_libs=yes
18851   # ldd complains unless libraries are executable
18852   postinstall_cmds='chmod +x $lib'
18853   ;;
18854
18855 sunos4*)
18856   version_type=sunos
18857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859   shlibpath_var=LD_LIBRARY_PATH
18860   shlibpath_overrides_runpath=yes
18861   if test "$with_gnu_ld" = yes; then
18862     need_lib_prefix=no
18863   fi
18864   need_version=yes
18865   ;;
18866
18867 sysv4 | sysv4.3*)
18868   version_type=linux
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870   soname_spec='${libname}${release}${shared_ext}$major'
18871   shlibpath_var=LD_LIBRARY_PATH
18872   case $host_vendor in
18873     sni)
18874       shlibpath_overrides_runpath=no
18875       need_lib_prefix=no
18876       runpath_var=LD_RUN_PATH
18877       ;;
18878     siemens)
18879       need_lib_prefix=no
18880       ;;
18881     motorola)
18882       need_lib_prefix=no
18883       need_version=no
18884       shlibpath_overrides_runpath=no
18885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18886       ;;
18887   esac
18888   ;;
18889
18890 sysv4*MP*)
18891   if test -d /usr/nec ;then
18892     version_type=linux
18893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18894     soname_spec='$libname${shared_ext}.$major'
18895     shlibpath_var=LD_LIBRARY_PATH
18896   fi
18897   ;;
18898
18899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18900   version_type=freebsd-elf
18901   need_lib_prefix=no
18902   need_version=no
18903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18904   soname_spec='${libname}${release}${shared_ext}$major'
18905   shlibpath_var=LD_LIBRARY_PATH
18906   shlibpath_overrides_runpath=yes
18907   hardcode_into_libs=yes
18908   if test "$with_gnu_ld" = yes; then
18909     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18910   else
18911     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18912     case $host_os in
18913       sco3.2v5*)
18914         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18915         ;;
18916     esac
18917   fi
18918   sys_lib_dlsearch_path_spec='/usr/lib'
18919   ;;
18920
18921 tpf*)
18922   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18923   version_type=linux
18924   need_lib_prefix=no
18925   need_version=no
18926   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927   shlibpath_var=LD_LIBRARY_PATH
18928   shlibpath_overrides_runpath=no
18929   hardcode_into_libs=yes
18930   ;;
18931
18932 uts4*)
18933   version_type=linux
18934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18935   soname_spec='${libname}${release}${shared_ext}$major'
18936   shlibpath_var=LD_LIBRARY_PATH
18937   ;;
18938
18939 *)
18940   dynamic_linker=no
18941   ;;
18942 esac
18943 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18944 echo "${ECHO_T}$dynamic_linker" >&6
18945 test "$dynamic_linker" = no && can_build_shared=no
18946
18947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18948 if test "$GCC" = yes; then
18949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18950 fi
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
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   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19040 hardcode_action=
19041 if test -n "$hardcode_libdir_flag_spec" ||
19042    test -n "$runpath_var" ||
19043    test "X$hardcode_automatic" = "Xyes" ; then
19044
19045   # We can hardcode non-existent directories.
19046   if test "$hardcode_direct" != no &&
19047      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19048      # have to relink, otherwise we might link with an installed library
19049      # when we should be linking with a yet-to-be-installed one
19050      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19051      test "$hardcode_minus_L" != no; then
19052     # Linking always hardcodes the temporary library directory.
19053     hardcode_action=relink
19054   else
19055     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19056     hardcode_action=immediate
19057   fi
19058 else
19059   # We cannot hardcode anything, or else we can only hardcode existing
19060   # directories.
19061   hardcode_action=unsupported
19062 fi
19063 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19064 echo "${ECHO_T}$hardcode_action" >&6
19065
19066 if test "$hardcode_action" = relink ||
19067    test "$inherit_rpath" = yes; then
19068   # Fast installation is not supported
19069   enable_fast_install=no
19070 elif test "$shlibpath_overrides_runpath" = yes ||
19071      test "$enable_shared" = no; then
19072   # Fast installation is not necessary
19073   enable_fast_install=needless
19074 fi
19075
19076
19077
19078
19079
19080
19081   if test "x$enable_dlopen" != xyes; then
19082   enable_dlopen=unknown
19083   enable_dlopen_self=unknown
19084   enable_dlopen_self_static=unknown
19085 else
19086   lt_cv_dlopen=no
19087   lt_cv_dlopen_libs=
19088
19089   case $host_os in
19090   beos*)
19091     lt_cv_dlopen="load_add_on"
19092     lt_cv_dlopen_libs=
19093     lt_cv_dlopen_self=yes
19094     ;;
19095
19096   mingw* | pw32*)
19097     lt_cv_dlopen="LoadLibrary"
19098     lt_cv_dlopen_libs=
19099     ;;
19100
19101   cygwin*)
19102     lt_cv_dlopen="dlopen"
19103     lt_cv_dlopen_libs=
19104     ;;
19105
19106   darwin*)
19107   # if libdl is installed we need to link against it
19108     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19111   echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113   ac_check_lib_save_LIBS=$LIBS
19114 LIBS="-ldl  $LIBS"
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121
19122 /* Override any gcc2 internal prototype to avoid an error.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 /* We use char because int might match the return type of a gcc2
19127    builtin and then its argument prototype would still apply.  */
19128 char dlopen ();
19129 int
19130 main ()
19131 {
19132 dlopen ();
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139   (eval $ac_link) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } &&
19146          { ac_try='test -z "$ac_c_werror_flag"
19147                          || test ! -s conftest.err'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; } &&
19153          { ac_try='test -s conftest$ac_exeext'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; }; then
19159   ac_cv_lib_dl_dlopen=yes
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 ac_cv_lib_dl_dlopen=no
19165 fi
19166 rm -f conftest.err conftest.$ac_objext \
19167       conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19169 fi
19170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19172 if test $ac_cv_lib_dl_dlopen = yes; then
19173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19174 else
19175
19176     lt_cv_dlopen="dyld"
19177     lt_cv_dlopen_libs=
19178     lt_cv_dlopen_self=yes
19179
19180 fi
19181
19182     ;;
19183
19184   *)
19185     echo "$as_me:$LINENO: checking for shl_load" >&5
19186 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19187 if test "${ac_cv_func_shl_load+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19198 #define shl_load innocuous_shl_load
19199
19200 /* System header to define __stub macros and hopefully few prototypes,
19201     which can conflict with char shl_load (); below.
19202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19203     <limits.h> exists even on freestanding compilers.  */
19204
19205 #ifdef __STDC__
19206 # include <limits.h>
19207 #else
19208 # include <assert.h>
19209 #endif
19210
19211 #undef shl_load
19212
19213 /* Override any gcc2 internal prototype to avoid an error.  */
19214 #ifdef __cplusplus
19215 extern "C"
19216 {
19217 #endif
19218 /* We use char because int might match the return type of a gcc2
19219    builtin and then its argument prototype would still apply.  */
19220 char shl_load ();
19221 /* The GNU C library defines this for functions which it implements
19222     to always fail with ENOSYS.  Some functions are actually named
19223     something starting with __ and the normal name is an alias.  */
19224 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19225 choke me
19226 #else
19227 char (*f) () = shl_load;
19228 #endif
19229 #ifdef __cplusplus
19230 }
19231 #endif
19232
19233 int
19234 main ()
19235 {
19236 return f != shl_load;
19237   ;
19238   return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243   (eval $ac_link) 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -z "$ac_c_werror_flag"
19251                          || test ! -s conftest.err'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; } &&
19257          { ac_try='test -s conftest$ac_exeext'
19258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259   (eval $ac_try) 2>&5
19260   ac_status=$?
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); }; }; then
19263   ac_cv_func_shl_load=yes
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 ac_cv_func_shl_load=no
19269 fi
19270 rm -f conftest.err conftest.$ac_objext \
19271       conftest$ac_exeext conftest.$ac_ext
19272 fi
19273 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19275 if test $ac_cv_func_shl_load = yes; then
19276   lt_cv_dlopen="shl_load"
19277 else
19278   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19279 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19280 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   ac_check_lib_save_LIBS=$LIBS
19284 LIBS="-ldld  $LIBS"
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h.  */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h.  */
19291
19292 /* Override any gcc2 internal prototype to avoid an error.  */
19293 #ifdef __cplusplus
19294 extern "C"
19295 #endif
19296 /* We use char because int might match the return type of a gcc2
19297    builtin and then its argument prototype would still apply.  */
19298 char shl_load ();
19299 int
19300 main ()
19301 {
19302 shl_load ();
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext conftest$ac_exeext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309   (eval $ac_link) 2>conftest.er1
19310   ac_status=$?
19311   grep -v '^ *+' conftest.er1 >conftest.err
19312   rm -f conftest.er1
19313   cat conftest.err >&5
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } &&
19316          { ac_try='test -z "$ac_c_werror_flag"
19317                          || test ! -s conftest.err'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest$ac_exeext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_lib_dld_shl_load=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_cv_lib_dld_shl_load=no
19335 fi
19336 rm -f conftest.err conftest.$ac_objext \
19337       conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19339 fi
19340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19341 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19342 if test $ac_cv_lib_dld_shl_load = yes; then
19343   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19344 else
19345   echo "$as_me:$LINENO: checking for dlopen" >&5
19346 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19347 if test "${ac_cv_func_dlopen+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19358 #define dlopen innocuous_dlopen
19359
19360 /* System header to define __stub macros and hopefully few prototypes,
19361     which can conflict with char dlopen (); below.
19362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19363     <limits.h> exists even on freestanding compilers.  */
19364
19365 #ifdef __STDC__
19366 # include <limits.h>
19367 #else
19368 # include <assert.h>
19369 #endif
19370
19371 #undef dlopen
19372
19373 /* Override any gcc2 internal prototype to avoid an error.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 {
19377 #endif
19378 /* We use char because int might match the return type of a gcc2
19379    builtin and then its argument prototype would still apply.  */
19380 char dlopen ();
19381 /* The GNU C library defines this for functions which it implements
19382     to always fail with ENOSYS.  Some functions are actually named
19383     something starting with __ and the normal name is an alias.  */
19384 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19385 choke me
19386 #else
19387 char (*f) () = dlopen;
19388 #endif
19389 #ifdef __cplusplus
19390 }
19391 #endif
19392
19393 int
19394 main ()
19395 {
19396 return f != dlopen;
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19403   (eval $ac_link) 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } &&
19410          { ac_try='test -z "$ac_c_werror_flag"
19411                          || test ! -s conftest.err'
19412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413   (eval $ac_try) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest$ac_exeext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_cv_func_dlopen=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_cv_func_dlopen=no
19429 fi
19430 rm -f conftest.err conftest.$ac_objext \
19431       conftest$ac_exeext conftest.$ac_ext
19432 fi
19433 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19434 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19435 if test $ac_cv_func_dlopen = yes; then
19436   lt_cv_dlopen="dlopen"
19437 else
19438   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   ac_check_lib_save_LIBS=$LIBS
19444 LIBS="-ldl  $LIBS"
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451
19452 /* Override any gcc2 internal prototype to avoid an error.  */
19453 #ifdef __cplusplus
19454 extern "C"
19455 #endif
19456 /* We use char because int might match the return type of a gcc2
19457    builtin and then its argument prototype would still apply.  */
19458 char dlopen ();
19459 int
19460 main ()
19461 {
19462 dlopen ();
19463   ;
19464   return 0;
19465 }
19466 _ACEOF
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469   (eval $ac_link) 2>conftest.er1
19470   ac_status=$?
19471   grep -v '^ *+' conftest.er1 >conftest.err
19472   rm -f conftest.er1
19473   cat conftest.err >&5
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); } &&
19476          { ac_try='test -z "$ac_c_werror_flag"
19477                          || test ! -s conftest.err'
19478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479   (eval $ac_try) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; } &&
19483          { ac_try='test -s conftest$ac_exeext'
19484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485   (eval $ac_try) 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); }; }; then
19489   ac_cv_lib_dl_dlopen=yes
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 ac_cv_lib_dl_dlopen=no
19495 fi
19496 rm -f conftest.err conftest.$ac_objext \
19497       conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19499 fi
19500 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19502 if test $ac_cv_lib_dl_dlopen = yes; then
19503   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19504 else
19505   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lsvld  $LIBS"
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518
19519 /* Override any gcc2 internal prototype to avoid an error.  */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 /* We use char because int might match the return type of a gcc2
19524    builtin and then its argument prototype would still apply.  */
19525 char dlopen ();
19526 int
19527 main ()
19528 {
19529 dlopen ();
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19536   (eval $ac_link) 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_c_werror_flag"
19544                          || test ! -s conftest.err'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; } &&
19550          { ac_try='test -s conftest$ac_exeext'
19551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552   (eval $ac_try) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; }; then
19556   ac_cv_lib_svld_dlopen=yes
19557 else
19558   echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_cv_lib_svld_dlopen=no
19562 fi
19563 rm -f conftest.err conftest.$ac_objext \
19564       conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19566 fi
19567 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19569 if test $ac_cv_lib_svld_dlopen = yes; then
19570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19571 else
19572   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19575   echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577   ac_check_lib_save_LIBS=$LIBS
19578 LIBS="-ldld  $LIBS"
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585
19586 /* Override any gcc2 internal prototype to avoid an error.  */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 /* We use char because int might match the return type of a gcc2
19591    builtin and then its argument prototype would still apply.  */
19592 char dld_link ();
19593 int
19594 main ()
19595 {
19596 dld_link ();
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603   (eval $ac_link) 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -z "$ac_c_werror_flag"
19611                          || test ! -s conftest.err'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; } &&
19617          { ac_try='test -s conftest$ac_exeext'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; }; then
19623   ac_cv_lib_dld_dld_link=yes
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 ac_cv_lib_dld_dld_link=no
19629 fi
19630 rm -f conftest.err conftest.$ac_objext \
19631       conftest$ac_exeext conftest.$ac_ext
19632 LIBS=$ac_check_lib_save_LIBS
19633 fi
19634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19636 if test $ac_cv_lib_dld_dld_link = yes; then
19637   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19638 fi
19639
19640
19641 fi
19642
19643
19644 fi
19645
19646
19647 fi
19648
19649
19650 fi
19651
19652
19653 fi
19654
19655     ;;
19656   esac
19657
19658   if test "x$lt_cv_dlopen" != xno; then
19659     enable_dlopen=yes
19660   else
19661     enable_dlopen=no
19662   fi
19663
19664   case $lt_cv_dlopen in
19665   dlopen)
19666     save_CPPFLAGS="$CPPFLAGS"
19667     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19668
19669     save_LDFLAGS="$LDFLAGS"
19670     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19671
19672     save_LIBS="$LIBS"
19673     LIBS="$lt_cv_dlopen_libs $LIBS"
19674
19675     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19677 if test "${lt_cv_dlopen_self+set}" = set; then
19678   echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680           if test "$cross_compiling" = yes; then :
19681   lt_cv_dlopen_self=cross
19682 else
19683   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19684   lt_status=$lt_dlunknown
19685   cat > conftest.$ac_ext <<_LT_EOF
19686 #line 19686 "configure"
19687 #include "confdefs.h"
19688
19689 #if HAVE_DLFCN_H
19690 #include <dlfcn.h>
19691 #endif
19692
19693 #include <stdio.h>
19694
19695 #ifdef RTLD_GLOBAL
19696 #  define LT_DLGLOBAL           RTLD_GLOBAL
19697 #else
19698 #  ifdef DL_GLOBAL
19699 #    define LT_DLGLOBAL         DL_GLOBAL
19700 #  else
19701 #    define LT_DLGLOBAL         0
19702 #  endif
19703 #endif
19704
19705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19706    find out it does not work in some platform. */
19707 #ifndef LT_DLLAZY_OR_NOW
19708 #  ifdef RTLD_LAZY
19709 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19710 #  else
19711 #    ifdef DL_LAZY
19712 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19713 #    else
19714 #      ifdef RTLD_NOW
19715 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19716 #      else
19717 #        ifdef DL_NOW
19718 #          define LT_DLLAZY_OR_NOW      DL_NOW
19719 #        else
19720 #          define LT_DLLAZY_OR_NOW      0
19721 #        endif
19722 #      endif
19723 #    endif
19724 #  endif
19725 #endif
19726
19727 #ifdef __cplusplus
19728 extern "C" void exit (int);
19729 #endif
19730
19731 void fnord() { int i=42;}
19732 int main ()
19733 {
19734   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19735   int status = $lt_dlunknown;
19736
19737   if (self)
19738     {
19739       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19740       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19741       /* dlclose (self); */
19742     }
19743   else
19744     puts (dlerror ());
19745
19746     exit (status);
19747 }
19748 _LT_EOF
19749   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19750   (eval $ac_link) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19754     (./conftest; exit; ) >&5 2>/dev/null
19755     lt_status=$?
19756     case x$lt_status in
19757       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19758       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19759       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19760     esac
19761   else :
19762     # compilation failed
19763     lt_cv_dlopen_self=no
19764   fi
19765 fi
19766 rm -fr conftest*
19767
19768
19769 fi
19770 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19771 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19772
19773     if test "x$lt_cv_dlopen_self" = xyes; then
19774       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19775       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19776 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19777 if test "${lt_cv_dlopen_self_static+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780           if test "$cross_compiling" = yes; then :
19781   lt_cv_dlopen_self_static=cross
19782 else
19783   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19784   lt_status=$lt_dlunknown
19785   cat > conftest.$ac_ext <<_LT_EOF
19786 #line 19786 "configure"
19787 #include "confdefs.h"
19788
19789 #if HAVE_DLFCN_H
19790 #include <dlfcn.h>
19791 #endif
19792
19793 #include <stdio.h>
19794
19795 #ifdef RTLD_GLOBAL
19796 #  define LT_DLGLOBAL           RTLD_GLOBAL
19797 #else
19798 #  ifdef DL_GLOBAL
19799 #    define LT_DLGLOBAL         DL_GLOBAL
19800 #  else
19801 #    define LT_DLGLOBAL         0
19802 #  endif
19803 #endif
19804
19805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19806    find out it does not work in some platform. */
19807 #ifndef LT_DLLAZY_OR_NOW
19808 #  ifdef RTLD_LAZY
19809 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19810 #  else
19811 #    ifdef DL_LAZY
19812 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19813 #    else
19814 #      ifdef RTLD_NOW
19815 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19816 #      else
19817 #        ifdef DL_NOW
19818 #          define LT_DLLAZY_OR_NOW      DL_NOW
19819 #        else
19820 #          define LT_DLLAZY_OR_NOW      0
19821 #        endif
19822 #      endif
19823 #    endif
19824 #  endif
19825 #endif
19826
19827 #ifdef __cplusplus
19828 extern "C" void exit (int);
19829 #endif
19830
19831 void fnord() { int i=42;}
19832 int main ()
19833 {
19834   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19835   int status = $lt_dlunknown;
19836
19837   if (self)
19838     {
19839       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19840       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19841       /* dlclose (self); */
19842     }
19843   else
19844     puts (dlerror ());
19845
19846     exit (status);
19847 }
19848 _LT_EOF
19849   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19850   (eval $ac_link) 2>&5
19851   ac_status=$?
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19854     (./conftest; exit; ) >&5 2>/dev/null
19855     lt_status=$?
19856     case x$lt_status in
19857       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19858       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19859       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19860     esac
19861   else :
19862     # compilation failed
19863     lt_cv_dlopen_self_static=no
19864   fi
19865 fi
19866 rm -fr conftest*
19867
19868
19869 fi
19870 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19872     fi
19873
19874     CPPFLAGS="$save_CPPFLAGS"
19875     LDFLAGS="$save_LDFLAGS"
19876     LIBS="$save_LIBS"
19877     ;;
19878   esac
19879
19880   case $lt_cv_dlopen_self in
19881   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19882   *) enable_dlopen_self=unknown ;;
19883   esac
19884
19885   case $lt_cv_dlopen_self_static in
19886   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19887   *) enable_dlopen_self_static=unknown ;;
19888   esac
19889 fi
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907 striplib=
19908 old_striplib=
19909 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19914   echo "$as_me:$LINENO: result: yes" >&5
19915 echo "${ECHO_T}yes" >&6
19916 else
19917 # FIXME - insert some real tests, host_os isn't really good enough
19918   case $host_os in
19919   darwin*)
19920     if test -n "$STRIP" ; then
19921       striplib="$STRIP -x"
19922       old_striplib="$STRIP -S"
19923       echo "$as_me:$LINENO: result: yes" >&5
19924 echo "${ECHO_T}yes" >&6
19925     else
19926       echo "$as_me:$LINENO: result: no" >&5
19927 echo "${ECHO_T}no" >&6
19928     fi
19929     ;;
19930   *)
19931     echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6
19933     ;;
19934   esac
19935 fi
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948   # Report which library types will actually be built
19949   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19951   echo "$as_me:$LINENO: result: $can_build_shared" >&5
19952 echo "${ECHO_T}$can_build_shared" >&6
19953
19954   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19956   test "$can_build_shared" = "no" && enable_shared=no
19957
19958   # On AIX, shared libraries and static libraries use the same namespace, and
19959   # are all built from PIC.
19960   case $host_os in
19961   aix3*)
19962     test "$enable_shared" = yes && enable_static=no
19963     if test -n "$RANLIB"; then
19964       archive_cmds="$archive_cmds~\$RANLIB \$lib"
19965       postinstall_cmds='$RANLIB $lib'
19966     fi
19967     ;;
19968
19969   aix[4-9]*)
19970     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19971       test "$enable_shared" = yes && enable_static=no
19972     fi
19973     ;;
19974   esac
19975   echo "$as_me:$LINENO: result: $enable_shared" >&5
19976 echo "${ECHO_T}$enable_shared" >&6
19977
19978   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19980   # Make sure either enable_shared or enable_static is yes.
19981   test "$enable_shared" = yes || enable_static=yes
19982   echo "$as_me:$LINENO: result: $enable_static" >&5
19983 echo "${ECHO_T}$enable_static" >&6
19984
19985
19986
19987
19988 fi
19989 ac_ext=c
19990 ac_cpp='$CPP $CPPFLAGS'
19991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19994
19995 CC="$lt_save_CC"
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012 # Only expand once:
20013
20014
20015
20016
20017
20018 # Identify the assembler which will work hand-in-glove with the newly
20019 # built GCC, so that we can examine its features.  This is the assembler
20020 # which will be driven by the driver program.
20021 #
20022 # If build != host, and we aren't building gas in-tree, we identify a
20023 # build->target assembler and hope that it will have the same features
20024 # as the host->target assembler we'll be using.
20025 gcc_cv_gas_major_version=
20026 gcc_cv_gas_minor_version=
20027 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20028
20029 if test "${gcc_cv_as+set}" = set; then
20030   :
20031 else
20032
20033 if test -x "$DEFAULT_ASSEMBLER"; then
20034         gcc_cv_as="$DEFAULT_ASSEMBLER"
20035 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20036      && test -f ../gas/Makefile \
20037      && test x$build = x$host; then
20038         gcc_cv_as=../gas/as-new$build_exeext
20039 elif test -x as$build_exeext; then
20040         # Build using assembler in the current directory.
20041         gcc_cv_as=./as$build_exeext
20042 elif test -x $AS_FOR_TARGET; then
20043         gcc_cv_as="$AS_FOR_TARGET"
20044 else
20045         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20046 set dummy $AS_FOR_TARGET; ac_word=$2
20047 echo "$as_me:$LINENO: checking for $ac_word" >&5
20048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20049 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   case $gcc_cv_as in
20053   [\\/]* | ?:[\\/]*)
20054   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20055   ;;
20056   *)
20057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20059 do
20060   IFS=$as_save_IFS
20061   test -z "$as_dir" && as_dir=.
20062   for ac_exec_ext in '' $ac_executable_extensions; do
20063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20064     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20066     break 2
20067   fi
20068 done
20069 done
20070
20071   ;;
20072 esac
20073 fi
20074 gcc_cv_as=$ac_cv_path_gcc_cv_as
20075
20076 if test -n "$gcc_cv_as"; then
20077   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20078 echo "${ECHO_T}$gcc_cv_as" >&6
20079 else
20080   echo "$as_me:$LINENO: result: no" >&5
20081 echo "${ECHO_T}no" >&6
20082 fi
20083
20084 fi
20085 fi
20086
20087
20088 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20089
20090 case "$ORIGINAL_AS_FOR_TARGET" in
20091   ./as | ./as$build_exeext) ;;
20092   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20093  ;;
20094 esac
20095
20096 echo "$as_me:$LINENO: checking what assembler to use" >&5
20097 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20098 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20099   # Single tree build which includes gas.  We want to prefer it
20100   # over whatever linker top-level may have detected, since
20101   # we'll use what we're building after installation anyway.
20102   echo "$as_me:$LINENO: result: newly built gas" >&5
20103 echo "${ECHO_T}newly built gas" >&6
20104   in_tree_gas=yes
20105   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20106 for f in $gcc_cv_as_bfd_srcdir/configure \
20107          $gcc_cv_as_gas_srcdir/configure \
20108          $gcc_cv_as_gas_srcdir/configure.in \
20109          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20110   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20111   if test x$gcc_cv_gas_version != x; then
20112     break
20113   fi
20114 done
20115 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20116 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20117 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20118 case $gcc_cv_gas_patch_version in
20119   "") gcc_cv_gas_patch_version="0" ;;
20120 esac
20121 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20122                             + $gcc_cv_gas_minor_version \) \* 1000 \
20123                             + $gcc_cv_gas_patch_version`
20124
20125   in_tree_gas_is_elf=no
20126   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20127      || (grep 'obj_format = multi' ../gas/Makefile \
20128          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20129   then
20130     in_tree_gas_is_elf=yes
20131   fi
20132 else
20133   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20134 echo "${ECHO_T}$gcc_cv_as" >&6
20135   in_tree_gas=no
20136 fi
20137
20138 # Identify the linker which will work hand-in-glove with the newly
20139 # built GCC, so that we can examine its features.  This is the linker
20140 # which will be driven by the driver program.
20141 #
20142 # If build != host, and we aren't building gas in-tree, we identify a
20143 # build->target linker and hope that it will have the same features
20144 # as the host->target linker we'll be using.
20145 gcc_cv_gld_major_version=
20146 gcc_cv_gld_minor_version=
20147 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20148 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20149
20150 if test "${gcc_cv_ld+set}" = set; then
20151   :
20152 else
20153
20154 if test -x "$DEFAULT_LINKER"; then
20155         gcc_cv_ld="$DEFAULT_LINKER"
20156 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20157      && test -f ../ld/Makefile \
20158      && test x$build = x$host; then
20159         gcc_cv_ld=../ld/ld-new$build_exeext
20160 elif test -x collect-ld$build_exeext; then
20161         # Build using linker in the current directory.
20162         gcc_cv_ld=./collect-ld$build_exeext
20163 elif test -x $LD_FOR_TARGET; then
20164         gcc_cv_ld="$LD_FOR_TARGET"
20165 else
20166         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20167 set dummy $LD_FOR_TARGET; ac_word=$2
20168 echo "$as_me:$LINENO: checking for $ac_word" >&5
20169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20170 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20171   echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173   case $gcc_cv_ld in
20174   [\\/]* | ?:[\\/]*)
20175   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20176   ;;
20177   *)
20178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20179 for as_dir in $PATH
20180 do
20181   IFS=$as_save_IFS
20182   test -z "$as_dir" && as_dir=.
20183   for ac_exec_ext in '' $ac_executable_extensions; do
20184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20185     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20187     break 2
20188   fi
20189 done
20190 done
20191
20192   ;;
20193 esac
20194 fi
20195 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20196
20197 if test -n "$gcc_cv_ld"; then
20198   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20199 echo "${ECHO_T}$gcc_cv_ld" >&6
20200 else
20201   echo "$as_me:$LINENO: result: no" >&5
20202 echo "${ECHO_T}no" >&6
20203 fi
20204
20205 fi
20206 fi
20207
20208
20209 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20210
20211 case "$ORIGINAL_LD_FOR_TARGET" in
20212   ./collect-ld | ./collect-ld$build_exeext) ;;
20213   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20214  ;;
20215 esac
20216
20217 echo "$as_me:$LINENO: checking what linker to use" >&5
20218 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20219 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20220         # Single tree build which includes ld.  We want to prefer it
20221         # over whatever linker top-level may have detected, since
20222         # we'll use what we're building after installation anyway.
20223         echo "$as_me:$LINENO: result: newly built ld" >&5
20224 echo "${ECHO_T}newly built ld" >&6
20225         in_tree_ld=yes
20226         in_tree_ld_is_elf=no
20227         if (grep 'EMUL = .*elf' ../ld/Makefile \
20228             || grep 'EMUL = .*linux' ../ld/Makefile \
20229             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20230           in_tree_ld_is_elf=yes
20231         fi
20232         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
20233         do
20234                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20235                 if test x$gcc_cv_gld_version != x; then
20236                         break
20237                 fi
20238         done
20239         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20240         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20241 else
20242         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20243 echo "${ECHO_T}$gcc_cv_ld" >&6
20244         in_tree_ld=no
20245 fi
20246
20247 # Figure out what nm we will be using.
20248 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20249 if test "${gcc_cv_nm+set}" = set; then
20250   :
20251 else
20252
20253 if test -f $gcc_cv_binutils_srcdir/configure.in \
20254      && test -f ../binutils/Makefile \
20255      && test x$build = x$host; then
20256         gcc_cv_nm=../binutils/nm-new$build_exeext
20257 elif test -x nm$build_exeext; then
20258         gcc_cv_nm=./nm$build_exeext
20259 elif test -x $NM_FOR_TARGET; then
20260         gcc_cv_nm="$NM_FOR_TARGET"
20261 else
20262         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20263 set dummy $NM_FOR_TARGET; ac_word=$2
20264 echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20266 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   case $gcc_cv_nm in
20270   [\\/]* | ?:[\\/]*)
20271   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20272   ;;
20273   *)
20274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275 for as_dir in $PATH
20276 do
20277   IFS=$as_save_IFS
20278   test -z "$as_dir" && as_dir=.
20279   for ac_exec_ext in '' $ac_executable_extensions; do
20280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20281     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20283     break 2
20284   fi
20285 done
20286 done
20287
20288   ;;
20289 esac
20290 fi
20291 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20292
20293 if test -n "$gcc_cv_nm"; then
20294   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20295 echo "${ECHO_T}$gcc_cv_nm" >&6
20296 else
20297   echo "$as_me:$LINENO: result: no" >&5
20298 echo "${ECHO_T}no" >&6
20299 fi
20300
20301 fi
20302 fi
20303
20304
20305 echo "$as_me:$LINENO: checking what nm to use" >&5
20306 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20307 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20308         # Single tree build which includes binutils.
20309         echo "$as_me:$LINENO: result: newly built nm" >&5
20310 echo "${ECHO_T}newly built nm" >&6
20311         in_tree_nm=yes
20312 else
20313         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20314 echo "${ECHO_T}$gcc_cv_nm" >&6
20315         in_tree_nm=no
20316 fi
20317
20318 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20319
20320 case "$ORIGINAL_NM_FOR_TARGET" in
20321   ./nm | ./nm$build_exeext) ;;
20322   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20323  ;;
20324 esac
20325
20326
20327 # Figure out what objdump we will be using.
20328 if test "${gcc_cv_objdump+set}" = set; then
20329   :
20330 else
20331
20332 if test -f $gcc_cv_binutils_srcdir/configure.in \
20333      && test -f ../binutils/Makefile \
20334      && test x$build = x$host; then
20335         # Single tree build which includes binutils.
20336         gcc_cv_objdump=../binutils/objdump$build_exeext
20337 elif test -x objdump$build_exeext; then
20338         gcc_cv_objdump=./objdump$build_exeext
20339 elif test -x $OBJDUMP_FOR_TARGET; then
20340         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20341 else
20342         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20343 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20344 echo "$as_me:$LINENO: checking for $ac_word" >&5
20345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20346 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   case $gcc_cv_objdump in
20350   [\\/]* | ?:[\\/]*)
20351   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20352   ;;
20353   *)
20354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20356 do
20357   IFS=$as_save_IFS
20358   test -z "$as_dir" && as_dir=.
20359   for ac_exec_ext in '' $ac_executable_extensions; do
20360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20361     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20363     break 2
20364   fi
20365 done
20366 done
20367
20368   ;;
20369 esac
20370 fi
20371 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20372
20373 if test -n "$gcc_cv_objdump"; then
20374   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20375 echo "${ECHO_T}$gcc_cv_objdump" >&6
20376 else
20377   echo "$as_me:$LINENO: result: no" >&5
20378 echo "${ECHO_T}no" >&6
20379 fi
20380
20381 fi
20382 fi
20383
20384
20385 echo "$as_me:$LINENO: checking what objdump to use" >&5
20386 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20387 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20388         # Single tree build which includes binutils.
20389         echo "$as_me:$LINENO: result: newly built objdump" >&5
20390 echo "${ECHO_T}newly built objdump" >&6
20391 elif test x$gcc_cv_objdump = x; then
20392         echo "$as_me:$LINENO: result: not found" >&5
20393 echo "${ECHO_T}not found" >&6
20394 else
20395         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20396 echo "${ECHO_T}$gcc_cv_objdump" >&6
20397 fi
20398
20399 # Figure out what assembler alignment features are present.
20400 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20401 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20402 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20403   echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405   gcc_cv_as_balign_and_p2align=no
20406     if test $in_tree_gas = yes; then
20407     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20408   then gcc_cv_as_balign_and_p2align=yes
20409 fi
20410   elif test x$gcc_cv_as != x; then
20411     echo '.balign 4
20412 .p2align 2' > conftest.s
20413     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415   (eval $ac_try) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; }
20419     then
20420         gcc_cv_as_balign_and_p2align=yes
20421     else
20422       echo "configure: failed program was" >&5
20423       cat conftest.s >&5
20424     fi
20425     rm -f conftest.o conftest.s
20426   fi
20427 fi
20428 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20429 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20430 if test $gcc_cv_as_balign_and_p2align = yes; then
20431
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20434 _ACEOF
20435
20436 fi
20437
20438 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20439 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20440 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   gcc_cv_as_max_skip_p2align=no
20444     if test $in_tree_gas = yes; then
20445     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20446   then gcc_cv_as_max_skip_p2align=yes
20447 fi
20448   elif test x$gcc_cv_as != x; then
20449     echo '.p2align 4,,7' > conftest.s
20450     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }
20456     then
20457         gcc_cv_as_max_skip_p2align=yes
20458     else
20459       echo "configure: failed program was" >&5
20460       cat conftest.s >&5
20461     fi
20462     rm -f conftest.o conftest.s
20463   fi
20464 fi
20465 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20466 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20467 if test $gcc_cv_as_max_skip_p2align = yes; then
20468
20469 cat >>confdefs.h <<\_ACEOF
20470 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20471 _ACEOF
20472
20473 fi
20474
20475 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20476 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20477 if test "${gcc_cv_as_literal16+set}" = set; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480   gcc_cv_as_literal16=no
20481     if test $in_tree_gas = yes; then
20482     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20483   then gcc_cv_as_literal16=yes
20484 fi
20485   elif test x$gcc_cv_as != x; then
20486     echo '.literal16' > conftest.s
20487     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489   (eval $ac_try) 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; }
20493     then
20494         gcc_cv_as_literal16=yes
20495     else
20496       echo "configure: failed program was" >&5
20497       cat conftest.s >&5
20498     fi
20499     rm -f conftest.o conftest.s
20500   fi
20501 fi
20502 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20503 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20504 if test $gcc_cv_as_literal16 = yes; then
20505
20506 cat >>confdefs.h <<\_ACEOF
20507 #define HAVE_GAS_LITERAL16 1
20508 _ACEOF
20509
20510 fi
20511
20512 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20513 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20514 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   gcc_cv_as_subsection_m1=no
20518     if test $in_tree_gas = yes; then
20519     if test $in_tree_gas_is_elf = yes \
20520   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20521   then gcc_cv_as_subsection_m1=yes
20522 fi
20523   elif test x$gcc_cv_as != x; then
20524     echo 'conftest_label1: .word 0
20525 .subsection -1
20526 conftest_label2: .word 0
20527 .previous' > conftest.s
20528     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530   (eval $ac_try) 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; }
20534     then
20535         if test x$gcc_cv_nm != x; then
20536     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20537     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20538     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20539     then :
20540     else gcc_cv_as_subsection_m1=yes
20541     fi
20542     rm -f conftest.nm1 conftest.nm2
20543   fi
20544     else
20545       echo "configure: failed program was" >&5
20546       cat conftest.s >&5
20547     fi
20548     rm -f conftest.o conftest.s
20549   fi
20550 fi
20551 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20552 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20553 if test $gcc_cv_as_subsection_m1 = yes; then
20554
20555 cat >>confdefs.h <<\_ACEOF
20556 #define HAVE_GAS_SUBSECTION_ORDERING 1
20557 _ACEOF
20558
20559 fi
20560
20561 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20562 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20563 if test "${gcc_cv_as_weak+set}" = set; then
20564   echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566   gcc_cv_as_weak=no
20567     if test $in_tree_gas = yes; then
20568     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20569   then gcc_cv_as_weak=yes
20570 fi
20571   elif test x$gcc_cv_as != x; then
20572     echo '      .weak foobar' > conftest.s
20573     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575   (eval $ac_try) 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; }
20579     then
20580         gcc_cv_as_weak=yes
20581     else
20582       echo "configure: failed program was" >&5
20583       cat conftest.s >&5
20584     fi
20585     rm -f conftest.o conftest.s
20586   fi
20587 fi
20588 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20589 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20590 if test $gcc_cv_as_weak = yes; then
20591
20592 cat >>confdefs.h <<\_ACEOF
20593 #define HAVE_GAS_WEAK 1
20594 _ACEOF
20595
20596 fi
20597
20598 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20599 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20600 if test "${gcc_cv_as_weakref+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   gcc_cv_as_weakref=no
20604     if test $in_tree_gas = yes; then
20605     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20606   then gcc_cv_as_weakref=yes
20607 fi
20608   elif test x$gcc_cv_as != x; then
20609     echo '      .weakref foobar, barfnot' > conftest.s
20610     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }
20616     then
20617         gcc_cv_as_weakref=yes
20618     else
20619       echo "configure: failed program was" >&5
20620       cat conftest.s >&5
20621     fi
20622     rm -f conftest.o conftest.s
20623   fi
20624 fi
20625 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20626 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20627 if test $gcc_cv_as_weakref = yes; then
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_GAS_WEAKREF 1
20631 _ACEOF
20632
20633 fi
20634
20635 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20636 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20637 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   gcc_cv_as_nsubspa_comdat=no
20641     if test $in_tree_gas = yes; then
20642     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20643   then gcc_cv_as_nsubspa_comdat=yes
20644 fi
20645   elif test x$gcc_cv_as != x; then
20646     echo '      .SPACE $TEXT$
20647         .NSUBSPA $CODE$,COMDAT' > conftest.s
20648     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; }
20654     then
20655         gcc_cv_as_nsubspa_comdat=yes
20656     else
20657       echo "configure: failed program was" >&5
20658       cat conftest.s >&5
20659     fi
20660     rm -f conftest.o conftest.s
20661   fi
20662 fi
20663 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20664 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20665 if test $gcc_cv_as_nsubspa_comdat = yes; then
20666
20667 cat >>confdefs.h <<\_ACEOF
20668 #define HAVE_GAS_NSUBSPA_COMDAT 1
20669 _ACEOF
20670
20671 fi
20672
20673 # .hidden needs to be supported in both the assembler and the linker,
20674 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20675 # This is irritatingly difficult to feature test for; we have to check the
20676 # date string after the version number.  If we've got an in-tree
20677 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20678 # to be safe.
20679 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20680 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20681 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20682 if test "${gcc_cv_as_hidden+set}" = set; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685   gcc_cv_as_hidden=no
20686     if test $in_tree_gas = yes; then
20687     if test $in_tree_gas_is_elf = yes \
20688   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20689   then gcc_cv_as_hidden=yes
20690 fi
20691   elif test x$gcc_cv_as != x; then
20692     echo '      .hidden foobar
20693 foobar:' > conftest.s
20694     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }
20700     then
20701         gcc_cv_as_hidden=yes
20702     else
20703       echo "configure: failed program was" >&5
20704       cat conftest.s >&5
20705     fi
20706     rm -f conftest.o conftest.s
20707   fi
20708 fi
20709 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20710 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20711
20712
20713 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20714 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20715 if test "${gcc_cv_ld_hidden+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   if test $in_tree_ld = yes ; then
20719   gcc_cv_ld_hidden=no
20720   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 \
20721      && test $in_tree_ld_is_elf = yes; then
20722      gcc_cv_ld_hidden=yes
20723   fi
20724 else
20725   gcc_cv_ld_hidden=yes
20726   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20727   if echo "$ld_ver" | grep GNU > /dev/null; then
20728     ld_vers=`echo $ld_ver | sed -n \
20729         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20730     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'`
20731     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20732     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20733     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20734     if test 0"$ld_date" -lt 20020404; then
20735       if test -n "$ld_date"; then
20736         # If there was date string, but was earlier than 2002-04-04, fail
20737         gcc_cv_ld_hidden=no
20738       elif test -z "$ld_vers"; then
20739         # If there was no date string nor ld version number, something is wrong
20740         gcc_cv_ld_hidden=no
20741       else
20742         test -z "$ld_vers_patch" && ld_vers_patch=0
20743         if test "$ld_vers_major" -lt 2; then
20744           gcc_cv_ld_hidden=no
20745         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20746           gcc_cv_ld_hidden="no"
20747         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20748           gcc_cv_ld_hidden=no
20749         fi
20750       fi
20751     fi
20752   else
20753     case "${target}" in
20754       hppa64*-*-hpux* | ia64*-*-hpux*)
20755         gcc_cv_ld_hidden=yes
20756         ;;
20757       *)
20758         gcc_cv_ld_hidden=no
20759         ;;
20760     esac
20761   fi
20762 fi
20763 fi
20764 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20765 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20766 libgcc_visibility=no
20767
20768
20769 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20770   libgcc_visibility=yes
20771
20772 cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_GAS_HIDDEN 1
20774 _ACEOF
20775
20776 fi
20777
20778 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20779 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20780 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20781 if test "${gcc_cv_as_leb128+set}" = set; then
20782   echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784   gcc_cv_as_leb128=no
20785     if test $in_tree_gas = yes; then
20786     if test $in_tree_gas_is_elf = yes \
20787   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20788   then gcc_cv_as_leb128=yes
20789 fi
20790   elif test x$gcc_cv_as != x; then
20791     echo '      .data
20792         .uleb128 L2 - L1
20793 L1:
20794         .uleb128 1280
20795         .sleb128 -1010
20796 L2:' > conftest.s
20797     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799   (eval $ac_try) 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; }
20803     then
20804         # GAS versions before 2.11 do not support uleb128,
20805   # despite appearing to.
20806   # ??? There exists an elf-specific test that will crash
20807   # the assembler.  Perhaps it's better to figure out whether
20808   # arbitrary sections are supported and try the test.
20809   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20810   if echo "$as_ver" | grep GNU > /dev/null; then
20811     as_vers=`echo $as_ver | sed -n \
20812         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20813     as_major=`expr "$as_vers" : '\([0-9]*\)'`
20814     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20815     if test $as_major -eq 2 && test $as_minor -lt 11
20816     then :
20817     else gcc_cv_as_leb128=yes
20818     fi
20819   fi
20820     else
20821       echo "configure: failed program was" >&5
20822       cat conftest.s >&5
20823     fi
20824     rm -f conftest.o conftest.s
20825   fi
20826 fi
20827 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20828 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20829 if test $gcc_cv_as_leb128 = yes; then
20830
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_AS_LEB128 1
20833 _ACEOF
20834
20835 fi
20836
20837 # GAS versions up to and including 2.11.0 may mis-optimize
20838 # .eh_frame data.
20839 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20840 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20841 if test "${gcc_cv_as_eh_frame+set}" = set; then
20842   echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844   gcc_cv_as_eh_frame=no
20845     if test $in_tree_gas = yes; then
20846     if test $in_tree_gas_is_elf = yes \
20847   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20848   then gcc_cv_as_eh_frame=yes
20849 fi
20850   elif test x$gcc_cv_as != x; then
20851     echo '      .text
20852 .LFB1:
20853         .4byte  0
20854 .L1:
20855         .4byte  0
20856 .LFE1:
20857         .section        .eh_frame,"aw",@progbits
20858 __FRAME_BEGIN__:
20859         .4byte  .LECIE1-.LSCIE1
20860 .LSCIE1:
20861         .4byte  0x0
20862         .byte   0x1
20863         .ascii "z\0"
20864         .byte   0x1
20865         .byte   0x78
20866         .byte   0x1a
20867         .byte   0x0
20868         .byte   0x4
20869         .4byte  1
20870         .p2align 1
20871 .LECIE1:
20872 .LSFDE1:
20873         .4byte  .LEFDE1-.LASFDE1
20874 .LASFDE1:
20875         .4byte  .LASFDE1-__FRAME_BEGIN__
20876         .4byte  .LFB1
20877         .4byte  .LFE1-.LFB1
20878         .byte   0x4
20879         .4byte  .LFE1-.LFB1
20880         .byte   0x4
20881         .4byte  .L1-.LFB1
20882 .LEFDE1:' > conftest.s
20883     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }
20889     then
20890           cat > conftest.lit <<EOF
20891  0000 10000000 00000000 017a0001 781a0004  .........z..x...
20892  0010 01000000 12000000 18000000 00000000  ................
20893  0020 08000000 04080000 0044               .........D      
20894 EOF
20895 cat > conftest.big <<EOF
20896  0000 00000010 00000000 017a0001 781a0004  .........z..x...
20897  0010 00000001 00000012 00000018 00000000  ................
20898  0020 00000008 04000000 0844               .........D      
20899 EOF
20900   # If the assembler didn't choke, and we can objdump,
20901   # and we got the correct data, then succeed.
20902   # The text in the here-document typically retains its unix-style line
20903   # endings, while the output of objdump will use host line endings.
20904   # Therefore, use diff -b for the comparisons.
20905   if test x$gcc_cv_objdump != x \
20906   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20907      | tail -3 > conftest.got \
20908   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20909     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20910   then
20911     gcc_cv_as_eh_frame=yes
20912   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; }; then
20918     gcc_cv_as_eh_frame=buggy
20919   else
20920     # Uh oh, what do we do now?
20921     gcc_cv_as_eh_frame=no
20922   fi
20923     else
20924       echo "configure: failed program was" >&5
20925       cat conftest.s >&5
20926     fi
20927     rm -f conftest.o conftest.s
20928   fi
20929 fi
20930 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20931 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20932
20933
20934 if test $gcc_cv_as_eh_frame = buggy; then
20935
20936 cat >>confdefs.h <<\_ACEOF
20937 #define USE_AS_TRADITIONAL_FORMAT 1
20938 _ACEOF
20939
20940 fi
20941
20942 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20943 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20944 if test "${gcc_cv_as_shf_merge+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   gcc_cv_as_shf_merge=no
20948     if test $in_tree_gas = yes; then
20949     if test $in_tree_gas_is_elf = yes \
20950   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20951   then gcc_cv_as_shf_merge=yes
20952 fi
20953   elif test x$gcc_cv_as != x; then
20954     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20955     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957   (eval $ac_try) 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); }; }
20961     then
20962         gcc_cv_as_shf_merge=yes
20963     else
20964       echo "configure: failed program was" >&5
20965       cat conftest.s >&5
20966     fi
20967     rm -f conftest.o conftest.s
20968   fi
20969 fi
20970 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20971 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20972
20973 if test $gcc_cv_as_shf_merge = no; then
20974   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20975 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20976 if test "${gcc_cv_as_shf_merge+set}" = set; then
20977   echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979   gcc_cv_as_shf_merge=no
20980     if test $in_tree_gas = yes; then
20981     if test $in_tree_gas_is_elf = yes \
20982   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20983   then gcc_cv_as_shf_merge=yes
20984 fi
20985   elif test x$gcc_cv_as != x; then
20986     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20987     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }
20993     then
20994         gcc_cv_as_shf_merge=yes
20995     else
20996       echo "configure: failed program was" >&5
20997       cat conftest.s >&5
20998     fi
20999     rm -f conftest.o conftest.s
21000   fi
21001 fi
21002 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21003 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21004
21005 fi
21006
21007 cat >>confdefs.h <<_ACEOF
21008 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21009 _ACEOF
21010
21011
21012 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21013 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21014 if test "${gcc_cv_as_comdat_group+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   gcc_cv_as_comdat_group=no
21018     if test $in_tree_gas = yes; then
21019     if test $in_tree_gas_is_elf = yes \
21020   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21021   then gcc_cv_as_comdat_group=yes
21022 fi
21023   elif test x$gcc_cv_as != x; then
21024     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21025     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; }
21031     then
21032         gcc_cv_as_comdat_group=yes
21033     else
21034       echo "configure: failed program was" >&5
21035       cat conftest.s >&5
21036     fi
21037     rm -f conftest.o conftest.s
21038   fi
21039 fi
21040 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21041 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21042
21043 if test $gcc_cv_as_comdat_group = yes; then
21044   gcc_cv_as_comdat_group_percent=no
21045 else
21046  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21047 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21048 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   gcc_cv_as_comdat_group_percent=no
21052     if test $in_tree_gas = yes; then
21053     if test $in_tree_gas_is_elf = yes \
21054   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21055   then gcc_cv_as_comdat_group_percent=yes
21056 fi
21057   elif test x$gcc_cv_as != x; then
21058     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21059     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061   (eval $ac_try) 2>&5
21062   ac_status=$?
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); }; }
21065     then
21066         gcc_cv_as_comdat_group_percent=yes
21067     else
21068       echo "configure: failed program was" >&5
21069       cat conftest.s >&5
21070     fi
21071     rm -f conftest.o conftest.s
21072   fi
21073 fi
21074 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21075 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21076
21077 fi
21078 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21079   comdat_group=yes
21080   if test 0"$ld_date" -lt 20050308; then
21081     if test -n "$ld_date"; then
21082       # If there was date string, but was earlier than 2005-03-08, fail
21083       comdat_group=no
21084     elif test "$ld_vers_major" -lt 2; then
21085       comdat_group=no
21086     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21087       comdat_group=no
21088     fi
21089   fi
21090 else
21091   # assume linkers other than GNU ld don't support COMDAT group
21092   comdat_group=no
21093 fi
21094 if test $comdat_group = no; then
21095   gcc_cv_as_comdat_group=no
21096   gcc_cv_as_comdat_group_percent=no
21097 fi
21098
21099 cat >>confdefs.h <<_ACEOF
21100 #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`
21101 _ACEOF
21102
21103
21104 # Thread-local storage - the check is heavily parametrized.
21105 conftest_s=
21106 tls_first_major=
21107 tls_first_minor=
21108 tls_as_opt=
21109 case "$target" in
21110   alpha*-*-*)
21111     conftest_s='
21112         .section ".tdata","awT",@progbits
21113 foo:    .long   25
21114         .text
21115         ldq     $27,__tls_get_addr($29)         !literal!1
21116         lda     $16,foo($29)                    !tlsgd!1
21117         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21118         ldq     $27,__tls_get_addr($29)         !literal!2
21119         lda     $16,foo($29)                    !tlsldm!2
21120         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21121         ldq     $1,foo($29)                     !gotdtprel
21122         ldah    $2,foo($29)                     !dtprelhi
21123         lda     $3,foo($2)                      !dtprello
21124         lda     $4,foo($29)                     !dtprel
21125         ldq     $1,foo($29)                     !gottprel
21126         ldah    $2,foo($29)                     !tprelhi
21127         lda     $3,foo($2)                      !tprello
21128         lda     $4,foo($29)                     !tprel'
21129         tls_first_major=2
21130         tls_first_minor=13
21131         tls_as_opt=--fatal-warnings
21132         ;;
21133   frv*-*-*)
21134     conftest_s='
21135         .section ".tdata","awT",@progbits
21136 x:      .long   25
21137         .text
21138         call    #gettlsoff(x)'
21139         tls_first_major=2
21140         tls_first_minor=14
21141         ;;
21142   hppa*-*-linux*)
21143     conftest_s='
21144 t1:     .reg    %r20
21145 t2:     .reg    %r21
21146 gp:     .reg    %r19
21147         .section ".tdata","awT",@progbits
21148 foo:    .long   25
21149         .text
21150         .align  4
21151         addil LT%foo-$tls_gdidx$,gp
21152         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21153         b __tls_get_addr
21154         nop
21155         addil LT%foo-$tls_ldidx$,gp
21156         b __tls_get_addr
21157         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21158         addil LR%foo-$tls_dtpoff$,%ret0
21159         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21160         mfctl %cr27,%t1
21161         addil LT%foo-$tls_ieoff$,gp
21162         ldw RT%foo-$tls_ieoff$(%r1),%t2
21163         add %t1,%t2,%t3
21164         mfctl %cr27,%t1
21165         addil LR%foo-$tls_leoff$,%t1
21166         ldo RR%foo-$tls_leoff$(%r1),%t2'
21167         tls_first_major=2
21168         tls_first_minor=15
21169         tls_as_opt=--fatal-warnings
21170         ;;
21171   arm*-*-*)
21172     conftest_s='
21173         .section ".tdata","awT",%progbits
21174 foo:    .long   25
21175         .text
21176 .word foo(gottpoff)
21177 .word foo(tpoff)
21178 .word foo(tlsgd)
21179 .word foo(tlsldm)
21180 .word foo(tlsldo)'
21181         tls_first_major=2
21182         tls_first_minor=17
21183         ;;
21184   i[34567]86-*-*)
21185     conftest_s='
21186         .section ".tdata","awT",@progbits
21187 foo:    .long   25
21188         .text
21189         movl    %gs:0, %eax
21190         leal    foo@TLSGD(,%ebx,1), %eax
21191         leal    foo@TLSLDM(%ebx), %eax
21192         leal    foo@DTPOFF(%eax), %edx
21193         movl    foo@GOTTPOFF(%ebx), %eax
21194         subl    foo@GOTTPOFF(%ebx), %eax
21195         addl    foo@GOTNTPOFF(%ebx), %eax
21196         movl    foo@INDNTPOFF, %eax
21197         movl    $foo@TPOFF, %eax
21198         subl    $foo@TPOFF, %eax
21199         leal    foo@NTPOFF(%ecx), %eax'
21200         tls_first_major=2
21201         tls_first_minor=14
21202         tls_as_opt=--fatal-warnings
21203         ;;
21204   x86_64-*-*)
21205     conftest_s='
21206         .section ".tdata","awT",@progbits
21207 foo:    .long   25
21208         .text
21209         movq    %fs:0, %rax
21210         leaq    foo@TLSGD(%rip), %rdi
21211         leaq    foo@TLSLD(%rip), %rdi
21212         leaq    foo@DTPOFF(%rax), %rdx
21213         movq    foo@GOTTPOFF(%rip), %rax
21214         movq    $foo@TPOFF, %rax'
21215         tls_first_major=2
21216         tls_first_minor=14
21217         tls_as_opt=--fatal-warnings
21218         ;;
21219   ia64-*-*)
21220     conftest_s='
21221         .section ".tdata","awT",@progbits
21222 foo:    data8   25
21223         .text
21224         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21225         addl    r17 = @ltoff(@dtprel(foo#)), gp
21226         addl    r18 = @ltoff(@tprel(foo#)), gp
21227         addl    r19 = @dtprel(foo#), gp
21228         adds    r21 = @dtprel(foo#), r13
21229         movl    r23 = @dtprel(foo#)
21230         addl    r20 = @tprel(foo#), gp
21231         adds    r22 = @tprel(foo#), r13
21232         movl    r24 = @tprel(foo#)'
21233         tls_first_major=2
21234         tls_first_minor=13
21235         tls_as_opt=--fatal-warnings
21236         ;;
21237   mips*-*-*)
21238     conftest_s='
21239         .section .tdata,"awT",@progbits
21240 x:
21241         .word 2
21242         .text
21243         addiu $4, $28, %tlsgd(x)
21244         addiu $4, $28, %tlsldm(x)
21245         lui $4, %dtprel_hi(x)
21246         addiu $4, $4, %dtprel_lo(x)
21247         lw $4, %gottprel(x)($28)
21248         lui $4, %tprel_hi(x)
21249         addiu $4, $4, %tprel_lo(x)'
21250         tls_first_major=2
21251         tls_first_minor=16
21252         tls_as_opt='-32 --fatal-warnings'
21253         ;;
21254   powerpc-*-*)
21255     conftest_s='
21256         .section ".tdata","awT",@progbits
21257         .align 2
21258 ld0:    .space 4
21259 ld1:    .space 4
21260 x1:     .space 4
21261 x2:     .space 4
21262 x3:     .space 4
21263         .text
21264         addi 3,31,ld0@got@tlsgd
21265         bl __tls_get_addr
21266         addi 3,31,x1@got@tlsld
21267         bl __tls_get_addr
21268         addi 9,3,x1@dtprel
21269         addis 9,3,x2@dtprel@ha
21270         addi 9,9,x2@dtprel@l
21271         lwz 9,x3@got@tprel(31)
21272         add 9,9,x@tls
21273         addi 9,2,x1@tprel
21274         addis 9,2,x2@tprel@ha
21275         addi 9,9,x2@tprel@l'
21276         tls_first_major=2
21277         tls_first_minor=14
21278         tls_as_opt="-a32 --fatal-warnings"
21279         ;;
21280   powerpc64-*-*)
21281     conftest_s='
21282         .section ".tdata","awT",@progbits
21283         .align 3
21284 ld0:    .space 8
21285 ld1:    .space 8
21286 x1:     .space 8
21287 x2:     .space 8
21288 x3:     .space 8
21289         .text
21290         addi 3,2,ld0@got@tlsgd
21291         bl .__tls_get_addr
21292         nop
21293         addi 3,2,ld1@toc
21294         bl .__tls_get_addr
21295         nop
21296         addi 3,2,x1@got@tlsld
21297         bl .__tls_get_addr
21298         nop
21299         addi 9,3,x1@dtprel
21300         bl .__tls_get_addr
21301         nop
21302         addis 9,3,x2@dtprel@ha
21303         addi 9,9,x2@dtprel@l
21304         bl .__tls_get_addr
21305         nop
21306         ld 9,x3@got@dtprel(2)
21307         add 9,9,3
21308         bl .__tls_get_addr
21309         nop'
21310         tls_first_major=2
21311         tls_first_minor=14
21312         tls_as_opt="-a64 --fatal-warnings"
21313         ;;
21314   s390-*-*)
21315     conftest_s='
21316         .section ".tdata","awT",@progbits
21317 foo:    .long   25
21318         .text
21319         .long   foo@TLSGD
21320         .long   foo@TLSLDM
21321         .long   foo@DTPOFF
21322         .long   foo@NTPOFF
21323         .long   foo@GOTNTPOFF
21324         .long   foo@INDNTPOFF
21325         l       %r1,foo@GOTNTPOFF(%r12)
21326         l       %r1,0(%r1):tls_load:foo
21327         bas     %r14,0(%r1,%r13):tls_gdcall:foo
21328         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
21329         tls_first_major=2
21330         tls_first_minor=14
21331         tls_as_opt="-m31 --fatal-warnings"
21332         ;;
21333   s390x-*-*)
21334     conftest_s='
21335         .section ".tdata","awT",@progbits
21336 foo:    .long   25
21337         .text
21338         .quad   foo@TLSGD
21339         .quad   foo@TLSLDM
21340         .quad   foo@DTPOFF
21341         .quad   foo@NTPOFF
21342         .quad   foo@GOTNTPOFF
21343         lg      %r1,foo@GOTNTPOFF(%r12)
21344         larl    %r1,foo@INDNTPOFF
21345         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
21346         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21347         tls_first_major=2
21348         tls_first_minor=14
21349         tls_as_opt="-m64 -Aesame --fatal-warnings"
21350         ;;
21351   sh-*-* | sh[34]-*-*)
21352     conftest_s='
21353         .section ".tdata","awT",@progbits
21354 foo:    .long   25
21355         .text
21356         .long   foo@TLSGD
21357         .long   foo@TLSLDM
21358         .long   foo@DTPOFF
21359         .long   foo@GOTTPOFF
21360         .long   foo@TPOFF'
21361         tls_first_major=2
21362         tls_first_minor=13
21363         tls_as_opt=--fatal-warnings
21364         ;;
21365   sparc*-*-*)
21366     case "$target" in
21367       sparc*-sun-solaris2.[56789]*)
21368         # TLS was introduced in the Solaris 9 4/04 release but
21369         # we do not enable it by default on Solaris 9 either.
21370         if test "x$enable_tls" = xyes ; then
21371           on_solaris=yes
21372         else
21373           enable_tls=no;
21374         fi
21375         ;;
21376       sparc*-sun-solaris2.*)
21377         on_solaris=yes
21378         ;;
21379       *)
21380         on_solaris=no
21381         ;;
21382     esac
21383     if test x$on_solaris = xyes && test x$gas_flag = xno; then
21384       conftest_s='
21385         .section ".tdata",#alloc,#write,#tls
21386 foo:    .long   25
21387         .text
21388         sethi   %tgd_hi22(foo), %o0
21389         add     %o0, %tgd_lo10(foo), %o1
21390         add     %l7, %o1, %o0, %tgd_add(foo)
21391         call    __tls_get_addr, %tgd_call(foo)
21392         sethi   %tldm_hi22(foo), %l1
21393         add     %l1, %tldm_lo10(foo), %l2
21394         add     %l7, %l2, %o0, %tldm_add(foo)
21395         call    __tls_get_addr, %tldm_call(foo)
21396         sethi   %tldo_hix22(foo), %l3
21397         xor     %l3, %tldo_lox10(foo), %l4
21398         add     %o0, %l4, %l5, %tldo_add(foo)
21399         sethi   %tie_hi22(foo), %o3
21400         add     %o3, %tie_lo10(foo), %o3
21401         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21402         add     %g7, %o2, %o4, %tie_add(foo)
21403         sethi   %tle_hix22(foo), %l1
21404         xor     %l1, %tle_lox10(foo), %o5
21405         ld      [%g7 + %o5], %o1'
21406         tls_first_major=0
21407         tls_first_minor=0
21408     else
21409       conftest_s='
21410         .section ".tdata","awT",@progbits
21411 foo:    .long   25
21412         .text
21413         sethi   %tgd_hi22(foo), %o0
21414         add     %o0, %tgd_lo10(foo), %o1
21415         add     %l7, %o1, %o0, %tgd_add(foo)
21416         call    __tls_get_addr, %tgd_call(foo)
21417         sethi   %tldm_hi22(foo), %l1
21418         add     %l1, %tldm_lo10(foo), %l2
21419         add     %l7, %l2, %o0, %tldm_add(foo)
21420         call    __tls_get_addr, %tldm_call(foo)
21421         sethi   %tldo_hix22(foo), %l3
21422         xor     %l3, %tldo_lox10(foo), %l4
21423         add     %o0, %l4, %l5, %tldo_add(foo)
21424         sethi   %tie_hi22(foo), %o3
21425         add     %o3, %tie_lo10(foo), %o3
21426         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21427         add     %g7, %o2, %o4, %tie_add(foo)
21428         sethi   %tle_hix22(foo), %l1
21429         xor     %l1, %tle_lox10(foo), %o5
21430         ld      [%g7 + %o5], %o1'
21431         tls_first_major=2
21432         tls_first_minor=14
21433         tls_as_opt="-32 --fatal-warnings"
21434       fi
21435         ;;
21436 esac
21437 set_have_as_tls=no
21438 if test "x$enable_tls" = xno ; then
21439   : # TLS explicitly disabled.
21440 elif test "x$enable_tls" = xyes ; then
21441   set_have_as_tls=yes # TLS explicitly enabled.
21442 elif test -z "$tls_first_major"; then
21443   : # If we don't have a check, assume no support.
21444 else
21445   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21446 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21447 if test "${gcc_cv_as_tls+set}" = set; then
21448   echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450   gcc_cv_as_tls=no
21451     if test $in_tree_gas = yes; then
21452     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21453   then gcc_cv_as_tls=yes
21454 fi
21455   elif test x$gcc_cv_as != x; then
21456     echo "$conftest_s" > conftest.s
21457     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459   (eval $ac_try) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }
21463     then
21464         gcc_cv_as_tls=yes
21465     else
21466       echo "configure: failed program was" >&5
21467       cat conftest.s >&5
21468     fi
21469     rm -f conftest.o conftest.s
21470   fi
21471 fi
21472 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21473 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21474 if test $gcc_cv_as_tls = yes; then
21475   set_have_as_tls=yes
21476 fi
21477 fi
21478 if test $set_have_as_tls = yes ; then
21479
21480 cat >>confdefs.h <<\_ACEOF
21481 #define HAVE_AS_TLS 1
21482 _ACEOF
21483
21484 fi
21485
21486 # Target-specific assembler checks.
21487
21488 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21489 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21490 gcc_cv_ld_static_dynamic=no
21491 if test $in_tree_ld = yes ; then
21492   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21493     gcc_cv_ld_static_dynamic=yes
21494   fi
21495 elif test x$gcc_cv_ld != x; then
21496         # Check if linker supports -Bstatic/-Bdynamic option
21497         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21498           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21499                 gcc_cv_ld_static_dynamic=yes
21500         fi
21501 fi
21502 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21503
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_LD_STATIC_DYNAMIC 1
21506 _ACEOF
21507
21508 fi
21509 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21510 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21511
21512 if test x"$demangler_in_ld" = xyes; then
21513   echo "$as_me:$LINENO: checking linker --demangle support" >&5
21514 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21515   gcc_cv_ld_demangle=no
21516   if test $in_tree_ld = yes; then
21517     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 \
21518       gcc_cv_ld_demangle=yes
21519     fi
21520   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21521     # Check if the GNU linker supports --demangle option
21522     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21523       gcc_cv_ld_demangle=yes
21524     fi
21525   fi
21526   if test x"$gcc_cv_ld_demangle" = xyes; then
21527
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_LD_DEMANGLE 1
21530 _ACEOF
21531
21532   fi
21533   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21534 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21535 fi
21536
21537 case "$target" in
21538   # All TARGET_ABI_OSF targets.
21539   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21540     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21541 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21542 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21543   echo $ECHO_N "(cached) $ECHO_C" >&6
21544 else
21545   gcc_cv_as_alpha_explicit_relocs=no
21546     if test $in_tree_gas = yes; then
21547     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21548   then gcc_cv_as_alpha_explicit_relocs=yes
21549 fi
21550   elif test x$gcc_cv_as != x; then
21551     echo '      .set nomacro
21552         .text
21553         extbl   $3, $2, $3      !lituse_bytoff!1
21554         ldq     $2, a($29)      !literal!1
21555         ldq     $4, b($29)      !literal!2
21556         ldq_u   $3, 0($2)       !lituse_base!1
21557         ldq     $27, f($29)     !literal!5
21558         jsr     $26, ($27), f   !lituse_jsr!5
21559         ldah    $29, 0($26)     !gpdisp!3
21560         lda     $0, c($29)      !gprel
21561         ldah    $1, d($29)      !gprelhigh
21562         lda     $1, d($1)       !gprellow
21563         lda     $29, 0($29)     !gpdisp!3' > conftest.s
21564     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566   (eval $ac_try) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; }
21570     then
21571         gcc_cv_as_alpha_explicit_relocs=yes
21572     else
21573       echo "configure: failed program was" >&5
21574       cat conftest.s >&5
21575     fi
21576     rm -f conftest.o conftest.s
21577   fi
21578 fi
21579 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21580 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21581 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21582
21583 cat >>confdefs.h <<\_ACEOF
21584 #define HAVE_AS_EXPLICIT_RELOCS 1
21585 _ACEOF
21586
21587 fi
21588     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21589 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21590 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21591   echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593   gcc_cv_as_alpha_jsrdirect_relocs=no
21594     if test $in_tree_gas = yes; then
21595     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21596   then gcc_cv_as_alpha_jsrdirect_relocs=yes
21597 fi
21598   elif test x$gcc_cv_as != x; then
21599     echo '      .set nomacro
21600         .text
21601         ldq     $27, a($29)     !literal!1
21602         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
21603     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }
21609     then
21610         gcc_cv_as_alpha_jsrdirect_relocs=yes
21611     else
21612       echo "configure: failed program was" >&5
21613       cat conftest.s >&5
21614     fi
21615     rm -f conftest.o conftest.s
21616   fi
21617 fi
21618 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21619 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21620 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21621
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_AS_JSRDIRECT_RELOCS 1
21624 _ACEOF
21625
21626 fi
21627     ;;
21628
21629   cris-*-*)
21630     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21631 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21632 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21633   echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635   gcc_cv_as_cris_no_mul_bug=no
21636     if test $in_tree_gas = yes; then
21637     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21638   then gcc_cv_as_cris_no_mul_bug=yes
21639 fi
21640   elif test x$gcc_cv_as != x; then
21641     echo '.text' > conftest.s
21642     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }
21648     then
21649         gcc_cv_as_cris_no_mul_bug=yes
21650     else
21651       echo "configure: failed program was" >&5
21652       cat conftest.s >&5
21653     fi
21654     rm -f conftest.o conftest.s
21655   fi
21656 fi
21657 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21658 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21659 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21660
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21663 _ACEOF
21664
21665 fi
21666     ;;
21667
21668   sparc*-*-*)
21669     echo "$as_me:$LINENO: checking assembler for .register" >&5
21670 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21671 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21672   echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674   gcc_cv_as_sparc_register_op=no
21675   if test x$gcc_cv_as != x; then
21676     echo '.register %g2, #scratch' > conftest.s
21677     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679   (eval $ac_try) 2>&5
21680   ac_status=$?
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); }; }
21683     then
21684         gcc_cv_as_sparc_register_op=yes
21685     else
21686       echo "configure: failed program was" >&5
21687       cat conftest.s >&5
21688     fi
21689     rm -f conftest.o conftest.s
21690   fi
21691 fi
21692 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21693 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21694 if test $gcc_cv_as_sparc_register_op = yes; then
21695
21696 cat >>confdefs.h <<\_ACEOF
21697 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21698 _ACEOF
21699
21700 fi
21701
21702     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21703 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21704 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21705   echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707   gcc_cv_as_sparc_relax=no
21708   if test x$gcc_cv_as != x; then
21709     echo '.text' > conftest.s
21710     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712   (eval $ac_try) 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; }
21716     then
21717         gcc_cv_as_sparc_relax=yes
21718     else
21719       echo "configure: failed program was" >&5
21720       cat conftest.s >&5
21721     fi
21722     rm -f conftest.o conftest.s
21723   fi
21724 fi
21725 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21726 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21727 if test $gcc_cv_as_sparc_relax = yes; then
21728
21729 cat >>confdefs.h <<\_ACEOF
21730 #define HAVE_AS_RELAX_OPTION 1
21731 _ACEOF
21732
21733 fi
21734
21735     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21736 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21737 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21738   echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740   gcc_cv_as_sparc_ua_pcrel=no
21741   if test x$gcc_cv_as != x; then
21742     echo '.text
21743 foo:
21744         nop
21745 .data
21746 .align 4
21747 .byte 0
21748 .uaword %r_disp32(foo)' > conftest.s
21749     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }
21755     then
21756         if test x$gcc_cv_ld != x \
21757        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21758          gcc_cv_as_sparc_ua_pcrel=yes
21759        fi
21760        rm -f conftest
21761     else
21762       echo "configure: failed program was" >&5
21763       cat conftest.s >&5
21764     fi
21765     rm -f conftest.o conftest.s
21766   fi
21767 fi
21768 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21769 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21770 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21771
21772 cat >>confdefs.h <<\_ACEOF
21773 #define HAVE_AS_SPARC_UA_PCREL 1
21774 _ACEOF
21775
21776
21777       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21778 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21779 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   gcc_cv_as_sparc_ua_pcrel_hidden=no
21783   if test x$gcc_cv_as != x; then
21784     echo '.data
21785 .align 4
21786 .byte 0x31
21787 .uaword %r_disp32(foo)
21788 .byte 0x32, 0x33, 0x34
21789 .global foo
21790 .hidden foo
21791 foo:
21792 .skip 4' > conftest.s
21793     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }
21799     then
21800         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21801          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21802          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21803             | grep ' 31000000 07323334' > /dev/null 2>&1; then
21804             if $gcc_cv_objdump -R conftest 2> /dev/null \
21805                | grep 'DISP32' > /dev/null 2>&1; then
21806                 :
21807             else
21808                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21809             fi
21810          fi
21811          rm -f conftest
21812     else
21813       echo "configure: failed program was" >&5
21814       cat conftest.s >&5
21815     fi
21816     rm -f conftest.o conftest.s
21817   fi
21818 fi
21819 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21820 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21821 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21822
21823 cat >>confdefs.h <<\_ACEOF
21824 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21825 _ACEOF
21826
21827 fi
21828
21829 fi # unaligned pcrel relocs
21830
21831     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21832 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21833 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21834   echo $ECHO_N "(cached) $ECHO_C" >&6
21835 else
21836   gcc_cv_as_sparc_offsetable_lo10=no
21837   if test x$gcc_cv_as != x; then
21838     echo '.text
21839         or %g1, %lo(ab) + 12, %g1
21840         or %g1, %lo(ab + 12), %g1' > conftest.s
21841     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; }
21847     then
21848         if test x$gcc_cv_objdump != x \
21849        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21850           | grep ' 82106000 82106000' > /dev/null 2>&1; then
21851          gcc_cv_as_sparc_offsetable_lo10=yes
21852        fi
21853     else
21854       echo "configure: failed program was" >&5
21855       cat conftest.s >&5
21856     fi
21857     rm -f conftest.o conftest.s
21858   fi
21859 fi
21860 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21861 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21862 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21863
21864 cat >>confdefs.h <<\_ACEOF
21865 #define HAVE_AS_OFFSETABLE_LO10 1
21866 _ACEOF
21867
21868 fi
21869     ;;
21870
21871   i[34567]86-*-* | x86_64-*-*)
21872     case $target_os in
21873       cygwin* | pe | mingw32*)
21874         # Used for DWARF 2 in PE
21875         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21876 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21877 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21878   echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880   gcc_cv_as_ix86_pe_secrel32=no
21881     if test $in_tree_gas = yes; then
21882     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21883   then gcc_cv_as_ix86_pe_secrel32=yes
21884 fi
21885   elif test x$gcc_cv_as != x; then
21886     echo '.text
21887 foo:    nop
21888 .data
21889         .secrel32 foo' > conftest.s
21890     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; }
21896     then
21897         if test x$gcc_cv_ld != x \
21898            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21899              gcc_cv_as_ix86_pe_secrel32=yes
21900            fi
21901            rm -f conftest
21902     else
21903       echo "configure: failed program was" >&5
21904       cat conftest.s >&5
21905     fi
21906     rm -f conftest.o conftest.s
21907   fi
21908 fi
21909 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21910 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21911 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21912
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_GAS_PE_SECREL32_RELOC 1
21915 _ACEOF
21916
21917 fi
21918         ;;
21919     esac
21920
21921     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21922 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21923 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926   gcc_cv_as_ix86_filds_fists=no
21927     if test $in_tree_gas = yes; then
21928     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21929   then gcc_cv_as_ix86_filds_fists=yes
21930 fi
21931   elif test x$gcc_cv_as != x; then
21932     echo 'filds mem; fists mem' > conftest.s
21933     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }
21939     then
21940         gcc_cv_as_ix86_filds_fists=yes
21941     else
21942       echo "configure: failed program was" >&5
21943       cat conftest.s >&5
21944     fi
21945     rm -f conftest.o conftest.s
21946   fi
21947 fi
21948 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21949 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21950 if test $gcc_cv_as_ix86_filds_fists = yes; then
21951
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_GAS_FILDS_FISTS 1
21954 _ACEOF
21955
21956 fi
21957
21958     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21959 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21960 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21961   echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963   gcc_cv_as_ix86_cmov_sun_syntax=no
21964   if test x$gcc_cv_as != x; then
21965     echo 'cmovl.l %edx, %eax' > conftest.s
21966     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968   (eval $ac_try) 2>&5
21969   ac_status=$?
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); }; }
21972     then
21973         gcc_cv_as_ix86_cmov_sun_syntax=yes
21974     else
21975       echo "configure: failed program was" >&5
21976       cat conftest.s >&5
21977     fi
21978     rm -f conftest.o conftest.s
21979   fi
21980 fi
21981 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21982 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21983 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21984
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21987 _ACEOF
21988
21989 fi
21990
21991     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21992 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21993 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21994   echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996   gcc_cv_as_ix86_ffreep=no
21997   if test x$gcc_cv_as != x; then
21998     echo 'ffreep %st(1)' > conftest.s
21999     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; }
22005     then
22006         gcc_cv_as_ix86_ffreep=yes
22007     else
22008       echo "configure: failed program was" >&5
22009       cat conftest.s >&5
22010     fi
22011     rm -f conftest.o conftest.s
22012   fi
22013 fi
22014 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22015 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22016 if test $gcc_cv_as_ix86_ffreep = yes; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define HAVE_AS_IX86_FFREEP 1
22020 _ACEOF
22021
22022 fi
22023
22024     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22025 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22026 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029   gcc_cv_as_ix86_sahf=no
22030   if test x$gcc_cv_as != x; then
22031     echo 'sahf' > conftest.s
22032     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; }
22038     then
22039         gcc_cv_as_ix86_sahf=yes
22040     else
22041       echo "configure: failed program was" >&5
22042       cat conftest.s >&5
22043     fi
22044     rm -f conftest.o conftest.s
22045   fi
22046 fi
22047 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22048 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22049 if test $gcc_cv_as_ix86_sahf = yes; then
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define HAVE_AS_IX86_SAHF 1
22053 _ACEOF
22054
22055 fi
22056
22057     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22058 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22059 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22060   echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062   gcc_cv_as_ix86_diff_sect_delta=no
22063   if test x$gcc_cv_as != x; then
22064     echo '.section .rodata
22065 .L1:
22066         .long .L2-.L1
22067         .long .L3-.L1
22068         .text
22069 .L3:    nop
22070 .L2:    nop' > conftest.s
22071     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073   (eval $ac_try) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; }
22077     then
22078         gcc_cv_as_ix86_diff_sect_delta=yes
22079     else
22080       echo "configure: failed program was" >&5
22081       cat conftest.s >&5
22082     fi
22083     rm -f conftest.o conftest.s
22084   fi
22085 fi
22086 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22087 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22088 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22089
22090 cat >>confdefs.h <<\_ACEOF
22091 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22092 _ACEOF
22093
22094 fi
22095
22096     # This one is used unconditionally by i386.[ch]; it is to be defined
22097     # to 1 if the feature is present, 0 otherwise.
22098     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22099 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22100 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   gcc_cv_as_ix86_gotoff_in_data=no
22104     if test $in_tree_gas = yes; then
22105     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22106   then gcc_cv_as_ix86_gotoff_in_data=yes
22107 fi
22108   elif test x$gcc_cv_as != x; then
22109     echo '      .text
22110 .L0:
22111         nop
22112         .data
22113         .long .L0@GOTOFF' > conftest.s
22114     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); }; }
22120     then
22121         gcc_cv_as_ix86_gotoff_in_data=yes
22122     else
22123       echo "configure: failed program was" >&5
22124       cat conftest.s >&5
22125     fi
22126     rm -f conftest.o conftest.s
22127   fi
22128 fi
22129 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22130 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22131
22132
22133 cat >>confdefs.h <<_ACEOF
22134 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22135 _ACEOF
22136
22137     ;;
22138
22139   ia64*-*-*)
22140     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22141 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22142 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22143   echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22146     if test $in_tree_gas = yes; then
22147     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22148   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22149 fi
22150   elif test x$gcc_cv_as != x; then
22151     echo '      .text
22152         addl r15 = @ltoffx(x#), gp
22153         ;;
22154         ld8.mov r16 = [r15], x#' > conftest.s
22155     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157   (eval $ac_try) 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }
22161     then
22162         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22163     else
22164       echo "configure: failed program was" >&5
22165       cat conftest.s >&5
22166     fi
22167     rm -f conftest.o conftest.s
22168   fi
22169 fi
22170 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22171 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22172 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22173
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22176 _ACEOF
22177
22178 fi
22179
22180     ;;
22181
22182   powerpc*-*-*)
22183     case $target in
22184       *-*-aix*) conftest_s='    .machine "pwr5"
22185         .csect .text[PR]
22186         mfcr 3,128';;
22187       *-*-darwin*)
22188         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22189 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22190 if test "${gcc_cv_as_machine_directive+set}" = set; then
22191   echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193   gcc_cv_as_machine_directive=no
22194   if test x$gcc_cv_as != x; then
22195     echo '      .machine ppc7400' > conftest.s
22196     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; }
22202     then
22203         gcc_cv_as_machine_directive=yes
22204     else
22205       echo "configure: failed program was" >&5
22206       cat conftest.s >&5
22207     fi
22208     rm -f conftest.o conftest.s
22209   fi
22210 fi
22211 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22212 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22213
22214         if test x$gcc_cv_as_machine_directive != xyes; then
22215           echo "*** This target requires an assembler supporting \".machine\"" >&2
22216           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22217           test x$build = x$target && exit 1
22218         fi
22219         conftest_s='    .text
22220         mfcr r3,128';;
22221       *) conftest_s='   .machine power4
22222         .text
22223         mfcr 3,128';;
22224     esac
22225
22226     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22227 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22228 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22229   echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231   gcc_cv_as_powerpc_mfcrf=no
22232     if test $in_tree_gas = yes; then
22233     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22234   then gcc_cv_as_powerpc_mfcrf=yes
22235 fi
22236   elif test x$gcc_cv_as != x; then
22237     echo "$conftest_s" > conftest.s
22238     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240   (eval $ac_try) 2>&5
22241   ac_status=$?
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); }; }
22244     then
22245         gcc_cv_as_powerpc_mfcrf=yes
22246     else
22247       echo "configure: failed program was" >&5
22248       cat conftest.s >&5
22249     fi
22250     rm -f conftest.o conftest.s
22251   fi
22252 fi
22253 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22254 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22255 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22256
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_AS_MFCRF 1
22259 _ACEOF
22260
22261 fi
22262
22263     case $target in
22264       *-*-aix*) conftest_s='    .machine "pwr5"
22265         .csect .text[PR]
22266         popcntb 3,3';;
22267       *) conftest_s='   .machine power5
22268         .text
22269         popcntb 3,3';;
22270     esac
22271
22272     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22273 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22274 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22275   echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22277   gcc_cv_as_powerpc_popcntb=no
22278     if test $in_tree_gas = yes; then
22279     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22280   then gcc_cv_as_powerpc_popcntb=yes
22281 fi
22282   elif test x$gcc_cv_as != x; then
22283     echo "$conftest_s" > conftest.s
22284     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; }
22290     then
22291         gcc_cv_as_powerpc_popcntb=yes
22292     else
22293       echo "configure: failed program was" >&5
22294       cat conftest.s >&5
22295     fi
22296     rm -f conftest.o conftest.s
22297   fi
22298 fi
22299 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22300 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22301 if test $gcc_cv_as_powerpc_popcntb = yes; then
22302
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_AS_POPCNTB 1
22305 _ACEOF
22306
22307 fi
22308
22309     case $target in
22310       *-*-aix*) conftest_s='    .machine "pwr5x"
22311         .csect .text[PR]
22312         frin 1,1';;
22313       *) conftest_s='   .machine power5
22314         .text
22315         frin 1,1';;
22316     esac
22317
22318     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22319 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22320 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323   gcc_cv_as_powerpc_fprnd=no
22324     if test $in_tree_gas = yes; then
22325     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22326   then gcc_cv_as_powerpc_fprnd=yes
22327 fi
22328   elif test x$gcc_cv_as != x; then
22329     echo "$conftest_s" > conftest.s
22330     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332   (eval $ac_try) 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; }
22336     then
22337         gcc_cv_as_powerpc_fprnd=yes
22338     else
22339       echo "configure: failed program was" >&5
22340       cat conftest.s >&5
22341     fi
22342     rm -f conftest.o conftest.s
22343   fi
22344 fi
22345 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22346 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22347 if test $gcc_cv_as_powerpc_fprnd = yes; then
22348
22349 cat >>confdefs.h <<\_ACEOF
22350 #define HAVE_AS_FPRND 1
22351 _ACEOF
22352
22353 fi
22354
22355     case $target in
22356       *-*-aix*) conftest_s='    .machine "pwr6"
22357         .csect .text[PR]
22358         mffgpr 1,3';;
22359       *) conftest_s='   .machine power6
22360         .text
22361         mffgpr 1,3';;
22362     esac
22363
22364     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22365 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22366 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22367   echo $ECHO_N "(cached) $ECHO_C" >&6
22368 else
22369   gcc_cv_as_powerpc_mfpgpr=no
22370     if test $in_tree_gas = yes; then
22371     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22372   then gcc_cv_as_powerpc_mfpgpr=yes
22373 fi
22374   elif test x$gcc_cv_as != x; then
22375     echo "$conftest_s" > conftest.s
22376     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; }
22382     then
22383         gcc_cv_as_powerpc_mfpgpr=yes
22384     else
22385       echo "configure: failed program was" >&5
22386       cat conftest.s >&5
22387     fi
22388     rm -f conftest.o conftest.s
22389   fi
22390 fi
22391 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22392 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22393 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22394
22395 cat >>confdefs.h <<\_ACEOF
22396 #define HAVE_AS_MFPGPR 1
22397 _ACEOF
22398
22399 fi
22400
22401     case $target in
22402       *-*-aix*) conftest_s='    .csect .text[PR]
22403 LCF..0:
22404         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22405       *-*-darwin*)
22406         conftest_s='    .text
22407 LCF0:
22408         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22409       *) conftest_s='   .text
22410 .LCF0:
22411         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22412     esac
22413
22414     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22415 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22416 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   gcc_cv_as_powerpc_rel16=no
22420     if test $in_tree_gas = yes; then
22421     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22422   then gcc_cv_as_powerpc_rel16=yes
22423 fi
22424   elif test x$gcc_cv_as != x; then
22425     echo "$conftest_s" > conftest.s
22426     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428   (eval $ac_try) 2>&5
22429   ac_status=$?
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); }; }
22432     then
22433         gcc_cv_as_powerpc_rel16=yes
22434     else
22435       echo "configure: failed program was" >&5
22436       cat conftest.s >&5
22437     fi
22438     rm -f conftest.o conftest.s
22439   fi
22440 fi
22441 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22442 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22443 if test $gcc_cv_as_powerpc_rel16 = yes; then
22444
22445 cat >>confdefs.h <<\_ACEOF
22446 #define HAVE_AS_REL16 1
22447 _ACEOF
22448
22449 fi
22450
22451     case $target in
22452       *-*-aix*) conftest_s='    .machine "pwr6"
22453         .csect .text[PR]
22454         cmpb 3,4,5';;
22455       *) conftest_s='   .machine power6
22456         .text
22457         cmpb 3,4,5';;
22458     esac
22459
22460     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22461 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22462 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22463   echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465   gcc_cv_as_powerpc_cmpb=no
22466     if test $in_tree_gas = yes; then
22467     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22468   then gcc_cv_as_powerpc_cmpb=yes
22469 fi
22470   elif test x$gcc_cv_as != x; then
22471     echo "$conftest_s" > conftest.s
22472     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474   (eval $ac_try) 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); }; }
22478     then
22479         gcc_cv_as_powerpc_cmpb=yes
22480     else
22481       echo "configure: failed program was" >&5
22482       cat conftest.s >&5
22483     fi
22484     rm -f conftest.o conftest.s
22485   fi
22486 fi
22487 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22488 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22489 if test $gcc_cv_as_powerpc_cmpb = yes; then
22490
22491 cat >>confdefs.h <<\_ACEOF
22492 #define HAVE_AS_CMPB 1
22493 _ACEOF
22494
22495 fi
22496
22497     case $target in
22498       *-*-aix*) conftest_s='    .machine "pwr6"
22499         .csect .text[PR]
22500         dadd 1,2,3';;
22501       *) conftest_s='   .machine power6
22502         .text
22503         dadd 1,2,3';;
22504     esac
22505
22506     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22507 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22508 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22509   echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511   gcc_cv_as_powerpc_dfp=no
22512     if test $in_tree_gas = yes; then
22513     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22514   then gcc_cv_as_powerpc_dfp=yes
22515 fi
22516   elif test x$gcc_cv_as != x; then
22517     echo "$conftest_s" > conftest.s
22518     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520   (eval $ac_try) 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; }
22524     then
22525         gcc_cv_as_powerpc_dfp=yes
22526     else
22527       echo "configure: failed program was" >&5
22528       cat conftest.s >&5
22529     fi
22530     rm -f conftest.o conftest.s
22531   fi
22532 fi
22533 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22534 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22535 if test $gcc_cv_as_powerpc_dfp = yes; then
22536
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_AS_DFP 1
22539 _ACEOF
22540
22541 fi
22542
22543     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22544 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22545 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22546   echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548   gcc_cv_as_powerpc_gnu_attribute=no
22549     if test $in_tree_gas = yes; then
22550     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22551   then gcc_cv_as_powerpc_gnu_attribute=yes
22552 fi
22553   elif test x$gcc_cv_as != x; then
22554     echo '.gnu_attribute 4,1' > conftest.s
22555     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557   (eval $ac_try) 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); }; }
22561     then
22562         gcc_cv_as_powerpc_gnu_attribute=yes
22563     else
22564       echo "configure: failed program was" >&5
22565       cat conftest.s >&5
22566     fi
22567     rm -f conftest.o conftest.s
22568   fi
22569 fi
22570 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22571 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22572 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22573
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_AS_GNU_ATTRIBUTE 1
22576 _ACEOF
22577
22578 fi
22579     ;;
22580
22581   mips*-*-*)
22582     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22583 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22584 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   gcc_cv_as_mips_explicit_relocs=no
22588     if test $in_tree_gas = yes; then
22589     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22590   then gcc_cv_as_mips_explicit_relocs=yes
22591 fi
22592   elif test x$gcc_cv_as != x; then
22593     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
22594     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }
22600     then
22601         gcc_cv_as_mips_explicit_relocs=yes
22602     else
22603       echo "configure: failed program was" >&5
22604       cat conftest.s >&5
22605     fi
22606     rm -f conftest.o conftest.s
22607   fi
22608 fi
22609 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22610 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22611 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22612   if test x$target_cpu_default = x
22613        then target_cpu_default=MASK_EXPLICIT_RELOCS
22614        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22615        fi
22616 fi
22617     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22618 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22619 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   gcc_cv_as_mips_no_shared=no
22623     if test $in_tree_gas = yes; then
22624     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22625   then gcc_cv_as_mips_no_shared=yes
22626 fi
22627   elif test x$gcc_cv_as != x; then
22628     echo 'nop' > conftest.s
22629     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631   (eval $ac_try) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); }; }
22635     then
22636         gcc_cv_as_mips_no_shared=yes
22637     else
22638       echo "configure: failed program was" >&5
22639       cat conftest.s >&5
22640     fi
22641     rm -f conftest.o conftest.s
22642   fi
22643 fi
22644 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22645 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22646 if test $gcc_cv_as_mips_no_shared = yes; then
22647
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_AS_NO_SHARED 1
22650 _ACEOF
22651
22652 fi
22653
22654     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22655 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22656 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22657   echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659   gcc_cv_as_mips_gnu_attribute=no
22660     if test $in_tree_gas = yes; then
22661     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22662   then gcc_cv_as_mips_gnu_attribute=yes
22663 fi
22664   elif test x$gcc_cv_as != x; then
22665     echo '.gnu_attribute 4,1' > conftest.s
22666     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668   (eval $ac_try) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); }; }
22672     then
22673         gcc_cv_as_mips_gnu_attribute=yes
22674     else
22675       echo "configure: failed program was" >&5
22676       cat conftest.s >&5
22677     fi
22678     rm -f conftest.o conftest.s
22679   fi
22680 fi
22681 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22682 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22683 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22684
22685 cat >>confdefs.h <<\_ACEOF
22686 #define HAVE_AS_GNU_ATTRIBUTE 1
22687 _ACEOF
22688
22689 fi
22690
22691     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22692 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22693 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22694   echo $ECHO_N "(cached) $ECHO_C" >&6
22695 else
22696   gcc_cv_as_mips_dtprelword=no
22697     if test $in_tree_gas = yes; then
22698     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22699   then gcc_cv_as_mips_dtprelword=yes
22700 fi
22701   elif test x$gcc_cv_as != x; then
22702     echo '.section .tdata,"awT",@progbits
22703 x:
22704         .word 2
22705         .text
22706         .dtprelword x+0x8000' > conftest.s
22707     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; }
22713     then
22714         gcc_cv_as_mips_dtprelword=yes
22715     else
22716       echo "configure: failed program was" >&5
22717       cat conftest.s >&5
22718     fi
22719     rm -f conftest.o conftest.s
22720   fi
22721 fi
22722 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22723 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22724 if test $gcc_cv_as_mips_dtprelword = yes; then
22725
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_AS_DTPRELWORD 1
22728 _ACEOF
22729
22730 fi
22731     ;;
22732 esac
22733
22734 # Mips and HP-UX need the GNU assembler.
22735 # Linux on IA64 might be able to use the Intel assembler.
22736
22737 case "$target" in
22738   mips*-*-* | *-*-hpux* )
22739     if test x$gas_flag = xyes \
22740        || test x"$host" != x"$build" \
22741        || test ! -x "$gcc_cv_as" \
22742        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22743       :
22744     else
22745       echo "*** This configuration requires the GNU assembler" >&2
22746       exit 1
22747     fi
22748     ;;
22749 esac
22750
22751 # ??? Not all targets support dwarf2 debug_line, even within a version
22752 # of gas.  Moreover, we need to emit a valid instruction to trigger any
22753 # info to the output file.  So, as supported targets are added to gas 2.11,
22754 # add some instruction here to (also) show we expect this might work.
22755 # ??? Once 2.11 is released, probably need to add first known working
22756 # version to the per-target configury.
22757 case "$target" in
22758   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22759   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22760   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22761   | spu-*-* | fido*-*-*)
22762     insn="nop"
22763     ;;
22764   ia64*-*-* | s390*-*-*)
22765     insn="nop 0"
22766     ;;
22767   mmix-*-*)
22768     insn="swym 0"
22769     ;;
22770 esac
22771 if test x"$insn" != x; then
22772  conftest_s="\
22773         .file 1 \"conftest.s\"
22774         .loc 1 3 0
22775         $insn"
22776  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22777 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22778 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781   gcc_cv_as_dwarf2_debug_line=no
22782     if test $in_tree_gas = yes; then
22783     if test $in_tree_gas_is_elf = yes \
22784   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22785   then gcc_cv_as_dwarf2_debug_line=yes
22786 fi
22787   elif test x$gcc_cv_as != x; then
22788     echo "$conftest_s" > conftest.s
22789     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791   (eval $ac_try) 2>&5
22792   ac_status=$?
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); }; }
22795     then
22796         if test x$gcc_cv_objdump != x \
22797    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22798       | grep debug_line > /dev/null 2>&1; then
22799      gcc_cv_as_dwarf2_debug_line=yes
22800    fi
22801     else
22802       echo "configure: failed program was" >&5
22803       cat conftest.s >&5
22804     fi
22805     rm -f conftest.o conftest.s
22806   fi
22807 fi
22808 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22809 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22810
22811
22812 # The .debug_line file table must be in the exact order that
22813 # we specified the files, since these indices are also used
22814 # by DW_AT_decl_file.  Approximate this test by testing if
22815 # the assembler bitches if the same index is assigned twice.
22816  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22817 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22818 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821   gcc_cv_as_dwarf2_file_buggy=no
22822   if test x$gcc_cv_as != x; then
22823     echo '      .file 1 "foo.s"
22824         .file 1 "bar.s"' > conftest.s
22825     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827   (eval $ac_try) 2>&5
22828   ac_status=$?
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); }; }
22831     then
22832         gcc_cv_as_dwarf2_file_buggy=yes
22833     else
22834       echo "configure: failed program was" >&5
22835       cat conftest.s >&5
22836     fi
22837     rm -f conftest.o conftest.s
22838   fi
22839 fi
22840 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22841 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22842
22843
22844  if test $gcc_cv_as_dwarf2_debug_line = yes \
22845  && test $gcc_cv_as_dwarf2_file_buggy = no; then
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22849 _ACEOF
22850
22851  fi
22852
22853  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22854 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22855 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858   gcc_cv_as_gdwarf2_flag=no
22859     if test $in_tree_gas = yes; then
22860     if test $in_tree_gas_is_elf = yes \
22861   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22862   then gcc_cv_as_gdwarf2_flag=yes
22863 fi
22864   elif test x$gcc_cv_as != x; then
22865     echo "$insn" > conftest.s
22866     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; }
22872     then
22873         gcc_cv_as_gdwarf2_flag=yes
22874     else
22875       echo "configure: failed program was" >&5
22876       cat conftest.s >&5
22877     fi
22878     rm -f conftest.o conftest.s
22879   fi
22880 fi
22881 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22882 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22883 if test $gcc_cv_as_gdwarf2_flag = yes; then
22884
22885 cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22887 _ACEOF
22888
22889 fi
22890
22891  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22892 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22893 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896   gcc_cv_as_gstabs_flag=no
22897     if test $in_tree_gas = yes; then
22898     if test $in_tree_gas_is_elf = yes \
22899   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22900   then gcc_cv_as_gstabs_flag=yes
22901 fi
22902   elif test x$gcc_cv_as != x; then
22903     echo "$insn" > conftest.s
22904     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906   (eval $ac_try) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; }
22910     then
22911         # The native Solaris 9/Intel assembler doesn't understand --gstabs
22912    # and warns about it, but still exits successfully.  So check for
22913    # this.
22914    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); }; }
22920    then :
22921    else gcc_cv_as_gstabs_flag=yes
22922    fi
22923     else
22924       echo "configure: failed program was" >&5
22925       cat conftest.s >&5
22926     fi
22927     rm -f conftest.o conftest.s
22928   fi
22929 fi
22930 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22931 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22932 if test $gcc_cv_as_gstabs_flag = yes; then
22933
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22936 _ACEOF
22937
22938 fi
22939
22940  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22941 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22942 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22943   echo $ECHO_N "(cached) $ECHO_C" >&6
22944 else
22945   gcc_cv_as_debug_prefix_map_flag=no
22946     if test $in_tree_gas = yes; then
22947     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22948   then gcc_cv_as_debug_prefix_map_flag=yes
22949 fi
22950   elif test x$gcc_cv_as != x; then
22951     echo "$insn" > conftest.s
22952     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954   (eval $ac_try) 2>&5
22955   ac_status=$?
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); }; }
22958     then
22959         gcc_cv_as_debug_prefix_map_flag=yes
22960     else
22961       echo "configure: failed program was" >&5
22962       cat conftest.s >&5
22963     fi
22964     rm -f conftest.o conftest.s
22965   fi
22966 fi
22967 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22968 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22969 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22970
22971 cat >>confdefs.h <<\_ACEOF
22972 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22973 _ACEOF
22974
22975 fi
22976 fi
22977
22978 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22979 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22980 if test "${gcc_cv_as_line_zero+set}" = set; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   gcc_cv_as_line_zero=no
22984   if test $in_tree_gas = yes; then
22985     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22986   then gcc_cv_as_line_zero=yes
22987 fi
22988   elif test "x$gcc_cv_as" != x; then
22989     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22990     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992   (eval $ac_try) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; } &&
22996        test "x`cat conftest.out`" = x
22997     then
22998       gcc_cv_as_line_zero=yes
22999     else
23000       echo "configure: failed program was" >&5
23001       cat conftest.s >&5
23002       echo "configure: error output was" >&5
23003       cat conftest.out >&5
23004     fi
23005     rm -f conftest.o conftest.s conftest.out
23006   fi
23007 fi
23008 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23009 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23010 if test "x$gcc_cv_as_line_zero" = xyes; then
23011
23012 cat >>confdefs.h <<\_ACEOF
23013 #define HAVE_AS_LINE_ZERO 1
23014 _ACEOF
23015
23016 fi
23017
23018 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23019 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23020 gcc_cv_ld_ro_rw_mix=unknown
23021 if test $in_tree_ld = yes ; then
23022   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 \
23023      && test $in_tree_ld_is_elf = yes; then
23024     gcc_cv_ld_ro_rw_mix=read-write
23025   fi
23026 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23027   echo '.section myfoosect, "a"' > conftest1.s
23028   echo '.section myfoosect, "aw"' > conftest2.s
23029   echo '.byte 1' >> conftest2.s
23030   echo '.section myfoosect, "a"' > conftest3.s
23031   echo '.byte 0' >> conftest3.s
23032   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23033      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23034      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23035      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23036         conftest2.o conftest3.o > /dev/null 2>&1; then
23037     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23038                          | sed -e '/myfoosect/!d' -e N`
23039     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23040       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23041         gcc_cv_ld_ro_rw_mix=read-only
23042       else
23043         gcc_cv_ld_ro_rw_mix=read-write
23044       fi
23045     fi
23046   fi
23047   rm -f conftest.* conftest[123].*
23048 fi
23049 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23053 _ACEOF
23054
23055 fi
23056 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23057 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23058
23059 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23060 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23061 gcc_cv_ld_eh_frame_hdr=no
23062 if test $in_tree_ld = yes ; then
23063   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 \
23064      && test $in_tree_ld_is_elf = yes; then
23065     gcc_cv_ld_eh_frame_hdr=yes
23066   fi
23067 elif test x$gcc_cv_ld != x; then
23068         # Check if linker supports --eh-frame-hdr option
23069         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23070                 gcc_cv_ld_eh_frame_hdr=yes
23071         fi
23072 fi
23073
23074 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_LD_EH_FRAME_HDR 1
23078 _ACEOF
23079
23080 fi
23081 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23082 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23083
23084 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23085 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23086 gcc_cv_ld_pie=no
23087 if test $in_tree_ld = yes ; then
23088   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 \
23089      && test $in_tree_ld_is_elf = yes; then
23090     gcc_cv_ld_pie=yes
23091   fi
23092 elif test x$gcc_cv_ld != x; then
23093         # Check if linker supports -pie option
23094         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23095                 gcc_cv_ld_pie=yes
23096         fi
23097 fi
23098 if test x"$gcc_cv_ld_pie" = xyes; then
23099
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_LD_PIE 1
23102 _ACEOF
23103
23104 fi
23105 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23106 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23107
23108 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23109 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23110 gcc_cv_ld_eh_gc_sections=no
23111 if test $in_tree_ld = yes ; then
23112   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 \
23113      && test $in_tree_ld_is_elf = yes; then
23114     gcc_cv_ld_eh_gc_sections=yes
23115   fi
23116 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23117   cat > conftest.s <<EOF
23118         .section        .text
23119 .globl _start
23120         .type _start, @function
23121 _start:
23122         .long foo
23123         .size _start, .-_start
23124         .section        .text.foo,"ax",@progbits
23125         .type foo, @function
23126 foo:
23127         .long 0
23128         .size foo, .-foo
23129         .section        .gcc_except_table.foo,"a",@progbits
23130 .L0:
23131         .long 0
23132         .section        .eh_frame,"a",@progbits
23133         .long .L0
23134 EOF
23135   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23136     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23137          | grep "gc-sections option ignored" > /dev/null; then
23138       gcc_cv_ld_eh_gc_sections=no
23139     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23140       gcc_cv_ld_eh_gc_sections=yes
23141       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23142       if test x$gcc_cv_as_comdat_group != xyes; then
23143         gcc_cv_ld_eh_gc_sections=no
23144         cat > conftest.s <<EOF
23145         .section        .text
23146 .globl _start
23147         .type _start, @function
23148 _start:
23149         .long foo
23150         .size _start, .-_start
23151         .section        .gnu.linkonce.t.foo,"ax",@progbits
23152         .type foo, @function
23153 foo:
23154         .long 0
23155         .size foo, .-foo
23156         .section        .gcc_except_table.foo,"a",@progbits
23157 .L0:
23158         .long 0
23159         .section        .eh_frame,"a",@progbits
23160         .long .L0
23161 EOF
23162         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23163           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23164                | grep "gc-sections option ignored" > /dev/null; then
23165             gcc_cv_ld_eh_gc_sections=no
23166           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23167             gcc_cv_ld_eh_gc_sections=yes
23168           fi
23169         fi
23170       fi
23171     fi
23172   fi
23173   rm -f conftest.s conftest.o conftest
23174 fi
23175 case "$target" in
23176   hppa*-*-linux*)
23177     # ??? This apparently exposes a binutils bug with PC-relative relocations.
23178     gcc_cv_ld_eh_gc_sections=no
23179     ;;
23180 esac
23181 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23182
23183 cat >>confdefs.h <<\_ACEOF
23184 #define HAVE_LD_EH_GC_SECTIONS 1
23185 _ACEOF
23186
23187 fi
23188 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23189 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23190
23191 # --------
23192 # UNSORTED
23193 # --------
23194
23195 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23196 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23197 if test "${gcc_cv_ld_as_needed+set}" = set; then
23198   echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23200   gcc_cv_ld_as_needed=no
23201 if test $in_tree_ld = yes ; then
23202   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 \
23203      && test $in_tree_ld_is_elf = yes; then
23204     gcc_cv_ld_as_needed=yes
23205   fi
23206 elif test x$gcc_cv_ld != x; then
23207         # Check if linker supports --as-needed and --no-as-needed options
23208         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23209                 gcc_cv_ld_as_needed=yes
23210         fi
23211 fi
23212
23213 fi
23214 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23215 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23216 if test x"$gcc_cv_ld_as_needed" = xyes; then
23217
23218 cat >>confdefs.h <<\_ACEOF
23219 #define HAVE_LD_AS_NEEDED 1
23220 _ACEOF
23221
23222 fi
23223
23224 case "$target:$tm_file" in
23225   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23226     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23227 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23228 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23229   echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231   gcc_cv_ld_no_dot_syms=no
23232     if test $in_tree_ld = yes ; then
23233       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
23234         gcc_cv_ld_no_dot_syms=yes
23235       fi
23236     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23237       cat > conftest1.s <<EOF
23238         .text
23239         bl .foo
23240 EOF
23241       cat > conftest2.s <<EOF
23242         .section ".opd","aw"
23243         .align 3
23244         .globl foo
23245         .type foo,@function
23246 foo:
23247         .quad .LEfoo,.TOC.@tocbase,0
23248         .text
23249 .LEfoo:
23250         blr
23251         .size foo,.-.LEfoo
23252 EOF
23253       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23254          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23255          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23256         gcc_cv_ld_no_dot_syms=yes
23257       fi
23258       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23259     fi
23260
23261 fi
23262 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23263 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23264     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23265
23266 cat >>confdefs.h <<\_ACEOF
23267 #define HAVE_LD_NO_DOT_SYMS 1
23268 _ACEOF
23269
23270     fi
23271     ;;
23272 esac
23273
23274 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23275 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23276 if test "${gcc_cv_ld_sysroot+set}" = set; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   gcc_cv_ld_sysroot=no
23280   if test $in_tree_ld = yes ; then
23281       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
23282         gcc_cv_ld_sysroot=yes
23283       fi
23284   elif test x$gcc_cv_ld != x; then
23285     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23286       gcc_cv_ld_sysroot=yes
23287     fi
23288   fi
23289 fi
23290 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23291 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23292 if test x"$gcc_cv_ld_sysroot" = xyes; then
23293
23294 cat >>confdefs.h <<\_ACEOF
23295 #define HAVE_LD_SYSROOT 1
23296 _ACEOF
23297
23298 fi
23299
23300 if test x$with_sysroot = x && test x$host = x$target \
23301    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23302    && test "$prefix" != "NONE"; then
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define PREFIX_INCLUDE_DIR "$prefix/include"
23306 _ACEOF
23307
23308 fi
23309
23310 # Test for stack protector support in target C library.
23311 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23312 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23313 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23314   echo $ECHO_N "(cached) $ECHO_C" >&6
23315 else
23316   gcc_cv_libc_provides_ssp=no
23317     case "$target" in
23318        *-*-linux*)
23319       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23320         if test "x$with_sysroot" = x; then
23321           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23322         elif test "x$with_build_sysroot" != "x"; then
23323           glibc_header_dir="${with_build_sysroot}/usr/include"
23324         elif test "x$with_sysroot" = xyes; then
23325           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23326         else
23327           glibc_header_dir="${with_sysroot}/usr/include"
23328         fi
23329       else
23330         glibc_header_dir=/usr/include
23331       fi
23332       # glibc 2.4 and later provides __stack_chk_fail and
23333       # either __stack_chk_guard, or TLS access to stack guard canary.
23334       if test -f $glibc_header_dir/features.h \
23335          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
23336             $glibc_header_dir/features.h > /dev/null; then
23337         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
23338            $glibc_header_dir/features.h > /dev/null; then
23339           gcc_cv_libc_provides_ssp=yes
23340         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
23341              $glibc_header_dir/features.h > /dev/null \
23342              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
23343              $glibc_header_dir/features.h > /dev/null; then
23344           gcc_cv_libc_provides_ssp=yes
23345         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
23346              $glibc_header_dir/features.h > /dev/null && \
23347              test -f $glibc_header_dir/bits/uClibc_config.h && \
23348              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
23349              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23350           gcc_cv_libc_provides_ssp=yes
23351         fi
23352       fi
23353         ;;
23354        *-*-darwin*)
23355          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23356 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23357 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23358   echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360   cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23368 #define __stack_chk_fail innocuous___stack_chk_fail
23369
23370 /* System header to define __stub macros and hopefully few prototypes,
23371     which can conflict with char __stack_chk_fail (); below.
23372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23373     <limits.h> exists even on freestanding compilers.  */
23374
23375 #ifdef __STDC__
23376 # include <limits.h>
23377 #else
23378 # include <assert.h>
23379 #endif
23380
23381 #undef __stack_chk_fail
23382
23383 /* Override any gcc2 internal prototype to avoid an error.  */
23384 #ifdef __cplusplus
23385 extern "C"
23386 {
23387 #endif
23388 /* We use char because int might match the return type of a gcc2
23389    builtin and then its argument prototype would still apply.  */
23390 char __stack_chk_fail ();
23391 /* The GNU C library defines this for functions which it implements
23392     to always fail with ENOSYS.  Some functions are actually named
23393     something starting with __ and the normal name is an alias.  */
23394 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23395 choke me
23396 #else
23397 char (*f) () = __stack_chk_fail;
23398 #endif
23399 #ifdef __cplusplus
23400 }
23401 #endif
23402
23403 int
23404 main ()
23405 {
23406 return f != __stack_chk_fail;
23407   ;
23408   return 0;
23409 }
23410 _ACEOF
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23413   (eval $ac_link) 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } &&
23420          { ac_try='test -z "$ac_c_werror_flag"
23421                          || test ! -s conftest.err'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; } &&
23427          { ac_try='test -s conftest$ac_exeext'
23428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429   (eval $ac_try) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; }; then
23433   ac_cv_func___stack_chk_fail=yes
23434 else
23435   echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438 ac_cv_func___stack_chk_fail=no
23439 fi
23440 rm -f conftest.err conftest.$ac_objext \
23441       conftest$ac_exeext conftest.$ac_ext
23442 fi
23443 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23444 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23445 if test $ac_cv_func___stack_chk_fail = yes; then
23446   gcc_cv_libc_provides_ssp=yes
23447 else
23448   echo "no __stack_chk_fail on this target"
23449 fi
23450
23451         ;;
23452   *) gcc_cv_libc_provides_ssp=no ;;
23453     esac
23454 fi
23455 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23456 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23457
23458 if test x$gcc_cv_libc_provides_ssp = xyes; then
23459
23460 cat >>confdefs.h <<\_ACEOF
23461 #define TARGET_LIBC_PROVIDES_SSP 1
23462 _ACEOF
23463
23464 fi
23465
23466 # Check if TFmode long double should be used by default or not.
23467 # Some glibc targets used DFmode long double, but with glibc 2.4
23468 # and later they can use TFmode.
23469 case "$target" in
23470   powerpc*-*-linux* | \
23471   powerpc*-*-gnu* | \
23472   sparc*-*-linux* | \
23473   s390*-*-linux* | \
23474   alpha*-*-linux*)
23475
23476 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23477 if test "${with_long_double_128+set}" = set; then
23478   withval="$with_long_double_128"
23479   gcc_cv_target_ldbl128="$with_long_double_128"
23480 else
23481   gcc_cv_target_ldbl128=no
23482       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23483         if test "x$with_sysroot" = x; then
23484           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23485         elif test "x$with_build_sysroot" != "x"; then
23486           glibc_header_dir="${with_build_sysroot}/usr/include"
23487         elif test "x$with_sysroot" = xyes; then
23488           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23489         else
23490           glibc_header_dir="${with_sysroot}/usr/include"
23491         fi
23492       else
23493         glibc_header_dir=/usr/include
23494       fi
23495       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23496         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23497       && gcc_cv_target_ldbl128=yes
23498
23499 fi;
23500     ;;
23501 esac
23502 if test x$gcc_cv_target_ldbl128 = xyes; then
23503
23504 cat >>confdefs.h <<\_ACEOF
23505 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23506 _ACEOF
23507
23508 fi
23509
23510 # Find out what GC implementation we want, or may, use.
23511
23512 # Check whether --with-gc or --without-gc was given.
23513 if test "${with_gc+set}" = set; then
23514   withval="$with_gc"
23515   case "$withval" in
23516   page)
23517     GGC=ggc-$withval
23518     ;;
23519   zone)
23520     GGC=ggc-$withval
23521
23522 cat >>confdefs.h <<\_ACEOF
23523 #define GGC_ZONE 1
23524 _ACEOF
23525
23526     ;;
23527   *)
23528     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23529 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23530    { (exit 1); exit 1; }; }
23531     ;;
23532 esac
23533 else
23534   GGC=ggc-page
23535 fi;
23536
23537 echo "Using $GGC for garbage collection."
23538
23539 # Use the system's zlib library.
23540 zlibdir=-L../zlib
23541 zlibinc="-I\$(srcdir)/../zlib"
23542
23543 # Check whether --with-system-zlib or --without-system-zlib was given.
23544 if test "${with_system_zlib+set}" = set; then
23545   withval="$with_system_zlib"
23546   zlibdir=
23547 zlibinc=
23548
23549 fi;
23550
23551
23552
23553
23554 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23555 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23556     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23557 if test "${enable_maintainer_mode+set}" = set; then
23558   enableval="$enable_maintainer_mode"
23559   maintainer_mode=$enableval
23560 else
23561   maintainer_mode=no
23562 fi;
23563
23564 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23565 echo "${ECHO_T}$maintainer_mode" >&6
23566
23567 if test "$maintainer_mode" = "yes"; then
23568   MAINT=''
23569 else
23570   MAINT='#'
23571 fi
23572
23573 # --------------
23574 # Language hooks
23575 # --------------
23576
23577 # Make empty files to contain the specs and options for each language.
23578 # Then add #include lines to for a compiler that has specs and/or options.
23579
23580 subdirs=
23581 lang_opt_files=
23582 lang_specs_files=
23583 lang_tree_files=
23584 # These (without "all_") are set in each config-lang.in.
23585 # `language' must be a single word so is spelled singularly.
23586 all_languages=
23587 all_compilers=
23588 all_outputs='Makefile gccbug libada-mk'
23589 # List of language makefile fragments.
23590 all_lang_makefrags=
23591 # List of language subdirectory makefiles.  Deprecated.
23592 all_lang_makefiles=
23593 # Additional files for gengtype
23594 all_gtfiles="$target_gtfiles"
23595
23596 # These are the languages that are set in --enable-languages,
23597 # and are available in the GCC tree.
23598 all_selected_languages=
23599
23600 # Add the language fragments.
23601 # Languages are added via two mechanisms.  Some information must be
23602 # recorded in makefile variables, these are defined in config-lang.in.
23603 # We accumulate them and plug them into the main Makefile.
23604 # The other mechanism is a set of hooks for each of the main targets
23605 # like `clean', `install', etc.
23606
23607 language_hooks="Make-hooks"
23608
23609 for lang in ${srcdir}/*/config-lang.in
23610 do
23611         test "$lang" = "${srcdir}/*/config-lang.in" && continue
23612
23613         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
23614         if test "x$lang_alias" = x
23615         then
23616               echo "$lang doesn't set \$language." 1>&2
23617               exit 1
23618         fi
23619         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23620         subdirs="$subdirs $subdir"
23621
23622         # $gcc_subdir is where the gcc integration files are to be found
23623         # for a language, both for internal compiler purposes (compiler
23624         # sources implementing front-end to GCC tree converters), and for
23625         # build infrastructure purposes (Make-lang.in, etc.)
23626         #
23627         # This will be <subdir> (relative to $srcdir) if a line like
23628         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23629         # is found in <langdir>/config-lang.in, and will remain <langdir>
23630         # otherwise.
23631         #
23632         # Except for the language alias (fetched above), the regular
23633         # "config-lang.in" contents are always retrieved from $gcc_subdir,
23634         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23635         # only this and the language alias.
23636
23637         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
23638         if [ "$gcc_subdir" = "" ]; then
23639            gcc_subdir="$subdir"
23640         fi
23641
23642         case ",$enable_languages," in
23643         *,$lang_alias,*)
23644             all_selected_languages="$all_selected_languages $lang_alias"
23645             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23646                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23647             fi
23648             ;;
23649         esac
23650
23651         language=
23652         boot_language=
23653         compilers=
23654         outputs=
23655         gtfiles=
23656         subdir_requires=
23657         . ${srcdir}/$gcc_subdir/config-lang.in
23658         if test "x$language" = x
23659         then
23660                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23661                 exit 1
23662         fi
23663
23664         ok=:
23665         case ",$enable_languages," in
23666                 *,$lang_alias,*) ;;
23667                 *)
23668                         for i in $subdir_requires; do
23669                                 test -f "${srcdir}/$i/config-lang.in" && continue
23670                                 ok=false
23671                                 break
23672                         done
23673                 ;;
23674         esac
23675         $ok || continue
23676
23677         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23678         if test -f $srcdir/$gcc_subdir/lang.opt; then
23679             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23680         fi
23681         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23682             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23683         fi
23684         if test -f ${srcdir}/$gcc_subdir/Makefile.in
23685                 then all_lang_makefiles="$gcc_subdir/Makefile"
23686         fi
23687         all_languages="$all_languages $language"
23688         all_compilers="$all_compilers $compilers"
23689         all_outputs="$all_outputs $outputs"
23690         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23691 done
23692
23693 # Pick up gtfiles for c
23694 gtfiles=
23695 . ${srcdir}/c-config-lang.in
23696 all_gtfiles="$all_gtfiles [c] $gtfiles"
23697
23698 check_languages=
23699 for language in $all_selected_languages
23700 do
23701         check_languages="$check_languages check-$language"
23702 done
23703
23704 # We link each language in with a set of hooks, reached indirectly via
23705 # lang.${target}.  Only do so for selected languages.
23706
23707 rm -f Make-hooks
23708 touch Make-hooks
23709 target_list="all.cross start.encap rest.encap tags \
23710         install-common install-man install-info install-pdf dvi pdf \
23711         html uninstall info man srcextra srcman srcinfo \
23712         mostlyclean clean distclean maintainer-clean"
23713
23714 for t in $target_list
23715 do
23716         x=
23717         for lang in $all_selected_languages
23718         do
23719                 x="$x $lang.$t"
23720         done
23721         echo "lang.$t: $x" >> Make-hooks
23722 done
23723
23724 # --------
23725 # UNSORTED
23726 # --------
23727
23728 # Create .gdbinit.
23729
23730 echo "dir ." > .gdbinit
23731 echo "dir ${srcdir}" >> .gdbinit
23732 if test x$gdb_needs_out_file_path = xyes
23733 then
23734         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23735 fi
23736 if test "x$subdirs" != x; then
23737         for s in $subdirs
23738         do
23739                 echo "dir ${srcdir}/$s" >> .gdbinit
23740         done
23741 fi
23742 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23743
23744 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23745
23746
23747
23748 # Find a directory in which to install a shared libgcc.
23749
23750 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23751 if test "${enable_version_specific_runtime_libs+set}" = set; then
23752   enableval="$enable_version_specific_runtime_libs"
23753
23754 fi;
23755
23756
23757 # Check whether --with-slibdir or --without-slibdir was given.
23758 if test "${with_slibdir+set}" = set; then
23759   withval="$with_slibdir"
23760   slibdir="$with_slibdir"
23761 else
23762   if test "${enable_version_specific_runtime_libs+set}" = set; then
23763   slibdir='$(libsubdir)'
23764 elif test "$host" != "$target"; then
23765   slibdir='$(build_tooldir)/lib'
23766 else
23767   slibdir='$(libdir)'
23768 fi
23769 fi;
23770
23771
23772
23773 # Check whether --with-datarootdir or --without-datarootdir was given.
23774 if test "${with_datarootdir+set}" = set; then
23775   withval="$with_datarootdir"
23776   datarootdir="\${prefix}/$with_datarootdir"
23777 else
23778   datarootdir='$(prefix)/share'
23779 fi;
23780
23781
23782
23783 # Check whether --with-docdir or --without-docdir was given.
23784 if test "${with_docdir+set}" = set; then
23785   withval="$with_docdir"
23786   docdir="\${prefix}/$with_docdir"
23787 else
23788   docdir='$(datarootdir)'
23789 fi;
23790
23791
23792
23793 # Check whether --with-htmldir or --without-htmldir was given.
23794 if test "${with_htmldir+set}" = set; then
23795   withval="$with_htmldir"
23796   htmldir="\${prefix}/$with_htmldir"
23797 else
23798   htmldir='$(docdir)'
23799 fi;
23800
23801
23802 # Substitute configuration variables
23803
23804
23805
23806
23807
23808
23809
23810
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 # Echo link setup.
23861 if test x${build} = x${host} ; then
23862   if test x${host} = x${target} ; then
23863     echo "Links are now set up to build a native compiler for ${target}." 1>&2
23864   else
23865     echo "Links are now set up to build a cross-compiler" 1>&2
23866     echo " from ${host} to ${target}." 1>&2
23867   fi
23868 else
23869   if test x${host} = x${target} ; then
23870     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23871     echo " for ${target}." 1>&2
23872   else
23873     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23874     echo " from ${host} to ${target}." 1>&2
23875   fi
23876 fi
23877
23878
23879
23880
23881 # Configure the subdirectories
23882 # AC_CONFIG_SUBDIRS($subdirs)
23883
23884 # Create the Makefile
23885 # and configure language subdirectories
23886           ac_config_files="$ac_config_files $all_outputs"
23887
23888
23889           ac_config_commands="$ac_config_commands default"
23890
23891 cat >confcache <<\_ACEOF
23892 # This file is a shell script that caches the results of configure
23893 # tests run on this system so they can be shared between configure
23894 # scripts and configure runs, see configure's option --config-cache.
23895 # It is not useful on other systems.  If it contains results you don't
23896 # want to keep, you may remove or edit it.
23897 #
23898 # config.status only pays attention to the cache file if you give it
23899 # the --recheck option to rerun configure.
23900 #
23901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23903 # following values.
23904
23905 _ACEOF
23906
23907 # The following way of writing the cache mishandles newlines in values,
23908 # but we know of no workaround that is simple, portable, and efficient.
23909 # So, don't put newlines in cache variables' values.
23910 # Ultrix sh set writes to stderr and can't be redirected directly,
23911 # and sets the high bit in the cache file unless we assign to the vars.
23912 {
23913   (set) 2>&1 |
23914     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23915     *ac_space=\ *)
23916       # `set' does not quote correctly, so add quotes (double-quote
23917       # substitution turns \\\\ into \\, and sed turns \\ into \).
23918       sed -n \
23919         "s/'/'\\\\''/g;
23920           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23921       ;;
23922     *)
23923       # `set' quotes correctly as required by POSIX, so do not add quotes.
23924       sed -n \
23925         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23926       ;;
23927     esac;
23928 } |
23929   sed '
23930      t clear
23931      : clear
23932      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933      t end
23934      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935      : end' >>confcache
23936 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23937   if test -w $cache_file; then
23938     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23939     cat confcache >$cache_file
23940   else
23941     echo "not updating unwritable cache $cache_file"
23942   fi
23943 fi
23944 rm -f confcache
23945
23946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23947 # Let make expand exec_prefix.
23948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23949
23950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23952 # trailing colons and then remove the whole line if VPATH becomes empty
23953 # (actually we leave an empty line to preserve line numbers).
23954 if test "x$srcdir" = x.; then
23955   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23956 s/:*\$(srcdir):*/:/;
23957 s/:*\${srcdir}:*/:/;
23958 s/:*@srcdir@:*/:/;
23959 s/^\([^=]*=[     ]*\):*/\1/;
23960 s/:*$//;
23961 s/^[^=]*=[       ]*$//;
23962 }'
23963 fi
23964
23965 DEFS=-DHAVE_CONFIG_H
23966
23967 ac_libobjs=
23968 ac_ltlibobjs=
23969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23970   # 1. Remove the extension, and $U if already installed.
23971   ac_i=`echo "$ac_i" |
23972          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23973   # 2. Add them.
23974   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23975   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23976 done
23977 LIBOBJS=$ac_libobjs
23978
23979 LTLIBOBJS=$ac_ltlibobjs
23980
23981
23982
23983 : ${CONFIG_STATUS=./config.status}
23984 ac_clean_files_save=$ac_clean_files
23985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23988 cat >$CONFIG_STATUS <<_ACEOF
23989 #! $SHELL
23990 # Generated by $as_me.
23991 # Run this file to recreate the current configuration.
23992 # Compiler output produced by configure, useful for debugging
23993 # configure, is in config.log if it exists.
23994
23995 debug=false
23996 ac_cs_recheck=false
23997 ac_cs_silent=false
23998 SHELL=\${CONFIG_SHELL-$SHELL}
23999 _ACEOF
24000
24001 cat >>$CONFIG_STATUS <<\_ACEOF
24002 ## --------------------- ##
24003 ## M4sh Initialization.  ##
24004 ## --------------------- ##
24005
24006 # Be Bourne compatible
24007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24008   emulate sh
24009   NULLCMD=:
24010   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24011   # is contrary to our usage.  Disable this feature.
24012   alias -g '${1+"$@"}'='"$@"'
24013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24014   set -o posix
24015 fi
24016 DUALCASE=1; export DUALCASE # for MKS sh
24017
24018 # Support unset when possible.
24019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24020   as_unset=unset
24021 else
24022   as_unset=false
24023 fi
24024
24025
24026 # Work around bugs in pre-3.0 UWIN ksh.
24027 $as_unset ENV MAIL MAILPATH
24028 PS1='$ '
24029 PS2='> '
24030 PS4='+ '
24031
24032 # NLS nuisances.
24033 for as_var in \
24034   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24035   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24036   LC_TELEPHONE LC_TIME
24037 do
24038   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24039     eval $as_var=C; export $as_var
24040   else
24041     $as_unset $as_var
24042   fi
24043 done
24044
24045 # Required to use basename.
24046 if expr a : '\(a\)' >/dev/null 2>&1; then
24047   as_expr=expr
24048 else
24049   as_expr=false
24050 fi
24051
24052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24053   as_basename=basename
24054 else
24055   as_basename=false
24056 fi
24057
24058
24059 # Name of the executable.
24060 as_me=`$as_basename "$0" ||
24061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24062          X"$0" : 'X\(//\)$' \| \
24063          X"$0" : 'X\(/\)$' \| \
24064          .     : '\(.\)' 2>/dev/null ||
24065 echo X/"$0" |
24066     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24067           /^X\/\(\/\/\)$/{ s//\1/; q; }
24068           /^X\/\(\/\).*/{ s//\1/; q; }
24069           s/.*/./; q'`
24070
24071
24072 # PATH needs CR, and LINENO needs CR and PATH.
24073 # Avoid depending upon Character Ranges.
24074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24077 as_cr_digits='0123456789'
24078 as_cr_alnum=$as_cr_Letters$as_cr_digits
24079
24080 # The user is always right.
24081 if test "${PATH_SEPARATOR+set}" != set; then
24082   echo "#! /bin/sh" >conf$$.sh
24083   echo  "exit 0"   >>conf$$.sh
24084   chmod +x conf$$.sh
24085   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24086     PATH_SEPARATOR=';'
24087   else
24088     PATH_SEPARATOR=:
24089   fi
24090   rm -f conf$$.sh
24091 fi
24092
24093
24094   as_lineno_1=$LINENO
24095   as_lineno_2=$LINENO
24096   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24097   test "x$as_lineno_1" != "x$as_lineno_2" &&
24098   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24099   # Find who we are.  Look in the path if we contain no path at all
24100   # relative or not.
24101   case $0 in
24102     *[\\/]* ) as_myself=$0 ;;
24103     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24104 for as_dir in $PATH
24105 do
24106   IFS=$as_save_IFS
24107   test -z "$as_dir" && as_dir=.
24108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24109 done
24110
24111        ;;
24112   esac
24113   # We did not find ourselves, most probably we were run as `sh COMMAND'
24114   # in which case we are not to be found in the path.
24115   if test "x$as_myself" = x; then
24116     as_myself=$0
24117   fi
24118   if test ! -f "$as_myself"; then
24119     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24121    { (exit 1); exit 1; }; }
24122   fi
24123   case $CONFIG_SHELL in
24124   '')
24125     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24127 do
24128   IFS=$as_save_IFS
24129   test -z "$as_dir" && as_dir=.
24130   for as_base in sh bash ksh sh5; do
24131          case $as_dir in
24132          /*)
24133            if ("$as_dir/$as_base" -c '
24134   as_lineno_1=$LINENO
24135   as_lineno_2=$LINENO
24136   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24137   test "x$as_lineno_1" != "x$as_lineno_2" &&
24138   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24139              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24140              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24141              CONFIG_SHELL=$as_dir/$as_base
24142              export CONFIG_SHELL
24143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24144            fi;;
24145          esac
24146        done
24147 done
24148 ;;
24149   esac
24150
24151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24152   # uniformly replaced by the line number.  The first 'sed' inserts a
24153   # line-number line before each line; the second 'sed' does the real
24154   # work.  The second script uses 'N' to pair each line-number line
24155   # with the numbered line, and appends trailing '-' during
24156   # substitution so that $LINENO is not a special case at line end.
24157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24159   sed '=' <$as_myself |
24160     sed '
24161       N
24162       s,$,-,
24163       : loop
24164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24165       t loop
24166       s,-$,,
24167       s,^['$as_cr_digits']*\n,,
24168     ' >$as_me.lineno &&
24169   chmod +x $as_me.lineno ||
24170     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24172    { (exit 1); exit 1; }; }
24173
24174   # Don't try to exec as it changes $[0], causing all sort of problems
24175   # (the dirname of $[0] is not the place where we might find the
24176   # original and so on.  Autoconf is especially sensible to this).
24177   . ./$as_me.lineno
24178   # Exit status is that of the last command.
24179   exit
24180 }
24181
24182
24183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24184   *c*,-n*) ECHO_N= ECHO_C='
24185 ' ECHO_T='      ' ;;
24186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24188 esac
24189
24190 if expr a : '\(a\)' >/dev/null 2>&1; then
24191   as_expr=expr
24192 else
24193   as_expr=false
24194 fi
24195
24196 rm -f conf$$ conf$$.exe conf$$.file
24197 echo >conf$$.file
24198 if ln -s conf$$.file conf$$ 2>/dev/null; then
24199   # We could just check for DJGPP; but this test a) works b) is more generic
24200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24201   if test -f conf$$.exe; then
24202     # Don't use ln at all; we don't have any links
24203     as_ln_s='cp -p'
24204   else
24205     as_ln_s='ln -s'
24206   fi
24207 elif ln conf$$.file conf$$ 2>/dev/null; then
24208   as_ln_s=ln
24209 else
24210   as_ln_s='cp -p'
24211 fi
24212 rm -f conf$$ conf$$.exe conf$$.file
24213
24214 if mkdir -p . 2>/dev/null; then
24215   as_mkdir_p=:
24216 else
24217   test -d ./-p && rmdir ./-p
24218   as_mkdir_p=false
24219 fi
24220
24221 as_executable_p="test -f"
24222
24223 # Sed expression to map a string onto a valid CPP name.
24224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24225
24226 # Sed expression to map a string onto a valid variable name.
24227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24228
24229
24230 # IFS
24231 # We need space, tab and new line, in precisely that order.
24232 as_nl='
24233 '
24234 IFS="   $as_nl"
24235
24236 # CDPATH.
24237 $as_unset CDPATH
24238
24239 exec 6>&1
24240
24241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24242 # report actual input values of CONFIG_FILES etc. instead of their
24243 # values after options handling.  Logging --version etc. is OK.
24244 exec 5>>config.log
24245 {
24246   echo
24247   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24248 ## Running $as_me. ##
24249 _ASBOX
24250 } >&5
24251 cat >&5 <<_CSEOF
24252
24253 This file was extended by $as_me, which was
24254 generated by GNU Autoconf 2.59.  Invocation command line was
24255
24256   CONFIG_FILES    = $CONFIG_FILES
24257   CONFIG_HEADERS  = $CONFIG_HEADERS
24258   CONFIG_LINKS    = $CONFIG_LINKS
24259   CONFIG_COMMANDS = $CONFIG_COMMANDS
24260   $ $0 $@
24261
24262 _CSEOF
24263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24264 echo >&5
24265 _ACEOF
24266
24267 # Files that config.status was made for.
24268 if test -n "$ac_config_files"; then
24269   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24270 fi
24271
24272 if test -n "$ac_config_headers"; then
24273   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24274 fi
24275
24276 if test -n "$ac_config_links"; then
24277   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24278 fi
24279
24280 if test -n "$ac_config_commands"; then
24281   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24282 fi
24283
24284 cat >>$CONFIG_STATUS <<\_ACEOF
24285
24286 ac_cs_usage="\
24287 \`$as_me' instantiates files from templates according to the
24288 current configuration.
24289
24290 Usage: $0 [OPTIONS] [FILE]...
24291
24292   -h, --help       print this help, then exit
24293   -V, --version    print version number, then exit
24294   -q, --quiet      do not print progress messages
24295   -d, --debug      don't remove temporary files
24296       --recheck    update $as_me by reconfiguring in the same conditions
24297   --file=FILE[:TEMPLATE]
24298                    instantiate the configuration file FILE
24299   --header=FILE[:TEMPLATE]
24300                    instantiate the configuration header FILE
24301
24302 Configuration files:
24303 $config_files
24304
24305 Configuration headers:
24306 $config_headers
24307
24308 Configuration commands:
24309 $config_commands
24310
24311 Report bugs to <bug-autoconf@gnu.org>."
24312 _ACEOF
24313
24314 cat >>$CONFIG_STATUS <<_ACEOF
24315 ac_cs_version="\\
24316 config.status
24317 configured by $0, generated by GNU Autoconf 2.59,
24318   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24319
24320 Copyright (C) 2003 Free Software Foundation, Inc.
24321 This config.status script is free software; the Free Software Foundation
24322 gives unlimited permission to copy, distribute and modify it."
24323 srcdir=$srcdir
24324 _ACEOF
24325
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 # If no file are specified by the user, then we need to provide default
24328 # value.  By we need to know if files were specified by the user.
24329 ac_need_defaults=:
24330 while test $# != 0
24331 do
24332   case $1 in
24333   --*=*)
24334     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24335     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24336     ac_shift=:
24337     ;;
24338   -*)
24339     ac_option=$1
24340     ac_optarg=$2
24341     ac_shift=shift
24342     ;;
24343   *) # This is not an option, so the user has probably given explicit
24344      # arguments.
24345      ac_option=$1
24346      ac_need_defaults=false;;
24347   esac
24348
24349   case $ac_option in
24350   # Handling of the options.
24351 _ACEOF
24352 cat >>$CONFIG_STATUS <<\_ACEOF
24353   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24354     ac_cs_recheck=: ;;
24355   --version | --vers* | -V )
24356     echo "$ac_cs_version"; exit 0 ;;
24357   --he | --h)
24358     # Conflict between --help and --header
24359     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24360 Try \`$0 --help' for more information." >&5
24361 echo "$as_me: error: ambiguous option: $1
24362 Try \`$0 --help' for more information." >&2;}
24363    { (exit 1); exit 1; }; };;
24364   --help | --hel | -h )
24365     echo "$ac_cs_usage"; exit 0 ;;
24366   --debug | --d* | -d )
24367     debug=: ;;
24368   --file | --fil | --fi | --f )
24369     $ac_shift
24370     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24371     ac_need_defaults=false;;
24372   --header | --heade | --head | --hea )
24373     $ac_shift
24374     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24375     ac_need_defaults=false;;
24376   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24377   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24378     ac_cs_silent=: ;;
24379
24380   # This is an error.
24381   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24382 Try \`$0 --help' for more information." >&5
24383 echo "$as_me: error: unrecognized option: $1
24384 Try \`$0 --help' for more information." >&2;}
24385    { (exit 1); exit 1; }; } ;;
24386
24387   *) ac_config_targets="$ac_config_targets $1" ;;
24388
24389   esac
24390   shift
24391 done
24392
24393 ac_configure_extra_args=
24394
24395 if $ac_cs_silent; then
24396   exec 6>/dev/null
24397   ac_configure_extra_args="$ac_configure_extra_args --silent"
24398 fi
24399
24400 _ACEOF
24401 cat >>$CONFIG_STATUS <<_ACEOF
24402 if \$ac_cs_recheck; then
24403   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24404   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24405 fi
24406
24407 _ACEOF
24408
24409 cat >>$CONFIG_STATUS <<_ACEOF
24410 #
24411 # INIT-COMMANDS section.
24412 #
24413
24414 subdirs='$subdirs'
24415
24416 _ACEOF
24417
24418
24419
24420 cat >>$CONFIG_STATUS <<\_ACEOF
24421 for ac_config_target in $ac_config_targets
24422 do
24423   case "$ac_config_target" in
24424   # Handling of arguments.
24425   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24426   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24427   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24428   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24429   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24430   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24431   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24433    { (exit 1); exit 1; }; };;
24434   esac
24435 done
24436
24437 # If the user did not use the arguments to specify the items to instantiate,
24438 # then the envvar interface is used.  Set only those that are not.
24439 # We use the long form for the default assignment because of an extremely
24440 # bizarre bug on SunOS 4.1.3.
24441 if $ac_need_defaults; then
24442   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24443   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24444   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24445 fi
24446
24447 # Have a temporary directory for convenience.  Make it in the build tree
24448 # simply because there is no reason to put it here, and in addition,
24449 # creating and moving files from /tmp can sometimes cause problems.
24450 # Create a temporary directory, and hook for its removal unless debugging.
24451 $debug ||
24452 {
24453   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24454   trap '{ (exit 1); exit 1; }' 1 2 13 15
24455 }
24456
24457 # Create a (secure) tmp directory for tmp files.
24458
24459 {
24460   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24461   test -n "$tmp" && test -d "$tmp"
24462 }  ||
24463 {
24464   tmp=./confstat$$-$RANDOM
24465   (umask 077 && mkdir $tmp)
24466 } ||
24467 {
24468    echo "$me: cannot create a temporary directory in ." >&2
24469    { (exit 1); exit 1; }
24470 }
24471
24472 _ACEOF
24473
24474 cat >>$CONFIG_STATUS <<_ACEOF
24475
24476 #
24477 # CONFIG_FILES section.
24478 #
24479
24480 # No need to generate the scripts if there are no CONFIG_FILES.
24481 # This happens for instance when ./config.status config.h
24482 if test -n "\$CONFIG_FILES"; then
24483   # Protect against being on the right side of a sed subst in config.status.
24484   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24485    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24486 s,@SHELL@,$SHELL,;t t
24487 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24488 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24489 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24490 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24491 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24492 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24493 s,@exec_prefix@,$exec_prefix,;t t
24494 s,@prefix@,$prefix,;t t
24495 s,@program_transform_name@,$program_transform_name,;t t
24496 s,@bindir@,$bindir,;t t
24497 s,@sbindir@,$sbindir,;t t
24498 s,@libexecdir@,$libexecdir,;t t
24499 s,@datadir@,$datadir,;t t
24500 s,@sysconfdir@,$sysconfdir,;t t
24501 s,@sharedstatedir@,$sharedstatedir,;t t
24502 s,@localstatedir@,$localstatedir,;t t
24503 s,@libdir@,$libdir,;t t
24504 s,@includedir@,$includedir,;t t
24505 s,@oldincludedir@,$oldincludedir,;t t
24506 s,@infodir@,$infodir,;t t
24507 s,@mandir@,$mandir,;t t
24508 s,@build_alias@,$build_alias,;t t
24509 s,@host_alias@,$host_alias,;t t
24510 s,@target_alias@,$target_alias,;t t
24511 s,@DEFS@,$DEFS,;t t
24512 s,@ECHO_C@,$ECHO_C,;t t
24513 s,@ECHO_N@,$ECHO_N,;t t
24514 s,@ECHO_T@,$ECHO_T,;t t
24515 s,@LIBS@,$LIBS,;t t
24516 s,@build@,$build,;t t
24517 s,@build_cpu@,$build_cpu,;t t
24518 s,@build_vendor@,$build_vendor,;t t
24519 s,@build_os@,$build_os,;t t
24520 s,@host@,$host,;t t
24521 s,@host_cpu@,$host_cpu,;t t
24522 s,@host_vendor@,$host_vendor,;t t
24523 s,@host_os@,$host_os,;t t
24524 s,@target@,$target,;t t
24525 s,@target_cpu@,$target_cpu,;t t
24526 s,@target_vendor@,$target_vendor,;t t
24527 s,@target_os@,$target_os,;t t
24528 s,@target_noncanonical@,$target_noncanonical,;t t
24529 s,@build_libsubdir@,$build_libsubdir,;t t
24530 s,@build_subdir@,$build_subdir,;t t
24531 s,@host_subdir@,$host_subdir,;t t
24532 s,@target_subdir@,$target_subdir,;t t
24533 s,@GENINSRC@,$GENINSRC,;t t
24534 s,@CC@,$CC,;t t
24535 s,@CFLAGS@,$CFLAGS,;t t
24536 s,@LDFLAGS@,$LDFLAGS,;t t
24537 s,@CPPFLAGS@,$CPPFLAGS,;t t
24538 s,@ac_ct_CC@,$ac_ct_CC,;t t
24539 s,@EXEEXT@,$EXEEXT,;t t
24540 s,@OBJEXT@,$OBJEXT,;t t
24541 s,@GNATBIND@,$GNATBIND,;t t
24542 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24543 s,@GNATMAKE@,$GNATMAKE,;t t
24544 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24545 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24546 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24547 s,@CPP@,$CPP,;t t
24548 s,@EGREP@,$EGREP,;t t
24549 s,@loose_warn@,$loose_warn,;t t
24550 s,@strict_warn@,$strict_warn,;t t
24551 s,@warn_cflags@,$warn_cflags,;t t
24552 s,@nocommon_flag@,$nocommon_flag,;t t
24553 s,@TREEBROWSER@,$TREEBROWSER,;t t
24554 s,@valgrind_path@,$valgrind_path,;t t
24555 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24556 s,@valgrind_command@,$valgrind_command,;t t
24557 s,@coverage_flags@,$coverage_flags,;t t
24558 s,@enable_multilib@,$enable_multilib,;t t
24559 s,@enable_decimal_float@,$enable_decimal_float,;t t
24560 s,@enable_fixed_point@,$enable_fixed_point,;t t
24561 s,@enable_shared@,$enable_shared,;t t
24562 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24563 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24564 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24565 s,@onestep@,$onestep,;t t
24566 s,@PKGVERSION@,$PKGVERSION,;t t
24567 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24568 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24569 s,@datarootdir@,$datarootdir,;t t
24570 s,@docdir@,$docdir,;t t
24571 s,@htmldir@,$htmldir,;t t
24572 s,@SET_MAKE@,$SET_MAKE,;t t
24573 s,@AWK@,$AWK,;t t
24574 s,@LN_S@,$LN_S,;t t
24575 s,@LN@,$LN,;t t
24576 s,@RANLIB@,$RANLIB,;t t
24577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24578 s,@ranlib_flags@,$ranlib_flags,;t t
24579 s,@INSTALL@,$INSTALL,;t t
24580 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24581 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24582 s,@make_compare_target@,$make_compare_target,;t t
24583 s,@have_mktemp_command@,$have_mktemp_command,;t t
24584 s,@MAKEINFO@,$MAKEINFO,;t t
24585 s,@BUILD_INFO@,$BUILD_INFO,;t t
24586 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24587 s,@FLEX@,$FLEX,;t t
24588 s,@BISON@,$BISON,;t t
24589 s,@NM@,$NM,;t t
24590 s,@AR@,$AR,;t t
24591 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24592 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24593 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24594 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24595 s,@LIBICONV@,$LIBICONV,;t t
24596 s,@LTLIBICONV@,$LTLIBICONV,;t t
24597 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24598 s,@manext@,$manext,;t t
24599 s,@objext@,$objext,;t t
24600 s,@gthread_flags@,$gthread_flags,;t t
24601 s,@extra_modes_file@,$extra_modes_file,;t t
24602 s,@extra_opt_files@,$extra_opt_files,;t t
24603 s,@USE_NLS@,$USE_NLS,;t t
24604 s,@LIBINTL@,$LIBINTL,;t t
24605 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24606 s,@INCINTL@,$INCINTL,;t t
24607 s,@XGETTEXT@,$XGETTEXT,;t t
24608 s,@GMSGFMT@,$GMSGFMT,;t t
24609 s,@POSUB@,$POSUB,;t t
24610 s,@CATALOGS@,$CATALOGS,;t t
24611 s,@DATADIRNAME@,$DATADIRNAME,;t t
24612 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24613 s,@GENCAT@,$GENCAT,;t t
24614 s,@CATOBJEXT@,$CATOBJEXT,;t t
24615 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24616 s,@CROSS@,$CROSS,;t t
24617 s,@ALL@,$ALL,;t t
24618 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24619 s,@inhibit_libc@,$inhibit_libc,;t t
24620 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24621 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24622 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24623 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24624 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24625 s,@collect2@,$collect2,;t t
24626 s,@LIBTOOL@,$LIBTOOL,;t t
24627 s,@SED@,$SED,;t t
24628 s,@FGREP@,$FGREP,;t t
24629 s,@GREP@,$GREP,;t t
24630 s,@LD@,$LD,;t t
24631 s,@DUMPBIN@,$DUMPBIN,;t t
24632 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24633 s,@ac_ct_AR@,$ac_ct_AR,;t t
24634 s,@STRIP@,$STRIP,;t t
24635 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24636 s,@lt_ECHO@,$lt_ECHO,;t t
24637 s,@objdir@,$objdir,;t t
24638 s,@enable_fast_install@,$enable_fast_install,;t t
24639 s,@gcc_cv_as@,$gcc_cv_as,;t t
24640 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24641 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24642 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24643 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24644 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24645 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24646 s,@libgcc_visibility@,$libgcc_visibility,;t t
24647 s,@GGC@,$GGC,;t t
24648 s,@zlibdir@,$zlibdir,;t t
24649 s,@zlibinc@,$zlibinc,;t t
24650 s,@MAINT@,$MAINT,;t t
24651 s,@gcc_tooldir@,$gcc_tooldir,;t t
24652 s,@dollar@,$dollar,;t t
24653 s,@slibdir@,$slibdir,;t t
24654 s,@subdirs@,$subdirs,;t t
24655 s,@srcdir@,$srcdir,;t t
24656 s,@all_compilers@,$all_compilers,;t t
24657 s,@all_gtfiles@,$all_gtfiles,;t t
24658 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24659 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24660 s,@all_languages@,$all_languages,;t t
24661 s,@all_selected_languages@,$all_selected_languages,;t t
24662 s,@build_exeext@,$build_exeext,;t t
24663 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24664 s,@build_xm_file_list@,$build_xm_file_list,;t t
24665 s,@build_xm_include_list@,$build_xm_include_list,;t t
24666 s,@build_xm_defines@,$build_xm_defines,;t t
24667 s,@build_file_translate@,$build_file_translate,;t t
24668 s,@check_languages@,$check_languages,;t t
24669 s,@cpp_install_dir@,$cpp_install_dir,;t t
24670 s,@xmake_file@,$xmake_file,;t t
24671 s,@tmake_file@,$tmake_file,;t t
24672 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24673 s,@extra_headers_list@,$extra_headers_list,;t t
24674 s,@extra_objs@,$extra_objs,;t t
24675 s,@extra_parts@,$extra_parts,;t t
24676 s,@extra_passes@,$extra_passes,;t t
24677 s,@extra_programs@,$extra_programs,;t t
24678 s,@float_h_file@,$float_h_file,;t t
24679 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24680 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24681 s,@host_exeext@,$host_exeext,;t t
24682 s,@host_xm_file_list@,$host_xm_file_list,;t t
24683 s,@host_xm_include_list@,$host_xm_include_list,;t t
24684 s,@host_xm_defines@,$host_xm_defines,;t t
24685 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24686 s,@install@,$install,;t t
24687 s,@lang_opt_files@,$lang_opt_files,;t t
24688 s,@lang_specs_files@,$lang_specs_files,;t t
24689 s,@lang_tree_files@,$lang_tree_files,;t t
24690 s,@local_prefix@,$local_prefix,;t t
24691 s,@md_file@,$md_file,;t t
24692 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24693 s,@out_file@,$out_file,;t t
24694 s,@out_object_file@,$out_object_file,;t t
24695 s,@thread_file@,$thread_file,;t t
24696 s,@tm_file_list@,$tm_file_list,;t t
24697 s,@tm_include_list@,$tm_include_list,;t t
24698 s,@tm_defines@,$tm_defines,;t t
24699 s,@tm_p_file_list@,$tm_p_file_list,;t t
24700 s,@tm_p_include_list@,$tm_p_include_list,;t t
24701 s,@xm_file_list@,$xm_file_list,;t t
24702 s,@xm_include_list@,$xm_include_list,;t t
24703 s,@xm_defines@,$xm_defines,;t t
24704 s,@c_target_objs@,$c_target_objs,;t t
24705 s,@cxx_target_objs@,$cxx_target_objs,;t t
24706 s,@fortran_target_objs@,$fortran_target_objs,;t t
24707 s,@target_cpu_default@,$target_cpu_default,;t t
24708 s,@GMPLIBS@,$GMPLIBS,;t t
24709 s,@GMPINC@,$GMPINC,;t t
24710 s,@LIBOBJS@,$LIBOBJS,;t t
24711 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24712 /@language_hooks@/r $language_hooks
24713 s,@language_hooks@,,;t t
24714 CEOF
24715
24716 _ACEOF
24717
24718   cat >>$CONFIG_STATUS <<\_ACEOF
24719   # Split the substitutions into bite-sized pieces for seds with
24720   # small command number limits, like on Digital OSF/1 and HP-UX.
24721   ac_max_sed_lines=48
24722   ac_sed_frag=1 # Number of current file.
24723   ac_beg=1 # First line for current file.
24724   ac_end=$ac_max_sed_lines # Line after last line for current file.
24725   ac_more_lines=:
24726   ac_sed_cmds=
24727   while $ac_more_lines; do
24728     if test $ac_beg -gt 1; then
24729       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24730     else
24731       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24732     fi
24733     if test ! -s $tmp/subs.frag; then
24734       ac_more_lines=false
24735     else
24736       # The purpose of the label and of the branching condition is to
24737       # speed up the sed processing (if there are no `@' at all, there
24738       # is no need to browse any of the substitutions).
24739       # These are the two extra sed commands mentioned above.
24740       (echo ':t
24741   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24742       if test -z "$ac_sed_cmds"; then
24743         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24744       else
24745         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24746       fi
24747       ac_sed_frag=`expr $ac_sed_frag + 1`
24748       ac_beg=$ac_end
24749       ac_end=`expr $ac_end + $ac_max_sed_lines`
24750     fi
24751   done
24752   if test -z "$ac_sed_cmds"; then
24753     ac_sed_cmds=cat
24754   fi
24755 fi # test -n "$CONFIG_FILES"
24756
24757 _ACEOF
24758 cat >>$CONFIG_STATUS <<\_ACEOF
24759 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24760   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24761   case $ac_file in
24762   - | *:- | *:-:* ) # input from stdin
24763         cat >$tmp/stdin
24764         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24765         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24766   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24767         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24768   * )   ac_file_in=$ac_file.in ;;
24769   esac
24770
24771   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24772   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24774          X"$ac_file" : 'X\(//\)[^/]' \| \
24775          X"$ac_file" : 'X\(//\)$' \| \
24776          X"$ac_file" : 'X\(/\)' \| \
24777          .     : '\(.\)' 2>/dev/null ||
24778 echo X"$ac_file" |
24779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24781           /^X\(\/\/\)$/{ s//\1/; q; }
24782           /^X\(\/\).*/{ s//\1/; q; }
24783           s/.*/./; q'`
24784   { if $as_mkdir_p; then
24785     mkdir -p "$ac_dir"
24786   else
24787     as_dir="$ac_dir"
24788     as_dirs=
24789     while test ! -d "$as_dir"; do
24790       as_dirs="$as_dir $as_dirs"
24791       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24793          X"$as_dir" : 'X\(//\)[^/]' \| \
24794          X"$as_dir" : 'X\(//\)$' \| \
24795          X"$as_dir" : 'X\(/\)' \| \
24796          .     : '\(.\)' 2>/dev/null ||
24797 echo X"$as_dir" |
24798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24799           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24800           /^X\(\/\/\)$/{ s//\1/; q; }
24801           /^X\(\/\).*/{ s//\1/; q; }
24802           s/.*/./; q'`
24803     done
24804     test ! -n "$as_dirs" || mkdir $as_dirs
24805   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24806 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24807    { (exit 1); exit 1; }; }; }
24808
24809   ac_builddir=.
24810
24811 if test "$ac_dir" != .; then
24812   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24813   # A "../" for each directory in $ac_dir_suffix.
24814   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24815 else
24816   ac_dir_suffix= ac_top_builddir=
24817 fi
24818
24819 case $srcdir in
24820   .)  # No --srcdir option.  We are building in place.
24821     ac_srcdir=.
24822     if test -z "$ac_top_builddir"; then
24823        ac_top_srcdir=.
24824     else
24825        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24826     fi ;;
24827   [\\/]* | ?:[\\/]* )  # Absolute path.
24828     ac_srcdir=$srcdir$ac_dir_suffix;
24829     ac_top_srcdir=$srcdir ;;
24830   *) # Relative path.
24831     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24832     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24833 esac
24834
24835 # Do not use `cd foo && pwd` to compute absolute paths, because
24836 # the directories may not exist.
24837 case `pwd` in
24838 .) ac_abs_builddir="$ac_dir";;
24839 *)
24840   case "$ac_dir" in
24841   .) ac_abs_builddir=`pwd`;;
24842   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24843   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24844   esac;;
24845 esac
24846 case $ac_abs_builddir in
24847 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24848 *)
24849   case ${ac_top_builddir}. in
24850   .) ac_abs_top_builddir=$ac_abs_builddir;;
24851   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24852   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24853   esac;;
24854 esac
24855 case $ac_abs_builddir in
24856 .) ac_abs_srcdir=$ac_srcdir;;
24857 *)
24858   case $ac_srcdir in
24859   .) ac_abs_srcdir=$ac_abs_builddir;;
24860   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24861   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24862   esac;;
24863 esac
24864 case $ac_abs_builddir in
24865 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24866 *)
24867   case $ac_top_srcdir in
24868   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24869   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24870   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24871   esac;;
24872 esac
24873
24874
24875
24876   if test x"$ac_file" != x-; then
24877     { echo "$as_me:$LINENO: creating $ac_file" >&5
24878 echo "$as_me: creating $ac_file" >&6;}
24879     rm -f "$ac_file"
24880   fi
24881   # Let's still pretend it is `configure' which instantiates (i.e., don't
24882   # use $as_me), people would be surprised to read:
24883   #    /* config.h.  Generated by config.status.  */
24884   if test x"$ac_file" = x-; then
24885     configure_input=
24886   else
24887     configure_input="$ac_file.  "
24888   fi
24889   configure_input=$configure_input"Generated from `echo $ac_file_in |
24890                                      sed 's,.*/,,'` by configure."
24891
24892   # First look for the input files in the build tree, otherwise in the
24893   # src tree.
24894   ac_file_inputs=`IFS=:
24895     for f in $ac_file_in; do
24896       case $f in
24897       -) echo $tmp/stdin ;;
24898       [\\/$]*)
24899          # Absolute (can't be DOS-style, as IFS=:)
24900          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24901 echo "$as_me: error: cannot find input file: $f" >&2;}
24902    { (exit 1); exit 1; }; }
24903          echo "$f";;
24904       *) # Relative
24905          if test -f "$f"; then
24906            # Build tree
24907            echo "$f"
24908          elif test -f "$srcdir/$f"; then
24909            # Source tree
24910            echo "$srcdir/$f"
24911          else
24912            # /dev/null tree
24913            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24914 echo "$as_me: error: cannot find input file: $f" >&2;}
24915    { (exit 1); exit 1; }; }
24916          fi;;
24917       esac
24918     done` || { (exit 1); exit 1; }
24919 _ACEOF
24920 cat >>$CONFIG_STATUS <<_ACEOF
24921   sed "$ac_vpsub
24922 $extrasub
24923 _ACEOF
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24925 :t
24926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24927 s,@configure_input@,$configure_input,;t t
24928 s,@srcdir@,$ac_srcdir,;t t
24929 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24930 s,@top_srcdir@,$ac_top_srcdir,;t t
24931 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24932 s,@builddir@,$ac_builddir,;t t
24933 s,@abs_builddir@,$ac_abs_builddir,;t t
24934 s,@top_builddir@,$ac_top_builddir,;t t
24935 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24937   rm -f $tmp/stdin
24938   if test x"$ac_file" != x-; then
24939     mv $tmp/out $ac_file
24940   else
24941     cat $tmp/out
24942     rm -f $tmp/out
24943   fi
24944
24945   # Run the commands associated with the file.
24946   case $ac_file in
24947     as ) chmod +x as ;;
24948     collect-ld ) chmod +x collect-ld ;;
24949     nm ) chmod +x nm ;;
24950   esac
24951 done
24952 _ACEOF
24953 cat >>$CONFIG_STATUS <<\_ACEOF
24954
24955 #
24956 # CONFIG_HEADER section.
24957 #
24958
24959 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24960 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24961 #
24962 # ac_d sets the value in "#define NAME VALUE" lines.
24963 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24964 ac_dB='[         ].*$,\1#\2'
24965 ac_dC=' '
24966 ac_dD=',;t'
24967 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24968 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24969 ac_uB='$,\1#\2define\3'
24970 ac_uC=' '
24971 ac_uD=',;t'
24972
24973 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24974   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24975   case $ac_file in
24976   - | *:- | *:-:* ) # input from stdin
24977         cat >$tmp/stdin
24978         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24979         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24980   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24981         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24982   * )   ac_file_in=$ac_file.in ;;
24983   esac
24984
24985   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24986 echo "$as_me: creating $ac_file" >&6;}
24987
24988   # First look for the input files in the build tree, otherwise in the
24989   # src tree.
24990   ac_file_inputs=`IFS=:
24991     for f in $ac_file_in; do
24992       case $f in
24993       -) echo $tmp/stdin ;;
24994       [\\/$]*)
24995          # Absolute (can't be DOS-style, as IFS=:)
24996          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24997 echo "$as_me: error: cannot find input file: $f" >&2;}
24998    { (exit 1); exit 1; }; }
24999          # Do quote $f, to prevent DOS paths from being IFS'd.
25000          echo "$f";;
25001       *) # Relative
25002          if test -f "$f"; then
25003            # Build tree
25004            echo "$f"
25005          elif test -f "$srcdir/$f"; then
25006            # Source tree
25007            echo "$srcdir/$f"
25008          else
25009            # /dev/null tree
25010            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25011 echo "$as_me: error: cannot find input file: $f" >&2;}
25012    { (exit 1); exit 1; }; }
25013          fi;;
25014       esac
25015     done` || { (exit 1); exit 1; }
25016   # Remove the trailing spaces.
25017   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25018
25019 _ACEOF
25020
25021 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25022 # `conftest.undefs', that substitutes the proper values into
25023 # config.h.in to produce config.h.  The first handles `#define'
25024 # templates, and the second `#undef' templates.
25025 # And first: Protect against being on the right side of a sed subst in
25026 # config.status.  Protect against being in an unquoted here document
25027 # in config.status.
25028 rm -f conftest.defines conftest.undefs
25029 # Using a here document instead of a string reduces the quoting nightmare.
25030 # Putting comments in sed scripts is not portable.
25031 #
25032 # `end' is used to avoid that the second main sed command (meant for
25033 # 0-ary CPP macros) applies to n-ary macro definitions.
25034 # See the Autoconf documentation for `clear'.
25035 cat >confdef2sed.sed <<\_ACEOF
25036 s/[\\&,]/\\&/g
25037 s,[\\$`],\\&,g
25038 t clear
25039 : clear
25040 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25041 t end
25042 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25043 : end
25044 _ACEOF
25045 # If some macros were called several times there might be several times
25046 # the same #defines, which is useless.  Nevertheless, we may not want to
25047 # sort them, since we want the *last* AC-DEFINE to be honored.
25048 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25049 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25050 rm -f confdef2sed.sed
25051
25052 # This sed command replaces #undef with comments.  This is necessary, for
25053 # example, in the case of _POSIX_SOURCE, which is predefined and required
25054 # on some systems where configure will not decide to define it.
25055 cat >>conftest.undefs <<\_ACEOF
25056 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25057 _ACEOF
25058
25059 # Break up conftest.defines because some shells have a limit on the size
25060 # of here documents, and old seds have small limits too (100 cmds).
25061 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25062 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25063 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25064 echo '  :' >>$CONFIG_STATUS
25065 rm -f conftest.tail
25066 while grep . conftest.defines >/dev/null
25067 do
25068   # Write a limited-size here document to $tmp/defines.sed.
25069   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25070   # Speed up: don't consider the non `#define' lines.
25071   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25072   # Work around the forget-to-reset-the-flag bug.
25073   echo 't clr' >>$CONFIG_STATUS
25074   echo ': clr' >>$CONFIG_STATUS
25075   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25076   echo 'CEOF
25077   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25078   rm -f $tmp/in
25079   mv $tmp/out $tmp/in
25080 ' >>$CONFIG_STATUS
25081   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25082   rm -f conftest.defines
25083   mv conftest.tail conftest.defines
25084 done
25085 rm -f conftest.defines
25086 echo '  fi # grep' >>$CONFIG_STATUS
25087 echo >>$CONFIG_STATUS
25088
25089 # Break up conftest.undefs because some shells have a limit on the size
25090 # of here documents, and old seds have small limits too (100 cmds).
25091 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25092 rm -f conftest.tail
25093 while grep . conftest.undefs >/dev/null
25094 do
25095   # Write a limited-size here document to $tmp/undefs.sed.
25096   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25097   # Speed up: don't consider the non `#undef'
25098   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25099   # Work around the forget-to-reset-the-flag bug.
25100   echo 't clr' >>$CONFIG_STATUS
25101   echo ': clr' >>$CONFIG_STATUS
25102   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25103   echo 'CEOF
25104   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25105   rm -f $tmp/in
25106   mv $tmp/out $tmp/in
25107 ' >>$CONFIG_STATUS
25108   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25109   rm -f conftest.undefs
25110   mv conftest.tail conftest.undefs
25111 done
25112 rm -f conftest.undefs
25113
25114 cat >>$CONFIG_STATUS <<\_ACEOF
25115   # Let's still pretend it is `configure' which instantiates (i.e., don't
25116   # use $as_me), people would be surprised to read:
25117   #    /* config.h.  Generated by config.status.  */
25118   if test x"$ac_file" = x-; then
25119     echo "/* Generated by configure.  */" >$tmp/config.h
25120   else
25121     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25122   fi
25123   cat $tmp/in >>$tmp/config.h
25124   rm -f $tmp/in
25125   if test x"$ac_file" != x-; then
25126     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25127       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25128 echo "$as_me: $ac_file is unchanged" >&6;}
25129     else
25130       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25132          X"$ac_file" : 'X\(//\)[^/]' \| \
25133          X"$ac_file" : 'X\(//\)$' \| \
25134          X"$ac_file" : 'X\(/\)' \| \
25135          .     : '\(.\)' 2>/dev/null ||
25136 echo X"$ac_file" |
25137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25139           /^X\(\/\/\)$/{ s//\1/; q; }
25140           /^X\(\/\).*/{ s//\1/; q; }
25141           s/.*/./; q'`
25142       { if $as_mkdir_p; then
25143     mkdir -p "$ac_dir"
25144   else
25145     as_dir="$ac_dir"
25146     as_dirs=
25147     while test ! -d "$as_dir"; do
25148       as_dirs="$as_dir $as_dirs"
25149       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25151          X"$as_dir" : 'X\(//\)[^/]' \| \
25152          X"$as_dir" : 'X\(//\)$' \| \
25153          X"$as_dir" : 'X\(/\)' \| \
25154          .     : '\(.\)' 2>/dev/null ||
25155 echo X"$as_dir" |
25156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25158           /^X\(\/\/\)$/{ s//\1/; q; }
25159           /^X\(\/\).*/{ s//\1/; q; }
25160           s/.*/./; q'`
25161     done
25162     test ! -n "$as_dirs" || mkdir $as_dirs
25163   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25165    { (exit 1); exit 1; }; }; }
25166
25167       rm -f $ac_file
25168       mv $tmp/config.h $ac_file
25169     fi
25170   else
25171     cat $tmp/config.h
25172     rm -f $tmp/config.h
25173   fi
25174 done
25175 _ACEOF
25176 cat >>$CONFIG_STATUS <<\_ACEOF
25177
25178 #
25179 # CONFIG_COMMANDS section.
25180 #
25181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25182   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25183   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25184   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25186          X"$ac_dest" : 'X\(//\)[^/]' \| \
25187          X"$ac_dest" : 'X\(//\)$' \| \
25188          X"$ac_dest" : 'X\(/\)' \| \
25189          .     : '\(.\)' 2>/dev/null ||
25190 echo X"$ac_dest" |
25191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25192           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25193           /^X\(\/\/\)$/{ s//\1/; q; }
25194           /^X\(\/\).*/{ s//\1/; q; }
25195           s/.*/./; q'`
25196   { if $as_mkdir_p; then
25197     mkdir -p "$ac_dir"
25198   else
25199     as_dir="$ac_dir"
25200     as_dirs=
25201     while test ! -d "$as_dir"; do
25202       as_dirs="$as_dir $as_dirs"
25203       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25205          X"$as_dir" : 'X\(//\)[^/]' \| \
25206          X"$as_dir" : 'X\(//\)$' \| \
25207          X"$as_dir" : 'X\(/\)' \| \
25208          .     : '\(.\)' 2>/dev/null ||
25209 echo X"$as_dir" |
25210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25212           /^X\(\/\/\)$/{ s//\1/; q; }
25213           /^X\(\/\).*/{ s//\1/; q; }
25214           s/.*/./; q'`
25215     done
25216     test ! -n "$as_dirs" || mkdir $as_dirs
25217   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25219    { (exit 1); exit 1; }; }; }
25220
25221   ac_builddir=.
25222
25223 if test "$ac_dir" != .; then
25224   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25225   # A "../" for each directory in $ac_dir_suffix.
25226   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25227 else
25228   ac_dir_suffix= ac_top_builddir=
25229 fi
25230
25231 case $srcdir in
25232   .)  # No --srcdir option.  We are building in place.
25233     ac_srcdir=.
25234     if test -z "$ac_top_builddir"; then
25235        ac_top_srcdir=.
25236     else
25237        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25238     fi ;;
25239   [\\/]* | ?:[\\/]* )  # Absolute path.
25240     ac_srcdir=$srcdir$ac_dir_suffix;
25241     ac_top_srcdir=$srcdir ;;
25242   *) # Relative path.
25243     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25244     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25245 esac
25246
25247 # Do not use `cd foo && pwd` to compute absolute paths, because
25248 # the directories may not exist.
25249 case `pwd` in
25250 .) ac_abs_builddir="$ac_dir";;
25251 *)
25252   case "$ac_dir" in
25253   .) ac_abs_builddir=`pwd`;;
25254   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25255   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25256   esac;;
25257 esac
25258 case $ac_abs_builddir in
25259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25260 *)
25261   case ${ac_top_builddir}. in
25262   .) ac_abs_top_builddir=$ac_abs_builddir;;
25263   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25264   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25265   esac;;
25266 esac
25267 case $ac_abs_builddir in
25268 .) ac_abs_srcdir=$ac_srcdir;;
25269 *)
25270   case $ac_srcdir in
25271   .) ac_abs_srcdir=$ac_abs_builddir;;
25272   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25273   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25274   esac;;
25275 esac
25276 case $ac_abs_builddir in
25277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25278 *)
25279   case $ac_top_srcdir in
25280   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25281   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25282   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25283   esac;;
25284 esac
25285
25286
25287   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25288 echo "$as_me: executing $ac_dest commands" >&6;}
25289   case $ac_dest in
25290     default )
25291 case ${CONFIG_HEADERS} in
25292   *auto-host.h:config.in*)
25293   echo > cstamp-h ;;
25294 esac
25295 # Make sure all the subdirs exist.
25296 for d in $subdirs doc build
25297 do
25298     test -d $d || mkdir $d
25299 done
25300  ;;
25301   esac
25302 done
25303 _ACEOF
25304
25305 cat >>$CONFIG_STATUS <<\_ACEOF
25306
25307 { (exit 0); exit 0; }
25308 _ACEOF
25309 chmod +x $CONFIG_STATUS
25310 ac_clean_files=$ac_clean_files_save
25311
25312
25313 # configure is writing to config.log, and then calls config.status.
25314 # config.status does its own redirection, appending to config.log.
25315 # Unfortunately, on DOS this fails, as config.log is still kept open
25316 # by configure, so config.status won't be able to write to it; its
25317 # output is simply discarded.  So we exec the FD to /dev/null,
25318 # effectively closing config.log, so it can be properly (re)opened and
25319 # appended to by config.status.  When coming back to configure, we
25320 # need to make the FD available again.
25321 if test "$no_create" != yes; then
25322   ac_cs_success=:
25323   ac_config_status_args=
25324   test "$silent" = yes &&
25325     ac_config_status_args="$ac_config_status_args --quiet"
25326   exec 5>/dev/null
25327   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25328   exec 5>>config.log
25329   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25330   # would make configure fail if this is the last instruction.
25331   $ac_cs_success || { (exit 1); exit 1; }
25332 fi
25333