OSDN Git Service

47d750045390e817b382b886831b159b2d82c881
[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 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 OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC 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 PPLLIBS PPLINC CLOOGLIBS CLOOGINC 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 ac_env_PPLLIBS_set=${PPLLIBS+set}
932 ac_env_PPLLIBS_value=$PPLLIBS
933 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value=$PPLLIBS
935 ac_env_PPLINC_set=${PPLINC+set}
936 ac_env_PPLINC_value=$PPLINC
937 ac_cv_env_PPLINC_set=${PPLINC+set}
938 ac_cv_env_PPLINC_value=$PPLINC
939 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
943 ac_env_CLOOGINC_set=${CLOOGINC+set}
944 ac_env_CLOOGINC_value=$CLOOGINC
945 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value=$CLOOGINC
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-generated-files-in-srcdir
1028                           put copies of generated files in source dir
1029                           intended for creating source tarballs for users
1030                           without texinfo bison or flex.
1031   --enable-werror-always  enable -Werror despite compiler version
1032   --enable-checking=LIST
1033                           enable expensive run-time checks.  With LIST,
1034                           enable only specific categories of checks.
1035                           Categories are: yes,no,all,none,release.
1036                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1037                           rtlflag,rtl,runtime,tree,valgrind,types.
1038   --enable-coverage=LEVEL
1039                           enable compiler's code coverage collection.
1040                           Use to measure compiler performance and locate
1041                           unused parts of the compiler. With LEVEL, specify
1042                           optimization. Values are opt, noopt,
1043                           default is noopt
1044   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1045   --enable-multilib       enable library support for multiple ABIs
1046   --enable-__cxa_atexit   enable __cxa_atexit for C++
1047   --enable-decimal-float={no,yes,bid,dpd}
1048                         enable decimal float extension to C.  Selecting 'bid'
1049                         or 'dpd' choses which decimal floating point format
1050                         to use
1051   --enable-fixed-point    enable fixed-point arithmetic extension to C
1052   --enable-threads        enable thread usage for target GCC
1053   --enable-threads=LIB    use LIB thread package for target GCC
1054   --enable-tls            enable or disable generation of tls code
1055                           overriding the assembler check for tls support
1056   --enable-objc-gc        enable the use of Boehm's garbage collector with
1057                           the GNU Objective-C runtime
1058   --disable-shared        don't provide a shared libgcc
1059   --enable-intermodule    build the compiler in one step
1060   --enable-languages=LIST specify which front-ends to build
1061   --disable-rpath         do not hardcode runtime library paths
1062   --enable-initfini-array       use .init_array/.fini_array sections
1063   --enable-sjlj-exceptions
1064                           arrange to use setjmp/longjmp exception handling
1065   --enable-secureplt      enable -msecure-plt by default for PowerPC
1066   --enable-cld            enable -mcld by default for 32bit x86
1067   --disable-win32-registry
1068                           disable lookup of installation paths in the
1069                           Registry on Windows hosts
1070   --enable-win32-registry enable registry lookup (default)
1071   --enable-win32-registry=KEY
1072                           use KEY instead of GCC version as the last portion
1073                           of the registry key
1074   --enable-shared[=PKGS]
1075                           build shared libraries [default=yes]
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-fast-install[=PKGS]
1079                           optimize for fast installation [default=yes]
1080   --disable-libtool-lock  avoid locking (might break parallel builds)
1081   --enable-maintainer-mode
1082                           enable make rules and dependencies not useful
1083                           (and sometimes confusing) to the casual installer
1084   --enable-version-specific-runtime-libs
1085                           specify that runtime libraries should be
1086                           installed in a compiler-specific directory
1087
1088 Optional Packages:
1089   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1090   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1091   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1092   --with-local-prefix=DIR specifies directory to put local include
1093   --with-gxx-include-dir=DIR
1094                           specifies directory to put g++ header files
1095   --with-cpp-install-dir=DIR
1096                           install the user visible C preprocessor in DIR
1097                           (relative to PREFIX) as well as PREFIX/bin
1098   --with-gnu-ld           arrange to work with GNU ld.
1099   --with-ld               arrange to use the specified ld (full pathname)
1100   --with-demangler-in-ld  try to use demangler in GNU ld.
1101   --with-gnu-as           arrange to work with GNU as
1102   --with-as               arrange to use the specified as (full pathname)
1103   --with-stabs            arrange to use stabs instead of host debug format
1104   --with-dwarf2           force the default debug format to be DWARF 2
1105   --with-build-sysroot=sysroot
1106                           use sysroot as the system root during the build
1107   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1108   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1109   --with-bugurl=URL       Direct users to URL to report a bug
1110   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1111   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1112   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1113   --with-system-libunwind use installed libunwind
1114   --with-pic              try to use only PIC/non-PIC objects [default=use
1115                           both]
1116   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117   --with-long-double-128  Use 128-bit long double by default.
1118   --with-gc={page,zone}   choose the garbage collection mechanism to use
1119                           with the compiler
1120   --with-system-zlib      use installed libz
1121   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1122   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1123   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1124   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1125
1126 Some influential environment variables:
1127   CC          C compiler command
1128   CFLAGS      C compiler flags
1129   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1130               nonstandard directory <lib dir>
1131   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1132               headers in a nonstandard directory <include dir>
1133   CPP         C preprocessor
1134   GMPLIBS     How to link GMP
1135   GMPINC      How to find GMP include files
1136   PPLLIBS     How to link PPL
1137   PPLINC      How to find PPL include files
1138   CLOOGLIBS   How to link CLOOG
1139   CLOOGINC    How to find CLOOG include files
1140
1141 Use these variables to override the choices made by `configure' or to help
1142 it to find libraries and programs with nonstandard names/locations.
1143
1144 _ACEOF
1145 fi
1146
1147 if test "$ac_init_help" = "recursive"; then
1148   # If there are subdirs, report their specific --help.
1149   ac_popdir=`pwd`
1150   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1151     test -d $ac_dir || continue
1152     ac_builddir=.
1153
1154 if test "$ac_dir" != .; then
1155   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1156   # A "../" for each directory in $ac_dir_suffix.
1157   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1158 else
1159   ac_dir_suffix= ac_top_builddir=
1160 fi
1161
1162 case $srcdir in
1163   .)  # No --srcdir option.  We are building in place.
1164     ac_srcdir=.
1165     if test -z "$ac_top_builddir"; then
1166        ac_top_srcdir=.
1167     else
1168        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1169     fi ;;
1170   [\\/]* | ?:[\\/]* )  # Absolute path.
1171     ac_srcdir=$srcdir$ac_dir_suffix;
1172     ac_top_srcdir=$srcdir ;;
1173   *) # Relative path.
1174     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1175     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1176 esac
1177
1178 # Do not use `cd foo && pwd` to compute absolute paths, because
1179 # the directories may not exist.
1180 case `pwd` in
1181 .) ac_abs_builddir="$ac_dir";;
1182 *)
1183   case "$ac_dir" in
1184   .) ac_abs_builddir=`pwd`;;
1185   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1186   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1187   esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1191 *)
1192   case ${ac_top_builddir}. in
1193   .) ac_abs_top_builddir=$ac_abs_builddir;;
1194   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1195   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1196   esac;;
1197 esac
1198 case $ac_abs_builddir in
1199 .) ac_abs_srcdir=$ac_srcdir;;
1200 *)
1201   case $ac_srcdir in
1202   .) ac_abs_srcdir=$ac_abs_builddir;;
1203   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1204   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1205   esac;;
1206 esac
1207 case $ac_abs_builddir in
1208 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1209 *)
1210   case $ac_top_srcdir in
1211   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1212   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1213   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1214   esac;;
1215 esac
1216
1217     cd $ac_dir
1218     # Check for guested configure; otherwise get Cygnus style configure.
1219     if test -f $ac_srcdir/configure.gnu; then
1220       echo
1221       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1222     elif test -f $ac_srcdir/configure; then
1223       echo
1224       $SHELL $ac_srcdir/configure  --help=recursive
1225     elif test -f $ac_srcdir/configure.ac ||
1226            test -f $ac_srcdir/configure.in; then
1227       echo
1228       $ac_configure --help
1229     else
1230       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1231     fi
1232     cd $ac_popdir
1233   done
1234 fi
1235
1236 test -n "$ac_init_help" && exit 0
1237 if $ac_init_version; then
1238   cat <<\_ACEOF
1239
1240 Copyright (C) 2003 Free Software Foundation, Inc.
1241 This configure script is free software; the Free Software Foundation
1242 gives unlimited permission to copy, distribute and modify it.
1243 _ACEOF
1244   exit 0
1245 fi
1246 exec 5>config.log
1247 cat >&5 <<_ACEOF
1248 This file contains any messages produced by compilers while
1249 running configure, to aid debugging if configure makes a mistake.
1250
1251 It was created by $as_me, which was
1252 generated by GNU Autoconf 2.59.  Invocation command line was
1253
1254   $ $0 $@
1255
1256 _ACEOF
1257 {
1258 cat <<_ASUNAME
1259 ## --------- ##
1260 ## Platform. ##
1261 ## --------- ##
1262
1263 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1264 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1265 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1266 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1267 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268
1269 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1270 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1271
1272 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1273 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1275 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1276 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1277 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1278 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1279
1280 _ASUNAME
1281
1282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 for as_dir in $PATH
1284 do
1285   IFS=$as_save_IFS
1286   test -z "$as_dir" && as_dir=.
1287   echo "PATH: $as_dir"
1288 done
1289
1290 } >&5
1291
1292 cat >&5 <<_ACEOF
1293
1294
1295 ## ----------- ##
1296 ## Core tests. ##
1297 ## ----------- ##
1298
1299 _ACEOF
1300
1301
1302 # Keep a trace of the command line.
1303 # Strip out --no-create and --no-recursion so they do not pile up.
1304 # Strip out --silent because we don't want to record it for future runs.
1305 # Also quote any args containing shell meta-characters.
1306 # Make two passes to allow for proper duplicate-argument suppression.
1307 ac_configure_args=
1308 ac_configure_args0=
1309 ac_configure_args1=
1310 ac_sep=
1311 ac_must_keep_next=false
1312 for ac_pass in 1 2
1313 do
1314   for ac_arg
1315   do
1316     case $ac_arg in
1317     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319     | -silent | --silent | --silen | --sile | --sil)
1320       continue ;;
1321     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1323     esac
1324     case $ac_pass in
1325     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326     2)
1327       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328       if test $ac_must_keep_next = true; then
1329         ac_must_keep_next=false # Got value, back to normal.
1330       else
1331         case $ac_arg in
1332           *=* | --config-cache | -C | -disable-* | --disable-* \
1333           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335           | -with-* | --with-* | -without-* | --without-* | --x)
1336             case "$ac_configure_args0 " in
1337               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1338             esac
1339             ;;
1340           -* ) ac_must_keep_next=true ;;
1341         esac
1342       fi
1343       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344       # Get rid of the leading space.
1345       ac_sep=" "
1346       ;;
1347     esac
1348   done
1349 done
1350 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352
1353 # When interrupted or exit'd, cleanup temporary files, and complete
1354 # config.log.  We remove comments because anyway the quotes in there
1355 # would cause problems or look ugly.
1356 # WARNING: Be sure not to use single quotes in there, as some shells,
1357 # such as our DU 5.0 friend, will then `close' the trap.
1358 trap 'exit_status=$?
1359   # Save into config.log some information that might help in debugging.
1360   {
1361     echo
1362
1363     cat <<\_ASBOX
1364 ## ---------------- ##
1365 ## Cache variables. ##
1366 ## ---------------- ##
1367 _ASBOX
1368     echo
1369     # The following way of writing the cache mishandles newlines in values,
1370 {
1371   (set) 2>&1 |
1372     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1373     *ac_space=\ *)
1374       sed -n \
1375         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1377       ;;
1378     *)
1379       sed -n \
1380         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1381       ;;
1382     esac;
1383 }
1384     echo
1385
1386     cat <<\_ASBOX
1387 ## ----------------- ##
1388 ## Output variables. ##
1389 ## ----------------- ##
1390 _ASBOX
1391     echo
1392     for ac_var in $ac_subst_vars
1393     do
1394       eval ac_val=$`echo $ac_var`
1395       echo "$ac_var='"'"'$ac_val'"'"'"
1396     done | sort
1397     echo
1398
1399     if test -n "$ac_subst_files"; then
1400       cat <<\_ASBOX
1401 ## ------------- ##
1402 ## Output files. ##
1403 ## ------------- ##
1404 _ASBOX
1405       echo
1406       for ac_var in $ac_subst_files
1407       do
1408         eval ac_val=$`echo $ac_var`
1409         echo "$ac_var='"'"'$ac_val'"'"'"
1410       done | sort
1411       echo
1412     fi
1413
1414     if test -s confdefs.h; then
1415       cat <<\_ASBOX
1416 ## ----------- ##
1417 ## confdefs.h. ##
1418 ## ----------- ##
1419 _ASBOX
1420       echo
1421       sed "/^$/d" confdefs.h | sort
1422       echo
1423     fi
1424     test "$ac_signal" != 0 &&
1425       echo "$as_me: caught signal $ac_signal"
1426     echo "$as_me: exit $exit_status"
1427   } >&5
1428   rm -f core *.core &&
1429   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1430     exit $exit_status
1431      ' 0
1432 for ac_signal in 1 2 13 15; do
1433   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1434 done
1435 ac_signal=0
1436
1437 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1438 rm -rf conftest* confdefs.h
1439 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1440 echo >confdefs.h
1441
1442 # Predefined preprocessor variables.
1443
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_NAME "$PACKAGE_NAME"
1446 _ACEOF
1447
1448
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1451 _ACEOF
1452
1453
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1456 _ACEOF
1457
1458
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_STRING "$PACKAGE_STRING"
1461 _ACEOF
1462
1463
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1466 _ACEOF
1467
1468
1469 # Let the site file select an alternate cache file if it wants to.
1470 # Prefer explicitly selected file to automatically selected ones.
1471 if test -z "$CONFIG_SITE"; then
1472   if test "x$prefix" != xNONE; then
1473     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474   else
1475     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1476   fi
1477 fi
1478 for ac_site_file in $CONFIG_SITE; do
1479   if test -r "$ac_site_file"; then
1480     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481 echo "$as_me: loading site script $ac_site_file" >&6;}
1482     sed 's/^/| /' "$ac_site_file" >&5
1483     . "$ac_site_file"
1484   fi
1485 done
1486
1487 if test -r "$cache_file"; then
1488   # Some versions of bash will fail to source /dev/null (special
1489   # files actually), so we avoid doing that.
1490   if test -f "$cache_file"; then
1491     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1492 echo "$as_me: loading cache $cache_file" >&6;}
1493     case $cache_file in
1494       [\\/]* | ?:[\\/]* ) . $cache_file;;
1495       *)                      . ./$cache_file;;
1496     esac
1497   fi
1498 else
1499   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1500 echo "$as_me: creating cache $cache_file" >&6;}
1501   >$cache_file
1502 fi
1503
1504 # Check that the precious variables saved in the cache have kept the same
1505 # value.
1506 ac_cache_corrupted=false
1507 for ac_var in `(set) 2>&1 |
1508                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1509   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1510   eval ac_new_set=\$ac_env_${ac_var}_set
1511   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1512   eval ac_new_val="\$ac_env_${ac_var}_value"
1513   case $ac_old_set,$ac_new_set in
1514     set,)
1515       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1516 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1517       ac_cache_corrupted=: ;;
1518     ,set)
1519       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1521       ac_cache_corrupted=: ;;
1522     ,);;
1523     *)
1524       if test "x$ac_old_val" != "x$ac_new_val"; then
1525         # differences in whitespace do not lead to failure.
1526         ac_old_val_w=`echo x $ac_old_val`
1527         ac_new_val_w=`echo x $ac_new_val`
1528         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1529           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531           ac_cache_corrupted=:
1532         else
1533           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1534 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1535           eval $ac_var=\$ac_old_val
1536         fi
1537         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1538 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1539         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1540 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1541       fi;;
1542   esac
1543   # Pass precious variables to config.status.
1544   if test "$ac_new_set" = set; then
1545     case $ac_new_val in
1546     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1547       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1548     *) ac_arg=$ac_var=$ac_new_val ;;
1549     esac
1550     case " $ac_configure_args " in
1551       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1552       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1553     esac
1554   fi
1555 done
1556 if $ac_cache_corrupted; then
1557   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1559   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1560 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1561   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1562 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565
1566 ac_ext=c
1567 ac_cpp='$CPP $CPPFLAGS'
1568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1595
1596
1597 gcc_version=`cat $srcdir/BASE-VER`
1598
1599 # Determine the host, build, and target systems
1600 ac_aux_dir=
1601 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1602   if test -f $ac_dir/install-sh; then
1603     ac_aux_dir=$ac_dir
1604     ac_install_sh="$ac_aux_dir/install-sh -c"
1605     break
1606   elif test -f $ac_dir/install.sh; then
1607     ac_aux_dir=$ac_dir
1608     ac_install_sh="$ac_aux_dir/install.sh -c"
1609     break
1610   elif test -f $ac_dir/shtool; then
1611     ac_aux_dir=$ac_dir
1612     ac_install_sh="$ac_aux_dir/shtool install -c"
1613     break
1614   fi
1615 done
1616 if test -z "$ac_aux_dir"; then
1617   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1618 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1619    { (exit 1); exit 1; }; }
1620 fi
1621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1623 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1624
1625 # Make sure we can run config.sub.
1626 $ac_config_sub sun4 >/dev/null 2>&1 ||
1627   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1628 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 echo "$as_me:$LINENO: checking build system type" >&5
1632 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1633 if test "${ac_cv_build+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   ac_cv_build_alias=$build_alias
1637 test -z "$ac_cv_build_alias" &&
1638   ac_cv_build_alias=`$ac_config_guess`
1639 test -z "$ac_cv_build_alias" &&
1640   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1641 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1642    { (exit 1); exit 1; }; }
1643 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1644   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1646    { (exit 1); exit 1; }; }
1647
1648 fi
1649 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1650 echo "${ECHO_T}$ac_cv_build" >&6
1651 build=$ac_cv_build
1652 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657 echo "$as_me:$LINENO: checking host system type" >&5
1658 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1659 if test "${ac_cv_host+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   ac_cv_host_alias=$host_alias
1663 test -z "$ac_cv_host_alias" &&
1664   ac_cv_host_alias=$ac_cv_build_alias
1665 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1666   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1667 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1668    { (exit 1); exit 1; }; }
1669
1670 fi
1671 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1672 echo "${ECHO_T}$ac_cv_host" >&6
1673 host=$ac_cv_host
1674 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1675 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1676 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677
1678
1679 echo "$as_me:$LINENO: checking target system type" >&5
1680 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1681 if test "${ac_cv_target+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   ac_cv_target_alias=$target_alias
1685 test "x$ac_cv_target_alias" = "x" &&
1686   ac_cv_target_alias=$ac_cv_host_alias
1687 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1688   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1689 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1690    { (exit 1); exit 1; }; }
1691
1692 fi
1693 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1694 echo "${ECHO_T}$ac_cv_target" >&6
1695 target=$ac_cv_target
1696 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1697 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1698 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699
1700
1701 # The aliases save the names the user supplied, while $host etc.
1702 # will get canonicalized.
1703 test -n "$target_alias" &&
1704   test "$program_prefix$program_suffix$program_transform_name" = \
1705     NONENONEs,x,x, &&
1706   program_prefix=${target_alias}-
1707
1708 # Determine the noncanonical target name, for directory use.
1709  case ${build_alias} in
1710   "") build_noncanonical=${build} ;;
1711   *) build_noncanonical=${build_alias} ;;
1712 esac
1713
1714  case ${host_alias} in
1715   "") host_noncanonical=${build_noncanonical} ;;
1716   *) host_noncanonical=${host_alias} ;;
1717 esac
1718
1719  case ${target_alias} in
1720   "") target_noncanonical=${host_noncanonical} ;;
1721   *) target_noncanonical=${target_alias} ;;
1722 esac
1723
1724
1725
1726
1727 # Determine the target- and build-specific subdirectories
1728
1729 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1730 # have matching libraries, they should use host libraries: Makefile.tpl
1731 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1732 # However, they still use the build modules, because the corresponding
1733 # host modules (e.g. bison) are only built for the host when bootstrap
1734 # finishes. So:
1735 # - build_subdir is where we find build modules, and never changes.
1736 # - build_libsubdir is where we find build libraries, and can be overridden.
1737
1738 # Prefix 'build-' so this never conflicts with target_subdir.
1739 build_subdir="build-${build_noncanonical}"
1740
1741 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1742 if test "${with_build_libsubdir+set}" = set; then
1743   withval="$with_build_libsubdir"
1744   build_libsubdir="$withval"
1745 else
1746   build_libsubdir="$build_subdir"
1747 fi;
1748 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1749 if ( test $srcdir = . && test -d gcc ) \
1750    || test -d $srcdir/../host-${host_noncanonical}; then
1751   host_subdir="host-${host_noncanonical}"
1752 else
1753   host_subdir=.
1754 fi
1755 # No prefix.
1756 target_subdir=${target_noncanonical}
1757
1758
1759 # Set program_transform_name
1760 test "$program_prefix" != NONE &&
1761   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $.  echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1769 _ACEOF
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771 rm conftest.sed
1772
1773
1774 # Check for bogus environment variables.
1775 # Test if LIBRARY_PATH contains the notation for the current directory
1776 # since this would lead to problems installing/building glibc.
1777 # LIBRARY_PATH contains the current directory if one of the following
1778 # is true:
1779 # - one of the terminals (":" and ";") is the first or last sign
1780 # - two terminals occur directly after each other
1781 # - the path contains an element with a dot in it
1782 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1783 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1784 case ${LIBRARY_PATH} in
1785   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1786     library_path_setting="contains current directory"
1787     ;;
1788   *)
1789     library_path_setting="ok"
1790     ;;
1791 esac
1792 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1793 echo "${ECHO_T}$library_path_setting" >&6
1794 if test "$library_path_setting" != "ok"; then
1795 { { echo "$as_me:$LINENO: error:
1796 *** LIBRARY_PATH shouldn't contain the current directory when
1797 *** building gcc. Please change the environment variable
1798 *** and run configure again." >&5
1799 echo "$as_me: error:
1800 *** LIBRARY_PATH shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&2;}
1803    { (exit 1); exit 1; }; }
1804 fi
1805
1806 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1807 # since this would lead to problems installing/building glibc.
1808 # GCC_EXEC_PREFIX contains the current directory if one of the following
1809 # is true:
1810 # - one of the terminals (":" and ";") is the first or last sign
1811 # - two terminals occur directly after each other
1812 # - the path contains an element with a dot in it
1813 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1814 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1815 case ${GCC_EXEC_PREFIX} in
1816   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1817     gcc_exec_prefix_setting="contains current directory"
1818     ;;
1819   *)
1820     gcc_exec_prefix_setting="ok"
1821     ;;
1822 esac
1823 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1824 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1825 if test "$gcc_exec_prefix_setting" != "ok"; then
1826 { { echo "$as_me:$LINENO: error:
1827 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1828 *** building gcc. Please change the environment variable
1829 *** and run configure again." >&5
1830 echo "$as_me: error:
1831 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1832 *** building gcc. Please change the environment variable
1833 *** and run configure again." >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837 # -----------
1838 # Directories
1839 # -----------
1840
1841 # Specify the local prefix
1842 local_prefix=
1843
1844 # Check whether --with-local-prefix or --without-local-prefix was given.
1845 if test "${with_local_prefix+set}" = set; then
1846   withval="$with_local_prefix"
1847   case "${withval}" in
1848 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1849 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1850    { (exit 1); exit 1; }; } ;;
1851 no)     ;;
1852 *)      local_prefix=$with_local_prefix ;;
1853 esac
1854 fi;
1855
1856 # Default local prefix if it is empty
1857 if test x$local_prefix = x; then
1858         local_prefix=/usr/local
1859 fi
1860
1861 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1862 # passed in by the toplevel make and thus we'd get different behavior
1863 # depending on where we built the sources.
1864 gcc_gxx_include_dir=
1865 # Specify the g++ header file directory
1866
1867 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1868 if test "${with_gxx_include_dir+set}" = set; then
1869   withval="$with_gxx_include_dir"
1870   case "${withval}" in
1871 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1872 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1873    { (exit 1); exit 1; }; } ;;
1874 no)     ;;
1875 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1876 esac
1877 fi;
1878
1879 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1880 if test x${gcc_gxx_include_dir} = x; then
1881   if test x${enable_version_specific_runtime_libs} = xyes; then
1882     gcc_gxx_include_dir='${libsubdir}/include/c++'
1883   else
1884     libstdcxx_incdir='include/c++/$(version)'
1885     if test x$host != x$target; then
1886        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1887     fi
1888     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1889   fi
1890 fi
1891
1892
1893 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1894 if test "${with_cpp_install_dir+set}" = set; then
1895   withval="$with_cpp_install_dir"
1896   if test x$withval = xyes; then
1897   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1898 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1899    { (exit 1); exit 1; }; }
1900 elif test x$withval != xno; then
1901   cpp_install_dir=$withval
1902 fi
1903 fi;
1904
1905 # We would like to our source tree to be readonly.  However when releases or
1906 # pre-releases are generated, the flex/bison generated files as well as the
1907 # various formats of manuals need to be included along with the rest of the
1908 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1909 # just that.
1910
1911 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1912 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1913     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1914 if test "${enable_generated_files_in_srcdir+set}" = set; then
1915   enableval="$enable_generated_files_in_srcdir"
1916   generated_files_in_srcdir=$enableval
1917 else
1918   generated_files_in_srcdir=no
1919 fi;
1920
1921 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1922 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1923
1924 if test "$generated_files_in_srcdir" = "yes"; then
1925   GENINSRC=''
1926 else
1927   GENINSRC='#'
1928 fi
1929
1930
1931 # -------------------
1932 # Find default linker
1933 # -------------------
1934
1935 # With GNU ld
1936
1937 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1938 if test "${with_gnu_ld+set}" = set; then
1939   withval="$with_gnu_ld"
1940   gnu_ld_flag="$with_gnu_ld"
1941 else
1942   gnu_ld_flag=no
1943 fi;
1944
1945 # With pre-defined ld
1946
1947 # Check whether --with-ld or --without-ld was given.
1948 if test "${with_ld+set}" = set; then
1949   withval="$with_ld"
1950   DEFAULT_LINKER="$with_ld"
1951 fi;
1952 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1953   if test ! -x "$DEFAULT_LINKER"; then
1954     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1955 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1956    { (exit 1); exit 1; }; }
1957   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1958     gnu_ld_flag=yes
1959   fi
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1963 _ACEOF
1964
1965 fi
1966
1967 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define HAVE_GNU_LD $gnu_ld
1971 _ACEOF
1972
1973
1974 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1975 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1976 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1977   if test x"$gnu_ld_flag" = x"no"; then
1978     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1979 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1980   else
1981     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1982 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1983   fi
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 # With demangler in GNU ld
1990
1991 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1992 if test "${with_demangler_in_ld+set}" = set; then
1993   withval="$with_demangler_in_ld"
1994   demangler_in_ld="$with_demangler_in_ld"
1995 else
1996   demangler_in_ld=no
1997 fi;
1998
1999 # ----------------------
2000 # Find default assembler
2001 # ----------------------
2002
2003 # With GNU as
2004
2005 # Check whether --with-gnu-as or --without-gnu-as was given.
2006 if test "${with_gnu_as+set}" = set; then
2007   withval="$with_gnu_as"
2008   gas_flag="$with_gnu_as"
2009 else
2010   gas_flag=no
2011 fi;
2012
2013
2014 # Check whether --with-as or --without-as was given.
2015 if test "${with_as+set}" = set; then
2016   withval="$with_as"
2017   DEFAULT_ASSEMBLER="$with_as"
2018 fi;
2019 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2020   if test ! -x "$DEFAULT_ASSEMBLER"; then
2021     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2022 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2023    { (exit 1); exit 1; }; }
2024   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2025     gas_flag=yes
2026   fi
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2030 _ACEOF
2031
2032 fi
2033
2034 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define HAVE_GNU_AS $gnu_as
2038 _ACEOF
2039
2040
2041 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2042 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2043 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2044   if test x"$gas_flag" = x"no"; then
2045     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2046 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2047   else
2048     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2049 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2050   fi
2051 else
2052   echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 # ---------------
2057 # Find C compiler
2058 # ---------------
2059
2060 # If a non-executable a.out is present (e.g. created by GNU as above even if
2061 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2062 # file, even when creating an executable, so an execution test fails.
2063 # Remove possible default executable files to avoid this.
2064 #
2065 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2066 # Autoconf includes it.
2067 rm -f a.out a.exe b.out
2068
2069 # Find the native compiler
2070 ac_ext=c
2071 ac_cpp='$CPP $CPPFLAGS'
2072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075 if test -n "$ac_tool_prefix"; then
2076   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$CC"; then
2084   ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099
2100 fi
2101 fi
2102 CC=$ac_cv_prog_CC
2103 if test -n "$CC"; then
2104   echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111 fi
2112 if test -z "$ac_cv_prog_CC"; then
2113   ac_ct_CC=$CC
2114   # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$ac_ct_CC"; then
2122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_ac_ct_CC="gcc"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149   CC=$ac_ct_CC
2150 else
2151   CC="$ac_cv_prog_CC"
2152 fi
2153
2154 if test -z "$CC"; then
2155   if test -n "$ac_tool_prefix"; then
2156   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$CC"; then
2164   ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173     ac_cv_prog_CC="${ac_tool_prefix}cc"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 fi
2181 fi
2182 CC=$ac_cv_prog_CC
2183 if test -n "$CC"; then
2184   echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2186 else
2187   echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2189 fi
2190
2191 fi
2192 if test -z "$ac_cv_prog_CC"; then
2193   ac_ct_CC=$CC
2194   # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_CC"; then
2202   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211     ac_cv_prog_ac_ct_CC="cc"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217
2218 fi
2219 fi
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229   CC=$ac_ct_CC
2230 else
2231   CC="$ac_cv_prog_CC"
2232 fi
2233
2234 fi
2235 if test -z "$CC"; then
2236   # Extract the first word of "cc", so it can be a program name with args.
2237 set dummy cc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$CC"; then
2244   ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246   ac_prog_rejected=no
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2255        ac_prog_rejected=yes
2256        continue
2257      fi
2258     ac_cv_prog_CC="cc"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264
2265 if test $ac_prog_rejected = yes; then
2266   # We found a bogon in the path, so make sure we never use it.
2267   set dummy $ac_cv_prog_CC
2268   shift
2269   if test $# != 0; then
2270     # We chose a different compiler from the bogus one.
2271     # However, it has the same basename, so the bogon will be chosen
2272     # first if we set CC to just the basename; use the full file name.
2273     shift
2274     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275   fi
2276 fi
2277 fi
2278 fi
2279 CC=$ac_cv_prog_CC
2280 if test -n "$CC"; then
2281   echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2283 else
2284   echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2286 fi
2287
2288 fi
2289 if test -z "$CC"; then
2290   if test -n "$ac_tool_prefix"; then
2291   for ac_prog in cl
2292   do
2293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321   echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328     test -n "$CC" && break
2329   done
2330 fi
2331 if test -z "$CC"; then
2332   ac_ct_CC=$CC
2333   for ac_prog in cl
2334 do
2335   # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$ac_ct_CC"; then
2343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352     ac_cv_prog_ac_ct_CC="$ac_prog"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358
2359 fi
2360 fi
2361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6
2365 else
2366   echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2368 fi
2369
2370   test -n "$ac_ct_CC" && break
2371 done
2372
2373   CC=$ac_ct_CC
2374 fi
2375
2376 fi
2377
2378
2379 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2380 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&2;}
2385    { (exit 1); exit 1; }; }; }
2386
2387 # Provide some information about the compiler.
2388 echo "$as_me:$LINENO:" \
2389      "checking for C compiler version" >&5
2390 ac_compiler=`set X $ac_compile; echo $2`
2391 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2392   (eval $ac_compiler --version </dev/null >&5) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }
2396 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2397   (eval $ac_compiler -v </dev/null >&5) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }
2401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2402   (eval $ac_compiler -V </dev/null >&5) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }
2406
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 ac_clean_files_save=$ac_clean_files
2423 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2424 # Try to create an executable without -o first, disregard a.out.
2425 # It will help us diagnose broken compilers, and finding out an intuition
2426 # of exeext.
2427 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2428 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2429 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2431   (eval $ac_link_default) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; then
2435   # Find the output, starting from the most likely.  This scheme is
2436 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2437 # resort.
2438
2439 # Be careful to initialize this variable, since it used to be cached.
2440 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2441 ac_cv_exeext=
2442 # b.out is created by i960 compilers.
2443 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2444 do
2445   test -f "$ac_file" || continue
2446   case $ac_file in
2447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2448         ;;
2449     conftest.$ac_ext )
2450         # This is the source file.
2451         ;;
2452     [ab].out )
2453         # We found the default executable, but exeext='' is most
2454         # certainly right.
2455         break;;
2456     *.* )
2457         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458         # FIXME: I believe we export ac_cv_exeext for Libtool,
2459         # but it would be cool to find out if it's true.  Does anybody
2460         # maintain Libtool? --akim.
2461         export ac_cv_exeext
2462         break;;
2463     * )
2464         break;;
2465   esac
2466 done
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&2;}
2477    { (exit 77); exit 77; }; }; }
2478 fi
2479
2480 ac_exeext=$ac_cv_exeext
2481 echo "$as_me:$LINENO: result: $ac_file" >&5
2482 echo "${ECHO_T}$ac_file" >&6
2483
2484 # Check the compiler produces executables we can run.  If not, either
2485 # the compiler is broken, or we cross compile.
2486 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2489 # If not cross compiling, check that we can run a simple program.
2490 if test "$cross_compiling" != yes; then
2491   if { ac_try='./$ac_file'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497     cross_compiling=no
2498   else
2499     if test "$cross_compiling" = maybe; then
2500         cross_compiling=yes
2501     else
2502         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2503 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot run C compiled programs.
2508 If you meant to cross compile, use \`--host'.
2509 See \`config.log' for more details." >&2;}
2510    { (exit 1); exit 1; }; }; }
2511     fi
2512   fi
2513 fi
2514 echo "$as_me:$LINENO: result: yes" >&5
2515 echo "${ECHO_T}yes" >&6
2516
2517 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2518 ac_clean_files=$ac_clean_files_save
2519 # Check the compiler produces executables we can run.  If not, either
2520 # the compiler is broken, or we cross compile.
2521 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2523 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2524 echo "${ECHO_T}$cross_compiling" >&6
2525
2526 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2529   (eval $ac_link) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; then
2533   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 # `rm'.
2537 for ac_file in conftest.exe conftest conftest.*; do
2538   test -f "$ac_file" || continue
2539   case $ac_file in
2540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2541     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542           export ac_cv_exeext
2543           break;;
2544     * ) break;;
2545   esac
2546 done
2547 else
2548   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2549 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&5
2552 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&2;}
2554    { (exit 1); exit 1; }; }; }
2555 fi
2556
2557 rm -f conftest$ac_cv_exeext
2558 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2559 echo "${ECHO_T}$ac_cv_exeext" >&6
2560
2561 rm -f conftest.$ac_ext
2562 EXEEXT=$ac_cv_exeext
2563 ac_exeext=$EXEEXT
2564 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2565 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2566 if test "${ac_cv_objext+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.o conftest.obj
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586   (eval $ac_compile) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; then
2590   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2591   case $ac_file in
2592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2593     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2594        break;;
2595   esac
2596 done
2597 else
2598   echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2602 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }; }
2608 fi
2609
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 fi
2612 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6
2614 OBJEXT=$ac_cv_objext
2615 ac_objext=$OBJEXT
2616 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631 #ifndef __GNUC__
2632        choke me
2633 #endif
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag"
2649                          || test ! -s conftest.err'
2650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; } &&
2655          { ac_try='test -s conftest.$ac_objext'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; }; then
2661   ac_compiler_gnu=yes
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 ac_compiler_gnu=no
2667 fi
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670
2671 fi
2672 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2673 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2674 GCC=`test $ac_compiler_gnu = yes && echo yes`
2675 ac_test_CFLAGS=${CFLAGS+set}
2676 ac_save_CFLAGS=$CFLAGS
2677 CFLAGS="-g"
2678 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag"
2708                          || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   ac_cv_prog_cc_g=yes
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 ac_cv_prog_cc_g=no
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2731 if test "$ac_test_CFLAGS" = set; then
2732   CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734   if test "$GCC" = yes; then
2735     CFLAGS="-g -O2"
2736   else
2737     CFLAGS="-g"
2738   fi
2739 else
2740   if test "$GCC" = yes; then
2741     CFLAGS="-O2"
2742   else
2743     CFLAGS=
2744   fi
2745 fi
2746 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2747 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2748 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_cv_prog_cc_stdc=no
2752 ac_save_CC=$CC
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <stdarg.h>
2760 #include <stdio.h>
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2767      char **p;
2768      int i;
2769 {
2770   return p[i];
2771 }
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2773 {
2774   char *s;
2775   va_list v;
2776   va_start (v,p);
2777   s = g (p, va_arg (v,int));
2778   va_end (v);
2779   return s;
2780 }
2781
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2783    function prototypes and stuff, but not '\xHH' hex character constants.
2784    These don't provoke an error unfortunately, instead are silently treated
2785    as 'x'.  The following induces an error, until -std1 is added to get
2786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2787    array size at least.  It's necessary to write '\x00'==0 to get something
2788    that's true only with -std1.  */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2795 int argc;
2796 char **argv;
2797 int
2798 main ()
2799 {
2800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2801   ;
2802   return 0;
2803 }
2804 _ACEOF
2805 # Don't try gcc -ansi; that turns off useful extensions and
2806 # breaks some systems' header files.
2807 # AIX                   -qlanglvl=ansi
2808 # Ultrix and OSF/1      -std1
2809 # HP-UX 10.20 and later -Ae
2810 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2811 # SVR4                  -Xc -D__EXTENSIONS__
2812 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817   (eval $ac_compile) 2>conftest.er1
2818   ac_status=$?
2819   grep -v '^ *+' conftest.er1 >conftest.err
2820   rm -f conftest.er1
2821   cat conftest.err >&5
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); } &&
2824          { ac_try='test -z "$ac_c_werror_flag"
2825                          || test ! -s conftest.err'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; } &&
2831          { ac_try='test -s conftest.$ac_objext'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837   ac_cv_prog_cc_stdc=$ac_arg
2838 break
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 fi
2844 rm -f conftest.err conftest.$ac_objext
2845 done
2846 rm -f conftest.$ac_ext conftest.$ac_objext
2847 CC=$ac_save_CC
2848
2849 fi
2850
2851 case "x$ac_cv_prog_cc_stdc" in
2852   x|xno)
2853     echo "$as_me:$LINENO: result: none needed" >&5
2854 echo "${ECHO_T}none needed" >&6 ;;
2855   *)
2856     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2858     CC="$CC $ac_cv_prog_cc_stdc" ;;
2859 esac
2860
2861 # Some people use a C++ compiler to compile C.  Since we use `exit',
2862 # in C++ we need to declare it.  In case someone uses the same compiler
2863 # for both compiling C and C++ we need to have the C++ compiler decide
2864 # the declaration of exit, since it's the most demanding environment.
2865 cat >conftest.$ac_ext <<_ACEOF
2866 #ifndef __cplusplus
2867   choke me
2868 #endif
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } &&
2879          { ac_try='test -z "$ac_c_werror_flag"
2880                          || test ! -s conftest.err'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; } &&
2886          { ac_try='test -s conftest.$ac_objext'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892   for ac_declaration in \
2893    '' \
2894    'extern "C" void std::exit (int) throw (); using std::exit;' \
2895    'extern "C" void std::exit (int); using std::exit;' \
2896    'extern "C" void exit (int) throw ();' \
2897    'extern "C" void exit (int);' \
2898    'void exit (int);'
2899 do
2900   cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906 $ac_declaration
2907 #include <stdlib.h>
2908 int
2909 main ()
2910 {
2911 exit (42);
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -z "$ac_c_werror_flag"
2926                          || test ! -s conftest.err'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; } &&
2932          { ac_try='test -s conftest.$ac_objext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   :
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 continue
2944 fi
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 $ac_declaration
2953 int
2954 main ()
2955 {
2956 exit (42);
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963   (eval $ac_compile) 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag"
2971                          || test ! -s conftest.err'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   break
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 fi
2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990 done
2991 rm -f conftest*
2992 if test -n "$ac_declaration"; then
2993   echo '#ifdef __cplusplus' >>confdefs.h
2994   echo $ac_declaration      >>confdefs.h
2995   echo '#endif'             >>confdefs.h
2996 fi
2997
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 fi
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010 if test "x$CC" != xcc; then
3011   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3012 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3013 else
3014   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3015 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3016 fi
3017 set dummy $CC; ac_cc=`echo $2 |
3018                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3019 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 # Make sure it works both with $CC and with simple cc.
3038 # We do the test twice because some compilers refuse to overwrite an
3039 # existing .o file with -o, though they will create one.
3040 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3041 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042   (eval $ac_try) 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } &&
3046    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); };
3051 then
3052   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3053   if test "x$CC" != xcc; then
3054     # Test first that cc exists at all.
3055     if { ac_try='cc -c conftest.$ac_ext >&5'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3062       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063   (eval $ac_try) 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); };
3072       then
3073         # cc works too.
3074         :
3075       else
3076         # cc exists but doesn't like -o.
3077         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3078       fi
3079     fi
3080   fi
3081 else
3082   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3083 fi
3084 rm -f conftest*
3085
3086 fi
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3088   echo "$as_me:$LINENO: result: yes" >&5
3089 echo "${ECHO_T}yes" >&6
3090 else
3091   echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093
3094 cat >>confdefs.h <<\_ACEOF
3095 #define NO_MINUS_C_MINUS_O 1
3096 _ACEOF
3097
3098 fi
3099
3100 # expand $ac_aux_dir to an absolute path
3101 am_aux_dir=`cd $ac_aux_dir && pwd`
3102
3103 # FIXME: we rely on the cache variable name because
3104 # there is no other way.
3105 set dummy $CC
3106 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3108    # Losing compiler, so override with the script.
3109    # FIXME: It is wrong to rewrite CC.
3110    # But if we don't then we get into trouble of one sort or another.
3111    # A longer-term fix would be to have automake use am__CC in this case,
3112    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3113    CC="$am_aux_dir/compile $CC"
3114 fi
3115
3116
3117
3118
3119 if test -n "$ac_tool_prefix"; then
3120   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test -n "$GNATBIND"; then
3128   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143
3144 fi
3145 fi
3146 GNATBIND=$ac_cv_prog_GNATBIND
3147 if test -n "$GNATBIND"; then
3148   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3149 echo "${ECHO_T}$GNATBIND" >&6
3150 else
3151   echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3153 fi
3154
3155 fi
3156 if test -z "$ac_cv_prog_GNATBIND"; then
3157   ac_ct_GNATBIND=$GNATBIND
3158   # Extract the first word of "gnatbind", so it can be a program name with args.
3159 set dummy gnatbind; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   if test -n "$ac_ct_GNATBIND"; then
3166   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173   for ac_exec_ext in '' $ac_executable_extensions; do
3174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180 done
3181
3182   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3183 fi
3184 fi
3185 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3186 if test -n "$ac_ct_GNATBIND"; then
3187   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3188 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3189 else
3190   echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi
3193
3194   GNATBIND=$ac_ct_GNATBIND
3195 else
3196   GNATBIND="$ac_cv_prog_GNATBIND"
3197 fi
3198
3199 if test -n "$ac_tool_prefix"; then
3200   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   if test -n "$GNATMAKE"; then
3208   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_exec_ext in '' $ac_executable_extensions; do
3216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222 done
3223
3224 fi
3225 fi
3226 GNATMAKE=$ac_cv_prog_GNATMAKE
3227 if test -n "$GNATMAKE"; then
3228   echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3229 echo "${ECHO_T}$GNATMAKE" >&6
3230 else
3231   echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235 fi
3236 if test -z "$ac_cv_prog_GNATMAKE"; then
3237   ac_ct_GNATMAKE=$GNATMAKE
3238   # Extract the first word of "gnatmake", so it can be a program name with args.
3239 set dummy gnatmake; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   if test -n "$ac_ct_GNATMAKE"; then
3246   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for ac_exec_ext in '' $ac_executable_extensions; do
3254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260 done
3261
3262   test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3263 fi
3264 fi
3265 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3266 if test -n "$ac_ct_GNATMAKE"; then
3267   echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3268 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274   GNATMAKE=$ac_ct_GNATMAKE
3275 else
3276   GNATMAKE="$ac_cv_prog_GNATMAKE"
3277 fi
3278
3279 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3280 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3281 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   cat >conftest.adb <<EOF
3285 procedure conftest is begin null; end conftest;
3286 EOF
3287 acx_cv_cc_gcc_supports_ada=no
3288 # There is a bug in old released versions of GCC which causes the
3289 # driver to exit successfully when the appropriate language module
3290 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3291 # Therefore we must check for the error message as well as an
3292 # unsuccessful exit.
3293 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3294 # given a .adb file, but produce no object file.  So we must check
3295 # if an object file was really produced to guard against this.
3296 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3297 if test x"$errors" = x && test -f conftest.$ac_objext; then
3298   acx_cv_cc_gcc_supports_ada=yes
3299 fi
3300 rm -f conftest.*
3301 fi
3302 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3303 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3304
3305 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3306   have_gnat=yes
3307 else
3308   have_gnat=no
3309 fi
3310
3311
3312 # autoconf is lame and doesn't give us any substitution variable for this.
3313 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3314   NO_MINUS_C_MINUS_O=yes
3315 else
3316   OUTPUT_OPTION='-o $@'
3317 fi
3318
3319
3320
3321 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3322 # optimizations to be activated explicitly by the toplevel.
3323 case "$CC" in
3324   */prev-gcc/xgcc*) ;;
3325   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3326 esac
3327
3328
3329 # -------------------------
3330 # Check C compiler features
3331 # -------------------------
3332
3333
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3340 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3343   CPP=
3344 fi
3345 if test -z "$CPP"; then
3346   if test "${ac_cv_prog_CPP+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349       # Double quotes because CPP needs to be expanded
3350     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3351     do
3352       ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3354 do
3355   # Use a header file that comes with gcc, so configuring glibc
3356   # with a fresh cross-compiler works.
3357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358   # <limits.h> exists even on freestanding compilers.
3359   # On the NeXT, cc -E runs the code through the compiler's parser,
3360   # not just through cpp. "Syntax error" is here to catch this case.
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #ifdef __STDC__
3368 # include <limits.h>
3369 #else
3370 # include <assert.h>
3371 #endif
3372                      Syntax error
3373 _ACEOF
3374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } >/dev/null; then
3382   if test -s conftest.err; then
3383     ac_cpp_err=$ac_c_preproc_warn_flag
3384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385   else
3386     ac_cpp_err=
3387   fi
3388 else
3389   ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392   :
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400 rm -f conftest.err conftest.$ac_ext
3401
3402   # OK, works on sane cases.  Now check whether non-existent headers
3403   # can be detected and how.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } >/dev/null; then
3420   if test -s conftest.err; then
3421     ac_cpp_err=$ac_c_preproc_warn_flag
3422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423   else
3424     ac_cpp_err=
3425   fi
3426 else
3427   ac_cpp_err=yes
3428 fi
3429 if test -z "$ac_cpp_err"; then
3430   # Broken: success on invalid input.
3431 continue
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440 rm -f conftest.err conftest.$ac_ext
3441
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3446   break
3447 fi
3448
3449     done
3450     ac_cv_prog_CPP=$CPP
3451
3452 fi
3453   CPP=$ac_cv_prog_CPP
3454 else
3455   ac_cv_prog_CPP=$CPP
3456 fi
3457 echo "$as_me:$LINENO: result: $CPP" >&5
3458 echo "${ECHO_T}$CPP" >&6
3459 ac_preproc_ok=false
3460 for ac_c_preproc_warn_flag in '' yes
3461 do
3462   # Use a header file that comes with gcc, so configuring glibc
3463   # with a fresh cross-compiler works.
3464   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465   # <limits.h> exists even on freestanding compilers.
3466   # On the NeXT, cc -E runs the code through the compiler's parser,
3467   # not just through cpp. "Syntax error" is here to catch this case.
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #ifdef __STDC__
3475 # include <limits.h>
3476 #else
3477 # include <assert.h>
3478 #endif
3479                      Syntax error
3480 _ACEOF
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492   else
3493     ac_cpp_err=
3494   fi
3495 else
3496   ac_cpp_err=yes
3497 fi
3498 if test -z "$ac_cpp_err"; then
3499   :
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504   # Broken: fails on valid input.
3505 continue
3506 fi
3507 rm -f conftest.err conftest.$ac_ext
3508
3509   # OK, works on sane cases.  Now check whether non-existent headers
3510   # can be detected and how.
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } >/dev/null; then
3527   if test -s conftest.err; then
3528     ac_cpp_err=$ac_c_preproc_warn_flag
3529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530   else
3531     ac_cpp_err=
3532   fi
3533 else
3534   ac_cpp_err=yes
3535 fi
3536 if test -z "$ac_cpp_err"; then
3537   # Broken: success on invalid input.
3538 continue
3539 else
3540   echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543   # Passes both tests.
3544 ac_preproc_ok=:
3545 break
3546 fi
3547 rm -f conftest.err conftest.$ac_ext
3548
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3553   :
3554 else
3555   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3556 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561    { (exit 1); exit 1; }; }; }
3562 fi
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570
3571 echo "$as_me:$LINENO: checking for egrep" >&5
3572 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3573 if test "${ac_cv_prog_egrep+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3577     then ac_cv_prog_egrep='grep -E'
3578     else ac_cv_prog_egrep='egrep'
3579     fi
3580 fi
3581 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3582 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3583  EGREP=$ac_cv_prog_egrep
3584
3585
3586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3588 if test "${ac_cv_header_stdc+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597 #include <stdlib.h>
3598 #include <stdarg.h>
3599 #include <string.h>
3600 #include <float.h>
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612   (eval $ac_compile) 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -z "$ac_c_werror_flag"
3620                          || test ! -s conftest.err'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; } &&
3626          { ac_try='test -s conftest.$ac_objext'
3627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628   (eval $ac_try) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; }; then
3632   ac_cv_header_stdc=yes
3633 else
3634   echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_cv_header_stdc=no
3638 fi
3639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640
3641 if test $ac_cv_header_stdc = yes; then
3642   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 #include <string.h>
3650
3651 _ACEOF
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653   $EGREP "memchr" >/dev/null 2>&1; then
3654   :
3655 else
3656   ac_cv_header_stdc=no
3657 fi
3658 rm -f conftest*
3659
3660 fi
3661
3662 if test $ac_cv_header_stdc = yes; then
3663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <stdlib.h>
3671
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674   $EGREP "free" >/dev/null 2>&1; then
3675   :
3676 else
3677   ac_cv_header_stdc=no
3678 fi
3679 rm -f conftest*
3680
3681 fi
3682
3683 if test $ac_cv_header_stdc = yes; then
3684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3685   if test "$cross_compiling" = yes; then
3686   :
3687 else
3688   cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h.  */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h.  */
3694 #include <ctype.h>
3695 #if ((' ' & 0x0FF) == 0x020)
3696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3698 #else
3699 # define ISLOWER(c) \
3700                    (('a' <= (c) && (c) <= 'i') \
3701                      || ('j' <= (c) && (c) <= 'r') \
3702                      || ('s' <= (c) && (c) <= 'z'))
3703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3704 #endif
3705
3706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3707 int
3708 main ()
3709 {
3710   int i;
3711   for (i = 0; i < 256; i++)
3712     if (XOR (islower (i), ISLOWER (i))
3713         || toupper (i) != TOUPPER (i))
3714       exit(2);
3715   exit (0);
3716 }
3717 _ACEOF
3718 rm -f conftest$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720   (eval $ac_link) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   :
3730 else
3731   echo "$as_me: program exited with status $ac_status" >&5
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 ( exit $ac_status )
3736 ac_cv_header_stdc=no
3737 fi
3738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 fi
3741 fi
3742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3744 if test $ac_cv_header_stdc = yes; then
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define STDC_HEADERS 1
3748 _ACEOF
3749
3750 fi
3751
3752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3763                   inttypes.h stdint.h unistd.h
3764 do
3765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3766 echo "$as_me:$LINENO: checking for $ac_header" >&5
3767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 $ac_includes_default
3778
3779 #include <$ac_header>
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783   (eval $ac_compile) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } &&
3790          { ac_try='test -z "$ac_c_werror_flag"
3791                          || test ! -s conftest.err'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; } &&
3797          { ac_try='test -s conftest.$ac_objext'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   eval "$as_ac_Header=yes"
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 eval "$as_ac_Header=no"
3809 fi
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3815   cat >>confdefs.h <<_ACEOF
3816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3817 _ACEOF
3818
3819 fi
3820
3821 done
3822
3823
3824
3825   if test "${ac_cv_header_minix_config_h+set}" = set; then
3826   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3827 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3828 if test "${ac_cv_header_minix_config_h+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 fi
3831 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3832 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3833 else
3834   # Is the header compilable?
3835 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3836 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h.  */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h.  */
3843 $ac_includes_default
3844 #include <minix/config.h>
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848   (eval $ac_compile) 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } &&
3855          { ac_try='test -z "$ac_c_werror_flag"
3856                          || test ! -s conftest.err'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; } &&
3862          { ac_try='test -s conftest.$ac_objext'
3863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864   (eval $ac_try) 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; }; then
3868   ac_header_compiler=yes
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 ac_header_compiler=no
3874 fi
3875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3877 echo "${ECHO_T}$ac_header_compiler" >&6
3878
3879 # Is the header present?
3880 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3881 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h.  */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h.  */
3888 #include <minix/config.h>
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } >/dev/null; then
3898   if test -s conftest.err; then
3899     ac_cpp_err=$ac_c_preproc_warn_flag
3900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901   else
3902     ac_cpp_err=
3903   fi
3904 else
3905   ac_cpp_err=yes
3906 fi
3907 if test -z "$ac_cpp_err"; then
3908   ac_header_preproc=yes
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913   ac_header_preproc=no
3914 fi
3915 rm -f conftest.err conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3917 echo "${ECHO_T}$ac_header_preproc" >&6
3918
3919 # So?  What about this header?
3920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3921   yes:no: )
3922     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3923 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3924     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3925 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3926     ac_header_preproc=yes
3927     ;;
3928   no:yes:* )
3929     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3930 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3931     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3932 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3933     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3934 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3935     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3936 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3937     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3938 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3939     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3940 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3941     (
3942       cat <<\_ASBOX
3943 ## ------------------------------------------ ##
3944 ## Report this to the AC_PACKAGE_NAME lists.  ##
3945 ## ------------------------------------------ ##
3946 _ASBOX
3947     ) |
3948       sed "s/^/$as_me: WARNING:     /" >&2
3949     ;;
3950 esac
3951 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3952 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3953 if test "${ac_cv_header_minix_config_h+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_cv_header_minix_config_h=$ac_header_preproc
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3959 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3960
3961 fi
3962 if test $ac_cv_header_minix_config_h = yes; then
3963   MINIX=yes
3964 else
3965   MINIX=
3966 fi
3967
3968
3969   if test "$MINIX" = yes; then
3970
3971 cat >>confdefs.h <<\_ACEOF
3972 #define _POSIX_SOURCE 1
3973 _ACEOF
3974
3975
3976 cat >>confdefs.h <<\_ACEOF
3977 #define _POSIX_1_SOURCE 2
3978 _ACEOF
3979
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define _MINIX 1
3983 _ACEOF
3984
3985   fi
3986
3987
3988
3989   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3990 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3991 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000
4001 #         define __EXTENSIONS__ 1
4002           $ac_includes_default
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013   (eval $ac_compile) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } &&
4020          { ac_try='test -z "$ac_c_werror_flag"
4021                          || test ! -s conftest.err'
4022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023   (eval $ac_try) 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); }; } &&
4027          { ac_try='test -s conftest.$ac_objext'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; }; then
4033   ac_cv_safe_to_define___extensions__=yes
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 ac_cv_safe_to_define___extensions__=no
4039 fi
4040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4043 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4044   test $ac_cv_safe_to_define___extensions__ = yes &&
4045     cat >>confdefs.h <<\_ACEOF
4046 #define __EXTENSIONS__ 1
4047 _ACEOF
4048
4049   cat >>confdefs.h <<\_ACEOF
4050 #define _ALL_SOURCE 1
4051 _ACEOF
4052
4053   cat >>confdefs.h <<\_ACEOF
4054 #define _GNU_SOURCE 1
4055 _ACEOF
4056
4057   cat >>confdefs.h <<\_ACEOF
4058 #define _POSIX_PTHREAD_SEMANTICS 1
4059 _ACEOF
4060
4061   cat >>confdefs.h <<\_ACEOF
4062 #define _TANDEM_SOURCE 1
4063 _ACEOF
4064
4065
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4073 # On Suns, sometimes $CPP names a directory.
4074 if test -n "$CPP" && test -d "$CPP"; then
4075   CPP=
4076 fi
4077 if test -z "$CPP"; then
4078   if test "${ac_cv_prog_CPP+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081       # Double quotes because CPP needs to be expanded
4082     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083     do
4084       ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4086 do
4087   # Use a header file that comes with gcc, so configuring glibc
4088   # with a fresh cross-compiler works.
4089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090   # <limits.h> exists even on freestanding compilers.
4091   # On the NeXT, cc -E runs the code through the compiler's parser,
4092   # not just through cpp. "Syntax error" is here to catch this case.
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #ifdef __STDC__
4100 # include <limits.h>
4101 #else
4102 # include <assert.h>
4103 #endif
4104                      Syntax error
4105 _ACEOF
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } >/dev/null; then
4114   if test -s conftest.err; then
4115     ac_cpp_err=$ac_c_preproc_warn_flag
4116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117   else
4118     ac_cpp_err=
4119   fi
4120 else
4121   ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124   :
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129   # Broken: fails on valid input.
4130 continue
4131 fi
4132 rm -f conftest.err conftest.$ac_ext
4133
4134   # OK, works on sane cases.  Now check whether non-existent headers
4135   # can be detected and how.
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <ac_nonexistent.h>
4143 _ACEOF
4144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } >/dev/null; then
4152   if test -s conftest.err; then
4153     ac_cpp_err=$ac_c_preproc_warn_flag
4154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4155   else
4156     ac_cpp_err=
4157   fi
4158 else
4159   ac_cpp_err=yes
4160 fi
4161 if test -z "$ac_cpp_err"; then
4162   # Broken: success on invalid input.
4163 continue
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168   # Passes both tests.
4169 ac_preproc_ok=:
4170 break
4171 fi
4172 rm -f conftest.err conftest.$ac_ext
4173
4174 done
4175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176 rm -f conftest.err conftest.$ac_ext
4177 if $ac_preproc_ok; then
4178   break
4179 fi
4180
4181     done
4182     ac_cv_prog_CPP=$CPP
4183
4184 fi
4185   CPP=$ac_cv_prog_CPP
4186 else
4187   ac_cv_prog_CPP=$CPP
4188 fi
4189 echo "$as_me:$LINENO: result: $CPP" >&5
4190 echo "${ECHO_T}$CPP" >&6
4191 ac_preproc_ok=false
4192 for ac_c_preproc_warn_flag in '' yes
4193 do
4194   # Use a header file that comes with gcc, so configuring glibc
4195   # with a fresh cross-compiler works.
4196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197   # <limits.h> exists even on freestanding compilers.
4198   # On the NeXT, cc -E runs the code through the compiler's parser,
4199   # not just through cpp. "Syntax error" is here to catch this case.
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #ifdef __STDC__
4207 # include <limits.h>
4208 #else
4209 # include <assert.h>
4210 #endif
4211                      Syntax error
4212 _ACEOF
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } >/dev/null; then
4221   if test -s conftest.err; then
4222     ac_cpp_err=$ac_c_preproc_warn_flag
4223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224   else
4225     ac_cpp_err=
4226   fi
4227 else
4228   ac_cpp_err=yes
4229 fi
4230 if test -z "$ac_cpp_err"; then
4231   :
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236   # Broken: fails on valid input.
4237 continue
4238 fi
4239 rm -f conftest.err conftest.$ac_ext
4240
4241   # OK, works on sane cases.  Now check whether non-existent headers
4242   # can be detected and how.
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 #include <ac_nonexistent.h>
4250 _ACEOF
4251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } >/dev/null; then
4259   if test -s conftest.err; then
4260     ac_cpp_err=$ac_c_preproc_warn_flag
4261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4262   else
4263     ac_cpp_err=
4264   fi
4265 else
4266   ac_cpp_err=yes
4267 fi
4268 if test -z "$ac_cpp_err"; then
4269   # Broken: success on invalid input.
4270 continue
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275   # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279 rm -f conftest.err conftest.$ac_ext
4280
4281 done
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then
4285   :
4286 else
4287   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&2;}
4293    { (exit 1); exit 1; }; }; }
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302 echo "$as_me:$LINENO: checking for inline" >&5
4303 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4304 if test "${ac_cv_c_inline+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   ac_cv_c_inline=no
4308 for ac_kw in inline __inline__ __inline; do
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 #ifndef __cplusplus
4316 typedef int foo_t;
4317 static $ac_kw foo_t static_foo () {return 0; }
4318 $ac_kw foo_t foo () {return 0; }
4319 #endif
4320
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324   (eval $ac_compile) 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag"
4332                          || test ! -s conftest.err'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; } &&
4338          { ac_try='test -s conftest.$ac_objext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_cv_c_inline=$ac_kw; break
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 fi
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 done
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4355 echo "${ECHO_T}$ac_cv_c_inline" >&6
4356
4357
4358 case $ac_cv_c_inline in
4359   inline | yes) ;;
4360   *)
4361     case $ac_cv_c_inline in
4362       no) ac_val=;;
4363       *) ac_val=$ac_cv_c_inline;;
4364     esac
4365     cat >>confdefs.h <<_ACEOF
4366 #ifndef __cplusplus
4367 #define inline $ac_val
4368 #endif
4369 _ACEOF
4370     ;;
4371 esac
4372
4373
4374 # sizeof(char) is 1 by definition.
4375 echo "$as_me:$LINENO: checking for void *" >&5
4376 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4377 if test "${ac_cv_type_void_p+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 $ac_includes_default
4387 int
4388 main ()
4389 {
4390 if ((void * *) 0)
4391   return 0;
4392 if (sizeof (void *))
4393   return 0;
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400   (eval $ac_compile) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag"
4408                          || test ! -s conftest.err'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest.$ac_objext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_cv_type_void_p=yes
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_cv_type_void_p=no
4426 fi
4427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4430 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4431
4432 echo "$as_me:$LINENO: checking size of void *" >&5
4433 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4434 if test "${ac_cv_sizeof_void_p+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test "$ac_cv_type_void_p" = yes; then
4438   # The cast to unsigned long works around a bug in the HP C Compiler
4439   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4440   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4441   # This bug is HP SR number 8606223364.
4442   if test "$cross_compiling" = yes; then
4443   # Depending upon the size, compute the lo and hi bounds.
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451 int
4452 main ()
4453 {
4454 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4455 test_array [0] = 0
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } &&
4470          { ac_try='test -z "$ac_c_werror_flag"
4471                          || test ! -s conftest.err'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; } &&
4477          { ac_try='test -s conftest.$ac_objext'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   ac_lo=0 ac_mid=0
4484   while :; do
4485     cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491 $ac_includes_default
4492 int
4493 main ()
4494 {
4495 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4496 test_array [0] = 0
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -z "$ac_c_werror_flag"
4512                          || test ! -s conftest.err'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; } &&
4518          { ac_try='test -s conftest.$ac_objext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   ac_hi=$ac_mid; break
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_lo=`expr $ac_mid + 1`
4530                     if test $ac_lo -le $ac_mid; then
4531                       ac_lo= ac_hi=
4532                       break
4533                     fi
4534                     ac_mid=`expr 2 '*' $ac_mid + 1`
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537   done
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 $ac_includes_default
4549 int
4550 main ()
4551 {
4552 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4553 test_array [0] = 0
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561   (eval $ac_compile) 2>conftest.er1
4562   ac_status=$?
4563   grep -v '^ *+' conftest.er1 >conftest.err
4564   rm -f conftest.er1
4565   cat conftest.err >&5
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -z "$ac_c_werror_flag"
4569                          || test ! -s conftest.err'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581   ac_hi=-1 ac_mid=-1
4582   while :; do
4583     cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590 int
4591 main ()
4592 {
4593 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4594 test_array [0] = 0
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602   (eval $ac_compile) 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -z "$ac_c_werror_flag"
4610                          || test ! -s conftest.err'
4611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612   (eval $ac_try) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_lo=$ac_mid; break
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ac_hi=`expr '(' $ac_mid ')' - 1`
4628                        if test $ac_mid -le $ac_hi; then
4629                          ac_lo= ac_hi=
4630                          break
4631                        fi
4632                        ac_mid=`expr 2 '*' $ac_mid`
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635   done
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 ac_lo= ac_hi=
4641 fi
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 # Binary search between lo and hi bounds.
4646 while test "x$ac_lo" != "x$ac_hi"; do
4647   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 $ac_includes_default
4655 int
4656 main ()
4657 {
4658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4659 test_array [0] = 0
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_c_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_hi=$ac_mid
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_lo=`expr '(' $ac_mid ')' + 1`
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 done
4696 case $ac_lo in
4697 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4698 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4699 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (void *), 77
4703 See \`config.log' for more details." >&2;}
4704    { (exit 1); exit 1; }; }; } ;;
4705 esac
4706 else
4707   if test "$cross_compiling" = yes; then
4708   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4709 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&5
4712 echo "$as_me: error: cannot run test program while cross compiling
4713 See \`config.log' for more details." >&2;}
4714    { (exit 1); exit 1; }; }; }
4715 else
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 $ac_includes_default
4723 long longval () { return (long) (sizeof (void *)); }
4724 unsigned long ulongval () { return (long) (sizeof (void *)); }
4725 #include <stdio.h>
4726 #include <stdlib.h>
4727 int
4728 main ()
4729 {
4730
4731   FILE *f = fopen ("conftest.val", "w");
4732   if (! f)
4733     exit (1);
4734   if (((long) (sizeof (void *))) < 0)
4735     {
4736       long i = longval ();
4737       if (i != ((long) (sizeof (void *))))
4738         exit (1);
4739       fprintf (f, "%ld\n", i);
4740     }
4741   else
4742     {
4743       unsigned long i = ulongval ();
4744       if (i != ((long) (sizeof (void *))))
4745         exit (1);
4746       fprintf (f, "%lu\n", i);
4747     }
4748   exit (ferror (f) || fclose (f) != 0);
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756   (eval $ac_link) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761   (eval $ac_try) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765   ac_cv_sizeof_void_p=`cat conftest.val`
4766 else
4767   echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ( exit $ac_status )
4772 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4773 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4775 See \`config.log' for more details." >&5
4776 echo "$as_me: error: cannot compute sizeof (void *), 77
4777 See \`config.log' for more details." >&2;}
4778    { (exit 1); exit 1; }; }; }
4779 fi
4780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 fi
4783 rm -f conftest.val
4784 else
4785   ac_cv_sizeof_void_p=0
4786 fi
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4789 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4790 cat >>confdefs.h <<_ACEOF
4791 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4792 _ACEOF
4793
4794
4795 echo "$as_me:$LINENO: checking for short" >&5
4796 echo $ECHO_N "checking for short... $ECHO_C" >&6
4797 if test "${ac_cv_type_short+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 $ac_includes_default
4807 int
4808 main ()
4809 {
4810 if ((short *) 0)
4811   return 0;
4812 if (sizeof (short))
4813   return 0;
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820   (eval $ac_compile) 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } &&
4827          { ac_try='test -z "$ac_c_werror_flag"
4828                          || test ! -s conftest.err'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; } &&
4834          { ac_try='test -s conftest.$ac_objext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_cv_type_short=yes
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_cv_type_short=no
4846 fi
4847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4850 echo "${ECHO_T}$ac_cv_type_short" >&6
4851
4852 echo "$as_me:$LINENO: checking size of short" >&5
4853 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4854 if test "${ac_cv_sizeof_short+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   if test "$ac_cv_type_short" = yes; then
4858   # The cast to unsigned long works around a bug in the HP C Compiler
4859   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4860   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4861   # This bug is HP SR number 8606223364.
4862   if test "$cross_compiling" = yes; then
4863   # Depending upon the size, compute the lo and hi bounds.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h.  */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h.  */
4870 $ac_includes_default
4871 int
4872 main ()
4873 {
4874 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4875 test_array [0] = 0
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883   (eval $ac_compile) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -z "$ac_c_werror_flag"
4891                          || test ! -s conftest.err'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; } &&
4897          { ac_try='test -s conftest.$ac_objext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   ac_lo=0 ac_mid=0
4904   while :; do
4905     cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 $ac_includes_default
4912 int
4913 main ()
4914 {
4915 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4916 test_array [0] = 0
4917
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924   (eval $ac_compile) 2>conftest.er1
4925   ac_status=$?
4926   grep -v '^ *+' conftest.er1 >conftest.err
4927   rm -f conftest.er1
4928   cat conftest.err >&5
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } &&
4931          { ac_try='test -z "$ac_c_werror_flag"
4932                          || test ! -s conftest.err'
4933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934   (eval $ac_try) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); }; } &&
4938          { ac_try='test -s conftest.$ac_objext'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   ac_hi=$ac_mid; break
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_lo=`expr $ac_mid + 1`
4950                     if test $ac_lo -le $ac_mid; then
4951                       ac_lo= ac_hi=
4952                       break
4953                     fi
4954                     ac_mid=`expr 2 '*' $ac_mid + 1`
4955 fi
4956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957   done
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h.  */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h.  */
4968 $ac_includes_default
4969 int
4970 main ()
4971 {
4972 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4973 test_array [0] = 0
4974
4975   ;
4976   return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_c_werror_flag"
4989                          || test ! -s conftest.err'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; } &&
4995          { ac_try='test -s conftest.$ac_objext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_hi=-1 ac_mid=-1
5002   while :; do
5003     cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 $ac_includes_default
5010 int
5011 main ()
5012 {
5013 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5014 test_array [0] = 0
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022   (eval $ac_compile) 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -z "$ac_c_werror_flag"
5030                          || test ! -s conftest.err'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_lo=$ac_mid; break
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_hi=`expr '(' $ac_mid ')' - 1`
5048                        if test $ac_mid -le $ac_hi; then
5049                          ac_lo= ac_hi=
5050                          break
5051                        fi
5052                        ac_mid=`expr 2 '*' $ac_mid`
5053 fi
5054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5055   done
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_lo= ac_hi=
5061 fi
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5065 # Binary search between lo and hi bounds.
5066 while test "x$ac_lo" != "x$ac_hi"; do
5067   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 $ac_includes_default
5075 int
5076 main ()
5077 {
5078 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5079 test_array [0] = 0
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087   (eval $ac_compile) 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } &&
5094          { ac_try='test -z "$ac_c_werror_flag"
5095                          || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_hi=$ac_mid
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_lo=`expr '(' $ac_mid ')' + 1`
5113 fi
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 done
5116 case $ac_lo in
5117 ?*) ac_cv_sizeof_short=$ac_lo;;
5118 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5119 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (short), 77
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }; } ;;
5125 esac
5126 else
5127   if test "$cross_compiling" = yes; then
5128   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot run test program while cross compiling
5133 See \`config.log' for more details." >&2;}
5134    { (exit 1); exit 1; }; }; }
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 $ac_includes_default
5143 long longval () { return (long) (sizeof (short)); }
5144 unsigned long ulongval () { return (long) (sizeof (short)); }
5145 #include <stdio.h>
5146 #include <stdlib.h>
5147 int
5148 main ()
5149 {
5150
5151   FILE *f = fopen ("conftest.val", "w");
5152   if (! f)
5153     exit (1);
5154   if (((long) (sizeof (short))) < 0)
5155     {
5156       long i = longval ();
5157       if (i != ((long) (sizeof (short))))
5158         exit (1);
5159       fprintf (f, "%ld\n", i);
5160     }
5161   else
5162     {
5163       unsigned long i = ulongval ();
5164       if (i != ((long) (sizeof (short))))
5165         exit (1);
5166       fprintf (f, "%lu\n", i);
5167     }
5168   exit (ferror (f) || fclose (f) != 0);
5169
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176   (eval $ac_link) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181   (eval $ac_try) 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }; }; then
5185   ac_cv_sizeof_short=`cat conftest.val`
5186 else
5187   echo "$as_me: program exited with status $ac_status" >&5
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 ( exit $ac_status )
5192 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5193 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5195 See \`config.log' for more details." >&5
5196 echo "$as_me: error: cannot compute sizeof (short), 77
5197 See \`config.log' for more details." >&2;}
5198    { (exit 1); exit 1; }; }; }
5199 fi
5200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 fi
5203 rm -f conftest.val
5204 else
5205   ac_cv_sizeof_short=0
5206 fi
5207 fi
5208 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5209 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5210 cat >>confdefs.h <<_ACEOF
5211 #define SIZEOF_SHORT $ac_cv_sizeof_short
5212 _ACEOF
5213
5214
5215 echo "$as_me:$LINENO: checking for int" >&5
5216 echo $ECHO_N "checking for int... $ECHO_C" >&6
5217 if test "${ac_cv_type_int+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 $ac_includes_default
5227 int
5228 main ()
5229 {
5230 if ((int *) 0)
5231   return 0;
5232 if (sizeof (int))
5233   return 0;
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240   (eval $ac_compile) 2>conftest.er1
5241   ac_status=$?
5242   grep -v '^ *+' conftest.er1 >conftest.err
5243   rm -f conftest.er1
5244   cat conftest.err >&5
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); } &&
5247          { ac_try='test -z "$ac_c_werror_flag"
5248                          || test ! -s conftest.err'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; } &&
5254          { ac_try='test -s conftest.$ac_objext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_cv_type_int=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_cv_type_int=no
5266 fi
5267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5270 echo "${ECHO_T}$ac_cv_type_int" >&6
5271
5272 echo "$as_me:$LINENO: checking size of int" >&5
5273 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5274 if test "${ac_cv_sizeof_int+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test "$ac_cv_type_int" = yes; then
5278   # The cast to unsigned long works around a bug in the HP C Compiler
5279   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5280   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5281   # This bug is HP SR number 8606223364.
5282   if test "$cross_compiling" = yes; then
5283   # Depending upon the size, compute the lo and hi bounds.
5284 cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 $ac_includes_default
5291 int
5292 main ()
5293 {
5294 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5295 test_array [0] = 0
5296
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303   (eval $ac_compile) 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -z "$ac_c_werror_flag"
5311                          || test ! -s conftest.err'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_lo=0 ac_mid=0
5324   while :; do
5325     cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 int
5333 main ()
5334 {
5335 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5336 test_array [0] = 0
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344   (eval $ac_compile) 2>conftest.er1
5345   ac_status=$?
5346   grep -v '^ *+' conftest.er1 >conftest.err
5347   rm -f conftest.er1
5348   cat conftest.err >&5
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -z "$ac_c_werror_flag"
5352                          || test ! -s conftest.err'
5353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_hi=$ac_mid; break
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_lo=`expr $ac_mid + 1`
5370                     if test $ac_lo -le $ac_mid; then
5371                       ac_lo= ac_hi=
5372                       break
5373                     fi
5374                     ac_mid=`expr 2 '*' $ac_mid + 1`
5375 fi
5376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377   done
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h.  */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h.  */
5388 $ac_includes_default
5389 int
5390 main ()
5391 {
5392 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5393 test_array [0] = 0
5394
5395   ;
5396   return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401   (eval $ac_compile) 2>conftest.er1
5402   ac_status=$?
5403   grep -v '^ *+' conftest.er1 >conftest.err
5404   rm -f conftest.er1
5405   cat conftest.err >&5
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } &&
5408          { ac_try='test -z "$ac_c_werror_flag"
5409                          || test ! -s conftest.err'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; } &&
5415          { ac_try='test -s conftest.$ac_objext'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   ac_hi=-1 ac_mid=-1
5422   while :; do
5423     cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 $ac_includes_default
5430 int
5431 main ()
5432 {
5433 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5434 test_array [0] = 0
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } &&
5449          { ac_try='test -z "$ac_c_werror_flag"
5450                          || test ! -s conftest.err'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; } &&
5456          { ac_try='test -s conftest.$ac_objext'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then
5462   ac_lo=$ac_mid; break
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_hi=`expr '(' $ac_mid ')' - 1`
5468                        if test $ac_mid -le $ac_hi; then
5469                          ac_lo= ac_hi=
5470                          break
5471                        fi
5472                        ac_mid=`expr 2 '*' $ac_mid`
5473 fi
5474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475   done
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_lo= ac_hi=
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 # Binary search between lo and hi bounds.
5486 while test "x$ac_lo" != "x$ac_hi"; do
5487   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5488   cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h.  */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h.  */
5494 $ac_includes_default
5495 int
5496 main ()
5497 {
5498 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5499 test_array [0] = 0
5500
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 rm -f conftest.$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507   (eval $ac_compile) 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
5511   cat conftest.err >&5
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } &&
5514          { ac_try='test -z "$ac_c_werror_flag"
5515                          || test ! -s conftest.err'
5516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517   (eval $ac_try) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }; } &&
5521          { ac_try='test -s conftest.$ac_objext'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527   ac_hi=$ac_mid
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_lo=`expr '(' $ac_mid ')' + 1`
5533 fi
5534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5535 done
5536 case $ac_lo in
5537 ?*) ac_cv_sizeof_int=$ac_lo;;
5538 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5539 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5541 See \`config.log' for more details." >&5
5542 echo "$as_me: error: cannot compute sizeof (int), 77
5543 See \`config.log' for more details." >&2;}
5544    { (exit 1); exit 1; }; }; } ;;
5545 esac
5546 else
5547   if test "$cross_compiling" = yes; then
5548   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5549 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5551 See \`config.log' for more details." >&5
5552 echo "$as_me: error: cannot run test program while cross compiling
5553 See \`config.log' for more details." >&2;}
5554    { (exit 1); exit 1; }; }; }
5555 else
5556   cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 $ac_includes_default
5563 long longval () { return (long) (sizeof (int)); }
5564 unsigned long ulongval () { return (long) (sizeof (int)); }
5565 #include <stdio.h>
5566 #include <stdlib.h>
5567 int
5568 main ()
5569 {
5570
5571   FILE *f = fopen ("conftest.val", "w");
5572   if (! f)
5573     exit (1);
5574   if (((long) (sizeof (int))) < 0)
5575     {
5576       long i = longval ();
5577       if (i != ((long) (sizeof (int))))
5578         exit (1);
5579       fprintf (f, "%ld\n", i);
5580     }
5581   else
5582     {
5583       unsigned long i = ulongval ();
5584       if (i != ((long) (sizeof (int))))
5585         exit (1);
5586       fprintf (f, "%lu\n", i);
5587     }
5588   exit (ferror (f) || fclose (f) != 0);
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596   (eval $ac_link) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; }; then
5605   ac_cv_sizeof_int=`cat conftest.val`
5606 else
5607   echo "$as_me: program exited with status $ac_status" >&5
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ( exit $ac_status )
5612 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5613 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5615 See \`config.log' for more details." >&5
5616 echo "$as_me: error: cannot compute sizeof (int), 77
5617 See \`config.log' for more details." >&2;}
5618    { (exit 1); exit 1; }; }; }
5619 fi
5620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 fi
5623 rm -f conftest.val
5624 else
5625   ac_cv_sizeof_int=0
5626 fi
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5629 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5630 cat >>confdefs.h <<_ACEOF
5631 #define SIZEOF_INT $ac_cv_sizeof_int
5632 _ACEOF
5633
5634
5635 echo "$as_me:$LINENO: checking for long" >&5
5636 echo $ECHO_N "checking for long... $ECHO_C" >&6
5637 if test "${ac_cv_type_long+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646 $ac_includes_default
5647 int
5648 main ()
5649 {
5650 if ((long *) 0)
5651   return 0;
5652 if (sizeof (long))
5653   return 0;
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660   (eval $ac_compile) 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -z "$ac_c_werror_flag"
5668                          || test ! -s conftest.err'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; } &&
5674          { ac_try='test -s conftest.$ac_objext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_type_long=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_cv_type_long=no
5686 fi
5687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5690 echo "${ECHO_T}$ac_cv_type_long" >&6
5691
5692 echo "$as_me:$LINENO: checking size of long" >&5
5693 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5694 if test "${ac_cv_sizeof_long+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test "$ac_cv_type_long" = yes; then
5698   # The cast to unsigned long works around a bug in the HP C Compiler
5699   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5700   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5701   # This bug is HP SR number 8606223364.
5702   if test "$cross_compiling" = yes; then
5703   # Depending upon the size, compute the lo and hi bounds.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 $ac_includes_default
5711 int
5712 main ()
5713 {
5714 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5715 test_array [0] = 0
5716
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723   (eval $ac_compile) 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } &&
5730          { ac_try='test -z "$ac_c_werror_flag"
5731                          || test ! -s conftest.err'
5732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733   (eval $ac_try) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); }; } &&
5737          { ac_try='test -s conftest.$ac_objext'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; }; then
5743   ac_lo=0 ac_mid=0
5744   while :; do
5745     cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 $ac_includes_default
5752 int
5753 main ()
5754 {
5755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5756 test_array [0] = 0
5757
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764   (eval $ac_compile) 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -z "$ac_c_werror_flag"
5772                          || test ! -s conftest.err'
5773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774   (eval $ac_try) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }; } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_hi=$ac_mid; break
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_lo=`expr $ac_mid + 1`
5790                     if test $ac_lo -le $ac_mid; then
5791                       ac_lo= ac_hi=
5792                       break
5793                     fi
5794                     ac_mid=`expr 2 '*' $ac_mid + 1`
5795 fi
5796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797   done
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 $ac_includes_default
5809 int
5810 main ()
5811 {
5812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5813 test_array [0] = 0
5814
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821   (eval $ac_compile) 2>conftest.er1
5822   ac_status=$?
5823   grep -v '^ *+' conftest.er1 >conftest.err
5824   rm -f conftest.er1
5825   cat conftest.err >&5
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } &&
5828          { ac_try='test -z "$ac_c_werror_flag"
5829                          || test ! -s conftest.err'
5830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831   (eval $ac_try) 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); }; } &&
5835          { ac_try='test -s conftest.$ac_objext'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; }; then
5841   ac_hi=-1 ac_mid=-1
5842   while :; do
5843     cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849 $ac_includes_default
5850 int
5851 main ()
5852 {
5853 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5854 test_array [0] = 0
5855
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862   (eval $ac_compile) 2>conftest.er1
5863   ac_status=$?
5864   grep -v '^ *+' conftest.er1 >conftest.err
5865   rm -f conftest.er1
5866   cat conftest.err >&5
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); } &&
5869          { ac_try='test -z "$ac_c_werror_flag"
5870                          || test ! -s conftest.err'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; } &&
5876          { ac_try='test -s conftest.$ac_objext'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   ac_lo=$ac_mid; break
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_hi=`expr '(' $ac_mid ')' - 1`
5888                        if test $ac_mid -le $ac_hi; then
5889                          ac_lo= ac_hi=
5890                          break
5891                        fi
5892                        ac_mid=`expr 2 '*' $ac_mid`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895   done
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ac_lo= ac_hi=
5901 fi
5902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5903 fi
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 # Binary search between lo and hi bounds.
5906 while test "x$ac_lo" != "x$ac_hi"; do
5907   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5908   cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 $ac_includes_default
5915 int
5916 main ()
5917 {
5918 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5919 test_array [0] = 0
5920
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927   (eval $ac_compile) 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -z "$ac_c_werror_flag"
5935                          || test ! -s conftest.err'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_hi=$ac_mid
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5953 fi
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 done
5956 case $ac_lo in
5957 ?*) ac_cv_sizeof_long=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5959 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (long), 77
5963 See \`config.log' for more details." >&2;}
5964    { (exit 1); exit 1; }; }; } ;;
5965 esac
5966 else
5967   if test "$cross_compiling" = yes; then
5968   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5969 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&2;}
5974    { (exit 1); exit 1; }; }; }
5975 else
5976   cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 $ac_includes_default
5983 long longval () { return (long) (sizeof (long)); }
5984 unsigned long ulongval () { return (long) (sizeof (long)); }
5985 #include <stdio.h>
5986 #include <stdlib.h>
5987 int
5988 main ()
5989 {
5990
5991   FILE *f = fopen ("conftest.val", "w");
5992   if (! f)
5993     exit (1);
5994   if (((long) (sizeof (long))) < 0)
5995     {
5996       long i = longval ();
5997       if (i != ((long) (sizeof (long))))
5998         exit (1);
5999       fprintf (f, "%ld\n", i);
6000     }
6001   else
6002     {
6003       unsigned long i = ulongval ();
6004       if (i != ((long) (sizeof (long))))
6005         exit (1);
6006       fprintf (f, "%lu\n", i);
6007     }
6008   exit (ferror (f) || fclose (f) != 0);
6009
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest$ac_exeext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016   (eval $ac_link) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   ac_cv_sizeof_long=`cat conftest.val`
6026 else
6027   echo "$as_me: program exited with status $ac_status" >&5
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ( exit $ac_status )
6032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6035 See \`config.log' for more details." >&5
6036 echo "$as_me: error: cannot compute sizeof (long), 77
6037 See \`config.log' for more details." >&2;}
6038    { (exit 1); exit 1; }; }; }
6039 fi
6040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 fi
6043 rm -f conftest.val
6044 else
6045   ac_cv_sizeof_long=0
6046 fi
6047 fi
6048 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6049 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6050 cat >>confdefs.h <<_ACEOF
6051 #define SIZEOF_LONG $ac_cv_sizeof_long
6052 _ACEOF
6053
6054
6055 echo "$as_me:$LINENO: checking for long long" >&5
6056 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6057 if test "${ac_cv_type_long_long+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 if ((long long *) 0)
6071   return 0;
6072 if (sizeof (long long))
6073   return 0;
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080   (eval $ac_compile) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -z "$ac_c_werror_flag"
6088                          || test ! -s conftest.err'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; } &&
6094          { ac_try='test -s conftest.$ac_objext'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   ac_cv_type_long_long=yes
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_cv_type_long_long=no
6106 fi
6107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6110 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6111 if test $ac_cv_type_long_long = yes; then
6112
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_LONG_LONG 1
6115 _ACEOF
6116
6117 echo "$as_me:$LINENO: checking for long long" >&5
6118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6119 if test "${ac_cv_type_long_long+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 $ac_includes_default
6129 int
6130 main ()
6131 {
6132 if ((long long *) 0)
6133   return 0;
6134 if (sizeof (long long))
6135   return 0;
6136   ;
6137   return 0;
6138 }
6139 _ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142   (eval $ac_compile) 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -z "$ac_c_werror_flag"
6150                          || test ! -s conftest.err'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; } &&
6156          { ac_try='test -s conftest.$ac_objext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_type_long_long=yes
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_type_long_long=no
6168 fi
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170 fi
6171 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6172 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6173
6174 echo "$as_me:$LINENO: checking size of long long" >&5
6175 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6176 if test "${ac_cv_sizeof_long_long+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   if test "$ac_cv_type_long_long" = yes; then
6180   # The cast to unsigned long works around a bug in the HP C Compiler
6181   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6182   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6183   # This bug is HP SR number 8606223364.
6184   if test "$cross_compiling" = yes; then
6185   # Depending upon the size, compute the lo and hi bounds.
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 $ac_includes_default
6193 int
6194 main ()
6195 {
6196 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6197 test_array [0] = 0
6198
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205   (eval $ac_compile) 2>conftest.er1
6206   ac_status=$?
6207   grep -v '^ *+' conftest.er1 >conftest.err
6208   rm -f conftest.er1
6209   cat conftest.err >&5
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } &&
6212          { ac_try='test -z "$ac_c_werror_flag"
6213                          || test ! -s conftest.err'
6214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215   (eval $ac_try) 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; } &&
6219          { ac_try='test -s conftest.$ac_objext'
6220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221   (eval $ac_try) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; }; then
6225   ac_lo=0 ac_mid=0
6226   while :; do
6227     cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 $ac_includes_default
6234 int
6235 main ()
6236 {
6237 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6238 test_array [0] = 0
6239
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } &&
6253          { ac_try='test -z "$ac_c_werror_flag"
6254                          || test ! -s conftest.err'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; } &&
6260          { ac_try='test -s conftest.$ac_objext'
6261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262   (eval $ac_try) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; }; then
6266   ac_hi=$ac_mid; break
6267 else
6268   echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 ac_lo=`expr $ac_mid + 1`
6272                     if test $ac_lo -le $ac_mid; then
6273                       ac_lo= ac_hi=
6274                       break
6275                     fi
6276                     ac_mid=`expr 2 '*' $ac_mid + 1`
6277 fi
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279   done
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 $ac_includes_default
6291 int
6292 main ()
6293 {
6294 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6295 test_array [0] = 0
6296
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303   (eval $ac_compile) 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -z "$ac_c_werror_flag"
6311                          || test ! -s conftest.err'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest.$ac_objext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_hi=-1 ac_mid=-1
6324   while :; do
6325     cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6336 test_array [0] = 0
6337
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344   (eval $ac_compile) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } &&
6351          { ac_try='test -z "$ac_c_werror_flag"
6352                          || test ! -s conftest.err'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; } &&
6358          { ac_try='test -s conftest.$ac_objext'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_lo=$ac_mid; break
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_hi=`expr '(' $ac_mid ')' - 1`
6370                        if test $ac_mid -le $ac_hi; then
6371                          ac_lo= ac_hi=
6372                          break
6373                        fi
6374                        ac_mid=`expr 2 '*' $ac_mid`
6375 fi
6376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6377   done
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ac_lo= ac_hi=
6383 fi
6384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 # Binary search between lo and hi bounds.
6388 while test "x$ac_lo" != "x$ac_hi"; do
6389   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6390   cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397 int
6398 main ()
6399 {
6400 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6401 test_array [0] = 0
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409   (eval $ac_compile) 2>conftest.er1
6410   ac_status=$?
6411   grep -v '^ *+' conftest.er1 >conftest.err
6412   rm -f conftest.er1
6413   cat conftest.err >&5
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } &&
6416          { ac_try='test -z "$ac_c_werror_flag"
6417                          || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_hi=$ac_mid
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_lo=`expr '(' $ac_mid ')' + 1`
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 done
6438 case $ac_lo in
6439 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6440 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6443 See \`config.log' for more details." >&5
6444 echo "$as_me: error: cannot compute sizeof (long long), 77
6445 See \`config.log' for more details." >&2;}
6446    { (exit 1); exit 1; }; }; } ;;
6447 esac
6448 else
6449   if test "$cross_compiling" = yes; then
6450   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6452 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6453 See \`config.log' for more details." >&5
6454 echo "$as_me: error: cannot run test program while cross compiling
6455 See \`config.log' for more details." >&2;}
6456    { (exit 1); exit 1; }; }; }
6457 else
6458   cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 $ac_includes_default
6465 long longval () { return (long) (sizeof (long long)); }
6466 unsigned long ulongval () { return (long) (sizeof (long long)); }
6467 #include <stdio.h>
6468 #include <stdlib.h>
6469 int
6470 main ()
6471 {
6472
6473   FILE *f = fopen ("conftest.val", "w");
6474   if (! f)
6475     exit (1);
6476   if (((long) (sizeof (long long))) < 0)
6477     {
6478       long i = longval ();
6479       if (i != ((long) (sizeof (long long))))
6480         exit (1);
6481       fprintf (f, "%ld\n", i);
6482     }
6483   else
6484     {
6485       unsigned long i = ulongval ();
6486       if (i != ((long) (sizeof (long long))))
6487         exit (1);
6488       fprintf (f, "%lu\n", i);
6489     }
6490   exit (ferror (f) || fclose (f) != 0);
6491
6492   ;
6493   return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498   (eval $ac_link) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503   (eval $ac_try) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   ac_cv_sizeof_long_long=`cat conftest.val`
6508 else
6509   echo "$as_me: program exited with status $ac_status" >&5
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ( exit $ac_status )
6514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6515 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6517 See \`config.log' for more details." >&5
6518 echo "$as_me: error: cannot compute sizeof (long long), 77
6519 See \`config.log' for more details." >&2;}
6520    { (exit 1); exit 1; }; }; }
6521 fi
6522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6523 fi
6524 fi
6525 rm -f conftest.val
6526 else
6527   ac_cv_sizeof_long_long=0
6528 fi
6529 fi
6530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6531 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6532 cat >>confdefs.h <<_ACEOF
6533 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6534 _ACEOF
6535
6536
6537 fi
6538
6539 echo "$as_me:$LINENO: checking for __int64" >&5
6540 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6541 if test "${ac_cv_type___int64+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h.  */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h.  */
6550 $ac_includes_default
6551 int
6552 main ()
6553 {
6554 if ((__int64 *) 0)
6555   return 0;
6556 if (sizeof (__int64))
6557   return 0;
6558   ;
6559   return 0;
6560 }
6561 _ACEOF
6562 rm -f conftest.$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564   (eval $ac_compile) 2>conftest.er1
6565   ac_status=$?
6566   grep -v '^ *+' conftest.er1 >conftest.err
6567   rm -f conftest.er1
6568   cat conftest.err >&5
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } &&
6571          { ac_try='test -z "$ac_c_werror_flag"
6572                          || test ! -s conftest.err'
6573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574   (eval $ac_try) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; } &&
6578          { ac_try='test -s conftest.$ac_objext'
6579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580   (eval $ac_try) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; }; then
6584   ac_cv_type___int64=yes
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_type___int64=no
6590 fi
6591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6594 echo "${ECHO_T}$ac_cv_type___int64" >&6
6595 if test $ac_cv_type___int64 = yes; then
6596
6597 cat >>confdefs.h <<_ACEOF
6598 #define HAVE___INT64 1
6599 _ACEOF
6600
6601 echo "$as_me:$LINENO: checking for __int64" >&5
6602 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6603 if test "${ac_cv_type___int64+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612 $ac_includes_default
6613 int
6614 main ()
6615 {
6616 if ((__int64 *) 0)
6617   return 0;
6618 if (sizeof (__int64))
6619   return 0;
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626   (eval $ac_compile) 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -z "$ac_c_werror_flag"
6634                          || test ! -s conftest.err'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; } &&
6640          { ac_try='test -s conftest.$ac_objext'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   ac_cv_type___int64=yes
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_type___int64=no
6652 fi
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6656 echo "${ECHO_T}$ac_cv_type___int64" >&6
6657
6658 echo "$as_me:$LINENO: checking size of __int64" >&5
6659 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6660 if test "${ac_cv_sizeof___int64+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   if test "$ac_cv_type___int64" = yes; then
6664   # The cast to unsigned long works around a bug in the HP C Compiler
6665   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6666   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6667   # This bug is HP SR number 8606223364.
6668   if test "$cross_compiling" = yes; then
6669   # Depending upon the size, compute the lo and hi bounds.
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 $ac_includes_default
6677 int
6678 main ()
6679 {
6680 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6681 test_array [0] = 0
6682
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } &&
6696          { ac_try='test -z "$ac_c_werror_flag"
6697                          || test ! -s conftest.err'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; } &&
6703          { ac_try='test -s conftest.$ac_objext'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   ac_lo=0 ac_mid=0
6710   while :; do
6711     cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717 $ac_includes_default
6718 int
6719 main ()
6720 {
6721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6722 test_array [0] = 0
6723
6724   ;
6725   return 0;
6726 }
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730   (eval $ac_compile) 2>conftest.er1
6731   ac_status=$?
6732   grep -v '^ *+' conftest.er1 >conftest.err
6733   rm -f conftest.er1
6734   cat conftest.err >&5
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } &&
6737          { ac_try='test -z "$ac_c_werror_flag"
6738                          || test ! -s conftest.err'
6739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740   (eval $ac_try) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); }; } &&
6744          { ac_try='test -s conftest.$ac_objext'
6745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746   (eval $ac_try) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; }; then
6750   ac_hi=$ac_mid; break
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 ac_lo=`expr $ac_mid + 1`
6756                     if test $ac_lo -le $ac_mid; then
6757                       ac_lo= ac_hi=
6758                       break
6759                     fi
6760                     ac_mid=`expr 2 '*' $ac_mid + 1`
6761 fi
6762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6763   done
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774 $ac_includes_default
6775 int
6776 main ()
6777 {
6778 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6779 test_array [0] = 0
6780
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787   (eval $ac_compile) 2>conftest.er1
6788   ac_status=$?
6789   grep -v '^ *+' conftest.er1 >conftest.err
6790   rm -f conftest.er1
6791   cat conftest.err >&5
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); } &&
6794          { ac_try='test -z "$ac_c_werror_flag"
6795                          || test ! -s conftest.err'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; } &&
6801          { ac_try='test -s conftest.$ac_objext'
6802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803   (eval $ac_try) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); }; }; then
6807   ac_hi=-1 ac_mid=-1
6808   while :; do
6809     cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h.  */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h.  */
6815 $ac_includes_default
6816 int
6817 main ()
6818 {
6819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6820 test_array [0] = 0
6821
6822   ;
6823   return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828   (eval $ac_compile) 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_c_werror_flag"
6836                          || test ! -s conftest.err'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; } &&
6842          { ac_try='test -s conftest.$ac_objext'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; }; then
6848   ac_lo=$ac_mid; break
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_hi=`expr '(' $ac_mid ')' - 1`
6854                        if test $ac_mid -le $ac_hi; then
6855                          ac_lo= ac_hi=
6856                          break
6857                        fi
6858                        ac_mid=`expr 2 '*' $ac_mid`
6859 fi
6860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861   done
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_lo= ac_hi=
6867 fi
6868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 # Binary search between lo and hi bounds.
6872 while test "x$ac_lo" != "x$ac_hi"; do
6873   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6874   cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 $ac_includes_default
6881 int
6882 main ()
6883 {
6884 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6885 test_array [0] = 0
6886
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893   (eval $ac_compile) 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -z "$ac_c_werror_flag"
6901                          || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest.$ac_objext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_hi=$ac_mid
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_lo=`expr '(' $ac_mid ')' + 1`
6919 fi
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 done
6922 case $ac_lo in
6923 ?*) ac_cv_sizeof___int64=$ac_lo;;
6924 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6925 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6927 See \`config.log' for more details." >&5
6928 echo "$as_me: error: cannot compute sizeof (__int64), 77
6929 See \`config.log' for more details." >&2;}
6930    { (exit 1); exit 1; }; }; } ;;
6931 esac
6932 else
6933   if test "$cross_compiling" = yes; then
6934   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6935 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6937 See \`config.log' for more details." >&5
6938 echo "$as_me: error: cannot run test program while cross compiling
6939 See \`config.log' for more details." >&2;}
6940    { (exit 1); exit 1; }; }; }
6941 else
6942   cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948 $ac_includes_default
6949 long longval () { return (long) (sizeof (__int64)); }
6950 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6951 #include <stdio.h>
6952 #include <stdlib.h>
6953 int
6954 main ()
6955 {
6956
6957   FILE *f = fopen ("conftest.val", "w");
6958   if (! f)
6959     exit (1);
6960   if (((long) (sizeof (__int64))) < 0)
6961     {
6962       long i = longval ();
6963       if (i != ((long) (sizeof (__int64))))
6964         exit (1);
6965       fprintf (f, "%ld\n", i);
6966     }
6967   else
6968     {
6969       unsigned long i = ulongval ();
6970       if (i != ((long) (sizeof (__int64))))
6971         exit (1);
6972       fprintf (f, "%lu\n", i);
6973     }
6974   exit (ferror (f) || fclose (f) != 0);
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest$ac_exeext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_cv_sizeof___int64=`cat conftest.val`
6992 else
6993   echo "$as_me: program exited with status $ac_status" >&5
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ( exit $ac_status )
6998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7001 See \`config.log' for more details." >&5
7002 echo "$as_me: error: cannot compute sizeof (__int64), 77
7003 See \`config.log' for more details." >&2;}
7004    { (exit 1); exit 1; }; }; }
7005 fi
7006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 fi
7009 rm -f conftest.val
7010 else
7011   ac_cv_sizeof___int64=0
7012 fi
7013 fi
7014 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7015 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7016 cat >>confdefs.h <<_ACEOF
7017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7018 _ACEOF
7019
7020
7021 fi
7022
7023
7024 # ---------------------
7025 # Warnings and checking
7026 # ---------------------
7027
7028 # Check $CC warning features (if it's GCC).
7029 # We want to use -pedantic, but we don't want warnings about
7030 # * 'long long'
7031 # * variadic macros
7032 # * overlong strings
7033 # So, we only use -pedantic if we can disable those warnings.
7034
7035 loose_warn=
7036 save_CFLAGS="$CFLAGS"
7037 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7038   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7039
7040   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7041 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7042 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   CFLAGS="$option"
7046     cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052
7053 int
7054 main ()
7055 {
7056
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063   (eval $ac_compile) 2>conftest.er1
7064   ac_status=$?
7065   grep -v '^ *+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } &&
7070          { ac_try='test -z "$ac_c_werror_flag"
7071                          || test ! -s conftest.err'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; } &&
7077          { ac_try='test -s conftest.$ac_objext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   eval "$as_acx_Woption=yes"
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 eval "$as_acx_Woption=no"
7089 fi
7090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091
7092 fi
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7095   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7096   loose_warn="$loose_warn${loose_warn:+ }$option"
7097 fi
7098
7099   done
7100 CFLAGS="$save_CFLAGS"
7101
7102 strict_warn=
7103 save_CFLAGS="$CFLAGS"
7104 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7105   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7106
7107   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7108 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7109 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   CFLAGS="$option"
7113     cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119
7120 int
7121 main ()
7122 {
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130   (eval $ac_compile) 2>conftest.er1
7131   ac_status=$?
7132   grep -v '^ *+' conftest.er1 >conftest.err
7133   rm -f conftest.er1
7134   cat conftest.err >&5
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } &&
7137          { ac_try='test -z "$ac_c_werror_flag"
7138                          || test ! -s conftest.err'
7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140   (eval $ac_try) 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; } &&
7144          { ac_try='test -s conftest.$ac_objext'
7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146   (eval $ac_try) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; }; then
7150   eval "$as_acx_Woption=yes"
7151 else
7152   echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 eval "$as_acx_Woption=no"
7156 fi
7157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159 fi
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7162   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7163   strict_warn="$strict_warn${strict_warn:+ }$option"
7164 fi
7165
7166   done
7167 CFLAGS="$save_CFLAGS"
7168
7169 if test "$GCC" = yes; then
7170   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7171 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7172 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7173   echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175   save_CFLAGS="$CFLAGS"
7176 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183
7184 int
7185 main ()
7186 {
7187
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194   (eval $ac_compile) 2>conftest.er1
7195   ac_status=$?
7196   grep -v '^ *+' conftest.er1 >conftest.err
7197   rm -f conftest.er1
7198   cat conftest.err >&5
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); } &&
7201          { ac_try='test -z "$ac_c_werror_flag"
7202                          || test ! -s conftest.err'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; } &&
7208          { ac_try='test -s conftest.$ac_objext'
7209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210   (eval $ac_try) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; }; then
7214   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7215 else
7216   echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7220 fi
7221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7222 CFLAGS="$save_CFLAGS"
7223 fi
7224 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7225 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7226 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7227   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7228 fi
7229
7230
7231 fi
7232
7233
7234 # Check whether --enable-werror-always or --disable-werror-always was given.
7235 if test "${enable_werror_always+set}" = set; then
7236   enableval="$enable_werror_always"
7237
7238 else
7239   enable_werror_always=no
7240 fi;
7241 if test $enable_werror_always = yes; then
7242   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7243 fi
7244
7245
7246
7247
7248 # The above macros do nothing if the compiler is not GCC.  However, the
7249 # Makefile has more goo to add other flags, so this variabl is used to
7250 # enables warnings only for GCC.
7251 warn_cflags=
7252 if test "x$GCC" = "xyes"; then
7253   warn_cflags='$(GCC_WARN_CFLAGS)'
7254 fi
7255
7256
7257 # Enable expensive internal checks
7258 is_release=
7259 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7260   is_release=yes
7261 fi
7262
7263 # Check whether --enable-checking or --disable-checking was given.
7264 if test "${enable_checking+set}" = set; then
7265   enableval="$enable_checking"
7266   ac_checking_flags="${enableval}"
7267 else
7268
7269 # Determine the default checks.
7270 if test x$is_release = x ; then
7271   ac_checking_flags=yes
7272 else
7273   ac_checking_flags=release
7274 fi
7275 fi;
7276 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7277 for check in release $ac_checking_flags
7278 do
7279         case $check in
7280         # these set all the flags to specific states
7281         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7282                         ac_fold_checking= ; ac_gc_checking=1 ;
7283                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7284                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7285                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7286                         ac_types_checking=1 ;;
7287         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7288                         ac_fold_checking= ; ac_gc_checking= ;
7289                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7290                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7291                         ac_tree_checking= ; ac_valgrind_checking= ;
7292                         ac_types_checking= ;;
7293         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7294                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7295                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7296                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7297                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7298                         ac_types_checking=1 ;;
7299         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7300                         ac_fold_checking= ; ac_gc_checking= ;
7301                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7302                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7303                         ac_tree_checking= ; ac_valgrind_checking= ;
7304                         ac_types_checking= ;;
7305         # these enable particular checks
7306         assert)         ac_assert_checking=1 ;;
7307         df)             ac_df_checking=1 ;;
7308         fold)           ac_fold_checking=1 ;;
7309         gc)             ac_gc_checking=1 ;;
7310         gcac)           ac_gc_always_collect=1 ;;
7311         gimple)         ac_gimple_checking=1 ;;
7312         misc)           ac_checking=1 ;;
7313         rtl)            ac_rtl_checking=1 ;;
7314         rtlflag)        ac_rtlflag_checking=1 ;;
7315         runtime)        ac_runtime_checking=1 ;;
7316         tree)           ac_tree_checking=1 ;;
7317         types)          ac_types_checking=1 ;;
7318         valgrind)       ac_valgrind_checking=1 ;;
7319         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7320 echo "$as_me: error: unknown check category $check" >&2;}
7321    { (exit 1); exit 1; }; } ;;
7322         esac
7323 done
7324 IFS="$ac_save_IFS"
7325
7326 nocommon_flag=""
7327 if test x$ac_checking != x ; then
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define ENABLE_CHECKING 1
7331 _ACEOF
7332
7333   nocommon_flag=-fno-common
7334 fi
7335
7336 if test x$ac_df_checking != x ; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define ENABLE_DF_CHECKING 1
7340 _ACEOF
7341
7342 fi
7343 if test x$ac_assert_checking != x ; then
7344
7345 cat >>confdefs.h <<\_ACEOF
7346 #define ENABLE_ASSERT_CHECKING 1
7347 _ACEOF
7348
7349 fi
7350 if test x$ac_gimple_checking != x ; then
7351
7352 cat >>confdefs.h <<\_ACEOF
7353 #define ENABLE_GIMPLE_CHECKING 1
7354 _ACEOF
7355
7356 fi
7357
7358 if test x$ac_runtime_checking != x ; then
7359
7360 cat >>confdefs.h <<\_ACEOF
7361 #define ENABLE_RUNTIME_CHECKING 1
7362 _ACEOF
7363
7364 fi
7365 if test x$ac_tree_checking != x ; then
7366
7367 cat >>confdefs.h <<\_ACEOF
7368 #define ENABLE_TREE_CHECKING 1
7369 _ACEOF
7370
7371   TREEBROWSER=tree-browser.o
7372 fi
7373 if test x$ac_types_checking != x ; then
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define ENABLE_TYPES_CHECKING 1
7377 _ACEOF
7378
7379 fi
7380
7381 if test x$ac_rtl_checking != x ; then
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define ENABLE_RTL_CHECKING 1
7385 _ACEOF
7386
7387 fi
7388 if test x$ac_rtlflag_checking != x ; then
7389
7390 cat >>confdefs.h <<\_ACEOF
7391 #define ENABLE_RTL_FLAG_CHECKING 1
7392 _ACEOF
7393
7394 fi
7395 if test x$ac_gc_checking != x ; then
7396
7397 cat >>confdefs.h <<\_ACEOF
7398 #define ENABLE_GC_CHECKING 1
7399 _ACEOF
7400
7401 fi
7402 if test x$ac_gc_always_collect != x ; then
7403
7404 cat >>confdefs.h <<\_ACEOF
7405 #define ENABLE_GC_ALWAYS_COLLECT 1
7406 _ACEOF
7407
7408 fi
7409 if test x$ac_fold_checking != x ; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define ENABLE_FOLD_CHECKING 1
7413 _ACEOF
7414
7415 fi
7416 valgrind_path_defines=
7417 valgrind_command=
7418
7419 if test "${ac_cv_header_valgrind_h+set}" = set; then
7420   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7421 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7422 if test "${ac_cv_header_valgrind_h+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 fi
7425 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7426 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7427 else
7428   # Is the header compilable?
7429 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7430 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437 $ac_includes_default
7438 #include <valgrind.h>
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442   (eval $ac_compile) 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } &&
7449          { ac_try='test -z "$ac_c_werror_flag"
7450                          || test ! -s conftest.err'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; } &&
7456          { ac_try='test -s conftest.$ac_objext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_header_compiler=yes
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_header_compiler=no
7468 fi
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7471 echo "${ECHO_T}$ac_header_compiler" >&6
7472
7473 # Is the header present?
7474 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7475 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 #include <valgrind.h>
7483 _ACEOF
7484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } >/dev/null; then
7492   if test -s conftest.err; then
7493     ac_cpp_err=$ac_c_preproc_warn_flag
7494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7495   else
7496     ac_cpp_err=
7497   fi
7498 else
7499   ac_cpp_err=yes
7500 fi
7501 if test -z "$ac_cpp_err"; then
7502   ac_header_preproc=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507   ac_header_preproc=no
7508 fi
7509 rm -f conftest.err conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7511 echo "${ECHO_T}$ac_header_preproc" >&6
7512
7513 # So?  What about this header?
7514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7515   yes:no: )
7516     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7517 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7518     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7519 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7520     ac_header_preproc=yes
7521     ;;
7522   no:yes:* )
7523     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7524 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7525     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7526 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7527     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7528 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7530 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7533     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7534 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7535     (
7536       cat <<\_ASBOX
7537 ## ------------------------------------------ ##
7538 ## Report this to the AC_PACKAGE_NAME lists.  ##
7539 ## ------------------------------------------ ##
7540 _ASBOX
7541     ) |
7542       sed "s/^/$as_me: WARNING:     /" >&2
7543     ;;
7544 esac
7545 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7546 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7547 if test "${ac_cv_header_valgrind_h+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   ac_cv_header_valgrind_h=$ac_header_preproc
7551 fi
7552 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7553 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7554
7555 fi
7556 if test $ac_cv_header_valgrind_h = yes; then
7557   have_valgrind_h=yes
7558 else
7559   have_valgrind_h=no
7560 fi
7561
7562
7563
7564 if test x$ac_valgrind_checking != x ; then
7565   # It is certainly possible that there's valgrind but no valgrind.h.
7566   # GCC relies on making annotations so we must have both.
7567   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7568 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7569   cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 #include <valgrind/memcheck.h>
7576 #ifndef VALGRIND_DISCARD
7577 #error VALGRIND_DISCARD not defined
7578 #endif
7579 _ACEOF
7580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } >/dev/null; then
7588   if test -s conftest.err; then
7589     ac_cpp_err=$ac_c_preproc_warn_flag
7590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7591   else
7592     ac_cpp_err=
7593   fi
7594 else
7595   ac_cpp_err=yes
7596 fi
7597 if test -z "$ac_cpp_err"; then
7598   gcc_cv_header_valgrind_memcheck_h=yes
7599 else
7600   echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603   gcc_cv_header_valgrind_memcheck_h=no
7604 fi
7605 rm -f conftest.err conftest.$ac_ext
7606   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7607 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7608   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7609 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 #include <memcheck.h>
7617 #ifndef VALGRIND_DISCARD
7618 #error VALGRIND_DISCARD not defined
7619 #endif
7620 _ACEOF
7621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } >/dev/null; then
7629   if test -s conftest.err; then
7630     ac_cpp_err=$ac_c_preproc_warn_flag
7631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7632   else
7633     ac_cpp_err=
7634   fi
7635 else
7636   ac_cpp_err=yes
7637 fi
7638 if test -z "$ac_cpp_err"; then
7639   gcc_cv_header_memcheck_h=yes
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644   gcc_cv_header_memcheck_h=no
7645 fi
7646 rm -f conftest.err conftest.$ac_ext
7647   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7648 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7649
7650 # Prepare PATH_SEPARATOR.
7651 # The user is always right.
7652 if test "${PATH_SEPARATOR+set}" != set; then
7653   echo "#! /bin/sh" >conf$$.sh
7654   echo  "exit 0"   >>conf$$.sh
7655   chmod +x conf$$.sh
7656   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7657     PATH_SEPARATOR=';'
7658   else
7659     PATH_SEPARATOR=:
7660   fi
7661   rm -f conf$$.sh
7662 fi
7663
7664 # Find out how to test for executable files. Don't use a zero-byte file,
7665 # as systems may use methods other than mode bits to determine executability.
7666 cat >conf$$.file <<_ASEOF
7667 #! /bin/sh
7668 exit 0
7669 _ASEOF
7670 chmod +x conf$$.file
7671 if test -x conf$$.file >/dev/null 2>&1; then
7672   ac_executable_p="test -x"
7673 else
7674   ac_executable_p="test -f"
7675 fi
7676 rm -f conf$$.file
7677
7678 # Extract the first word of "valgrind", so it can be a program name with args.
7679 set dummy valgrind; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_path_valgrind_path+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case "$valgrind_path" in
7686   [\\/]* | ?:[\\/]*)
7687     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7688     ;;
7689   *)
7690     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7691     for ac_dir in $PATH; do
7692       IFS="$ac_save_IFS"
7693       test -z "$ac_dir" && ac_dir=.
7694       for ac_exec_ext in '' $ac_executable_extensions; do
7695         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7696           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7697             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7698             break 2
7699           fi
7700         fi
7701       done
7702     done
7703     IFS="$ac_save_IFS"
7704     ;;
7705 esac
7706 fi
7707 valgrind_path="$ac_cv_path_valgrind_path"
7708 if test -n "$valgrind_path"; then
7709   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7710 echo "${ECHO_T}$valgrind_path" >&6
7711 else
7712   echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 fi
7715
7716   if test "x$valgrind_path" = "x" \
7717     || (test $have_valgrind_h = no \
7718         && test $gcc_cv_header_memcheck_h = no \
7719         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7720         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7721 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7722    { (exit 1); exit 1; }; }
7723   fi
7724   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7725   valgrind_command="$valgrind_path -q"
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define ENABLE_VALGRIND_CHECKING 1
7729 _ACEOF
7730
7731   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7732
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_VALGRIND_MEMCHECK_H 1
7735 _ACEOF
7736
7737   fi
7738   if test $gcc_cv_header_memcheck_h = yes; then
7739
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_MEMCHECK_H 1
7742 _ACEOF
7743
7744   fi
7745 fi
7746
7747
7748
7749 # Enable code coverage collection
7750 # Check whether --enable-coverage or --disable-coverage was given.
7751 if test "${enable_coverage+set}" = set; then
7752   enableval="$enable_coverage"
7753   case "${enableval}" in
7754   yes|noopt)
7755     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7756     ;;
7757   opt)
7758     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7759     ;;
7760   no)
7761     # a.k.a. --disable-coverage
7762     coverage_flags=""
7763     ;;
7764   *)
7765     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7766 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7767    { (exit 1); exit 1; }; }
7768     ;;
7769 esac
7770 else
7771   coverage_flags=""
7772 fi;
7773
7774
7775 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7776 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7777   enableval="$enable_gather_detailed_mem_stats"
7778
7779 else
7780   enable_gather_detailed_mem_stats=no
7781 fi;
7782 if test x$enable_gather_detailed_mem_stats = xyes ; then
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define GATHER_STATISTICS 1
7786 _ACEOF
7787
7788 fi
7789
7790 # -------------------------------
7791 # Miscenalleous configure options
7792 # -------------------------------
7793
7794 # With stabs
7795
7796 # Check whether --with-stabs or --without-stabs was given.
7797 if test "${with_stabs+set}" = set; then
7798   withval="$with_stabs"
7799   stabs="$with_stabs"
7800 else
7801   stabs=no
7802 fi;
7803
7804 # Determine whether or not multilibs are enabled.
7805 # Check whether --enable-multilib or --disable-multilib was given.
7806 if test "${enable_multilib+set}" = set; then
7807   enableval="$enable_multilib"
7808
7809 else
7810   enable_multilib=yes
7811 fi;
7812
7813
7814 # Enable __cxa_atexit for C++.
7815 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7816 if test "${enable___cxa_atexit+set}" = set; then
7817   enableval="$enable___cxa_atexit"
7818
7819 fi;
7820
7821 # Enable C extension for decimal float if target supports it.
7822 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7823 if test "${enable_decimal_float+set}" = set; then
7824   enableval="$enable_decimal_float"
7825
7826   case $enable_decimal_float in
7827     yes | no | bid | dpd) ;;
7828     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7829 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7830 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7831 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7832    { (exit 1); exit 1; }; } ;;
7833   esac
7834
7835 else
7836
7837   case $target in
7838     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7839       enable_decimal_float=yes
7840       ;;
7841     *)
7842       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7843 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7844       enable_decimal_float=no
7845       ;;
7846   esac
7847
7848 fi;
7849
7850 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define ENABLE_DECIMAL_FLOAT $dfp
7854 _ACEOF
7855
7856
7857 # x86's use BID format instead of DPD
7858 case x$enable_decimal_float in
7859   xyes)
7860     case $target in
7861       i?86*-*-linux* | x86_64*-*-linux*)
7862         enable_decimal_float=bid
7863         ;;
7864       *)
7865         enable_decimal_float=dpd
7866         ;;
7867     esac
7868     ;;
7869   xno)
7870     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7871     # dependency on libdecnumber.
7872     enable_decimal_float=dpd
7873     ;;
7874 esac
7875
7876
7877 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7878
7879 cat >>confdefs.h <<_ACEOF
7880 #define ENABLE_DECIMAL_BID_FORMAT $bid
7881 _ACEOF
7882
7883
7884 # Enable C extension for fixed-point arithmetic.
7885 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7886 if test "${enable_fixed_point+set}" = set; then
7887   enableval="$enable_fixed_point"
7888
7889
7890 else
7891
7892   case $target in
7893     mips*-*-*)
7894       case $host in
7895         mips*-sgi-irix*)
7896           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7897 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7898           enable_fixed_point=no
7899           ;;
7900         *)
7901           enable_fixed_point=yes
7902           ;;
7903       esac
7904       ;;
7905     *)
7906       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7907 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7908       enable_fixed_point=no
7909       ;;
7910   esac
7911
7912 fi;
7913
7914
7915 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define ENABLE_FIXED_POINT $fixedpoint
7919 _ACEOF
7920
7921
7922 # Enable threads
7923 # Pass with no value to take the default
7924 # Pass with a value to specify a thread package
7925 # Check whether --enable-threads or --disable-threads was given.
7926 if test "${enable_threads+set}" = set; then
7927   enableval="$enable_threads"
7928
7929 else
7930   enable_threads=''
7931 fi;
7932
7933 # Check whether --enable-tls or --disable-tls was given.
7934 if test "${enable_tls+set}" = set; then
7935   enableval="$enable_tls"
7936
7937   case $enable_tls in
7938     yes | no) ;;
7939     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7940 Valid choices are 'yes' and 'no'." >&5
7941 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7942 Valid choices are 'yes' and 'no'." >&2;}
7943    { (exit 1); exit 1; }; } ;;
7944   esac
7945
7946 else
7947   enable_tls=''
7948 fi;
7949
7950 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7951 if test "${enable_objc_gc+set}" = set; then
7952   enableval="$enable_objc_gc"
7953   if test x$enable_objc_gc = xno; then
7954         objc_boehm_gc=''
7955 else
7956         objc_boehm_gc=1
7957 fi
7958 else
7959   objc_boehm_gc=''
7960 fi;
7961
7962
7963 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7964 if test "${with_dwarf2+set}" = set; then
7965   withval="$with_dwarf2"
7966   dwarf2="$with_dwarf2"
7967 else
7968   dwarf2=no
7969 fi;
7970
7971 # Check whether --enable-shared or --disable-shared was given.
7972 if test "${enable_shared+set}" = set; then
7973   enableval="$enable_shared"
7974
7975   case $enable_shared in
7976   yes | no) ;;
7977   *)
7978     enable_shared=no
7979     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7980     for pkg in $enableval; do
7981       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7982         enable_shared=yes
7983       fi
7984     done
7985     IFS="$ac_save_ifs"
7986     ;;
7987   esac
7988
7989 else
7990   enable_shared=yes
7991 fi;
7992
7993
7994
7995 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7996 if test "${with_build_sysroot+set}" = set; then
7997   withval="$with_build_sysroot"
7998
7999 fi;
8000
8001
8002 # Check whether --with-sysroot or --without-sysroot was given.
8003 if test "${with_sysroot+set}" = set; then
8004   withval="$with_sysroot"
8005
8006  case ${with_sysroot} in
8007  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8008  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8009  esac
8010
8011  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8012  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8013
8014  if test "x$prefix" = xNONE; then
8015   test_prefix=/usr/local
8016  else
8017   test_prefix=$prefix
8018  fi
8019  if test "x$exec_prefix" = xNONE; then
8020   test_exec_prefix=$test_prefix
8021  else
8022   test_exec_prefix=$exec_prefix
8023  fi
8024  case ${TARGET_SYSTEM_ROOT} in
8025  "${test_prefix}"|"${test_prefix}/"*|\
8026  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8027  '${prefix}'|'${prefix}/'*|\
8028  '${exec_prefix}'|'${exec_prefix}/'*)
8029    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8030    TARGET_SYSTEM_ROOT_DEFINE="$t"
8031    ;;
8032  esac
8033
8034 else
8035
8036  TARGET_SYSTEM_ROOT=
8037  TARGET_SYSTEM_ROOT_DEFINE=
8038  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8039
8040 fi;
8041
8042
8043
8044
8045 # Build with intermodule optimisations
8046 # Check whether --enable-intermodule or --disable-intermodule was given.
8047 if test "${enable_intermodule+set}" = set; then
8048   enableval="$enable_intermodule"
8049   case ${enable_intermodule} in
8050   yes) onestep="-onestep";;
8051   *) onestep="";;
8052 esac
8053 else
8054   onestep=""
8055 fi;
8056
8057
8058
8059
8060 # Check whether --with-pkgversion or --without-pkgversion was given.
8061 if test "${with_pkgversion+set}" = set; then
8062   withval="$with_pkgversion"
8063   case "$withval" in
8064       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8065 echo "$as_me: error: package version not specified" >&2;}
8066    { (exit 1); exit 1; }; } ;;
8067       no)  PKGVERSION= ;;
8068       *)   PKGVERSION="($withval) " ;;
8069      esac
8070 else
8071   PKGVERSION="(GCC) "
8072
8073 fi;
8074
8075
8076
8077
8078 # Check whether --with-bugurl or --without-bugurl was given.
8079 if test "${with_bugurl+set}" = set; then
8080   withval="$with_bugurl"
8081   case "$withval" in
8082       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8083 echo "$as_me: error: bug URL not specified" >&2;}
8084    { (exit 1); exit 1; }; } ;;
8085       no)  BUGURL=
8086            ;;
8087       *)   BUGURL="$withval"
8088            ;;
8089      esac
8090 else
8091   BUGURL="http://gcc.gnu.org/bugs.html"
8092
8093 fi;
8094   case ${BUGURL} in
8095   "")
8096     REPORT_BUGS_TO=
8097     REPORT_BUGS_TEXI=
8098     ;;
8099   *)
8100     REPORT_BUGS_TO="<$BUGURL>"
8101     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8102     ;;
8103   esac;
8104
8105
8106
8107
8108 # Sanity check enable_languages in case someone does not run the toplevel
8109 # configure # script.
8110 # Check whether --enable-languages or --disable-languages was given.
8111 if test "${enable_languages+set}" = set; then
8112   enableval="$enable_languages"
8113   case ,${enable_languages}, in
8114        ,,|,yes,)
8115                 # go safe -- we cannot be much sure without the toplevel
8116                 # configure's
8117                 # analysis of which target libs are present and usable
8118                 enable_languages=c
8119                 ;;
8120          *,all,*)
8121                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8122 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8123    { (exit 1); exit 1; }; }
8124                 ;;
8125         *,c,*)
8126                 ;;
8127         *)
8128                 enable_languages=c,${enable_languages}
8129                 ;;
8130 esac
8131 else
8132   enable_languages=c
8133 fi;
8134
8135 # Used by documentation targets
8136
8137
8138
8139
8140 # -------------------------
8141 # Checks for other programs
8142 # -------------------------
8143
8144 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8145 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   cat >conftest.make <<\_ACEOF
8151 all:
8152         @echo 'ac_maketemp="$(MAKE)"'
8153 _ACEOF
8154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8156 if test -n "$ac_maketemp"; then
8157   eval ac_cv_prog_make_${ac_make}_set=yes
8158 else
8159   eval ac_cv_prog_make_${ac_make}_set=no
8160 fi
8161 rm -f conftest.make
8162 fi
8163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8164   echo "$as_me:$LINENO: result: yes" >&5
8165 echo "${ECHO_T}yes" >&6
8166   SET_MAKE=
8167 else
8168   echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8170   SET_MAKE="MAKE=${MAKE-make}"
8171 fi
8172
8173
8174 # Find some useful tools
8175 for ac_prog in gawk mawk nawk awk
8176 do
8177   # Extract the first word of "$ac_prog", so it can be a program name with args.
8178 set dummy $ac_prog; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_prog_AWK+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   if test -n "$AWK"; then
8185   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190   IFS=$as_save_IFS
8191   test -z "$as_dir" && as_dir=.
8192   for ac_exec_ext in '' $ac_executable_extensions; do
8193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194     ac_cv_prog_AWK="$ac_prog"
8195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196     break 2
8197   fi
8198 done
8199 done
8200
8201 fi
8202 fi
8203 AWK=$ac_cv_prog_AWK
8204 if test -n "$AWK"; then
8205   echo "$as_me:$LINENO: result: $AWK" >&5
8206 echo "${ECHO_T}$AWK" >&6
8207 else
8208   echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8210 fi
8211
8212   test -n "$AWK" && break
8213 done
8214
8215 # We need awk to create options.c and options.h.
8216 # Bail out if it's missing.
8217 case ${AWK} in
8218   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8219 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8220    { (exit 1); exit 1; }; } ;;
8221 esac
8222
8223 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8224 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8225 if test "${gcc_cv_prog_LN_S+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   rm -f conftestdata_t
8229 echo >conftestdata_f
8230 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8231 then
8232   gcc_cv_prog_LN_S="ln -s"
8233 else
8234   if ln conftestdata_f conftestdata_t 2>/dev/null
8235   then
8236     gcc_cv_prog_LN_S=ln
8237   else
8238     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8239     then
8240       gcc_cv_prog_LN_S="cp -p"
8241     else
8242       gcc_cv_prog_LN_S=cp
8243     fi
8244   fi
8245 fi
8246 rm -f conftestdata_f conftestdata_t
8247
8248 fi
8249 LN_S="$gcc_cv_prog_LN_S"
8250 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8251   echo "$as_me:$LINENO: result: yes" >&5
8252 echo "${ECHO_T}yes" >&6
8253 else
8254   if test "$gcc_cv_prog_LN_S" = "ln"; then
8255     echo "$as_me:$LINENO: result: no, using ln" >&5
8256 echo "${ECHO_T}no, using ln" >&6
8257   else
8258     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8259 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8260   fi
8261 fi
8262
8263 echo "$as_me:$LINENO: checking whether ln works" >&5
8264 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8265 if test "${acx_cv_prog_LN+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   rm -f conftestdata_t
8269 echo >conftestdata_f
8270 if ln conftestdata_f conftestdata_t 2>/dev/null
8271 then
8272   acx_cv_prog_LN=ln
8273 else
8274   acx_cv_prog_LN=no
8275 fi
8276 rm -f conftestdata_f conftestdata_t
8277
8278 fi
8279 if test $acx_cv_prog_LN = no; then
8280   LN="$LN_S"
8281   echo "$as_me:$LINENO: result: no, using $LN" >&5
8282 echo "${ECHO_T}no, using $LN" >&6
8283 else
8284   LN="$acx_cv_prog_LN"
8285   echo "$as_me:$LINENO: result: yes" >&5
8286 echo "${ECHO_T}yes" >&6
8287 fi
8288
8289 if test -n "$ac_tool_prefix"; then
8290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8292 echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294 if test "${ac_cv_prog_RANLIB+set}" = set; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   if test -n "$RANLIB"; then
8298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303   IFS=$as_save_IFS
8304   test -z "$as_dir" && as_dir=.
8305   for ac_exec_ext in '' $ac_executable_extensions; do
8306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309     break 2
8310   fi
8311 done
8312 done
8313
8314 fi
8315 fi
8316 RANLIB=$ac_cv_prog_RANLIB
8317 if test -n "$RANLIB"; then
8318   echo "$as_me:$LINENO: result: $RANLIB" >&5
8319 echo "${ECHO_T}$RANLIB" >&6
8320 else
8321   echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8323 fi
8324
8325 fi
8326 if test -z "$ac_cv_prog_RANLIB"; then
8327   ac_ct_RANLIB=$RANLIB
8328   # Extract the first word of "ranlib", so it can be a program name with args.
8329 set dummy ranlib; ac_word=$2
8330 echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   if test -n "$ac_ct_RANLIB"; then
8336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343   for ac_exec_ext in '' $ac_executable_extensions; do
8344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345     ac_cv_prog_ac_ct_RANLIB="ranlib"
8346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350 done
8351
8352   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8353 fi
8354 fi
8355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8356 if test -n "$ac_ct_RANLIB"; then
8357   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8359 else
8360   echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8362 fi
8363
8364   RANLIB=$ac_ct_RANLIB
8365 else
8366   RANLIB="$ac_cv_prog_RANLIB"
8367 fi
8368
8369 case "${host}" in
8370 *-*-darwin*)
8371   # By default, the Darwin ranlib will not treat common symbols as
8372   # definitions when  building the archive table of contents.  Other
8373   # ranlibs do that; pass an option to the Darwin ranlib that makes
8374   # it behave similarly.
8375   ranlib_flags="-c"
8376   ;;
8377 *)
8378   ranlib_flags=""
8379 esac
8380
8381
8382 # Find a good install program.  We prefer a C program (faster),
8383 # so one script is as good as another.  But avoid the broken or
8384 # incompatible versions:
8385 # SysV /etc/install, /usr/sbin/install
8386 # SunOS /usr/etc/install
8387 # IRIX /sbin/install
8388 # AIX /bin/install
8389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8391 # ./install, which can be erroneously created by make from ./install.sh.
8392 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8393 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8394 if test -z "$INSTALL"; then
8395 if test "${ac_cv_path_install+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8399   for ac_dir in $PATH; do
8400     # Account for people who put trailing slashes in PATH elements.
8401     case "$ac_dir/" in
8402     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8403     *)
8404       # OSF1 and SCO ODT 3.0 have their own names for install.
8405       for ac_prog in ginstall scoinst install; do
8406         if test -f $ac_dir/$ac_prog; then
8407           if test $ac_prog = install &&
8408             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8409             # AIX install.  It has an incompatible calling convention.
8410             # OSF/1 installbsd also uses dspmsg, but is usable.
8411             :
8412           else
8413             ac_cv_path_install="$ac_dir/$ac_prog -c"
8414             break 2
8415           fi
8416         fi
8417       done
8418       ;;
8419     esac
8420   done
8421   IFS="$ac_save_IFS"
8422
8423 fi
8424   if test "${ac_cv_path_install+set}" = set; then
8425     INSTALL="$ac_cv_path_install"
8426   else
8427     # As a last resort, use the slow shell script.  We don't cache a
8428     # path for INSTALL within a source directory, because that will
8429     # break other packages using the cache if that directory is
8430     # removed, or if the path is relative.
8431     INSTALL="$ac_install_sh"
8432   fi
8433 fi
8434 echo "$as_me:$LINENO: result: $INSTALL" >&5
8435 echo "${ECHO_T}$INSTALL" >&6
8436
8437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8438 # It thinks the first close brace ends the variable substitution.
8439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8440
8441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8442
8443
8444 # See if cmp has --ignore-initial.
8445 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8446 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8447 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450    echo abfoo >t1
8451   echo cdfoo >t2
8452   gcc_cv_prog_cmp_skip=slowcompare
8453   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8454     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8455       :
8456     else
8457       gcc_cv_prog_cmp_skip=gnucompare
8458     fi
8459   fi
8460   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8461     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8462       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8463         :
8464       else
8465         gcc_cv_prog_cmp_skip=fastcompare
8466       fi
8467     fi
8468   fi
8469   rm t1 t2
8470
8471 fi
8472 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8473 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8474 make_compare_target=$gcc_cv_prog_cmp_skip
8475
8476
8477
8478 # See if we have the mktemp command.
8479 # Extract the first word of "mktemp", so it can be a program name with args.
8480 set dummy mktemp; ac_word=$2
8481 echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8483 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   if test -n "$have_mktemp_command"; then
8487   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   test -z "$as_dir" && as_dir=.
8494   for ac_exec_ext in '' $ac_executable_extensions; do
8495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496     ac_cv_prog_have_mktemp_command="yes"
8497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498     break 2
8499   fi
8500 done
8501 done
8502
8503   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8504 fi
8505 fi
8506 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8507 if test -n "$have_mktemp_command"; then
8508   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8509 echo "${ECHO_T}$have_mktemp_command" >&6
8510 else
8511   echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6
8513 fi
8514
8515
8516 # See if makeinfo has been installed and is modern enough
8517 # that we can use it.
8518
8519   # Extract the first word of "makeinfo", so it can be a program name with args.
8520 set dummy makeinfo; ac_word=$2
8521 echo "$as_me:$LINENO: checking for $ac_word" >&5
8522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   if test -n "$MAKEINFO"; then
8527   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532   IFS=$as_save_IFS
8533   test -z "$as_dir" && as_dir=.
8534   for ac_exec_ext in '' $ac_executable_extensions; do
8535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536     ac_cv_prog_MAKEINFO="makeinfo"
8537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538     break 2
8539   fi
8540 done
8541 done
8542
8543 fi
8544 fi
8545 MAKEINFO=$ac_cv_prog_MAKEINFO
8546 if test -n "$MAKEINFO"; then
8547   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8548 echo "${ECHO_T}$MAKEINFO" >&6
8549 else
8550   echo "$as_me:$LINENO: result: no" >&5
8551 echo "${ECHO_T}no" >&6
8552 fi
8553
8554   if test -n "$MAKEINFO"; then
8555     # Found it, now check the version.
8556     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8557 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8558 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8562                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8563
8564                     case $ac_prog_version in
8565                       '')  gcc_cv_prog_makeinfo_modern=no;;
8566                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8567                       *)   gcc_cv_prog_makeinfo_modern=no;;
8568                     esac
8569
8570 fi
8571 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8572 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8573   else
8574     gcc_cv_prog_makeinfo_modern=no
8575   fi
8576   if test $gcc_cv_prog_makeinfo_modern = no; then
8577     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8578   fi
8579
8580 if test $gcc_cv_prog_makeinfo_modern = no; then
8581   { echo "$as_me:$LINENO: WARNING:
8582 *** Makeinfo is missing or too old.
8583 *** Info documentation will not be built." >&5
8584 echo "$as_me: WARNING:
8585 *** Makeinfo is missing or too old.
8586 *** Info documentation will not be built." >&2;}
8587   BUILD_INFO=
8588 else
8589   BUILD_INFO=info
8590 fi
8591
8592
8593 # Is pod2man recent enough to regenerate manpages?
8594 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8595 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8596 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8597   echo "$as_me:$LINENO: result: yes" >&5
8598 echo "${ECHO_T}yes" >&6
8599   GENERATED_MANPAGES=generated-manpages
8600 else
8601   echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8603   GENERATED_MANPAGES=
8604 fi
8605
8606
8607 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8608
8609 # How about lex?
8610 for ac_prog in flex
8611 do
8612   # Extract the first word of "$ac_prog", so it can be a program name with args.
8613 set dummy $ac_prog; ac_word=$2
8614 echo "$as_me:$LINENO: checking for $ac_word" >&5
8615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8616 if test "${ac_cv_prog_FLEX+set}" = set; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619   if test -n "$FLEX"; then
8620   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625   IFS=$as_save_IFS
8626   test -z "$as_dir" && as_dir=.
8627   for ac_exec_ext in '' $ac_executable_extensions; do
8628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629     ac_cv_prog_FLEX="$ac_prog"
8630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631     break 2
8632   fi
8633 done
8634 done
8635
8636 fi
8637 fi
8638 FLEX=$ac_cv_prog_FLEX
8639 if test -n "$FLEX"; then
8640   echo "$as_me:$LINENO: result: $FLEX" >&5
8641 echo "${ECHO_T}$FLEX" >&6
8642 else
8643   echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8645 fi
8646
8647   test -n "$FLEX" && break
8648 done
8649 test -n "$FLEX" || FLEX="$MISSING flex"
8650
8651
8652 # Bison?
8653 for ac_prog in bison
8654 do
8655   # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8659 if test "${ac_cv_prog_BISON+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   if test -n "$BISON"; then
8663   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668   IFS=$as_save_IFS
8669   test -z "$as_dir" && as_dir=.
8670   for ac_exec_ext in '' $ac_executable_extensions; do
8671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672     ac_cv_prog_BISON="$ac_prog"
8673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8674     break 2
8675   fi
8676 done
8677 done
8678
8679 fi
8680 fi
8681 BISON=$ac_cv_prog_BISON
8682 if test -n "$BISON"; then
8683   echo "$as_me:$LINENO: result: $BISON" >&5
8684 echo "${ECHO_T}$BISON" >&6
8685 else
8686   echo "$as_me:$LINENO: result: no" >&5
8687 echo "${ECHO_T}no" >&6
8688 fi
8689
8690   test -n "$BISON" && break
8691 done
8692 test -n "$BISON" || BISON="$MISSING bison"
8693
8694
8695 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8696 # check for build == host before using them.
8697
8698 # NM
8699 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8700   && test -d ../binutils ; then
8701   NM='$(objdir)/../binutils/nm-new'
8702 else
8703   # Extract the first word of "nm", so it can be a program name with args.
8704 set dummy nm; ac_word=$2
8705 echo "$as_me:$LINENO: checking for $ac_word" >&5
8706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8707 if test "${ac_cv_prog_NM+set}" = set; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710   if test -n "$NM"; then
8711   ac_cv_prog_NM="$NM" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716   IFS=$as_save_IFS
8717   test -z "$as_dir" && as_dir=.
8718   for ac_exec_ext in '' $ac_executable_extensions; do
8719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720     ac_cv_prog_NM="nm"
8721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8722     break 2
8723   fi
8724 done
8725 done
8726
8727   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8728 fi
8729 fi
8730 NM=$ac_cv_prog_NM
8731 if test -n "$NM"; then
8732   echo "$as_me:$LINENO: result: $NM" >&5
8733 echo "${ECHO_T}$NM" >&6
8734 else
8735   echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8737 fi
8738
8739 fi
8740
8741 # AR
8742 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8743   && test -d ../binutils ; then
8744   AR='$(objdir)/../binutils/ar'
8745 else
8746   # Extract the first word of "ar", so it can be a program name with args.
8747 set dummy ar; ac_word=$2
8748 echo "$as_me:$LINENO: checking for $ac_word" >&5
8749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750 if test "${ac_cv_prog_AR+set}" = set; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753   if test -n "$AR"; then
8754   ac_cv_prog_AR="$AR" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761   for ac_exec_ext in '' $ac_executable_extensions; do
8762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_prog_AR="ar"
8764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768 done
8769
8770   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8771 fi
8772 fi
8773 AR=$ac_cv_prog_AR
8774 if test -n "$AR"; then
8775   echo "$as_me:$LINENO: result: $AR" >&5
8776 echo "${ECHO_T}$AR" >&6
8777 else
8778   echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8780 fi
8781
8782 fi
8783
8784
8785 # --------------------
8786 # Checks for C headers
8787 # --------------------
8788
8789 # Need to reject headers which give warnings, so that the -Werror bootstrap
8790 # works later. *sigh*  This needs to come before all header checks.
8791
8792 ac_c_preproc_warn_flag=yes
8793
8794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8796 if test "${ac_cv_header_stdc+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 #include <stdlib.h>
8806 #include <stdarg.h>
8807 #include <string.h>
8808 #include <float.h>
8809
8810 int
8811 main ()
8812 {
8813
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820   (eval $ac_compile) 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag"
8828                          || test ! -s conftest.err'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; } &&
8834          { ac_try='test -s conftest.$ac_objext'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   ac_cv_header_stdc=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845 ac_cv_header_stdc=no
8846 fi
8847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8848
8849 if test $ac_cv_header_stdc = yes; then
8850   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8851   cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857 #include <string.h>
8858
8859 _ACEOF
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861   $EGREP "memchr" >/dev/null 2>&1; then
8862   :
8863 else
8864   ac_cv_header_stdc=no
8865 fi
8866 rm -f conftest*
8867
8868 fi
8869
8870 if test $ac_cv_header_stdc = yes; then
8871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8872   cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878 #include <stdlib.h>
8879
8880 _ACEOF
8881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8882   $EGREP "free" >/dev/null 2>&1; then
8883   :
8884 else
8885   ac_cv_header_stdc=no
8886 fi
8887 rm -f conftest*
8888
8889 fi
8890
8891 if test $ac_cv_header_stdc = yes; then
8892   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8893   if test "$cross_compiling" = yes; then
8894   :
8895 else
8896   cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902 #include <ctype.h>
8903 #if ((' ' & 0x0FF) == 0x020)
8904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8906 #else
8907 # define ISLOWER(c) \
8908                    (('a' <= (c) && (c) <= 'i') \
8909                      || ('j' <= (c) && (c) <= 'r') \
8910                      || ('s' <= (c) && (c) <= 'z'))
8911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8912 #endif
8913
8914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8915 int
8916 main ()
8917 {
8918   int i;
8919   for (i = 0; i < 256; i++)
8920     if (XOR (islower (i), ISLOWER (i))
8921         || toupper (i) != TOUPPER (i))
8922       exit(2);
8923   exit (0);
8924 }
8925 _ACEOF
8926 rm -f conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928   (eval $ac_link) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   :
8938 else
8939   echo "$as_me: program exited with status $ac_status" >&5
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ( exit $ac_status )
8944 ac_cv_header_stdc=no
8945 fi
8946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 fi
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8951 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8952 if test $ac_cv_header_stdc = yes; then
8953
8954 cat >>confdefs.h <<\_ACEOF
8955 #define STDC_HEADERS 1
8956 _ACEOF
8957
8958 fi
8959
8960 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8961 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8962 if test "${ac_cv_header_time+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 #include <sys/types.h>
8972 #include <sys/time.h>
8973 #include <time.h>
8974
8975 int
8976 main ()
8977 {
8978 if ((struct tm *) 0)
8979 return 0;
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986   (eval $ac_compile) 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag"
8994                          || test ! -s conftest.err'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; } &&
9000          { ac_try='test -s conftest.$ac_objext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_header_time=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_header_time=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9014 fi
9015 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9016 echo "${ECHO_T}$ac_cv_header_time" >&6
9017 if test $ac_cv_header_time = yes; then
9018
9019 cat >>confdefs.h <<\_ACEOF
9020 #define TIME_WITH_SYS_TIME 1
9021 _ACEOF
9022
9023 fi
9024
9025 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9026 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9027 if test "${gcc_cv_header_string+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036 #include <string.h>
9037 #include <strings.h>
9038 int
9039 main ()
9040 {
9041
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048   (eval $ac_compile) 2>conftest.er1
9049   ac_status=$?
9050   grep -v '^ *+' conftest.er1 >conftest.err
9051   rm -f conftest.er1
9052   cat conftest.err >&5
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } &&
9055          { ac_try='test -z "$ac_c_werror_flag"
9056                          || test ! -s conftest.err'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; } &&
9062          { ac_try='test -s conftest.$ac_objext'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; }; then
9068   gcc_cv_header_string=yes
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 gcc_cv_header_string=no
9074 fi
9075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9076 fi
9077 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9078 echo "${ECHO_T}$gcc_cv_header_string" >&6
9079 if test $gcc_cv_header_string = yes; then
9080
9081 cat >>confdefs.h <<\_ACEOF
9082 #define STRING_WITH_STRINGS 1
9083 _ACEOF
9084
9085 fi
9086
9087 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9088 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9089 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098 #include <sys/types.h>
9099 #include <sys/wait.h>
9100 #ifndef WEXITSTATUS
9101 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9102 #endif
9103 #ifndef WIFEXITED
9104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9105 #endif
9106
9107 int
9108 main ()
9109 {
9110   int s;
9111   wait (&s);
9112   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9113   ;
9114   return 0;
9115 }
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119   (eval $ac_compile) 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } &&
9126          { ac_try='test -z "$ac_c_werror_flag"
9127                          || test ! -s conftest.err'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; } &&
9133          { ac_try='test -s conftest.$ac_objext'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; }; then
9139   ac_cv_header_sys_wait_h=yes
9140 else
9141   echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144 ac_cv_header_sys_wait_h=no
9145 fi
9146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9149 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9150 if test $ac_cv_header_sys_wait_h = yes; then
9151
9152 cat >>confdefs.h <<\_ACEOF
9153 #define HAVE_SYS_WAIT_H 1
9154 _ACEOF
9155
9156 fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9181                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9182                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9183                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9184 do
9185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191   cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 #include <$ac_header>
9198 _ACEOF
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201   ac_status=$?
9202   grep -v '^ *+' conftest.er1 >conftest.err
9203   rm -f conftest.er1
9204   cat conftest.err >&5
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } >/dev/null; then
9207   if test -s conftest.err; then
9208     ac_cpp_err=$ac_c_preproc_warn_flag
9209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210   else
9211     ac_cpp_err=
9212   fi
9213 else
9214   ac_cpp_err=yes
9215 fi
9216 if test -z "$ac_cpp_err"; then
9217   eval "$as_ac_Header=yes"
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222   eval "$as_ac_Header=no"
9223 fi
9224 rm -f conftest.err conftest.$ac_ext
9225 fi
9226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9229   cat >>confdefs.h <<_ACEOF
9230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9231 _ACEOF
9232
9233 fi
9234 done
9235
9236
9237 # Check for thread headers.
9238 echo "$as_me:$LINENO: checking for thread.h" >&5
9239 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9240 if test "${ac_cv_header_thread_h+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249 #include <thread.h>
9250 _ACEOF
9251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } >/dev/null; then
9259   if test -s conftest.err; then
9260     ac_cpp_err=$ac_c_preproc_warn_flag
9261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9262   else
9263     ac_cpp_err=
9264   fi
9265 else
9266   ac_cpp_err=yes
9267 fi
9268 if test -z "$ac_cpp_err"; then
9269   ac_cv_header_thread_h=yes
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274   ac_cv_header_thread_h=no
9275 fi
9276 rm -f conftest.err conftest.$ac_ext
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9279 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9280 if test $ac_cv_header_thread_h = yes; then
9281   have_thread_h=yes
9282 else
9283   have_thread_h=
9284 fi
9285
9286 echo "$as_me:$LINENO: checking for pthread.h" >&5
9287 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9288 if test "${ac_cv_header_pthread_h+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297 #include <pthread.h>
9298 _ACEOF
9299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9301   ac_status=$?
9302   grep -v '^ *+' conftest.er1 >conftest.err
9303   rm -f conftest.er1
9304   cat conftest.err >&5
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); } >/dev/null; then
9307   if test -s conftest.err; then
9308     ac_cpp_err=$ac_c_preproc_warn_flag
9309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9310   else
9311     ac_cpp_err=
9312   fi
9313 else
9314   ac_cpp_err=yes
9315 fi
9316 if test -z "$ac_cpp_err"; then
9317   ac_cv_header_pthread_h=yes
9318 else
9319   echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9321
9322   ac_cv_header_pthread_h=no
9323 fi
9324 rm -f conftest.err conftest.$ac_ext
9325 fi
9326 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9328 if test $ac_cv_header_pthread_h = yes; then
9329   have_pthread_h=yes
9330 else
9331   have_pthread_h=
9332 fi
9333
9334
9335 # These tests can't be done till we know if we have limits.h.
9336 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9337 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9338 if test "${gcc_cv_decl_char_bit+set}" = set; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341   cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 #ifdef HAVE_LIMITS_H
9348 #include <limits.h>
9349 #endif
9350 #ifdef CHAR_BIT
9351 found
9352 #endif
9353 _ACEOF
9354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9355   $EGREP "found" >/dev/null 2>&1; then
9356   gcc_cv_decl_char_bit=yes
9357 else
9358   gcc_cv_decl_char_bit=no
9359 fi
9360 rm -f conftest*
9361
9362
9363 fi
9364 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9365 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9366 if test $gcc_cv_decl_char_bit = no; then
9367   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9368 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9369 if test "${gcc_cv_c_nbby+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   i=8
9373  gcc_cv_c_nbby=
9374  while test $i -lt 65; do
9375    cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381
9382 int
9383 main ()
9384 {
9385 switch(0) {
9386   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9387   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9388   ; }
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395   (eval $ac_compile) 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -z "$ac_c_werror_flag"
9403                          || test ! -s conftest.err'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; } &&
9409          { ac_try='test -s conftest.$ac_objext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   gcc_cv_c_nbby=$i; break
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 fi
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422    i=`expr $i + 1`
9423  done
9424  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9425
9426 fi
9427 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9428 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9429 if test $gcc_cv_c_nbby = failed; then
9430   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9431 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9432    { (exit 1); exit 1; }; }
9433 else
9434
9435 cat >>confdefs.h <<_ACEOF
9436 #define CHAR_BIT $gcc_cv_c_nbby
9437 _ACEOF
9438
9439 fi
9440 fi
9441 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9442 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9443 if test "${ac_cv_c_bigendian+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   # See if sys/param.h defines the BYTE_ORDER macro.
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453 #include <sys/types.h>
9454 #include <sys/param.h>
9455
9456 int
9457 main ()
9458 {
9459 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9460  bogus endian macros
9461 #endif
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9469   (eval $ac_compile) 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag"
9477                          || test ! -s conftest.err'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; } &&
9483          { ac_try='test -s conftest.$ac_objext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   # It does; now see whether it defined to BIG_ENDIAN or not.
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496 #include <sys/types.h>
9497 #include <sys/param.h>
9498
9499 int
9500 main ()
9501 {
9502 #if BYTE_ORDER != BIG_ENDIAN
9503  not big endian
9504 #endif
9505
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512   (eval $ac_compile) 2>conftest.er1
9513   ac_status=$?
9514   grep -v '^ *+' conftest.er1 >conftest.err
9515   rm -f conftest.er1
9516   cat conftest.err >&5
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } &&
9519          { ac_try='test -z "$ac_c_werror_flag"
9520                          || test ! -s conftest.err'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; } &&
9526          { ac_try='test -s conftest.$ac_objext'
9527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528   (eval $ac_try) 2>&5
9529   ac_status=$?
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); }; }; then
9532   ac_cv_c_bigendian=yes
9533 else
9534   echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_cv_c_bigendian=no
9538 fi
9539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 # It does not; compile a test program.
9545 if test "$cross_compiling" = yes; then
9546   # try to guess the endianness by grepping values into an object file
9547   ac_cv_c_bigendian=unknown
9548   cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9555 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9556 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9557 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9558 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9559 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9560 int
9561 main ()
9562 {
9563  _ascii (); _ebcdic ();
9564   ;
9565   return 0;
9566 }
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570   (eval $ac_compile) 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -z "$ac_c_werror_flag"
9578                          || test ! -s conftest.err'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; } &&
9584          { ac_try='test -s conftest.$ac_objext'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9591   ac_cv_c_bigendian=yes
9592 fi
9593 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9594   if test "$ac_cv_c_bigendian" = unknown; then
9595     ac_cv_c_bigendian=no
9596   else
9597     # finding both strings is unlikely to happen, but who knows?
9598     ac_cv_c_bigendian=unknown
9599   fi
9600 fi
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 fi
9606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 int
9615 main ()
9616 {
9617   /* Are we little or big endian?  From Harbison&Steele.  */
9618   union
9619   {
9620     long l;
9621     char c[sizeof (long)];
9622   } u;
9623   u.l = 1;
9624   exit (u.c[sizeof (long) - 1] == 1);
9625 }
9626 _ACEOF
9627 rm -f conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634   (eval $ac_try) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; }; then
9638   ac_cv_c_bigendian=no
9639 else
9640   echo "$as_me: program exited with status $ac_status" >&5
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 ( exit $ac_status )
9645 ac_cv_c_bigendian=yes
9646 fi
9647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9648 fi
9649 fi
9650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9653 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9654 case $ac_cv_c_bigendian in
9655   yes)
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define WORDS_BIGENDIAN 1
9659 _ACEOF
9660  ;;
9661   no)
9662      ;;
9663   *)
9664     { { echo "$as_me:$LINENO: error: unknown endianness
9665 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9666 echo "$as_me: error: unknown endianness
9667 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9668    { (exit 1); exit 1; }; } ;;
9669 esac
9670
9671
9672 # --------
9673 # UNSORTED
9674 # --------
9675
9676
9677 # These libraries may be used by collect2.
9678 # We may need a special search path to get them linked.
9679 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9680 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9681 if test "${gcc_cv_collect2_libs+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   save_LIBS="$LIBS"
9685 for libs in '' -lld -lmld \
9686                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9687                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9688 do
9689         LIBS="$libs"
9690         cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 /* Override any gcc2 internal prototype to avoid an error.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 /* We use char because int might match the return type of a gcc2
9702    builtin and then its argument prototype would still apply.  */
9703 char ldopen ();
9704 int
9705 main ()
9706 {
9707 ldopen ();
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714   (eval $ac_link) 2>conftest.er1
9715   ac_status=$?
9716   grep -v '^ *+' conftest.er1 >conftest.err
9717   rm -f conftest.er1
9718   cat conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -z "$ac_c_werror_flag"
9722                          || test ! -s conftest.err'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; } &&
9728          { ac_try='test -s conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   gcc_cv_collect2_libs="$libs"; break
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 fi
9740 rm -f conftest.err conftest.$ac_objext \
9741       conftest$ac_exeext conftest.$ac_ext
9742 done
9743 LIBS="$save_LIBS"
9744 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9745 fi
9746 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9747 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9748 case $gcc_cv_collect2_libs in
9749         "none required")        ;;
9750         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9751 esac
9752
9753
9754 # When building Ada code on Alpha, we need exc_resume which is usually in
9755 # -lexc.  So test for it.
9756 save_LIBS="$LIBS"
9757 LIBS=
9758 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9759 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9760 if test "${ac_cv_search_exc_resume+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   ac_func_search_save_LIBS=$LIBS
9764 ac_cv_search_exc_resume=no
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772 /* Override any gcc2 internal prototype to avoid an error.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 /* We use char because int might match the return type of a gcc2
9777    builtin and then its argument prototype would still apply.  */
9778 char exc_resume ();
9779 int
9780 main ()
9781 {
9782 exc_resume ();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag"
9797                          || test ! -s conftest.err'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   ac_cv_search_exc_resume="none required"
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 fi
9815 rm -f conftest.err conftest.$ac_objext \
9816       conftest$ac_exeext conftest.$ac_ext
9817 if test "$ac_cv_search_exc_resume" = no; then
9818   for ac_lib in exc; do
9819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9820     cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h.  */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h.  */
9826
9827 /* Override any gcc2 internal prototype to avoid an error.  */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832    builtin and then its argument prototype would still apply.  */
9833 char exc_resume ();
9834 int
9835 main ()
9836 {
9837 exc_resume ();
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844   (eval $ac_link) 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -z "$ac_c_werror_flag"
9852                          || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest$ac_exeext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_search_exc_resume="-l$ac_lib"
9865 break
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 fi
9871 rm -f conftest.err conftest.$ac_objext \
9872       conftest$ac_exeext conftest.$ac_ext
9873   done
9874 fi
9875 LIBS=$ac_func_search_save_LIBS
9876 fi
9877 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9878 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9879 if test "$ac_cv_search_exc_resume" != no; then
9880   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9881
9882 fi
9883
9884 GNAT_LIBEXC="$LIBS"
9885 LIBS="$save_LIBS"
9886
9887
9888 # Some systems put ldexp and frexp in libm instead of libc; assume
9889 # they're both in the same place.  jcf-dump needs them.
9890 save_LIBS="$LIBS"
9891 LIBS=
9892 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9893 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9894 if test "${ac_cv_search_ldexp+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   ac_func_search_save_LIBS=$LIBS
9898 ac_cv_search_ldexp=no
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905
9906 /* Override any gcc2 internal prototype to avoid an error.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 /* We use char because int might match the return type of a gcc2
9911    builtin and then its argument prototype would still apply.  */
9912 char ldexp ();
9913 int
9914 main ()
9915 {
9916 ldexp ();
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } &&
9930          { ac_try='test -z "$ac_c_werror_flag"
9931                          || test ! -s conftest.err'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_search_ldexp="none required"
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950       conftest$ac_exeext conftest.$ac_ext
9951 if test "$ac_cv_search_ldexp" = no; then
9952   for ac_lib in m; do
9953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9954     cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960
9961 /* Override any gcc2 internal prototype to avoid an error.  */
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 /* We use char because int might match the return type of a gcc2
9966    builtin and then its argument prototype would still apply.  */
9967 char ldexp ();
9968 int
9969 main ()
9970 {
9971 ldexp ();
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978   (eval $ac_link) 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -z "$ac_c_werror_flag"
9986                          || test ! -s conftest.err'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; } &&
9992          { ac_try='test -s conftest$ac_exeext'
9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994   (eval $ac_try) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; }; then
9998   ac_cv_search_ldexp="-l$ac_lib"
9999 break
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 fi
10005 rm -f conftest.err conftest.$ac_objext \
10006       conftest$ac_exeext conftest.$ac_ext
10007   done
10008 fi
10009 LIBS=$ac_func_search_save_LIBS
10010 fi
10011 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10012 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10013 if test "$ac_cv_search_ldexp" != no; then
10014   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10015
10016 fi
10017
10018 LDEXP_LIB="$LIBS"
10019 LIBS="$save_LIBS"
10020
10021
10022 # Use <inttypes.h> only if it exists,
10023 # doesn't clash with <sys/types.h>, and declares intmax_t.
10024 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10025 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10026 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #include <sys/types.h>
10036 #include <inttypes.h>
10037 int
10038 main ()
10039 {
10040 intmax_t i = -1;
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047   (eval $ac_compile) 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag"
10055                          || test ! -s conftest.err'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; } &&
10061          { ac_try='test -s conftest.$ac_objext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   gcc_cv_header_inttypes_h=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 gcc_cv_header_inttypes_h=no
10073 fi
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 fi
10076
10077 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10078 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10079 if test $gcc_cv_header_inttypes_h = yes; then
10080
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_INTTYPES_H 1
10083 _ACEOF
10084
10085 fi
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10123         sysconf strsignal getrusage nl_langinfo \
10124         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10125         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
10126 do
10127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128 echo "$as_me:$LINENO: checking for $ac_func" >&5
10129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10130 if eval "test \"\${$as_ac_var+set}\" = set"; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10141 #define $ac_func innocuous_$ac_func
10142
10143 /* System header to define __stub macros and hopefully few prototypes,
10144     which can conflict with char $ac_func (); below.
10145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146     <limits.h> exists even on freestanding compilers.  */
10147
10148 #ifdef __STDC__
10149 # include <limits.h>
10150 #else
10151 # include <assert.h>
10152 #endif
10153
10154 #undef $ac_func
10155
10156 /* Override any gcc2 internal prototype to avoid an error.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 {
10160 #endif
10161 /* We use char because int might match the return type of a gcc2
10162    builtin and then its argument prototype would still apply.  */
10163 char $ac_func ();
10164 /* The GNU C library defines this for functions which it implements
10165     to always fail with ENOSYS.  Some functions are actually named
10166     something starting with __ and the normal name is an alias.  */
10167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10168 choke me
10169 #else
10170 char (*f) () = $ac_func;
10171 #endif
10172 #ifdef __cplusplus
10173 }
10174 #endif
10175
10176 int
10177 main ()
10178 {
10179 return f != $ac_func;
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186   (eval $ac_link) 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag"
10194                          || test ! -s conftest.err'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; } &&
10200          { ac_try='test -s conftest$ac_exeext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   eval "$as_ac_var=yes"
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 eval "$as_ac_var=no"
10212 fi
10213 rm -f conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215 fi
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10218 if test `eval echo '${'$as_ac_var'}'` = yes; then
10219   cat >>confdefs.h <<_ACEOF
10220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10221 _ACEOF
10222
10223 fi
10224 done
10225
10226
10227 if test x$ac_cv_func_mbstowcs = xyes; then
10228   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10229 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10230 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233       if test "$cross_compiling" = yes; then
10234   gcc_cv_func_mbstowcs_works=yes
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #include <stdlib.h>
10243 int main()
10244 {
10245   mbstowcs(0, "", 0);
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   gcc_cv_func_mbstowcs_works=yes
10261 else
10262   echo "$as_me: program exited with status $ac_status" >&5
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ( exit $ac_status )
10267 gcc_cv_func_mbstowcs_works=no
10268 fi
10269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 fi
10272 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10273 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10274   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10275
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_WORKING_MBSTOWCS 1
10278 _ACEOF
10279
10280   fi
10281 fi
10282
10283 echo "$as_me:$LINENO: checking for ssize_t" >&5
10284 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10285 if test "${ac_cv_type_ssize_t+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 if ((ssize_t *) 0)
10299   return 0;
10300 if (sizeof (ssize_t))
10301   return 0;
10302   ;
10303   return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308   (eval $ac_compile) 2>conftest.er1
10309   ac_status=$?
10310   grep -v '^ *+' conftest.er1 >conftest.err
10311   rm -f conftest.er1
10312   cat conftest.err >&5
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } &&
10315          { ac_try='test -z "$ac_c_werror_flag"
10316                          || test ! -s conftest.err'
10317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318   (eval $ac_try) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); }; } &&
10322          { ac_try='test -s conftest.$ac_objext'
10323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324   (eval $ac_try) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   ac_cv_type_ssize_t=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 ac_cv_type_ssize_t=no
10334 fi
10335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10338 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10339 if test $ac_cv_type_ssize_t = yes; then
10340   :
10341 else
10342
10343 cat >>confdefs.h <<_ACEOF
10344 #define ssize_t int
10345 _ACEOF
10346
10347 fi
10348
10349 echo "$as_me:$LINENO: checking for caddr_t" >&5
10350 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10351 if test "${ac_cv_type_caddr_t+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360 $ac_includes_default
10361 int
10362 main ()
10363 {
10364 if ((caddr_t *) 0)
10365   return 0;
10366 if (sizeof (caddr_t))
10367   return 0;
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374   (eval $ac_compile) 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -z "$ac_c_werror_flag"
10382                          || test ! -s conftest.err'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_type_caddr_t=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ac_cv_type_caddr_t=no
10400 fi
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10404 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10405 if test $ac_cv_type_caddr_t = yes; then
10406   :
10407 else
10408
10409 cat >>confdefs.h <<_ACEOF
10410 #define caddr_t char *
10411 _ACEOF
10412
10413 fi
10414
10415
10416 # Try to determine the array type of the second argument of getgroups
10417 # for the target system (int or gid_t).
10418 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10419 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10420 if test "${ac_cv_type_uid_t+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 #include <sys/types.h>
10430
10431 _ACEOF
10432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10433   $EGREP "uid_t" >/dev/null 2>&1; then
10434   ac_cv_type_uid_t=yes
10435 else
10436   ac_cv_type_uid_t=no
10437 fi
10438 rm -f conftest*
10439
10440 fi
10441 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10442 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10443 if test $ac_cv_type_uid_t = no; then
10444
10445 cat >>confdefs.h <<\_ACEOF
10446 #define uid_t int
10447 _ACEOF
10448
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define gid_t int
10452 _ACEOF
10453
10454 fi
10455
10456 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10457 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10458 if test "${ac_cv_type_getgroups+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   if test "$cross_compiling" = yes; then
10462   ac_cv_type_getgroups=cross
10463 else
10464   cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470 /* Thanks to Mike Rendell for this test.  */
10471 #include <sys/types.h>
10472 #define NGID 256
10473 #undef MAX
10474 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10475
10476 int
10477 main ()
10478 {
10479   gid_t gidset[NGID];
10480   int i, n;
10481   union { gid_t gval; long lval; }  val;
10482
10483   val.lval = -1;
10484   for (i = 0; i < NGID; i++)
10485     gidset[i] = val.gval;
10486   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10487                  gidset);
10488   /* Exit non-zero if getgroups seems to require an array of ints.  This
10489      happens when gid_t is short but getgroups modifies an array of ints.  */
10490   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10491 }
10492 _ACEOF
10493 rm -f conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495   (eval $ac_link) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500   (eval $ac_try) 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; }; then
10504   ac_cv_type_getgroups=gid_t
10505 else
10506   echo "$as_me: program exited with status $ac_status" >&5
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 ( exit $ac_status )
10511 ac_cv_type_getgroups=int
10512 fi
10513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10514 fi
10515 if test $ac_cv_type_getgroups = cross; then
10516         cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #include <unistd.h>
10523
10524 _ACEOF
10525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10526   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10527   ac_cv_type_getgroups=gid_t
10528 else
10529   ac_cv_type_getgroups=int
10530 fi
10531 rm -f conftest*
10532
10533 fi
10534 fi
10535 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10536 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10537
10538 cat >>confdefs.h <<_ACEOF
10539 #define GETGROUPS_T $ac_cv_type_getgroups
10540 _ACEOF
10541
10542
10543 if test "${target}" = "${build}"; then
10544   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10545 else
10546   case "${target}" in
10547         # This condition may need some tweaking.  It should include all
10548         # targets where the array type of the second argument of getgroups
10549         # is int and the type of gid_t is not equivalent to int.
10550         *-*-sunos* | *-*-ultrix*)
10551                 TARGET_GETGROUPS_T=int
10552                 ;;
10553         *)
10554                 TARGET_GETGROUPS_T=gid_t
10555                 ;;
10556   esac
10557 fi
10558
10559
10560
10561 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10562 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10563 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <sys/mman.h>
10573 _ACEOF
10574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10576   ac_status=$?
10577   grep -v '^ *+' conftest.er1 >conftest.err
10578   rm -f conftest.er1
10579   cat conftest.err >&5
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } >/dev/null; then
10582   if test -s conftest.err; then
10583     ac_cpp_err=$ac_c_preproc_warn_flag
10584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10585   else
10586     ac_cpp_err=
10587   fi
10588 else
10589   ac_cpp_err=yes
10590 fi
10591 if test -z "$ac_cpp_err"; then
10592   ac_cv_header_sys_mman_h=yes
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597   ac_cv_header_sys_mman_h=no
10598 fi
10599 rm -f conftest.err conftest.$ac_ext
10600 fi
10601 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10602 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10603 if test $ac_cv_header_sys_mman_h = yes; then
10604   gcc_header_sys_mman_h=yes
10605 else
10606   gcc_header_sys_mman_h=no
10607 fi
10608
10609 echo "$as_me:$LINENO: checking for mmap" >&5
10610 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10611 if test "${ac_cv_func_mmap+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h.  */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h.  */
10620 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10622 #define mmap innocuous_mmap
10623
10624 /* System header to define __stub macros and hopefully few prototypes,
10625     which can conflict with char mmap (); below.
10626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10627     <limits.h> exists even on freestanding compilers.  */
10628
10629 #ifdef __STDC__
10630 # include <limits.h>
10631 #else
10632 # include <assert.h>
10633 #endif
10634
10635 #undef mmap
10636
10637 /* Override any gcc2 internal prototype to avoid an error.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 {
10641 #endif
10642 /* We use char because int might match the return type of a gcc2
10643    builtin and then its argument prototype would still apply.  */
10644 char mmap ();
10645 /* The GNU C library defines this for functions which it implements
10646     to always fail with ENOSYS.  Some functions are actually named
10647     something starting with __ and the normal name is an alias.  */
10648 #if defined (__stub_mmap) || defined (__stub___mmap)
10649 choke me
10650 #else
10651 char (*f) () = mmap;
10652 #endif
10653 #ifdef __cplusplus
10654 }
10655 #endif
10656
10657 int
10658 main ()
10659 {
10660 return f != mmap;
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667   (eval $ac_link) 2>conftest.er1
10668   ac_status=$?
10669   grep -v '^ *+' conftest.er1 >conftest.err
10670   rm -f conftest.er1
10671   cat conftest.err >&5
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } &&
10674          { ac_try='test -z "$ac_c_werror_flag"
10675                          || test ! -s conftest.err'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; } &&
10681          { ac_try='test -s conftest$ac_exeext'
10682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683   (eval $ac_try) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   ac_cv_func_mmap=yes
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 ac_cv_func_mmap=no
10693 fi
10694 rm -f conftest.err conftest.$ac_objext \
10695       conftest$ac_exeext conftest.$ac_ext
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10698 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10699 if test $ac_cv_func_mmap = yes; then
10700   gcc_func_mmap=yes
10701 else
10702   gcc_func_mmap=no
10703 fi
10704
10705 if test "$gcc_header_sys_mman_h" != yes \
10706  || test "$gcc_func_mmap" != yes; then
10707    gcc_cv_func_mmap_file=no
10708    gcc_cv_func_mmap_dev_zero=no
10709    gcc_cv_func_mmap_anon=no
10710 else
10711    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10712 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10713 if test "${gcc_cv_func_mmap_file+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   # Add a system to this blacklist if
10717    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10718    # memory area containing the same data that you'd get if you applied
10719    # read() to the same fd.  The only system known to have a problem here
10720    # is VMS, where text files have record structure.
10721    case "$host_os" in
10722      vms* | ultrix*)
10723         gcc_cv_func_mmap_file=no ;;
10724      *)
10725         gcc_cv_func_mmap_file=yes;;
10726    esac
10727 fi
10728 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10729 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10730    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10731 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10732 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   # Add a system to this blacklist if it has mmap() but /dev/zero
10736    # does not exist, or if mmapping /dev/zero does not give anonymous
10737    # zeroed pages with both the following properties:
10738    # 1. If you map N consecutive pages in with one call, and then
10739    #    unmap any subset of those pages, the pages that were not
10740    #    explicitly unmapped remain accessible.
10741    # 2. If you map two adjacent blocks of memory and then unmap them
10742    #    both at once, they must both go away.
10743    # Systems known to be in this category are Windows (all variants),
10744    # VMS, and Darwin.
10745    case "$host_os" in
10746      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10747         gcc_cv_func_mmap_dev_zero=no ;;
10748      *)
10749         gcc_cv_func_mmap_dev_zero=yes;;
10750    esac
10751 fi
10752 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10753 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10754
10755    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10756    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10757 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10758 if test "${gcc_cv_decl_map_anon+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767 #include <sys/types.h>
10768 #include <sys/mman.h>
10769 #include <unistd.h>
10770
10771 #ifndef MAP_ANONYMOUS
10772 #define MAP_ANONYMOUS MAP_ANON
10773 #endif
10774
10775 int
10776 main ()
10777 {
10778 int n = MAP_ANONYMOUS;
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785   (eval $ac_compile) 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -z "$ac_c_werror_flag"
10793                          || test ! -s conftest.err'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   gcc_cv_decl_map_anon=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 gcc_cv_decl_map_anon=no
10811 fi
10812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10813 fi
10814 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10815 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10816
10817    if test $gcc_cv_decl_map_anon = no; then
10818      gcc_cv_func_mmap_anon=no
10819    else
10820      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10821 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10822 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10826    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10827    # doesn't give anonymous zeroed pages with the same properties listed
10828    # above for use of /dev/zero.
10829    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10830    case "$host_os" in
10831      vms* | cygwin* | pe | mingw* | sco* | udk* )
10832         gcc_cv_func_mmap_anon=no ;;
10833      *)
10834         gcc_cv_func_mmap_anon=yes;;
10835    esac
10836 fi
10837 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10838 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10839    fi
10840 fi
10841
10842 if test $gcc_cv_func_mmap_file = yes; then
10843
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_MMAP_FILE 1
10846 _ACEOF
10847
10848 fi
10849 if test $gcc_cv_func_mmap_dev_zero = yes; then
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_MMAP_DEV_ZERO 1
10853 _ACEOF
10854
10855 fi
10856 if test $gcc_cv_func_mmap_anon = yes; then
10857
10858 cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_MMAP_ANON 1
10860 _ACEOF
10861
10862 fi
10863
10864
10865 case "${host}" in
10866 *-*-*vms*)
10867   # Under VMS, vfork works very differently than on Unix. The standard test
10868   # won't work, and it isn't easily adaptable. It makes more sense to
10869   # just force it.
10870   ac_cv_func_vfork_works=yes
10871   ;;
10872 esac
10873 echo "$as_me:$LINENO: checking for pid_t" >&5
10874 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10875 if test "${ac_cv_type_pid_t+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884 $ac_includes_default
10885 int
10886 main ()
10887 {
10888 if ((pid_t *) 0)
10889   return 0;
10890 if (sizeof (pid_t))
10891   return 0;
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898   (eval $ac_compile) 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -z "$ac_c_werror_flag"
10906                          || test ! -s conftest.err'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest.$ac_objext'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   ac_cv_type_pid_t=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_type_pid_t=no
10924 fi
10925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10929 if test $ac_cv_type_pid_t = yes; then
10930   :
10931 else
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define pid_t int
10935 _ACEOF
10936
10937 fi
10938
10939
10940
10941 for ac_header in unistd.h vfork.h
10942 do
10943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10944 echo "$as_me:$LINENO: checking for $ac_header" >&5
10945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h.  */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h.  */
10955 #include <$ac_header>
10956 _ACEOF
10957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } >/dev/null; then
10965   if test -s conftest.err; then
10966     ac_cpp_err=$ac_c_preproc_warn_flag
10967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10968   else
10969     ac_cpp_err=
10970   fi
10971 else
10972   ac_cpp_err=yes
10973 fi
10974 if test -z "$ac_cpp_err"; then
10975   eval "$as_ac_Header=yes"
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980   eval "$as_ac_Header=no"
10981 fi
10982 rm -f conftest.err conftest.$ac_ext
10983 fi
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987   cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10989 _ACEOF
10990
10991 fi
10992 done
10993
10994
10995
10996 for ac_func in fork vfork
10997 do
10998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11001 if eval "test \"\${$as_ac_var+set}\" = set"; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11012 #define $ac_func innocuous_$ac_func
11013
11014 /* System header to define __stub macros and hopefully few prototypes,
11015     which can conflict with char $ac_func (); below.
11016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017     <limits.h> exists even on freestanding compilers.  */
11018
11019 #ifdef __STDC__
11020 # include <limits.h>
11021 #else
11022 # include <assert.h>
11023 #endif
11024
11025 #undef $ac_func
11026
11027 /* Override any gcc2 internal prototype to avoid an error.  */
11028 #ifdef __cplusplus
11029 extern "C"
11030 {
11031 #endif
11032 /* We use char because int might match the return type of a gcc2
11033    builtin and then its argument prototype would still apply.  */
11034 char $ac_func ();
11035 /* The GNU C library defines this for functions which it implements
11036     to always fail with ENOSYS.  Some functions are actually named
11037     something starting with __ and the normal name is an alias.  */
11038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11039 choke me
11040 #else
11041 char (*f) () = $ac_func;
11042 #endif
11043 #ifdef __cplusplus
11044 }
11045 #endif
11046
11047 int
11048 main ()
11049 {
11050 return f != $ac_func;
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057   (eval $ac_link) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag"
11065                          || test ! -s conftest.err'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   eval "$as_ac_var=yes"
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 eval "$as_ac_var=no"
11083 fi
11084 rm -f conftest.err conftest.$ac_objext \
11085       conftest$ac_exeext conftest.$ac_ext
11086 fi
11087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11089 if test `eval echo '${'$as_ac_var'}'` = yes; then
11090   cat >>confdefs.h <<_ACEOF
11091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 _ACEOF
11093
11094 fi
11095 done
11096
11097 if test "x$ac_cv_func_fork" = xyes; then
11098   echo "$as_me:$LINENO: checking for working fork" >&5
11099 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11100 if test "${ac_cv_func_fork_works+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   if test "$cross_compiling" = yes; then
11104   ac_cv_func_fork_works=cross
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* By Ruediger Kuhlmann. */
11108       #include <sys/types.h>
11109       #if HAVE_UNISTD_H
11110       # include <unistd.h>
11111       #endif
11112       /* Some systems only have a dummy stub for fork() */
11113       int main ()
11114       {
11115         if (fork() < 0)
11116           exit (1);
11117         exit (0);
11118       }
11119 _ACEOF
11120 rm -f conftest$ac_exeext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122   (eval $ac_link) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   ac_cv_func_fork_works=yes
11132 else
11133   echo "$as_me: program exited with status $ac_status" >&5
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137 ( exit $ac_status )
11138 ac_cv_func_fork_works=no
11139 fi
11140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 fi
11143 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11144 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11145
11146 else
11147   ac_cv_func_fork_works=$ac_cv_func_fork
11148 fi
11149 if test "x$ac_cv_func_fork_works" = xcross; then
11150   case $host in
11151     *-*-amigaos* | *-*-msdosdjgpp*)
11152       # Override, as these systems have only a dummy fork() stub
11153       ac_cv_func_fork_works=no
11154       ;;
11155     *)
11156       ac_cv_func_fork_works=yes
11157       ;;
11158   esac
11159   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11160 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11161 fi
11162 ac_cv_func_vfork_works=$ac_cv_func_vfork
11163 if test "x$ac_cv_func_vfork" = xyes; then
11164   echo "$as_me:$LINENO: checking for working vfork" >&5
11165 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11166 if test "${ac_cv_func_vfork_works+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169   if test "$cross_compiling" = yes; then
11170   ac_cv_func_vfork_works=cross
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 /* Thanks to Paul Eggert for this test.  */
11179 #include <stdio.h>
11180 #include <stdlib.h>
11181 #include <sys/types.h>
11182 #include <sys/stat.h>
11183 #include <sys/wait.h>
11184 #if HAVE_UNISTD_H
11185 # include <unistd.h>
11186 #endif
11187 #if HAVE_VFORK_H
11188 # include <vfork.h>
11189 #endif
11190 /* On some sparc systems, changes by the child to local and incoming
11191    argument registers are propagated back to the parent.  The compiler
11192    is told about this with #include <vfork.h>, but some compilers
11193    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11194    static variable whose address is put into a register that is
11195    clobbered by the vfork.  */
11196 static void
11197 #ifdef __cplusplus
11198 sparc_address_test (int arg)
11199 # else
11200 sparc_address_test (arg) int arg;
11201 #endif
11202 {
11203   static pid_t child;
11204   if (!child) {
11205     child = vfork ();
11206     if (child < 0) {
11207       perror ("vfork");
11208       _exit(2);
11209     }
11210     if (!child) {
11211       arg = getpid();
11212       write(-1, "", 0);
11213       _exit (arg);
11214     }
11215   }
11216 }
11217
11218 int
11219 main ()
11220 {
11221   pid_t parent = getpid ();
11222   pid_t child;
11223
11224   sparc_address_test (0);
11225
11226   child = vfork ();
11227
11228   if (child == 0) {
11229     /* Here is another test for sparc vfork register problems.  This
11230        test uses lots of local variables, at least as many local
11231        variables as main has allocated so far including compiler
11232        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11233        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11234        reuse the register of parent for one of the local variables,
11235        since it will think that parent can't possibly be used any more
11236        in this routine.  Assigning to the local variable will thus
11237        munge parent in the parent process.  */
11238     pid_t
11239       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11240       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11241     /* Convince the compiler that p..p7 are live; otherwise, it might
11242        use the same hardware register for all 8 local variables.  */
11243     if (p != p1 || p != p2 || p != p3 || p != p4
11244         || p != p5 || p != p6 || p != p7)
11245       _exit(1);
11246
11247     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11248        from child file descriptors.  If the child closes a descriptor
11249        before it execs or exits, this munges the parent's descriptor
11250        as well.  Test for this by closing stdout in the child.  */
11251     _exit(close(fileno(stdout)) != 0);
11252   } else {
11253     int status;
11254     struct stat st;
11255
11256     while (wait(&status) != child)
11257       ;
11258     exit(
11259          /* Was there some problem with vforking?  */
11260          child < 0
11261
11262          /* Did the child fail?  (This shouldn't happen.)  */
11263          || status
11264
11265          /* Did the vfork/compiler bug occur?  */
11266          || parent != getpid()
11267
11268          /* Did the file descriptor bug occur?  */
11269          || fstat(fileno(stdout), &st) != 0
11270          );
11271   }
11272 }
11273 _ACEOF
11274 rm -f conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276   (eval $ac_link) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_func_vfork_works=yes
11286 else
11287   echo "$as_me: program exited with status $ac_status" >&5
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ( exit $ac_status )
11292 ac_cv_func_vfork_works=no
11293 fi
11294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11295 fi
11296 fi
11297 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11298 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11299
11300 fi;
11301 if test "x$ac_cv_func_fork_works" = xcross; then
11302   ac_cv_func_vfork_works=$ac_cv_func_vfork
11303   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11304 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11305 fi
11306
11307 if test "x$ac_cv_func_vfork_works" = xyes; then
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_WORKING_VFORK 1
11311 _ACEOF
11312
11313 else
11314
11315 cat >>confdefs.h <<\_ACEOF
11316 #define vfork fork
11317 _ACEOF
11318
11319 fi
11320 if test "x$ac_cv_func_fork_works" = xyes; then
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define HAVE_WORKING_FORK 1
11324 _ACEOF
11325
11326 fi
11327
11328
11329
11330       if test "X$prefix" = "XNONE"; then
11331     acl_final_prefix="$ac_default_prefix"
11332   else
11333     acl_final_prefix="$prefix"
11334   fi
11335   if test "X$exec_prefix" = "XNONE"; then
11336     acl_final_exec_prefix='${prefix}'
11337   else
11338     acl_final_exec_prefix="$exec_prefix"
11339   fi
11340   acl_save_prefix="$prefix"
11341   prefix="$acl_final_prefix"
11342   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11343   prefix="$acl_save_prefix"
11344
11345
11346 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11347 if test "${with_gnu_ld+set}" = set; then
11348   withval="$with_gnu_ld"
11349   test "$withval" = no || with_gnu_ld=yes
11350 else
11351   with_gnu_ld=no
11352 fi;
11353 # Prepare PATH_SEPARATOR.
11354 # The user is always right.
11355 if test "${PATH_SEPARATOR+set}" != set; then
11356   echo "#! /bin/sh" >conf$$.sh
11357   echo  "exit 0"   >>conf$$.sh
11358   chmod +x conf$$.sh
11359   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11360     PATH_SEPARATOR=';'
11361   else
11362     PATH_SEPARATOR=:
11363   fi
11364   rm -f conf$$.sh
11365 fi
11366 ac_prog=ld
11367 if test "$GCC" = yes; then
11368   # Check if gcc -print-prog-name=ld gives a path.
11369   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11370 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11371   case $host in
11372   *-*-mingw*)
11373     # gcc leaves a trailing carriage return which upsets mingw
11374     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11375   *)
11376     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11377   esac
11378   case $ac_prog in
11379     # Accept absolute paths.
11380     [\\/]* | [A-Za-z]:[\\/]*)
11381       re_direlt='/[^/][^/]*/\.\./'
11382       # Canonicalize the path of ld
11383       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11384       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11385         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11386       done
11387       test -z "$LD" && LD="$ac_prog"
11388       ;;
11389   "")
11390     # If it fails, then pretend we aren't using GCC.
11391     ac_prog=ld
11392     ;;
11393   *)
11394     # If it is relative, then search for the first ld in PATH.
11395     with_gnu_ld=unknown
11396     ;;
11397   esac
11398 elif test "$with_gnu_ld" = yes; then
11399   echo "$as_me:$LINENO: checking for GNU ld" >&5
11400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11401 else
11402   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11404 fi
11405 if test "${acl_cv_path_LD+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   if test -z "$LD"; then
11409   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11410   for ac_dir in $PATH; do
11411     test -z "$ac_dir" && ac_dir=.
11412     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11413       acl_cv_path_LD="$ac_dir/$ac_prog"
11414       # Check to see if the program is GNU ld.  I'd rather use --version,
11415       # but apparently some GNU ld's only accept -v.
11416       # Break only if it was the GNU/non-GNU ld that we prefer.
11417       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11418         test "$with_gnu_ld" != no && break
11419       else
11420         test "$with_gnu_ld" != yes && break
11421       fi
11422     fi
11423   done
11424   IFS="$ac_save_ifs"
11425 else
11426   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11427 fi
11428 fi
11429
11430 LD="$acl_cv_path_LD"
11431 if test -n "$LD"; then
11432   echo "$as_me:$LINENO: result: $LD" >&5
11433 echo "${ECHO_T}$LD" >&6
11434 else
11435   echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6
11437 fi
11438 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11439 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11440    { (exit 1); exit 1; }; }
11441 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11442 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11443 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11447 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11448   acl_cv_prog_gnu_ld=yes
11449 else
11450   acl_cv_prog_gnu_ld=no
11451 fi
11452 fi
11453 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11454 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11455 with_gnu_ld=$acl_cv_prog_gnu_ld
11456
11457
11458
11459                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11460 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11461 if test "${acl_cv_rpath+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464
11465     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11466     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11467     . ./conftest.sh
11468     rm -f ./conftest.sh
11469     acl_cv_rpath=done
11470
11471 fi
11472 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11473 echo "${ECHO_T}$acl_cv_rpath" >&6
11474   wl="$acl_cv_wl"
11475   libext="$acl_cv_libext"
11476   shlibext="$acl_cv_shlibext"
11477   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11478   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11479   hardcode_direct="$acl_cv_hardcode_direct"
11480   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11481     # Check whether --enable-rpath or --disable-rpath was given.
11482 if test "${enable_rpath+set}" = set; then
11483   enableval="$enable_rpath"
11484   :
11485 else
11486   enable_rpath=yes
11487 fi;
11488
11489
11490
11491
11492
11493
11494
11495     use_additional=yes
11496
11497   acl_save_prefix="$prefix"
11498   prefix="$acl_final_prefix"
11499   acl_save_exec_prefix="$exec_prefix"
11500   exec_prefix="$acl_final_exec_prefix"
11501
11502     eval additional_includedir=\"$includedir\"
11503     eval additional_libdir=\"$libdir\"
11504
11505   exec_prefix="$acl_save_exec_prefix"
11506   prefix="$acl_save_prefix"
11507
11508
11509 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11510 if test "${with_libiconv_prefix+set}" = set; then
11511   withval="$with_libiconv_prefix"
11512
11513     if test "X$withval" = "Xno"; then
11514       use_additional=no
11515     else
11516       if test "X$withval" = "X"; then
11517
11518   acl_save_prefix="$prefix"
11519   prefix="$acl_final_prefix"
11520   acl_save_exec_prefix="$exec_prefix"
11521   exec_prefix="$acl_final_exec_prefix"
11522
11523           eval additional_includedir=\"$includedir\"
11524           eval additional_libdir=\"$libdir\"
11525
11526   exec_prefix="$acl_save_exec_prefix"
11527   prefix="$acl_save_prefix"
11528
11529       else
11530         additional_includedir="$withval/include"
11531         additional_libdir="$withval/lib"
11532       fi
11533     fi
11534
11535 fi;
11536       LIBICONV=
11537   LTLIBICONV=
11538   INCICONV=
11539   rpathdirs=
11540   ltrpathdirs=
11541   names_already_handled=
11542   names_next_round='iconv '
11543   while test -n "$names_next_round"; do
11544     names_this_round="$names_next_round"
11545     names_next_round=
11546     for name in $names_this_round; do
11547       already_handled=
11548       for n in $names_already_handled; do
11549         if test "$n" = "$name"; then
11550           already_handled=yes
11551           break
11552         fi
11553       done
11554       if test -z "$already_handled"; then
11555         names_already_handled="$names_already_handled $name"
11556                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11557         eval value=\"\$HAVE_LIB$uppername\"
11558         if test -n "$value"; then
11559           if test "$value" = yes; then
11560             eval value=\"\$LIB$uppername\"
11561             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11562             eval value=\"\$LTLIB$uppername\"
11563             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11564           else
11565                                     :
11566           fi
11567         else
11568                               found_dir=
11569           found_la=
11570           found_so=
11571           found_a=
11572           if test $use_additional = yes; then
11573             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11574               found_dir="$additional_libdir"
11575               found_so="$additional_libdir/lib$name.$shlibext"
11576               if test -f "$additional_libdir/lib$name.la"; then
11577                 found_la="$additional_libdir/lib$name.la"
11578               fi
11579             else
11580               if test -f "$additional_libdir/lib$name.$libext"; then
11581                 found_dir="$additional_libdir"
11582                 found_a="$additional_libdir/lib$name.$libext"
11583                 if test -f "$additional_libdir/lib$name.la"; then
11584                   found_la="$additional_libdir/lib$name.la"
11585                 fi
11586               fi
11587             fi
11588           fi
11589           if test "X$found_dir" = "X"; then
11590             for x in $LDFLAGS $LTLIBICONV; do
11591
11592   acl_save_prefix="$prefix"
11593   prefix="$acl_final_prefix"
11594   acl_save_exec_prefix="$exec_prefix"
11595   exec_prefix="$acl_final_exec_prefix"
11596   eval x=\"$x\"
11597   exec_prefix="$acl_save_exec_prefix"
11598   prefix="$acl_save_prefix"
11599
11600               case "$x" in
11601                 -L*)
11602                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11603                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11604                     found_dir="$dir"
11605                     found_so="$dir/lib$name.$shlibext"
11606                     if test -f "$dir/lib$name.la"; then
11607                       found_la="$dir/lib$name.la"
11608                     fi
11609                   else
11610                     if test -f "$dir/lib$name.$libext"; then
11611                       found_dir="$dir"
11612                       found_a="$dir/lib$name.$libext"
11613                       if test -f "$dir/lib$name.la"; then
11614                         found_la="$dir/lib$name.la"
11615                       fi
11616                     fi
11617                   fi
11618                   ;;
11619               esac
11620               if test "X$found_dir" != "X"; then
11621                 break
11622               fi
11623             done
11624           fi
11625           if test "X$found_dir" != "X"; then
11626                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11627             if test "X$found_so" != "X"; then
11628                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11629                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11630               else
11631                                                                                 haveit=
11632                 for x in $ltrpathdirs; do
11633                   if test "X$x" = "X$found_dir"; then
11634                     haveit=yes
11635                     break
11636                   fi
11637                 done
11638                 if test -z "$haveit"; then
11639                   ltrpathdirs="$ltrpathdirs $found_dir"
11640                 fi
11641                                 if test "$hardcode_direct" = yes; then
11642                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11643                 else
11644                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11645                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11646                                                             haveit=
11647                     for x in $rpathdirs; do
11648                       if test "X$x" = "X$found_dir"; then
11649                         haveit=yes
11650                         break
11651                       fi
11652                     done
11653                     if test -z "$haveit"; then
11654                       rpathdirs="$rpathdirs $found_dir"
11655                     fi
11656                   else
11657                                                                                 haveit=
11658                     for x in $LDFLAGS $LIBICONV; do
11659
11660   acl_save_prefix="$prefix"
11661   prefix="$acl_final_prefix"
11662   acl_save_exec_prefix="$exec_prefix"
11663   exec_prefix="$acl_final_exec_prefix"
11664   eval x=\"$x\"
11665   exec_prefix="$acl_save_exec_prefix"
11666   prefix="$acl_save_prefix"
11667
11668                       if test "X$x" = "X-L$found_dir"; then
11669                         haveit=yes
11670                         break
11671                       fi
11672                     done
11673                     if test -z "$haveit"; then
11674                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11675                     fi
11676                     if test "$hardcode_minus_L" != no; then
11677                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11678                     else
11679                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11680                     fi
11681                   fi
11682                 fi
11683               fi
11684             else
11685               if test "X$found_a" != "X"; then
11686                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11687               else
11688                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11689               fi
11690             fi
11691                         additional_includedir=
11692             case "$found_dir" in
11693               */lib | */lib/)
11694                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11695                 additional_includedir="$basedir/include"
11696                 ;;
11697             esac
11698             if test "X$additional_includedir" != "X"; then
11699                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11700                 haveit=
11701                 if test "X$additional_includedir" = "X/usr/local/include"; then
11702                   if test -n "$GCC"; then
11703                     case $host_os in
11704                       linux*) haveit=yes;;
11705                     esac
11706                   fi
11707                 fi
11708                 if test -z "$haveit"; then
11709                   for x in $CPPFLAGS $INCICONV; do
11710
11711   acl_save_prefix="$prefix"
11712   prefix="$acl_final_prefix"
11713   acl_save_exec_prefix="$exec_prefix"
11714   exec_prefix="$acl_final_exec_prefix"
11715   eval x=\"$x\"
11716   exec_prefix="$acl_save_exec_prefix"
11717   prefix="$acl_save_prefix"
11718
11719                     if test "X$x" = "X-I$additional_includedir"; then
11720                       haveit=yes
11721                       break
11722                     fi
11723                   done
11724                   if test -z "$haveit"; then
11725                     if test -d "$additional_includedir"; then
11726                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11727                     fi
11728                   fi
11729                 fi
11730               fi
11731             fi
11732                         if test -n "$found_la"; then
11733                                                         save_libdir="$libdir"
11734               case "$found_la" in
11735                 */* | *\\*) . "$found_la" ;;
11736                 *) . "./$found_la" ;;
11737               esac
11738               libdir="$save_libdir"
11739                             for dep in $dependency_libs; do
11740                 case "$dep" in
11741                   -L*)
11742                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11743                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11744                       haveit=
11745                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11746                         if test -n "$GCC"; then
11747                           case $host_os in
11748                             linux*) haveit=yes;;
11749                           esac
11750                         fi
11751                       fi
11752                       if test -z "$haveit"; then
11753                         haveit=
11754                         for x in $LDFLAGS $LIBICONV; do
11755
11756   acl_save_prefix="$prefix"
11757   prefix="$acl_final_prefix"
11758   acl_save_exec_prefix="$exec_prefix"
11759   exec_prefix="$acl_final_exec_prefix"
11760   eval x=\"$x\"
11761   exec_prefix="$acl_save_exec_prefix"
11762   prefix="$acl_save_prefix"
11763
11764                           if test "X$x" = "X-L$additional_libdir"; then
11765                             haveit=yes
11766                             break
11767                           fi
11768                         done
11769                         if test -z "$haveit"; then
11770                           if test -d "$additional_libdir"; then
11771                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11772                           fi
11773                         fi
11774                         haveit=
11775                         for x in $LDFLAGS $LTLIBICONV; do
11776
11777   acl_save_prefix="$prefix"
11778   prefix="$acl_final_prefix"
11779   acl_save_exec_prefix="$exec_prefix"
11780   exec_prefix="$acl_final_exec_prefix"
11781   eval x=\"$x\"
11782   exec_prefix="$acl_save_exec_prefix"
11783   prefix="$acl_save_prefix"
11784
11785                           if test "X$x" = "X-L$additional_libdir"; then
11786                             haveit=yes
11787                             break
11788                           fi
11789                         done
11790                         if test -z "$haveit"; then
11791                           if test -d "$additional_libdir"; then
11792                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11793                           fi
11794                         fi
11795                       fi
11796                     fi
11797                     ;;
11798                   -R*)
11799                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11800                     if test "$enable_rpath" != no; then
11801                                                                   haveit=
11802                       for x in $rpathdirs; do
11803                         if test "X$x" = "X$dir"; then
11804                           haveit=yes
11805                           break
11806                         fi
11807                       done
11808                       if test -z "$haveit"; then
11809                         rpathdirs="$rpathdirs $dir"
11810                       fi
11811                                                                   haveit=
11812                       for x in $ltrpathdirs; do
11813                         if test "X$x" = "X$dir"; then
11814                           haveit=yes
11815                           break
11816                         fi
11817                       done
11818                       if test -z "$haveit"; then
11819                         ltrpathdirs="$ltrpathdirs $dir"
11820                       fi
11821                     fi
11822                     ;;
11823                   -l*)
11824                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11825                     ;;
11826                   *.la)
11827                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11828                     ;;
11829                   *)
11830                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11831                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11832                     ;;
11833                 esac
11834               done
11835             fi
11836           else
11837                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11838             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11839           fi
11840         fi
11841       fi
11842     done
11843   done
11844   if test "X$rpathdirs" != "X"; then
11845     if test -n "$hardcode_libdir_separator"; then
11846                         alldirs=
11847       for found_dir in $rpathdirs; do
11848         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11849       done
11850             acl_save_libdir="$libdir"
11851       libdir="$alldirs"
11852       eval flag=\"$hardcode_libdir_flag_spec\"
11853       libdir="$acl_save_libdir"
11854       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11855     else
11856             for found_dir in $rpathdirs; do
11857         acl_save_libdir="$libdir"
11858         libdir="$found_dir"
11859         eval flag=\"$hardcode_libdir_flag_spec\"
11860         libdir="$acl_save_libdir"
11861         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11862       done
11863     fi
11864   fi
11865   if test "X$ltrpathdirs" != "X"; then
11866             for found_dir in $ltrpathdirs; do
11867       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11868     done
11869   fi
11870
11871
11872
11873
11874
11875
11876
11877           am_save_CPPFLAGS="$CPPFLAGS"
11878
11879   for element in $INCICONV; do
11880     haveit=
11881     for x in $CPPFLAGS; do
11882
11883   acl_save_prefix="$prefix"
11884   prefix="$acl_final_prefix"
11885   acl_save_exec_prefix="$exec_prefix"
11886   exec_prefix="$acl_final_exec_prefix"
11887   eval x=\"$x\"
11888   exec_prefix="$acl_save_exec_prefix"
11889   prefix="$acl_save_prefix"
11890
11891       if test "X$x" = "X$element"; then
11892         haveit=yes
11893         break
11894       fi
11895     done
11896     if test -z "$haveit"; then
11897       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11898     fi
11899   done
11900
11901
11902   echo "$as_me:$LINENO: checking for iconv" >&5
11903 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11904 if test "${am_cv_func_iconv+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907
11908     am_cv_func_iconv="no, consider installing GNU libiconv"
11909     am_cv_lib_iconv=no
11910     cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916 #include <stdlib.h>
11917 #include <iconv.h>
11918 int
11919 main ()
11920 {
11921 iconv_t cd = iconv_open("","");
11922        iconv(cd,NULL,NULL,NULL,NULL);
11923        iconv_close(cd);
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930   (eval $ac_link) 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_c_werror_flag"
11938                          || test ! -s conftest.err'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s conftest$ac_exeext'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; }; then
11950   am_cv_func_iconv=yes
11951 else
11952   echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 fi
11956 rm -f conftest.err conftest.$ac_objext \
11957       conftest$ac_exeext conftest.$ac_ext
11958     if test "$am_cv_func_iconv" != yes; then
11959       am_save_LIBS="$LIBS"
11960       LIBS="$LIBS $LIBICONV"
11961       cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967 #include <stdlib.h>
11968 #include <iconv.h>
11969 int
11970 main ()
11971 {
11972 iconv_t cd = iconv_open("","");
11973          iconv(cd,NULL,NULL,NULL,NULL);
11974          iconv_close(cd);
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981   (eval $ac_link) 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } &&
11988          { ac_try='test -z "$ac_c_werror_flag"
11989                          || test ! -s conftest.err'
11990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991   (eval $ac_try) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; } &&
11995          { ac_try='test -s conftest$ac_exeext'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   am_cv_lib_iconv=yes
12002         am_cv_func_iconv=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 fi
12008 rm -f conftest.err conftest.$ac_objext \
12009       conftest$ac_exeext conftest.$ac_ext
12010       LIBS="$am_save_LIBS"
12011     fi
12012
12013 fi
12014 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12015 echo "${ECHO_T}$am_cv_func_iconv" >&6
12016   if test "$am_cv_func_iconv" = yes; then
12017
12018 cat >>confdefs.h <<\_ACEOF
12019 #define HAVE_ICONV 1
12020 _ACEOF
12021
12022   fi
12023   if test "$am_cv_lib_iconv" = yes; then
12024     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12025 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12026     echo "$as_me:$LINENO: result: $LIBICONV" >&5
12027 echo "${ECHO_T}$LIBICONV" >&6
12028   else
12029             CPPFLAGS="$am_save_CPPFLAGS"
12030     LIBICONV=
12031     LTLIBICONV=
12032   fi
12033
12034
12035
12036   if test "$am_cv_func_iconv" = yes; then
12037     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12038 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12039     if test "${am_cv_proto_iconv+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042
12043       cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049
12050 #include <stdlib.h>
12051 #include <iconv.h>
12052 extern
12053 #ifdef __cplusplus
12054 "C"
12055 #endif
12056 #if defined(__STDC__) || defined(__cplusplus)
12057 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12058 #else
12059 size_t iconv();
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072   (eval $ac_compile) 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -z "$ac_c_werror_flag"
12080                          || test ! -s conftest.err'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest.$ac_objext'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; }; then
12092   am_cv_proto_iconv_arg1=""
12093 else
12094   echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 am_cv_proto_iconv_arg1="const"
12098 fi
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100       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);"
12101 fi
12102
12103     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12104     echo "$as_me:$LINENO: result: ${ac_t:-
12105          }$am_cv_proto_iconv" >&5
12106 echo "${ECHO_T}${ac_t:-
12107          }$am_cv_proto_iconv" >&6
12108
12109 cat >>confdefs.h <<_ACEOF
12110 #define ICONV_CONST $am_cv_proto_iconv_arg1
12111 _ACEOF
12112
12113   fi
12114
12115 # Until we have in-tree GNU iconv:
12116 LIBICONV_DEP=
12117
12118
12119
12120   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12121 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12122 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131 #include <locale.h>
12132 int
12133 main ()
12134 {
12135 return LC_MESSAGES
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142   (eval $ac_link) 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -z "$ac_c_werror_flag"
12150                          || test ! -s conftest.err'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   am_cv_val_LC_MESSAGES=yes
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 am_cv_val_LC_MESSAGES=no
12168 fi
12169 rm -f conftest.err conftest.$ac_objext \
12170       conftest$ac_exeext conftest.$ac_ext
12171 fi
12172 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12173 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12174   if test $am_cv_val_LC_MESSAGES = yes; then
12175
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_LC_MESSAGES 1
12178 _ACEOF
12179
12180   fi
12181
12182
12183
12184   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12185 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12186 if test "${am_cv_langinfo_codeset+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195 #include <langinfo.h>
12196 int
12197 main ()
12198 {
12199 char* cs = nl_langinfo(CODESET);
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206   (eval $ac_link) 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } &&
12213          { ac_try='test -z "$ac_c_werror_flag"
12214                          || test ! -s conftest.err'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   am_cv_langinfo_codeset=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 am_cv_langinfo_codeset=no
12232 fi
12233 rm -f conftest.err conftest.$ac_objext \
12234       conftest$ac_exeext conftest.$ac_ext
12235
12236 fi
12237 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12238 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12239   if test $am_cv_langinfo_codeset = yes; then
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define HAVE_LANGINFO_CODESET 1
12243 _ACEOF
12244
12245   fi
12246
12247
12248 # We will need to find libiberty.h and ansidecl.h
12249 saved_CFLAGS="$CFLAGS"
12250 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12291         strsignal strstr strverscmp \
12292         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12293         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
12294 do
12295   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12296 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12297 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12298 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 #undef $ac_tr_decl
12308 #define $ac_tr_decl 1
12309
12310 #include "ansidecl.h"
12311 #include "system.h"
12312
12313 int
12314 main ()
12315 {
12316 #ifndef $ac_func
12317 char *(*pfn) = (char *(*)) $ac_func ;
12318 #endif
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325   (eval $ac_compile) 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_c_werror_flag"
12333                          || test ! -s conftest.err'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest.$ac_objext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   eval "gcc_cv_have_decl_$ac_func=yes"
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 eval "gcc_cv_have_decl_$ac_func=no"
12351 fi
12352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 fi
12354
12355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12356   echo "$as_me:$LINENO: result: yes" >&5
12357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12358 #define $ac_tr_decl 1
12359 _ACEOF
12360
12361 else
12362   echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12364 #define $ac_tr_decl 0
12365 _ACEOF
12366
12367 fi
12368
12369 done
12370
12371
12372
12373
12374
12375 for ac_func in getrlimit setrlimit getrusage
12376 do
12377   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12378 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12379 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12380 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389 #undef $ac_tr_decl
12390 #define $ac_tr_decl 1
12391
12392 #include "ansidecl.h"
12393 #include "system.h"
12394 #ifdef HAVE_SYS_RESOURCE_H
12395 #include <sys/resource.h>
12396 #endif
12397
12398
12399 int
12400 main ()
12401 {
12402 #ifndef $ac_func
12403 char *(*pfn) = (char *(*)) $ac_func ;
12404 #endif
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411   (eval $ac_compile) 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_c_werror_flag"
12419                          || test ! -s conftest.err'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   eval "gcc_cv_have_decl_$ac_func=yes"
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 eval "gcc_cv_have_decl_$ac_func=no"
12437 fi
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 fi
12440
12441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12442   echo "$as_me:$LINENO: result: yes" >&5
12443 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12444 #define $ac_tr_decl 1
12445 _ACEOF
12446
12447 else
12448   echo "$as_me:$LINENO: result: no" >&5
12449 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12450 #define $ac_tr_decl 0
12451 _ACEOF
12452
12453 fi
12454
12455 done
12456
12457
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464
12465 #include "ansidecl.h"
12466 #include "system.h"
12467 #ifdef HAVE_SYS_RESOURCE_H
12468 #include <sys/resource.h>
12469 #endif
12470
12471 int
12472 main ()
12473 {
12474 rlim_t l = 0;
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } &&
12488          { ac_try='test -z "$ac_c_werror_flag"
12489                          || test ! -s conftest.err'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; } &&
12495          { ac_try='test -s conftest.$ac_objext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   :
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506
12507 cat >>confdefs.h <<\_ACEOF
12508 #define rlim_t long
12509 _ACEOF
12510
12511 fi
12512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513
12514 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12515 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12516 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12517 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12518
12519 for ac_func in ldgetname
12520 do
12521   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12522 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12523 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12524 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12525   echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527   cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 #undef $ac_tr_decl
12534 #define $ac_tr_decl 1
12535
12536 #include "ansidecl.h"
12537 #include "system.h"
12538 #ifdef HAVE_LDFCN_H
12539 #undef FREAD
12540 #undef FWRITE
12541 #include <ldfcn.h>
12542 #endif
12543
12544
12545 int
12546 main ()
12547 {
12548 #ifndef $ac_func
12549 char *(*pfn) = (char *(*)) $ac_func ;
12550 #endif
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag"
12565                          || test ! -s conftest.err'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   eval "gcc_cv_have_decl_$ac_func=yes"
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 eval "gcc_cv_have_decl_$ac_func=no"
12583 fi
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 fi
12586
12587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12588   echo "$as_me:$LINENO: result: yes" >&5
12589 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12590 #define $ac_tr_decl 1
12591 _ACEOF
12592
12593 else
12594   echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12596 #define $ac_tr_decl 0
12597 _ACEOF
12598
12599 fi
12600
12601 done
12602
12603
12604
12605 for ac_func in times
12606 do
12607   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12608 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12609 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12610 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 #undef $ac_tr_decl
12620 #define $ac_tr_decl 1
12621
12622 #include "ansidecl.h"
12623 #include "system.h"
12624 #ifdef HAVE_SYS_TIMES_H
12625 #include <sys/times.h>
12626 #endif
12627
12628
12629 int
12630 main ()
12631 {
12632 #ifndef $ac_func
12633 char *(*pfn) = (char *(*)) $ac_func ;
12634 #endif
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641   (eval $ac_compile) 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } &&
12648          { ac_try='test -z "$ac_c_werror_flag"
12649                          || test ! -s conftest.err'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; } &&
12655          { ac_try='test -s conftest.$ac_objext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   eval "gcc_cv_have_decl_$ac_func=yes"
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 eval "gcc_cv_have_decl_$ac_func=no"
12667 fi
12668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12669 fi
12670
12671 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12672   echo "$as_me:$LINENO: result: yes" >&5
12673 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12674 #define $ac_tr_decl 1
12675 _ACEOF
12676
12677 else
12678   echo "$as_me:$LINENO: result: no" >&5
12679 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12680 #define $ac_tr_decl 0
12681 _ACEOF
12682
12683 fi
12684
12685 done
12686
12687
12688
12689 for ac_func in sigaltstack
12690 do
12691   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12692 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12693 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12694 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 #undef $ac_tr_decl
12704 #define $ac_tr_decl 1
12705
12706 #include "ansidecl.h"
12707 #include "system.h"
12708 #include <signal.h>
12709
12710
12711 int
12712 main ()
12713 {
12714 #ifndef $ac_func
12715 char *(*pfn) = (char *(*)) $ac_func ;
12716 #endif
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723   (eval $ac_compile) 2>conftest.er1
12724   ac_status=$?
12725   grep -v '^ *+' conftest.er1 >conftest.err
12726   rm -f conftest.er1
12727   cat conftest.err >&5
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -z "$ac_c_werror_flag"
12731                          || test ! -s conftest.err'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; } &&
12737          { ac_try='test -s conftest.$ac_objext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   eval "gcc_cv_have_decl_$ac_func=yes"
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 eval "gcc_cv_have_decl_$ac_func=no"
12749 fi
12750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 fi
12752
12753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12754   echo "$as_me:$LINENO: result: yes" >&5
12755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12756 #define $ac_tr_decl 1
12757 _ACEOF
12758
12759 else
12760   echo "$as_me:$LINENO: result: no" >&5
12761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12762 #define $ac_tr_decl 0
12763 _ACEOF
12764
12765 fi
12766
12767 done
12768
12769
12770 # More time-related stuff.
12771 echo "$as_me:$LINENO: checking for struct tms" >&5
12772 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12773 if test "${ac_cv_struct_tms+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783
12784 #include "ansidecl.h"
12785 #include "system.h"
12786 #ifdef HAVE_SYS_TIMES_H
12787 #include <sys/times.h>
12788 #endif
12789
12790 int
12791 main ()
12792 {
12793 struct tms tms;
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800   (eval $ac_compile) 2>conftest.er1
12801   ac_status=$?
12802   grep -v '^ *+' conftest.er1 >conftest.err
12803   rm -f conftest.er1
12804   cat conftest.err >&5
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } &&
12807          { ac_try='test -z "$ac_c_werror_flag"
12808                          || test ! -s conftest.err'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; } &&
12814          { ac_try='test -s conftest.$ac_objext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   ac_cv_struct_tms=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 ac_cv_struct_tms=no
12826 fi
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 fi
12829 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12830 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12831 if test $ac_cv_struct_tms = yes; then
12832
12833 cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_STRUCT_TMS 1
12835 _ACEOF
12836
12837 fi
12838
12839 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12840 # revisit after autoconf 2.50.
12841 echo "$as_me:$LINENO: checking for clock_t" >&5
12842 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12843 if test "${gcc_cv_type_clock_t+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853
12854 #include "ansidecl.h"
12855 #include "system.h"
12856
12857 int
12858 main ()
12859 {
12860 clock_t x;
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867   (eval $ac_compile) 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } &&
12874          { ac_try='test -z "$ac_c_werror_flag"
12875                          || test ! -s conftest.err'
12876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877   (eval $ac_try) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); }; } &&
12881          { ac_try='test -s conftest.$ac_objext'
12882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883   (eval $ac_try) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   gcc_cv_type_clock_t=yes
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 gcc_cv_type_clock_t=no
12893 fi
12894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12895 fi
12896 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12897 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12898 if test $gcc_cv_type_clock_t = yes; then
12899
12900 cat >>confdefs.h <<\_ACEOF
12901 #define HAVE_CLOCK_T 1
12902 _ACEOF
12903
12904 fi
12905
12906 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12907 CFLAGS="$saved_CFLAGS"
12908
12909 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12910 if test "${enable_initfini_array+set}" = set; then
12911   enableval="$enable_initfini_array"
12912
12913 else
12914
12915 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12916 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12917 if test "${gcc_cv_initfini_array+set}" = set; then
12918   echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920     if test "$cross_compiling" = yes; then
12921   gcc_cv_initfini_array=no
12922 else
12923   cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h.  */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h.  */
12929
12930 static int x = -1;
12931 int main (void) { return x; }
12932 int foo (void) { x = 0; }
12933 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12934 _ACEOF
12935 rm -f conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937   (eval $ac_link) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942   (eval $ac_try) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; }; then
12946   gcc_cv_initfini_array=yes
12947 else
12948   echo "$as_me: program exited with status $ac_status" >&5
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 ( exit $ac_status )
12953 gcc_cv_initfini_array=no
12954 fi
12955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 fi
12958 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12959 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12960   enable_initfini_array=$gcc_cv_initfini_array
12961
12962 fi;
12963 if test $enable_initfini_array = yes; then
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_INITFINI_ARRAY 1
12967 _ACEOF
12968
12969 fi
12970
12971 # mkdir takes a single argument on some systems.
12972 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12973 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12974 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983
12984 #include <sys/types.h>
12985 #ifdef HAVE_SYS_STAT_H
12986 # include <sys/stat.h>
12987 #endif
12988 #ifdef HAVE_UNISTD_H
12989 # include <unistd.h>
12990 #endif
12991 #ifdef HAVE_DIRECT_H
12992 # include <direct.h>
12993 #endif
12994 int
12995 main ()
12996 {
12997 mkdir ("foo", 0);
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004   (eval $ac_compile) 2>conftest.er1
13005   ac_status=$?
13006   grep -v '^ *+' conftest.er1 >conftest.err
13007   rm -f conftest.er1
13008   cat conftest.err >&5
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } &&
13011          { ac_try='test -z "$ac_c_werror_flag"
13012                          || test ! -s conftest.err'
13013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014   (eval $ac_try) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; } &&
13018          { ac_try='test -s conftest.$ac_objext'
13019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020   (eval $ac_try) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }; then
13024   gcc_cv_mkdir_takes_one_arg=no
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 gcc_cv_mkdir_takes_one_arg=yes
13030 fi
13031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13032 fi
13033 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13034 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13035 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define MKDIR_TAKES_ONE_ARG 1
13039 _ACEOF
13040
13041 fi
13042
13043
13044 # File extensions
13045 manext='.1'
13046 objext='.o'
13047
13048
13049
13050 # With Setjmp/Longjmp based exception handling.
13051 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13052 if test "${enable_sjlj_exceptions+set}" = set; then
13053   enableval="$enable_sjlj_exceptions"
13054   case $target in
13055   *-*-hpux10*)
13056     if test $enableval != yes; then
13057       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13058 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13059       enableval=yes
13060     fi
13061     ;;
13062 esac
13063 force_sjlj_exceptions=yes
13064 else
13065   case $target in
13066   *-*-hpux10*)
13067     force_sjlj_exceptions=yes
13068     enableval=yes
13069     ;;
13070   *)
13071     force_sjlj_exceptions=no
13072     ;;
13073 esac
13074 fi;
13075 if test $force_sjlj_exceptions = yes; then
13076   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13077
13078 cat >>confdefs.h <<_ACEOF
13079 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13080 _ACEOF
13081
13082 fi
13083
13084 # For platforms with the unwind ABI which includes an unwind library,
13085 # libunwind, we can choose to use the system libunwind.
13086 # config.gcc also contains tests of with_system_libunwind.
13087
13088
13089 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13090 if test "${with_system_libunwind+set}" = set; then
13091   withval="$with_system_libunwind"
13092
13093 fi;
13094   # If system-libunwind was not specifically set, pick a default setting.
13095   if test x$with_system_libunwind = x; then
13096     case ${target} in
13097       ia64-*-hpux*) with_system_libunwind=yes ;;
13098       *) with_system_libunwind=no ;;
13099     esac
13100   fi
13101   # Based on system-libunwind and target, do we have ipinfo?
13102   if  test x$with_system_libunwind = xyes; then
13103     case ${target} in
13104       ia64-*-*) have_unwind_getipinfo=no ;;
13105       *) have_unwind_getipinfo=yes ;;
13106     esac
13107   else
13108     # Darwin before version 9 does not have _Unwind_GetIPInfo.
13109
13110     case ${target} in
13111       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13112       *) have_unwind_getipinfo=yes ;;
13113     esac
13114
13115   fi
13116
13117   if test x$have_unwind_getipinfo = xyes; then
13118
13119 cat >>confdefs.h <<\_ACEOF
13120 #define HAVE_GETIPINFO 1
13121 _ACEOF
13122
13123   fi
13124
13125
13126 # --------------------------------------------------------
13127 # Build, host, and target specific configuration fragments
13128 # --------------------------------------------------------
13129
13130 # Collect build-machine-specific information.
13131 . ${srcdir}/config.build
13132
13133 # Collect host-machine-specific information.
13134 . ${srcdir}/config.host
13135
13136 target_gtfiles=
13137
13138 # Collect target-machine-specific information.
13139 . ${srcdir}/config.gcc
13140
13141 extra_objs="${host_extra_objs} ${extra_objs}"
13142 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13143
13144 # Default the target-machine variables that were not explicitly set.
13145 if test x"$tm_file" = x
13146 then tm_file=$cpu_type/$cpu_type.h; fi
13147
13148 if test x"$extra_headers" = x
13149 then extra_headers=; fi
13150
13151 if test x$md_file = x
13152 then md_file=$cpu_type/$cpu_type.md; fi
13153
13154 if test x$out_file = x
13155 then out_file=$cpu_type/$cpu_type.c; fi
13156
13157 if test x"$tmake_file" = x
13158 then tmake_file=$cpu_type/t-$cpu_type
13159 fi
13160
13161 if test x"$dwarf2" = xyes
13162 then tm_file="$tm_file tm-dwarf2.h"
13163 fi
13164
13165 # Say what files are being used for the output code and MD file.
13166 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13167 echo "Using \`$srcdir/config/$md_file' as machine description file."
13168
13169 # If any of the xm_file variables contain nonexistent files, warn
13170 # about them and drop them.
13171
13172 bx=
13173 for x in $build_xm_file; do
13174   if    test -f $srcdir/config/$x
13175   then      bx="$bx $x"
13176   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13177 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13178   fi
13179 done
13180 build_xm_file="$bx"
13181
13182 hx=
13183 for x in $host_xm_file; do
13184   if    test -f $srcdir/config/$x
13185   then      hx="$hx $x"
13186   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13187 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13188   fi
13189 done
13190 host_xm_file="$hx"
13191
13192 tx=
13193 for x in $xm_file; do
13194   if    test -f $srcdir/config/$x
13195   then      tx="$tx $x"
13196   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13197 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13198   fi
13199 done
13200 xm_file="$tx"
13201
13202 count=a
13203 for f in $tm_file; do
13204         count=${count}x
13205 done
13206 if test $count = ax; then
13207         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13208 else
13209         echo "Using the following target machine macro files:"
13210         for f in $tm_file; do
13211                 echo "  $srcdir/config/$f"
13212         done
13213 fi
13214
13215 if test x$need_64bit_hwint = xyes; then
13216
13217 cat >>confdefs.h <<\_ACEOF
13218 #define NEED_64BIT_HOST_WIDE_INT 1
13219 _ACEOF
13220
13221 fi
13222
13223 if test x$use_long_long_for_widest_fast_int = xyes; then
13224
13225 cat >>confdefs.h <<\_ACEOF
13226 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13227 _ACEOF
13228
13229 fi
13230
13231 count=a
13232 for f in $host_xm_file; do
13233         count=${count}x
13234 done
13235 if test $count = a; then
13236         :
13237 elif test $count = ax; then
13238         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13239 else
13240         echo "Using the following host machine macro files:"
13241         for f in $host_xm_file; do
13242                 echo "  $srcdir/config/$f"
13243         done
13244 fi
13245 echo "Using ${out_host_hook_obj} for host machine hooks."
13246
13247 if test "$host_xm_file" != "$build_xm_file"; then
13248         count=a
13249         for f in $build_xm_file; do
13250                 count=${count}x
13251         done
13252         if test $count = a; then
13253                 :
13254         elif test $count = ax; then
13255                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13256         else
13257                 echo "Using the following build machine macro files:"
13258                 for f in $build_xm_file; do
13259                         echo "  $srcdir/config/$f"
13260                 done
13261         fi
13262 fi
13263
13264 case ${host} in
13265   powerpc*-*-darwin*)
13266     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13267 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13268 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   cat >conftest.$ac_ext <<_ACEOF
13272
13273 #include <sys/cdefs.h>
13274 #include <sys/signal.h>
13275 #include <ucontext.h>
13276 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13277
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281   (eval $ac_compile) 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } &&
13288          { ac_try='test -z "$ac_c_werror_flag"
13289                          || test ! -s conftest.err'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest.$ac_objext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   gcc_cv_mcontext_underscores=no
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 gcc_cv_mcontext_underscores=yes
13307 fi
13308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13309 fi
13310 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13311 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13312       if test $gcc_cv_mcontext_underscores = yes; then
13313
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAS_MCONTEXT_T_UNDERSCORES
13316 _ACEOF
13317
13318       fi
13319     ;;
13320 esac
13321
13322 # ---------
13323 # Threading
13324 # ---------
13325
13326 # Check if a valid thread package
13327 case ${enable_threads} in
13328   "" | no)
13329     # No threads
13330     target_thread_file='single'
13331     ;;
13332   yes)
13333     # default
13334     target_thread_file='single'
13335     ;;
13336   aix | dce | gnat | irix | posix | posix95 | rtems | \
13337   single | solaris | vxworks | win32 | mipssde)
13338     target_thread_file=${enable_threads}
13339     ;;
13340   *)
13341     echo "${enable_threads} is an unknown thread package" 1>&2
13342     exit 1
13343     ;;
13344 esac
13345
13346 if test x${thread_file} = x; then
13347   # No thread file set by target-specific clauses in config.gcc,
13348   # so use file chosen by default logic above
13349   thread_file=${target_thread_file}
13350 fi
13351
13352 # Make gthr-default.h if we have a thread file.
13353 gthread_flags=
13354 if test $thread_file != single; then
13355   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13356   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13357     rm -f gthr-default.h-t
13358   else
13359     mv -f gthr-default.h-t gthr-default.h
13360   fi
13361   gthread_flags=-DHAVE_GTHR_DEFAULT
13362 fi
13363
13364
13365 # --------
13366 # UNSORTED
13367 # --------
13368
13369 use_cxa_atexit=no
13370 if test x$enable___cxa_atexit = xyes || \
13371    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13372   if test x$host = x$target; then
13373     case $host in
13374       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13375       # keyed to flag_use_cxa_atexit
13376       *-*-mingw32*)
13377         use_cxa_atexit=yes
13378         ;;
13379       *)
13380         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13381 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13382 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h.  */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h.  */
13391 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13393 #define __cxa_atexit innocuous___cxa_atexit
13394
13395 /* System header to define __stub macros and hopefully few prototypes,
13396     which can conflict with char __cxa_atexit (); below.
13397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13398     <limits.h> exists even on freestanding compilers.  */
13399
13400 #ifdef __STDC__
13401 # include <limits.h>
13402 #else
13403 # include <assert.h>
13404 #endif
13405
13406 #undef __cxa_atexit
13407
13408 /* Override any gcc2 internal prototype to avoid an error.  */
13409 #ifdef __cplusplus
13410 extern "C"
13411 {
13412 #endif
13413 /* We use char because int might match the return type of a gcc2
13414    builtin and then its argument prototype would still apply.  */
13415 char __cxa_atexit ();
13416 /* The GNU C library defines this for functions which it implements
13417     to always fail with ENOSYS.  Some functions are actually named
13418     something starting with __ and the normal name is an alias.  */
13419 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13420 choke me
13421 #else
13422 char (*f) () = __cxa_atexit;
13423 #endif
13424 #ifdef __cplusplus
13425 }
13426 #endif
13427
13428 int
13429 main ()
13430 {
13431 return f != __cxa_atexit;
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438   (eval $ac_link) 2>conftest.er1
13439   ac_status=$?
13440   grep -v '^ *+' conftest.er1 >conftest.err
13441   rm -f conftest.er1
13442   cat conftest.err >&5
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } &&
13445          { ac_try='test -z "$ac_c_werror_flag"
13446                          || test ! -s conftest.err'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   ac_cv_func___cxa_atexit=yes
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 ac_cv_func___cxa_atexit=no
13464 fi
13465 rm -f conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13469 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13470 if test $ac_cv_func___cxa_atexit = yes; then
13471   use_cxa_atexit=yes
13472 else
13473   echo "__cxa_atexit can't be enabled on this target"
13474 fi
13475
13476         ;;
13477     esac
13478   else
13479     # We can't check for __cxa_atexit when building a cross, so assume
13480     # it is available
13481     use_cxa_atexit=yes
13482   fi
13483   if test x$use_cxa_atexit = xyes; then
13484
13485 cat >>confdefs.h <<\_ACEOF
13486 #define DEFAULT_USE_CXA_ATEXIT 2
13487 _ACEOF
13488
13489   fi
13490 fi
13491
13492 # Look for a file containing extra machine modes.
13493 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13494   extra_modes_file='$(srcdir)'/config/${extra_modes}
13495
13496
13497 cat >>confdefs.h <<_ACEOF
13498 #define EXTRA_MODES_FILE "config/$extra_modes"
13499 _ACEOF
13500
13501 fi
13502
13503 # Convert extra_options into a form suitable for Makefile use.
13504 extra_opt_files=
13505 for f in $extra_options; do
13506   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13507 done
13508
13509
13510 # auto-host.h is the file containing items generated by autoconf and is
13511 # the first file included by config.h.
13512 # If host=build, it is correct to have bconfig include auto-host.h
13513 # as well.  If host!=build, we are in error and need to do more
13514 # work to find out the build config parameters.
13515 if test x$host = x$build
13516 then
13517         build_auto=auto-host.h
13518 else
13519         # We create a subdir, then run autoconf in the subdir.
13520         # To prevent recursion we set host and build for the new
13521         # invocation of configure to the build for this invocation
13522         # of configure.
13523         tempdir=build.$$
13524         rm -rf $tempdir
13525         mkdir $tempdir
13526         cd $tempdir
13527         case ${srcdir} in
13528         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13529         *) realsrcdir=../${srcdir};;
13530         esac
13531         saved_CFLAGS="${CFLAGS}"
13532         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13533         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13534         ${realsrcdir}/configure \
13535                 --enable-languages=${enable_languages-all} \
13536                 --target=$target_alias --host=$build_alias --build=$build_alias
13537         CFLAGS="${saved_CFLAGS}"
13538
13539         # We just finished tests for the build machine, so rename
13540         # the file auto-build.h in the gcc directory.
13541         mv auto-host.h ../auto-build.h
13542         cd ..
13543         rm -rf $tempdir
13544         build_auto=auto-build.h
13545 fi
13546
13547
13548 tm_file="${tm_file} defaults.h"
13549 tm_p_file="${tm_p_file} tm-preds.h"
13550 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13551 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13552 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13553 # put this back in temporarily.
13554 xm_file="auto-host.h ansidecl.h ${xm_file}"
13555
13556 # --------
13557 # UNSORTED
13558 # --------
13559
13560 # Compile in configure arguments.
13561 if test -f configargs.h ; then
13562         # Being re-configured.
13563         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13564         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13565 else
13566         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13567 fi
13568
13569 # Double all backslashes and backslash all quotes to turn
13570 # gcc_config_arguments into a C string.
13571 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13572 $gcc_config_arguments
13573 EOF
13574 gcc_config_arguments_str=`cat conftest.out`
13575 rm -f conftest.out
13576
13577 cat > configargs.h <<EOF
13578 /* Generated automatically. */
13579 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13580 static const char thread_model[] = "$thread_file";
13581
13582 static const struct {
13583   const char *name, *value;
13584 } configure_default_options[] = $configure_default_options;
13585 EOF
13586
13587 # Internationalization
13588 # If we haven't got the data from the intl directory,
13589 # assume NLS is disabled.
13590 USE_NLS=no
13591 LIBINTL=
13592 LIBINTL_DEP=
13593 INCINTL=
13594 XGETTEXT=
13595 GMSGFMT=
13596 POSUB=
13597
13598 if test -f  ../intl/config.intl; then
13599   .  ../intl/config.intl
13600 fi
13601 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13602 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13603 if test x"$USE_NLS" != xyes; then
13604   echo "$as_me:$LINENO: result: no" >&5
13605 echo "${ECHO_T}no" >&6
13606 else
13607   echo "$as_me:$LINENO: result: yes" >&5
13608 echo "${ECHO_T}yes" >&6
13609
13610 cat >>confdefs.h <<\_ACEOF
13611 #define ENABLE_NLS 1
13612 _ACEOF
13613
13614
13615   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13616 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13617   # Look for .po and .gmo files in the source directory.
13618   CATALOGS=
13619   XLINGUAS=
13620   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13621     # If there aren't any .gmo files the shell will give us the
13622     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13623     # weeded out.
13624     case "$cat" in *\**)
13625       continue;;
13626     esac
13627     # The quadruple backslash is collapsed to a double backslash
13628     # by the backticks, then collapsed again by the double quotes,
13629     # leaving us with one backslash in the sed expression (right
13630     # before the dot that mustn't act as a wildcard).
13631     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13632     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13633     # The user is allowed to set LINGUAS to a list of languages to
13634     # install catalogs for.  If it's empty that means "all of them."
13635     if test "x$LINGUAS" = x; then
13636       CATALOGS="$CATALOGS $cat"
13637       XLINGUAS="$XLINGUAS $lang"
13638     else
13639       case "$LINGUAS" in *$lang*)
13640         CATALOGS="$CATALOGS $cat"
13641         XLINGUAS="$XLINGUAS $lang"
13642         ;;
13643       esac
13644     fi
13645   done
13646   LINGUAS="$XLINGUAS"
13647   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13648 echo "${ECHO_T}$LINGUAS" >&6
13649
13650
13651     DATADIRNAME=share
13652
13653   INSTOBJEXT=.mo
13654
13655   GENCAT=gencat
13656
13657   CATOBJEXT=.gmo
13658
13659 fi
13660
13661 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13662 # -liconv on the link line twice.
13663 case "$LIBINTL" in *$LIBICONV*)
13664         LIBICONV= ;;
13665 esac
13666
13667 # Check whether --enable-secureplt or --disable-secureplt was given.
13668 if test "${enable_secureplt+set}" = set; then
13669   enableval="$enable_secureplt"
13670
13671 fi;
13672
13673 # Check whether --enable-cld or --disable-cld was given.
13674 if test "${enable_cld+set}" = set; then
13675   enableval="$enable_cld"
13676
13677 else
13678   enable_cld=no
13679 fi;
13680
13681 # Windows32 Registry support for specifying GCC installation paths.
13682 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13683 if test "${enable_win32_registry+set}" = set; then
13684   enableval="$enable_win32_registry"
13685
13686 fi;
13687
13688 case $host_os in
13689   win32 | pe | cygwin* | mingw32* | uwin*)
13690     if test "x$enable_win32_registry" != xno; then
13691       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13692 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13693 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696   ac_func_search_save_LIBS=$LIBS
13697 ac_cv_search_RegOpenKeyExA=no
13698 cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704
13705 /* Override any gcc2 internal prototype to avoid an error.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 /* We use char because int might match the return type of a gcc2
13710    builtin and then its argument prototype would still apply.  */
13711 char RegOpenKeyExA ();
13712 int
13713 main ()
13714 {
13715 RegOpenKeyExA ();
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722   (eval $ac_link) 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag"
13730                          || test ! -s conftest.err'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; } &&
13736          { ac_try='test -s conftest$ac_exeext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_search_RegOpenKeyExA="none required"
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 fi
13748 rm -f conftest.err conftest.$ac_objext \
13749       conftest$ac_exeext conftest.$ac_ext
13750 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13751   for ac_lib in advapi32; do
13752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13753     cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h.  */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h.  */
13759
13760 /* Override any gcc2 internal prototype to avoid an error.  */
13761 #ifdef __cplusplus
13762 extern "C"
13763 #endif
13764 /* We use char because int might match the return type of a gcc2
13765    builtin and then its argument prototype would still apply.  */
13766 char RegOpenKeyExA ();
13767 int
13768 main ()
13769 {
13770 RegOpenKeyExA ();
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 rm -f conftest.$ac_objext conftest$ac_exeext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13777   (eval $ac_link) 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -z "$ac_c_werror_flag"
13785                          || test ! -s conftest.err'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; } &&
13791          { ac_try='test -s conftest$ac_exeext'
13792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793   (eval $ac_try) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13798 break
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 fi
13804 rm -f conftest.err conftest.$ac_objext \
13805       conftest$ac_exeext conftest.$ac_ext
13806   done
13807 fi
13808 LIBS=$ac_func_search_save_LIBS
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13811 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13812 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13813   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13814
13815 else
13816   enable_win32_registry=no
13817 fi
13818
13819     fi
13820
13821     if test "x$enable_win32_registry" != xno; then
13822
13823 cat >>confdefs.h <<\_ACEOF
13824 #define ENABLE_WIN32_REGISTRY 1
13825 _ACEOF
13826
13827
13828       if test "x$enable_win32_registry" != xyes \
13829          && test "x$enable_win32_registry" != x; then
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13833 _ACEOF
13834
13835       fi
13836     fi
13837   ;;
13838 esac
13839
13840 # Get an absolute path to the GCC top-level source directory
13841 holddir=`${PWDCMD-pwd}`
13842 cd $srcdir
13843 topdir=`${PWDCMD-pwd}`
13844 cd $holddir
13845
13846 # Conditionalize the makefile for this host machine.
13847 xmake_file=
13848 for f in ${host_xmake_file}
13849 do
13850         if test -f ${srcdir}/config/$f
13851         then
13852                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13853         fi
13854 done
13855
13856 # Conditionalize the makefile for this target machine.
13857 tmake_file_=
13858 for f in ${tmake_file}
13859 do
13860         if test -f ${srcdir}/config/$f
13861         then
13862                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13863         fi
13864 done
13865 tmake_file="${tmake_file_}"
13866
13867 out_object_file=`basename $out_file .c`.o
13868
13869 tm_file_list="options.h"
13870 tm_include_list="options.h"
13871 for f in $tm_file; do
13872   case $f in
13873     ./* )
13874        f=`echo $f | sed 's/^..//'`
13875        tm_file_list="${tm_file_list} $f"
13876        tm_include_list="${tm_include_list} $f"
13877        ;;
13878     defaults.h )
13879        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13880        tm_include_list="${tm_include_list} $f"
13881        ;;
13882     * )
13883        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13884        tm_include_list="${tm_include_list} config/$f"
13885        ;;
13886   esac
13887 done
13888
13889 tm_p_file_list=
13890 tm_p_include_list=
13891 for f in $tm_p_file; do
13892   case $f in
13893     tm-preds.h )
13894        tm_p_file_list="${tm_p_file_list} $f"
13895        tm_p_include_list="${tm_p_include_list} $f"
13896        ;;
13897     * )
13898        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13899        tm_p_include_list="${tm_p_include_list} config/$f"
13900   esac
13901 done
13902
13903 xm_file_list=
13904 xm_include_list=
13905 for f in $xm_file; do
13906   case $f in
13907     ansidecl.h )
13908        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13909        xm_include_list="${xm_include_list} $f"
13910        ;;
13911     auto-host.h )
13912        xm_file_list="${xm_file_list} $f"
13913        xm_include_list="${xm_include_list} $f"
13914        ;;
13915     * )
13916        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13917        xm_include_list="${xm_include_list} config/$f"
13918        ;;
13919   esac
13920 done
13921
13922 host_xm_file_list=
13923 host_xm_include_list=
13924 for f in $host_xm_file; do
13925   case $f in
13926     ansidecl.h )
13927        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13928        host_xm_include_list="${host_xm_include_list} $f"
13929        ;;
13930     auto-host.h )
13931        host_xm_file_list="${host_xm_file_list} $f"
13932        host_xm_include_list="${host_xm_include_list} $f"
13933        ;;
13934     * )
13935        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13936        host_xm_include_list="${host_xm_include_list} config/$f"
13937        ;;
13938   esac
13939 done
13940
13941 build_xm_file_list=
13942 for f in $build_xm_file; do
13943   case $f in
13944     ansidecl.h )
13945        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13946        build_xm_include_list="${build_xm_include_list} $f"
13947        ;;
13948     auto-build.h | auto-host.h )
13949        build_xm_file_list="${build_xm_file_list} $f"
13950        build_xm_include_list="${build_xm_include_list} $f"
13951        ;;
13952     * )
13953        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13954        build_xm_include_list="${build_xm_include_list} config/$f"
13955        ;;
13956   esac
13957 done
13958
13959 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13960 # cross-compiler which does not use the native headers and libraries.
13961 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13962 CROSS=
13963 ALL=all.internal
13964 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13965
13966 if test "x$with_build_sysroot" != x; then
13967   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13968 else
13969   # This value is used, even on a native system, because
13970   # CROSS_SYSTEM_HEADER_DIR is just
13971   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13972   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13973 fi
13974
13975 if test x$host != x$target
13976 then
13977         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13978         ALL=all.cross
13979         SYSTEM_HEADER_DIR=$build_system_header_dir
13980         case "$host","$target" in
13981         # Darwin crosses can use the host system's libraries and headers,
13982         # because of the fat library support.  Of course, it must be the
13983         # same version of Darwin on both sides.  Allow the user to
13984         # just say --target=foo-darwin without a version number to mean
13985         # "the version on this system".
13986             *-*-darwin*,*-*-darwin*)
13987                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13988                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13989                 if test $hostos = $targetos -o $targetos = darwin ; then
13990                     CROSS=
13991                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13992                     with_headers=yes
13993                 fi
13994                 ;;
13995
13996             i?86-*-*,x86_64-*-* \
13997             | powerpc*-*-*,powerpc64*-*-*)
13998                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13999         esac
14000 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14001         SYSTEM_HEADER_DIR=$build_system_header_dir
14002 fi
14003
14004 # If this is a cross-compiler that does not
14005 # have its own set of headers then define
14006 # inhibit_libc
14007
14008 # If this is using newlib, without having the headers available now,
14009 # then define inhibit_libc in LIBGCC2_CFLAGS.
14010 # This prevents libgcc2 from containing any code which requires libc
14011 # support.
14012 : ${inhibit_libc=false}
14013 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14014        test x$with_newlib = xyes ; } &&
14015      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14016        inhibit_libc=true
14017 fi
14018
14019
14020 # When building gcc with a cross-compiler, we need to adjust things so
14021 # that the generator programs are still built with the native compiler.
14022 # Also, we cannot run fixincludes or fix-header.
14023
14024 # These are the normal (build=host) settings:
14025 CC_FOR_BUILD='$(CC)'
14026 BUILD_CFLAGS='$(ALL_CFLAGS)'
14027 BUILD_LDFLAGS='$(LDFLAGS)'
14028 STMP_FIXINC=stmp-fixinc
14029
14030 # Possibly disable fixproto, on a per-target basis.
14031 case ${use_fixproto} in
14032   no)
14033     STMP_FIXPROTO=
14034     ;;
14035   yes)
14036     STMP_FIXPROTO=stmp-fixproto
14037     ;;
14038 esac
14039
14040
14041 # And these apply if build != host, or we are generating coverage data
14042 if test x$build != x$host || test "x$coverage_flags" != x
14043 then
14044     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14045     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14046
14047     if test "x$TARGET_SYSTEM_ROOT" = x; then
14048         if test "x$STMP_FIXPROTO" != x; then
14049           STMP_FIXPROTO=stmp-install-fixproto
14050         fi
14051     fi
14052 fi
14053
14054 # Expand extra_headers to include complete path.
14055 # This substitutes for lots of t-* files.
14056 extra_headers_list=
14057 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14058 for file in ${extra_headers} ; do
14059   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14060 done
14061
14062 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14063 if test x"$use_gcc_tgmath" = xyes
14064 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14065 fi
14066
14067 # Define collect2 in Makefile.
14068 case $host_can_use_collect2 in
14069   no) collect2= ;;
14070   *) collect2='collect2$(exeext)' ;;
14071 esac
14072
14073
14074 # Add a definition of USE_COLLECT2 if system wants one.
14075 case $use_collect2 in
14076   no) use_collect2= ;;
14077   "") ;;
14078   *)
14079     host_xm_defines="${host_xm_defines} USE_COLLECT2"
14080     xm_defines="${xm_defines} USE_COLLECT2"
14081     case $host_can_use_collect2 in
14082       no)
14083         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14084 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14085    { (exit 1); exit 1; }; }
14086         ;;
14087     esac
14088     ;;
14089 esac
14090
14091 # ---------------------------
14092 # Assembler & linker features
14093 # ---------------------------
14094
14095 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14096 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14097 # However when ld-new is first executed from the build tree, libtool will
14098 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14099 # to the build tree.  While doing this we need to use the previous-stage
14100 # linker, or we have an infinite loop.  The presence of a shell script as
14101 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14102 # the gcc/collect-ld script.  So we need to know how libtool works, or
14103 # exec-tool will fail.
14104
14105
14106 case `pwd` in
14107   *\ * | *\     *)
14108     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14109 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14110 esac
14111
14112
14113
14114 macro_version='2.2.6'
14115 macro_revision='1.3012'
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129 ltmain="$ac_aux_dir/ltmain.sh"
14130
14131 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14132 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14133 if test "${lt_cv_path_SED+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   # Loop through the user's path and test for sed and gsed.
14137 # Then use that list of sed's as ones to test for truncation.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14140 do
14141   IFS=$as_save_IFS
14142   test -z "$as_dir" && as_dir=.
14143   for lt_ac_prog in sed gsed; do
14144     for ac_exec_ext in '' $ac_executable_extensions; do
14145       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14146         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14147       fi
14148     done
14149   done
14150 done
14151 IFS=$as_save_IFS
14152 lt_ac_max=0
14153 lt_ac_count=0
14154 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14155 # along with /bin/sed that truncates output.
14156 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14157   test ! -f $lt_ac_sed && continue
14158   cat /dev/null > conftest.in
14159   lt_ac_count=0
14160   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14161   # Check for GNU sed and select it if it is found.
14162   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14163     lt_cv_path_SED=$lt_ac_sed
14164     break
14165   fi
14166   while true; do
14167     cat conftest.in conftest.in >conftest.tmp
14168     mv conftest.tmp conftest.in
14169     cp conftest.in conftest.nl
14170     echo >>conftest.nl
14171     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14172     cmp -s conftest.out conftest.nl || break
14173     # 10000 chars as input seems more than enough
14174     test $lt_ac_count -gt 10 && break
14175     lt_ac_count=`expr $lt_ac_count + 1`
14176     if test $lt_ac_count -gt $lt_ac_max; then
14177       lt_ac_max=$lt_ac_count
14178       lt_cv_path_SED=$lt_ac_sed
14179     fi
14180   done
14181 done
14182
14183 fi
14184
14185 SED=$lt_cv_path_SED
14186
14187 echo "$as_me:$LINENO: result: $SED" >&5
14188 echo "${ECHO_T}$SED" >&6
14189
14190 test -z "$SED" && SED=sed
14191 Xsed="$SED -e 1s/^X//"
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 echo "$as_me:$LINENO: checking for fgrep" >&5
14204 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14205 if test "${ac_cv_prog_fgrep+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14209     then ac_cv_prog_fgrep='grep -F'
14210     else ac_cv_prog_fgrep='fgrep'
14211     fi
14212 fi
14213 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14214 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14215  FGREP=$ac_cv_prog_fgrep
14216
14217
14218 test -z "$GREP" && GREP=grep
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14239 if test "${with_gnu_ld+set}" = set; then
14240   withval="$with_gnu_ld"
14241   test "$withval" = no || with_gnu_ld=yes
14242 else
14243   with_gnu_ld=no
14244 fi;
14245 ac_prog=ld
14246 if test "$GCC" = yes; then
14247   # Check if gcc -print-prog-name=ld gives a path.
14248   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14249 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14250   case $host in
14251   *-*-mingw*)
14252     # gcc leaves a trailing carriage return which upsets mingw
14253     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14254   *)
14255     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14256   esac
14257   case $ac_prog in
14258     # Accept absolute paths.
14259     [\\/]* | ?:[\\/]*)
14260       re_direlt='/[^/][^/]*/\.\./'
14261       # Canonicalize the pathname of ld
14262       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14263       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14264         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14265       done
14266       test -z "$LD" && LD="$ac_prog"
14267       ;;
14268   "")
14269     # If it fails, then pretend we aren't using GCC.
14270     ac_prog=ld
14271     ;;
14272   *)
14273     # If it is relative, then search for the first ld in PATH.
14274     with_gnu_ld=unknown
14275     ;;
14276   esac
14277 elif test "$with_gnu_ld" = yes; then
14278   echo "$as_me:$LINENO: checking for GNU ld" >&5
14279 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14280 else
14281   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14282 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14283 fi
14284 if test "${lt_cv_path_LD+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   if test -z "$LD"; then
14288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289   for ac_dir in $PATH; do
14290     IFS="$lt_save_ifs"
14291     test -z "$ac_dir" && ac_dir=.
14292     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14293       lt_cv_path_LD="$ac_dir/$ac_prog"
14294       # Check to see if the program is GNU ld.  I'd rather use --version,
14295       # but apparently some variants of GNU ld only accept -v.
14296       # Break only if it was the GNU/non-GNU ld that we prefer.
14297       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14298       *GNU* | *'with BFD'*)
14299         test "$with_gnu_ld" != no && break
14300         ;;
14301       *)
14302         test "$with_gnu_ld" != yes && break
14303         ;;
14304       esac
14305     fi
14306   done
14307   IFS="$lt_save_ifs"
14308 else
14309   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14310 fi
14311 fi
14312
14313 LD="$lt_cv_path_LD"
14314 if test -n "$LD"; then
14315   echo "$as_me:$LINENO: result: $LD" >&5
14316 echo "${ECHO_T}$LD" >&6
14317 else
14318   echo "$as_me:$LINENO: result: no" >&5
14319 echo "${ECHO_T}no" >&6
14320 fi
14321 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14322 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14323    { (exit 1); exit 1; }; }
14324 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14325 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14326 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14327   echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14330 case `$LD -v 2>&1 </dev/null` in
14331 *GNU* | *'with BFD'*)
14332   lt_cv_prog_gnu_ld=yes
14333   ;;
14334 *)
14335   lt_cv_prog_gnu_ld=no
14336   ;;
14337 esac
14338 fi
14339 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14340 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14341 with_gnu_ld=$lt_cv_prog_gnu_ld
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14352 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14353 if test "${lt_cv_path_NM+set}" = set; then
14354   echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356   if test -n "$NM"; then
14357   # Let the user override the test.
14358   lt_cv_path_NM="$NM"
14359 else
14360   lt_nm_to_check="${ac_tool_prefix}nm"
14361   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14362     lt_nm_to_check="$lt_nm_to_check nm"
14363   fi
14364   for lt_tmp_nm in $lt_nm_to_check; do
14365     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14366     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14367       IFS="$lt_save_ifs"
14368       test -z "$ac_dir" && ac_dir=.
14369       tmp_nm="$ac_dir/$lt_tmp_nm"
14370       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14371         # Check to see if the nm accepts a BSD-compat flag.
14372         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14373         #   nm: unknown option "B" ignored
14374         # Tru64's nm complains that /dev/null is an invalid object file
14375         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14376         */dev/null* | *'Invalid file or object type'*)
14377           lt_cv_path_NM="$tmp_nm -B"
14378           break
14379           ;;
14380         *)
14381           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14382           */dev/null*)
14383             lt_cv_path_NM="$tmp_nm -p"
14384             break
14385             ;;
14386           *)
14387             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14388             continue # so that we can try to find one that supports BSD flags
14389             ;;
14390           esac
14391           ;;
14392         esac
14393       fi
14394     done
14395     IFS="$lt_save_ifs"
14396   done
14397   : ${lt_cv_path_NM=no}
14398 fi
14399 fi
14400 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14401 echo "${ECHO_T}$lt_cv_path_NM" >&6
14402 if test "$lt_cv_path_NM" != "no"; then
14403   NM="$lt_cv_path_NM"
14404 else
14405   # Didn't find any BSD compatible name lister, look for dumpbin.
14406   if test -n "$ac_tool_prefix"; then
14407   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14408   do
14409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14411 echo "$as_me:$LINENO: checking for $ac_word" >&5
14412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14413 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14414   echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416   if test -n "$DUMPBIN"; then
14417   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14418 else
14419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14420 for as_dir in $PATH
14421 do
14422   IFS=$as_save_IFS
14423   test -z "$as_dir" && as_dir=.
14424   for ac_exec_ext in '' $ac_executable_extensions; do
14425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14426     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14428     break 2
14429   fi
14430 done
14431 done
14432
14433 fi
14434 fi
14435 DUMPBIN=$ac_cv_prog_DUMPBIN
14436 if test -n "$DUMPBIN"; then
14437   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14438 echo "${ECHO_T}$DUMPBIN" >&6
14439 else
14440   echo "$as_me:$LINENO: result: no" >&5
14441 echo "${ECHO_T}no" >&6
14442 fi
14443
14444     test -n "$DUMPBIN" && break
14445   done
14446 fi
14447 if test -z "$DUMPBIN"; then
14448   ac_ct_DUMPBIN=$DUMPBIN
14449   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14450 do
14451   # Extract the first word of "$ac_prog", so it can be a program name with args.
14452 set dummy $ac_prog; ac_word=$2
14453 echo "$as_me:$LINENO: checking for $ac_word" >&5
14454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14455 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   if test -n "$ac_ct_DUMPBIN"; then
14459   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14460 else
14461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14462 for as_dir in $PATH
14463 do
14464   IFS=$as_save_IFS
14465   test -z "$as_dir" && as_dir=.
14466   for ac_exec_ext in '' $ac_executable_extensions; do
14467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14468     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14470     break 2
14471   fi
14472 done
14473 done
14474
14475 fi
14476 fi
14477 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14478 if test -n "$ac_ct_DUMPBIN"; then
14479   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14480 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14481 else
14482   echo "$as_me:$LINENO: result: no" >&5
14483 echo "${ECHO_T}no" >&6
14484 fi
14485
14486   test -n "$ac_ct_DUMPBIN" && break
14487 done
14488 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14489
14490   DUMPBIN=$ac_ct_DUMPBIN
14491 fi
14492
14493
14494   if test "$DUMPBIN" != ":"; then
14495     NM="$DUMPBIN"
14496   fi
14497 fi
14498 test -z "$NM" && NM=nm
14499
14500
14501
14502
14503
14504
14505 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14506 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14507 if test "${lt_cv_nm_interface+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   lt_cv_nm_interface="BSD nm"
14511   echo "int some_variable = 0;" > conftest.$ac_ext
14512   (eval echo "\"\$as_me:14512: $ac_compile\"" >&5)
14513   (eval "$ac_compile" 2>conftest.err)
14514   cat conftest.err >&5
14515   (eval echo "\"\$as_me:14515: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14516   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14517   cat conftest.err >&5
14518   (eval echo "\"\$as_me:14518: output\"" >&5)
14519   cat conftest.out >&5
14520   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14521     lt_cv_nm_interface="MS dumpbin"
14522   fi
14523   rm -f conftest*
14524 fi
14525 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14526 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14527
14528 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14530 LN_S=$as_ln_s
14531 if test "$LN_S" = "ln -s"; then
14532   echo "$as_me:$LINENO: result: yes" >&5
14533 echo "${ECHO_T}yes" >&6
14534 else
14535   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14536 echo "${ECHO_T}no, using $LN_S" >&6
14537 fi
14538
14539 # find the maximum length of command line arguments
14540 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14541 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14542 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545     i=0
14546   teststring="ABCD"
14547
14548   case $build_os in
14549   msdosdjgpp*)
14550     # On DJGPP, this test can blow up pretty badly due to problems in libc
14551     # (any single argument exceeding 2000 bytes causes a buffer overrun
14552     # during glob expansion).  Even if it were fixed, the result of this
14553     # check would be larger than it should be.
14554     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14555     ;;
14556
14557   gnu*)
14558     # Under GNU Hurd, this test is not required because there is
14559     # no limit to the length of command line arguments.
14560     # Libtool will interpret -1 as no limit whatsoever
14561     lt_cv_sys_max_cmd_len=-1;
14562     ;;
14563
14564   cygwin* | mingw* | cegcc*)
14565     # On Win9x/ME, this test blows up -- it succeeds, but takes
14566     # about 5 minutes as the teststring grows exponentially.
14567     # Worse, since 9x/ME are not pre-emptively multitasking,
14568     # you end up with a "frozen" computer, even though with patience
14569     # the test eventually succeeds (with a max line length of 256k).
14570     # Instead, let's just punt: use the minimum linelength reported by
14571     # all of the supported platforms: 8192 (on NT/2K/XP).
14572     lt_cv_sys_max_cmd_len=8192;
14573     ;;
14574
14575   amigaos*)
14576     # On AmigaOS with pdksh, this test takes hours, literally.
14577     # So we just punt and use a minimum line length of 8192.
14578     lt_cv_sys_max_cmd_len=8192;
14579     ;;
14580
14581   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14582     # This has been around since 386BSD, at least.  Likely further.
14583     if test -x /sbin/sysctl; then
14584       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14585     elif test -x /usr/sbin/sysctl; then
14586       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14587     else
14588       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14589     fi
14590     # And add a safety zone
14591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14592     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14593     ;;
14594
14595   interix*)
14596     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14597     lt_cv_sys_max_cmd_len=196608
14598     ;;
14599
14600   osf*)
14601     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14602     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14603     # nice to cause kernel panics so lets avoid the loop below.
14604     # First set a reasonable default.
14605     lt_cv_sys_max_cmd_len=16384
14606     #
14607     if test -x /sbin/sysconfig; then
14608       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14609         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14610       esac
14611     fi
14612     ;;
14613   sco3.2v5*)
14614     lt_cv_sys_max_cmd_len=102400
14615     ;;
14616   sysv5* | sco5v6* | sysv4.2uw2*)
14617     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14618     if test -n "$kargmax"; then
14619       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14620     else
14621       lt_cv_sys_max_cmd_len=32768
14622     fi
14623     ;;
14624   *)
14625     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14626     if test -n "$lt_cv_sys_max_cmd_len"; then
14627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14629     else
14630       # Make teststring a little bigger before we do anything with it.
14631       # a 1K string should be a reasonable start.
14632       for i in 1 2 3 4 5 6 7 8 ; do
14633         teststring=$teststring$teststring
14634       done
14635       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14636       # If test is not a shell built-in, we'll probably end up computing a
14637       # maximum length that is only half of the actual maximum length, but
14638       # we can't tell.
14639       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14640                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14641               test $i != 17 # 1/2 MB should be enough
14642       do
14643         i=`expr $i + 1`
14644         teststring=$teststring$teststring
14645       done
14646       # Only check the string length outside the loop.
14647       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14648       teststring=
14649       # Add a significant safety factor because C++ compilers can tack on
14650       # massive amounts of additional arguments before passing them to the
14651       # linker.  It appears as though 1/2 is a usable value.
14652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14653     fi
14654     ;;
14655   esac
14656
14657 fi
14658
14659 if test -n $lt_cv_sys_max_cmd_len ; then
14660   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14661 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14662 else
14663   echo "$as_me:$LINENO: result: none" >&5
14664 echo "${ECHO_T}none" >&6
14665 fi
14666 max_cmd_len=$lt_cv_sys_max_cmd_len
14667
14668
14669
14670
14671
14672
14673 : ${CP="cp -f"}
14674 : ${MV="mv -f"}
14675 : ${RM="rm -f"}
14676
14677 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14678 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14679 # Try some XSI features
14680 xsi_shell=no
14681 ( _lt_dummy="a/b/c"
14682   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14683       = c,a/b,, \
14684     && eval 'test $(( 1 + 1 )) -eq 2 \
14685     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14686   && xsi_shell=yes
14687 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14688 echo "${ECHO_T}$xsi_shell" >&6
14689
14690
14691 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14692 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14693 lt_shell_append=no
14694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14695     >/dev/null 2>&1 \
14696   && lt_shell_append=yes
14697 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14698 echo "${ECHO_T}$lt_shell_append" >&6
14699
14700
14701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14702   lt_unset=unset
14703 else
14704   lt_unset=false
14705 fi
14706
14707
14708
14709
14710
14711 # test EBCDIC or ASCII
14712 case `echo X|tr X '\101'` in
14713  A) # ASCII based system
14714     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14715   lt_SP2NL='tr \040 \012'
14716   lt_NL2SP='tr \015\012 \040\040'
14717   ;;
14718  *) # EBCDIC based system
14719   lt_SP2NL='tr \100 \n'
14720   lt_NL2SP='tr \r\n \100\100'
14721   ;;
14722 esac
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14733 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14734 if test "${lt_cv_ld_reload_flag+set}" = set; then
14735   echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737   lt_cv_ld_reload_flag='-r'
14738 fi
14739 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14740 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14741 reload_flag=$lt_cv_ld_reload_flag
14742 case $reload_flag in
14743 "" | " "*) ;;
14744 *) reload_flag=" $reload_flag" ;;
14745 esac
14746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14747 case $host_os in
14748   darwin*)
14749     if test "$GCC" = yes; then
14750       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14751     else
14752       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14753     fi
14754     ;;
14755 esac
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765 if test -n "$ac_tool_prefix"; then
14766   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14768 echo "$as_me:$LINENO: checking for $ac_word" >&5
14769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14770 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   if test -n "$OBJDUMP"; then
14774   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14778 do
14779   IFS=$as_save_IFS
14780   test -z "$as_dir" && as_dir=.
14781   for ac_exec_ext in '' $ac_executable_extensions; do
14782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14785     break 2
14786   fi
14787 done
14788 done
14789
14790 fi
14791 fi
14792 OBJDUMP=$ac_cv_prog_OBJDUMP
14793 if test -n "$OBJDUMP"; then
14794   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14795 echo "${ECHO_T}$OBJDUMP" >&6
14796 else
14797   echo "$as_me:$LINENO: result: no" >&5
14798 echo "${ECHO_T}no" >&6
14799 fi
14800
14801 fi
14802 if test -z "$ac_cv_prog_OBJDUMP"; then
14803   ac_ct_OBJDUMP=$OBJDUMP
14804   # Extract the first word of "objdump", so it can be a program name with args.
14805 set dummy objdump; ac_word=$2
14806 echo "$as_me:$LINENO: checking for $ac_word" >&5
14807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14808 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   if test -n "$ac_ct_OBJDUMP"; then
14812   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14813 else
14814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815 for as_dir in $PATH
14816 do
14817   IFS=$as_save_IFS
14818   test -z "$as_dir" && as_dir=.
14819   for ac_exec_ext in '' $ac_executable_extensions; do
14820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14821     ac_cv_prog_ac_ct_OBJDUMP="objdump"
14822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14823     break 2
14824   fi
14825 done
14826 done
14827
14828   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14829 fi
14830 fi
14831 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14832 if test -n "$ac_ct_OBJDUMP"; then
14833   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14834 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14835 else
14836   echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6
14838 fi
14839
14840   OBJDUMP=$ac_ct_OBJDUMP
14841 else
14842   OBJDUMP="$ac_cv_prog_OBJDUMP"
14843 fi
14844
14845 test -z "$OBJDUMP" && OBJDUMP=objdump
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14856 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14857 if test "${lt_cv_deplibs_check_method+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   lt_cv_file_magic_cmd='$MAGIC_CMD'
14861 lt_cv_file_magic_test_file=
14862 lt_cv_deplibs_check_method='unknown'
14863 # Need to set the preceding variable on all platforms that support
14864 # interlibrary dependencies.
14865 # 'none' -- dependencies not supported.
14866 # `unknown' -- same as none, but documents that we really don't know.
14867 # 'pass_all' -- all dependencies passed with no checks.
14868 # 'test_compile' -- check by making test program.
14869 # 'file_magic [[regex]]' -- check by looking for files in library path
14870 # which responds to the $file_magic_cmd with a given extended regex.
14871 # If you have `file' or equivalent on your system and you're not sure
14872 # whether `pass_all' will *always* work, you probably want this one.
14873
14874 case $host_os in
14875 aix[4-9]*)
14876   lt_cv_deplibs_check_method=pass_all
14877   ;;
14878
14879 beos*)
14880   lt_cv_deplibs_check_method=pass_all
14881   ;;
14882
14883 bsdi[45]*)
14884   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14885   lt_cv_file_magic_cmd='/usr/bin/file -L'
14886   lt_cv_file_magic_test_file=/shlib/libc.so
14887   ;;
14888
14889 cygwin*)
14890   # func_win32_libid is a shell function defined in ltmain.sh
14891   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14892   lt_cv_file_magic_cmd='func_win32_libid'
14893   ;;
14894
14895 mingw* | pw32*)
14896   # Base MSYS/MinGW do not provide the 'file' command needed by
14897   # func_win32_libid shell function, so use a weaker test based on 'objdump',
14898   # unless we find 'file', for example because we are cross-compiling.
14899   if ( file / ) >/dev/null 2>&1; then
14900     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14901     lt_cv_file_magic_cmd='func_win32_libid'
14902   else
14903     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14904     lt_cv_file_magic_cmd='$OBJDUMP -f'
14905   fi
14906   ;;
14907
14908 cegcc)
14909   # use the weaker test based on 'objdump'. See mingw*.
14910   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14911   lt_cv_file_magic_cmd='$OBJDUMP -f'
14912   ;;
14913
14914 darwin* | rhapsody*)
14915   lt_cv_deplibs_check_method=pass_all
14916   ;;
14917
14918 freebsd* | dragonfly*)
14919   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14920     case $host_cpu in
14921     i*86 )
14922       # Not sure whether the presence of OpenBSD here was a mistake.
14923       # Let's accept both of them until this is cleared up.
14924       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14925       lt_cv_file_magic_cmd=/usr/bin/file
14926       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14927       ;;
14928     esac
14929   else
14930     lt_cv_deplibs_check_method=pass_all
14931   fi
14932   ;;
14933
14934 gnu*)
14935   lt_cv_deplibs_check_method=pass_all
14936   ;;
14937
14938 hpux10.20* | hpux11*)
14939   lt_cv_file_magic_cmd=/usr/bin/file
14940   case $host_cpu in
14941   ia64*)
14942     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14943     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14944     ;;
14945   hppa*64*)
14946     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]'
14947     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14948     ;;
14949   *)
14950     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14951     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14952     ;;
14953   esac
14954   ;;
14955
14956 interix[3-9]*)
14957   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14958   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14959   ;;
14960
14961 irix5* | irix6* | nonstopux*)
14962   case $LD in
14963   *-32|*"-32 ") libmagic=32-bit;;
14964   *-n32|*"-n32 ") libmagic=N32;;
14965   *-64|*"-64 ") libmagic=64-bit;;
14966   *) libmagic=never-match;;
14967   esac
14968   lt_cv_deplibs_check_method=pass_all
14969   ;;
14970
14971 # This must be Linux ELF.
14972 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14973   lt_cv_deplibs_check_method=pass_all
14974   ;;
14975
14976 netbsd*)
14977   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14979   else
14980     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14981   fi
14982   ;;
14983
14984 newos6*)
14985   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14986   lt_cv_file_magic_cmd=/usr/bin/file
14987   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14988   ;;
14989
14990 *nto* | *qnx*)
14991   lt_cv_deplibs_check_method=pass_all
14992   ;;
14993
14994 openbsd*)
14995   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14997   else
14998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14999   fi
15000   ;;
15001
15002 osf3* | osf4* | osf5*)
15003   lt_cv_deplibs_check_method=pass_all
15004   ;;
15005
15006 rdos*)
15007   lt_cv_deplibs_check_method=pass_all
15008   ;;
15009
15010 solaris*)
15011   lt_cv_deplibs_check_method=pass_all
15012   ;;
15013
15014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15015   lt_cv_deplibs_check_method=pass_all
15016   ;;
15017
15018 sysv4 | sysv4.3*)
15019   case $host_vendor in
15020   motorola)
15021     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]'
15022     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15023     ;;
15024   ncr)
15025     lt_cv_deplibs_check_method=pass_all
15026     ;;
15027   sequent)
15028     lt_cv_file_magic_cmd='/bin/file'
15029     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15030     ;;
15031   sni)
15032     lt_cv_file_magic_cmd='/bin/file'
15033     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15034     lt_cv_file_magic_test_file=/lib/libc.so
15035     ;;
15036   siemens)
15037     lt_cv_deplibs_check_method=pass_all
15038     ;;
15039   pc)
15040     lt_cv_deplibs_check_method=pass_all
15041     ;;
15042   esac
15043   ;;
15044
15045 tpf*)
15046   lt_cv_deplibs_check_method=pass_all
15047   ;;
15048 esac
15049
15050 fi
15051 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15052 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15053 file_magic_cmd=$lt_cv_file_magic_cmd
15054 deplibs_check_method=$lt_cv_deplibs_check_method
15055 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068 if test -n "$ac_tool_prefix"; then
15069   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15070 set dummy ${ac_tool_prefix}ar; ac_word=$2
15071 echo "$as_me:$LINENO: checking for $ac_word" >&5
15072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15073 if test "${ac_cv_prog_AR+set}" = set; then
15074   echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076   if test -n "$AR"; then
15077   ac_cv_prog_AR="$AR" # Let the user override the test.
15078 else
15079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080 for as_dir in $PATH
15081 do
15082   IFS=$as_save_IFS
15083   test -z "$as_dir" && as_dir=.
15084   for ac_exec_ext in '' $ac_executable_extensions; do
15085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086     ac_cv_prog_AR="${ac_tool_prefix}ar"
15087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088     break 2
15089   fi
15090 done
15091 done
15092
15093 fi
15094 fi
15095 AR=$ac_cv_prog_AR
15096 if test -n "$AR"; then
15097   echo "$as_me:$LINENO: result: $AR" >&5
15098 echo "${ECHO_T}$AR" >&6
15099 else
15100   echo "$as_me:$LINENO: result: no" >&5
15101 echo "${ECHO_T}no" >&6
15102 fi
15103
15104 fi
15105 if test -z "$ac_cv_prog_AR"; then
15106   ac_ct_AR=$AR
15107   # Extract the first word of "ar", so it can be a program name with args.
15108 set dummy ar; ac_word=$2
15109 echo "$as_me:$LINENO: checking for $ac_word" >&5
15110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15111 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   if test -n "$ac_ct_AR"; then
15115   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15116 else
15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15119 do
15120   IFS=$as_save_IFS
15121   test -z "$as_dir" && as_dir=.
15122   for ac_exec_ext in '' $ac_executable_extensions; do
15123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124     ac_cv_prog_ac_ct_AR="ar"
15125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126     break 2
15127   fi
15128 done
15129 done
15130
15131   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15132 fi
15133 fi
15134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15135 if test -n "$ac_ct_AR"; then
15136   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15137 echo "${ECHO_T}$ac_ct_AR" >&6
15138 else
15139   echo "$as_me:$LINENO: result: no" >&5
15140 echo "${ECHO_T}no" >&6
15141 fi
15142
15143   AR=$ac_ct_AR
15144 else
15145   AR="$ac_cv_prog_AR"
15146 fi
15147
15148 test -z "$AR" && AR=ar
15149 test -z "$AR_FLAGS" && AR_FLAGS=cru
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161 if test -n "$ac_tool_prefix"; then
15162   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15163 set dummy ${ac_tool_prefix}strip; ac_word=$2
15164 echo "$as_me:$LINENO: checking for $ac_word" >&5
15165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15166 if test "${ac_cv_prog_STRIP+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   if test -n "$STRIP"; then
15170   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15171 else
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $PATH
15174 do
15175   IFS=$as_save_IFS
15176   test -z "$as_dir" && as_dir=.
15177   for ac_exec_ext in '' $ac_executable_extensions; do
15178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15181     break 2
15182   fi
15183 done
15184 done
15185
15186 fi
15187 fi
15188 STRIP=$ac_cv_prog_STRIP
15189 if test -n "$STRIP"; then
15190   echo "$as_me:$LINENO: result: $STRIP" >&5
15191 echo "${ECHO_T}$STRIP" >&6
15192 else
15193   echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15195 fi
15196
15197 fi
15198 if test -z "$ac_cv_prog_STRIP"; then
15199   ac_ct_STRIP=$STRIP
15200   # Extract the first word of "strip", so it can be a program name with args.
15201 set dummy strip; ac_word=$2
15202 echo "$as_me:$LINENO: checking for $ac_word" >&5
15203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15204 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207   if test -n "$ac_ct_STRIP"; then
15208   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15209 else
15210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15211 for as_dir in $PATH
15212 do
15213   IFS=$as_save_IFS
15214   test -z "$as_dir" && as_dir=.
15215   for ac_exec_ext in '' $ac_executable_extensions; do
15216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15217     ac_cv_prog_ac_ct_STRIP="strip"
15218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15219     break 2
15220   fi
15221 done
15222 done
15223
15224   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15225 fi
15226 fi
15227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15228 if test -n "$ac_ct_STRIP"; then
15229   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15230 echo "${ECHO_T}$ac_ct_STRIP" >&6
15231 else
15232   echo "$as_me:$LINENO: result: no" >&5
15233 echo "${ECHO_T}no" >&6
15234 fi
15235
15236   STRIP=$ac_ct_STRIP
15237 else
15238   STRIP="$ac_cv_prog_STRIP"
15239 fi
15240
15241 test -z "$STRIP" && STRIP=:
15242
15243
15244
15245
15246
15247
15248 if test -n "$ac_tool_prefix"; then
15249   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15251 echo "$as_me:$LINENO: checking for $ac_word" >&5
15252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15253 if test "${ac_cv_prog_RANLIB+set}" = set; then
15254   echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256   if test -n "$RANLIB"; then
15257   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15258 else
15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $PATH
15261 do
15262   IFS=$as_save_IFS
15263   test -z "$as_dir" && as_dir=.
15264   for ac_exec_ext in '' $ac_executable_extensions; do
15265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15268     break 2
15269   fi
15270 done
15271 done
15272
15273 fi
15274 fi
15275 RANLIB=$ac_cv_prog_RANLIB
15276 if test -n "$RANLIB"; then
15277   echo "$as_me:$LINENO: result: $RANLIB" >&5
15278 echo "${ECHO_T}$RANLIB" >&6
15279 else
15280   echo "$as_me:$LINENO: result: no" >&5
15281 echo "${ECHO_T}no" >&6
15282 fi
15283
15284 fi
15285 if test -z "$ac_cv_prog_RANLIB"; then
15286   ac_ct_RANLIB=$RANLIB
15287   # Extract the first word of "ranlib", so it can be a program name with args.
15288 set dummy ranlib; ac_word=$2
15289 echo "$as_me:$LINENO: checking for $ac_word" >&5
15290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   if test -n "$ac_ct_RANLIB"; then
15295   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15296 else
15297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298 for as_dir in $PATH
15299 do
15300   IFS=$as_save_IFS
15301   test -z "$as_dir" && as_dir=.
15302   for ac_exec_ext in '' $ac_executable_extensions; do
15303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15304     ac_cv_prog_ac_ct_RANLIB="ranlib"
15305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15306     break 2
15307   fi
15308 done
15309 done
15310
15311   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15312 fi
15313 fi
15314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15315 if test -n "$ac_ct_RANLIB"; then
15316   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15317 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15318 else
15319   echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6
15321 fi
15322
15323   RANLIB=$ac_ct_RANLIB
15324 else
15325   RANLIB="$ac_cv_prog_RANLIB"
15326 fi
15327
15328 test -z "$RANLIB" && RANLIB=:
15329
15330
15331
15332
15333
15334
15335 # Determine commands to create old-style static archives.
15336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15337 old_postinstall_cmds='chmod 644 $oldlib'
15338 old_postuninstall_cmds=
15339
15340 if test -n "$RANLIB"; then
15341   case $host_os in
15342   openbsd*)
15343     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15344     ;;
15345   *)
15346     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15347     ;;
15348   esac
15349   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15350 fi
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385 # If no C compiler was specified, use CC.
15386 LTCC=${LTCC-"$CC"}
15387
15388 # If no C compiler flags were specified, use CFLAGS.
15389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15390
15391 # Allow CC to be a program name with arguments.
15392 compiler=$CC
15393
15394
15395 # Check for command to grab the raw symbol name followed by C symbol from nm.
15396 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15397 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15398 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401
15402 # These are sane defaults that work on at least a few old systems.
15403 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15404
15405 # Character class describing NM global symbol codes.
15406 symcode='[BCDEGRST]'
15407
15408 # Regexp to match symbols that can be accessed directly from C.
15409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15410
15411 # Define system-specific variables.
15412 case $host_os in
15413 aix*)
15414   symcode='[BCDT]'
15415   ;;
15416 cygwin* | mingw* | pw32* | cegcc*)
15417   symcode='[ABCDGISTW]'
15418   ;;
15419 hpux*)
15420   if test "$host_cpu" = ia64; then
15421     symcode='[ABCDEGRST]'
15422   fi
15423   ;;
15424 irix* | nonstopux*)
15425   symcode='[BCDEGRST]'
15426   ;;
15427 osf*)
15428   symcode='[BCDEGQRST]'
15429   ;;
15430 solaris*)
15431   symcode='[BDRT]'
15432   ;;
15433 sco3.2v5*)
15434   symcode='[DT]'
15435   ;;
15436 sysv4.2uw2*)
15437   symcode='[DT]'
15438   ;;
15439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15440   symcode='[ABDT]'
15441   ;;
15442 sysv4)
15443   symcode='[DFNSTU]'
15444   ;;
15445 esac
15446
15447 # If we're using GNU nm, then use its standard symbol codes.
15448 case `$NM -V 2>&1` in
15449 *GNU* | *'with BFD'*)
15450   symcode='[ABCDGIRSTW]' ;;
15451 esac
15452
15453 # Transform an extracted symbol line into a proper C declaration.
15454 # Some systems (esp. on ia64) link data and code symbols differently,
15455 # so use this general approach.
15456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15457
15458 # Transform an extracted symbol line into symbol name and symbol address
15459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15460 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
15461
15462 # Handle CRLF in mingw tool chain
15463 opt_cr=
15464 case $build_os in
15465 mingw*)
15466   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15467   ;;
15468 esac
15469
15470 # Try without a prefix underscore, then with it.
15471 for ac_symprfx in "" "_"; do
15472
15473   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15474   symxfrm="\\1 $ac_symprfx\\2 \\2"
15475
15476   # Write the raw and C identifiers.
15477   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15478     # Fake it for dumpbin and say T for any non-static function
15479     # and D for any global variable.
15480     # Also find C++ and __fastcall symbols from MSVC++,
15481     # which start with @ or ?.
15482     lt_cv_sys_global_symbol_pipe="$AWK '"\
15483 "     {last_section=section; section=\$ 3};"\
15484 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15485 "     \$ 0!~/External *\|/{next};"\
15486 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15487 "     {if(hide[section]) next};"\
15488 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15489 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15490 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15491 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15492 "     ' prfx=^$ac_symprfx"
15493   else
15494     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15495   fi
15496
15497   # Check to see that the pipe works correctly.
15498   pipe_works=no
15499
15500   rm -f conftest*
15501   cat > conftest.$ac_ext <<_LT_EOF
15502 #ifdef __cplusplus
15503 extern "C" {
15504 #endif
15505 char nm_test_var;
15506 void nm_test_func(void);
15507 void nm_test_func(void){}
15508 #ifdef __cplusplus
15509 }
15510 #endif
15511 int main(){nm_test_var='a';nm_test_func();return(0);}
15512 _LT_EOF
15513
15514   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515   (eval $ac_compile) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; then
15519     # Now try to grab the symbols.
15520     nlist=conftest.nm
15521     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15522   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } && test -s "$nlist"; then
15526       # Try sorting and uniquifying the output.
15527       if sort "$nlist" | uniq > "$nlist"T; then
15528         mv -f "$nlist"T "$nlist"
15529       else
15530         rm -f "$nlist"T
15531       fi
15532
15533       # Make sure that we snagged all the symbols we need.
15534       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15535         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15536           cat <<_LT_EOF > conftest.$ac_ext
15537 #ifdef __cplusplus
15538 extern "C" {
15539 #endif
15540
15541 _LT_EOF
15542           # Now generate the symbol file.
15543           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15544
15545           cat <<_LT_EOF >> conftest.$ac_ext
15546
15547 /* The mapping between symbol names and symbols.  */
15548 const struct {
15549   const char *name;
15550   void       *address;
15551 }
15552 lt__PROGRAM__LTX_preloaded_symbols[] =
15553 {
15554   { "@PROGRAM@", (void *) 0 },
15555 _LT_EOF
15556           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15557           cat <<\_LT_EOF >> conftest.$ac_ext
15558   {0, (void *) 0}
15559 };
15560
15561 /* This works around a problem in FreeBSD linker */
15562 #ifdef FREEBSD_WORKAROUND
15563 static const void *lt_preloaded_setup() {
15564   return lt__PROGRAM__LTX_preloaded_symbols;
15565 }
15566 #endif
15567
15568 #ifdef __cplusplus
15569 }
15570 #endif
15571 _LT_EOF
15572           # Now try linking the two files.
15573           mv conftest.$ac_objext conftstm.$ac_objext
15574           lt_save_LIBS="$LIBS"
15575           lt_save_CFLAGS="$CFLAGS"
15576           LIBS="conftstm.$ac_objext"
15577           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15578           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579   (eval $ac_link) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15583             pipe_works=yes
15584           fi
15585           LIBS="$lt_save_LIBS"
15586           CFLAGS="$lt_save_CFLAGS"
15587         else
15588           echo "cannot find nm_test_func in $nlist" >&5
15589         fi
15590       else
15591         echo "cannot find nm_test_var in $nlist" >&5
15592       fi
15593     else
15594       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15595     fi
15596   else
15597     echo "$progname: failed program was:" >&5
15598     cat conftest.$ac_ext >&5
15599   fi
15600   rm -rf conftest* conftst*
15601
15602   # Do not use the global_symbol_pipe unless it works.
15603   if test "$pipe_works" = yes; then
15604     break
15605   else
15606     lt_cv_sys_global_symbol_pipe=
15607   fi
15608 done
15609
15610 fi
15611
15612 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15613   lt_cv_sys_global_symbol_to_cdecl=
15614 fi
15615 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15616   echo "$as_me:$LINENO: result: failed" >&5
15617 echo "${ECHO_T}failed" >&6
15618 else
15619   echo "$as_me:$LINENO: result: ok" >&5
15620 echo "${ECHO_T}ok" >&6
15621 fi
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15645 if test "${enable_libtool_lock+set}" = set; then
15646   enableval="$enable_libtool_lock"
15647
15648 fi;
15649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15650
15651 # Some flags need to be propagated to the compiler or linker for good
15652 # libtool support.
15653 case $host in
15654 ia64-*-hpux*)
15655   # Find out which ABI we are using.
15656   echo 'int i;' > conftest.$ac_ext
15657   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658   (eval $ac_compile) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; then
15662     case `/usr/bin/file conftest.$ac_objext` in
15663       *ELF-32*)
15664         HPUX_IA64_MODE="32"
15665         ;;
15666       *ELF-64*)
15667         HPUX_IA64_MODE="64"
15668         ;;
15669     esac
15670   fi
15671   rm -rf conftest*
15672   ;;
15673 *-*-irix6*)
15674   # Find out which ABI we are using.
15675   echo '#line 15675 "configure"' > conftest.$ac_ext
15676   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677   (eval $ac_compile) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); }; then
15681     if test "$lt_cv_prog_gnu_ld" = yes; then
15682       case `/usr/bin/file conftest.$ac_objext` in
15683         *32-bit*)
15684           LD="${LD-ld} -melf32bsmip"
15685           ;;
15686         *N32*)
15687           LD="${LD-ld} -melf32bmipn32"
15688           ;;
15689         *64-bit*)
15690           LD="${LD-ld} -melf64bmip"
15691         ;;
15692       esac
15693     else
15694       case `/usr/bin/file conftest.$ac_objext` in
15695         *32-bit*)
15696           LD="${LD-ld} -32"
15697           ;;
15698         *N32*)
15699           LD="${LD-ld} -n32"
15700           ;;
15701         *64-bit*)
15702           LD="${LD-ld} -64"
15703           ;;
15704       esac
15705     fi
15706   fi
15707   rm -rf conftest*
15708   ;;
15709
15710 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15711 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15712   # Find out which ABI we are using.
15713   echo 'int i;' > conftest.$ac_ext
15714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715   (eval $ac_compile) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; then
15719     case `/usr/bin/file conftest.o` in
15720       *32-bit*)
15721         case $host in
15722           x86_64-*kfreebsd*-gnu)
15723             LD="${LD-ld} -m elf_i386_fbsd"
15724             ;;
15725           x86_64-*linux*)
15726             LD="${LD-ld} -m elf_i386"
15727             ;;
15728           ppc64-*linux*|powerpc64-*linux*)
15729             LD="${LD-ld} -m elf32ppclinux"
15730             ;;
15731           s390x-*linux*)
15732             LD="${LD-ld} -m elf_s390"
15733             ;;
15734           sparc64-*linux*)
15735             LD="${LD-ld} -m elf32_sparc"
15736             ;;
15737         esac
15738         ;;
15739       *64-bit*)
15740         case $host in
15741           x86_64-*kfreebsd*-gnu)
15742             LD="${LD-ld} -m elf_x86_64_fbsd"
15743             ;;
15744           x86_64-*linux*)
15745             LD="${LD-ld} -m elf_x86_64"
15746             ;;
15747           ppc*-*linux*|powerpc*-*linux*)
15748             LD="${LD-ld} -m elf64ppc"
15749             ;;
15750           s390*-*linux*|s390*-*tpf*)
15751             LD="${LD-ld} -m elf64_s390"
15752             ;;
15753           sparc*-*linux*)
15754             LD="${LD-ld} -m elf64_sparc"
15755             ;;
15756         esac
15757         ;;
15758     esac
15759   fi
15760   rm -rf conftest*
15761   ;;
15762
15763 *-*-sco3.2v5*)
15764   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15765   SAVE_CFLAGS="$CFLAGS"
15766   CFLAGS="$CFLAGS -belf"
15767   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15768 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15769 if test "${lt_cv_cc_needs_belf+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   ac_ext=c
15773 ac_cpp='$CPP $CPPFLAGS'
15774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15777
15778      cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784
15785 int
15786 main ()
15787 {
15788
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795   (eval $ac_link) 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -z "$ac_c_werror_flag"
15803                          || test ! -s conftest.err'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; } &&
15809          { ac_try='test -s conftest$ac_exeext'
15810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811   (eval $ac_try) 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   lt_cv_cc_needs_belf=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 lt_cv_cc_needs_belf=no
15821 fi
15822 rm -f conftest.err conftest.$ac_objext \
15823       conftest$ac_exeext conftest.$ac_ext
15824      ac_ext=c
15825 ac_cpp='$CPP $CPPFLAGS'
15826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15829
15830 fi
15831 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15832 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15833   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15834     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15835     CFLAGS="$SAVE_CFLAGS"
15836   fi
15837   ;;
15838 sparc*-*solaris*)
15839   # Find out which ABI we are using.
15840   echo 'int i;' > conftest.$ac_ext
15841   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842   (eval $ac_compile) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; then
15846     case `/usr/bin/file conftest.o` in
15847     *64-bit*)
15848       case $lt_cv_prog_gnu_ld in
15849       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15850       *)
15851         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15852           LD="${LD-ld} -64"
15853         fi
15854         ;;
15855       esac
15856       ;;
15857     esac
15858   fi
15859   rm -rf conftest*
15860   ;;
15861 esac
15862
15863 need_locks="$enable_libtool_lock"
15864
15865
15866   case $host_os in
15867     rhapsody* | darwin*)
15868     if test -n "$ac_tool_prefix"; then
15869   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15870 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15871 echo "$as_me:$LINENO: checking for $ac_word" >&5
15872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15873 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   if test -n "$DSYMUTIL"; then
15877   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15878 else
15879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15880 for as_dir in $PATH
15881 do
15882   IFS=$as_save_IFS
15883   test -z "$as_dir" && as_dir=.
15884   for ac_exec_ext in '' $ac_executable_extensions; do
15885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15886     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15888     break 2
15889   fi
15890 done
15891 done
15892
15893 fi
15894 fi
15895 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15896 if test -n "$DSYMUTIL"; then
15897   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15898 echo "${ECHO_T}$DSYMUTIL" >&6
15899 else
15900   echo "$as_me:$LINENO: result: no" >&5
15901 echo "${ECHO_T}no" >&6
15902 fi
15903
15904 fi
15905 if test -z "$ac_cv_prog_DSYMUTIL"; then
15906   ac_ct_DSYMUTIL=$DSYMUTIL
15907   # Extract the first word of "dsymutil", so it can be a program name with args.
15908 set dummy dsymutil; ac_word=$2
15909 echo "$as_me:$LINENO: checking for $ac_word" >&5
15910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15911 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15912   echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914   if test -n "$ac_ct_DSYMUTIL"; then
15915   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15916 else
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15919 do
15920   IFS=$as_save_IFS
15921   test -z "$as_dir" && as_dir=.
15922   for ac_exec_ext in '' $ac_executable_extensions; do
15923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15926     break 2
15927   fi
15928 done
15929 done
15930
15931   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15932 fi
15933 fi
15934 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15935 if test -n "$ac_ct_DSYMUTIL"; then
15936   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15937 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15938 else
15939   echo "$as_me:$LINENO: result: no" >&5
15940 echo "${ECHO_T}no" >&6
15941 fi
15942
15943   DSYMUTIL=$ac_ct_DSYMUTIL
15944 else
15945   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15946 fi
15947
15948     if test -n "$ac_tool_prefix"; then
15949   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15951 echo "$as_me:$LINENO: checking for $ac_word" >&5
15952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15953 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15954   echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956   if test -n "$NMEDIT"; then
15957   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15958 else
15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960 for as_dir in $PATH
15961 do
15962   IFS=$as_save_IFS
15963   test -z "$as_dir" && as_dir=.
15964   for ac_exec_ext in '' $ac_executable_extensions; do
15965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15966     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15968     break 2
15969   fi
15970 done
15971 done
15972
15973 fi
15974 fi
15975 NMEDIT=$ac_cv_prog_NMEDIT
15976 if test -n "$NMEDIT"; then
15977   echo "$as_me:$LINENO: result: $NMEDIT" >&5
15978 echo "${ECHO_T}$NMEDIT" >&6
15979 else
15980   echo "$as_me:$LINENO: result: no" >&5
15981 echo "${ECHO_T}no" >&6
15982 fi
15983
15984 fi
15985 if test -z "$ac_cv_prog_NMEDIT"; then
15986   ac_ct_NMEDIT=$NMEDIT
15987   # Extract the first word of "nmedit", so it can be a program name with args.
15988 set dummy nmedit; ac_word=$2
15989 echo "$as_me:$LINENO: checking for $ac_word" >&5
15990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15991 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15992   echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994   if test -n "$ac_ct_NMEDIT"; then
15995   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15996 else
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
15999 do
16000   IFS=$as_save_IFS
16001   test -z "$as_dir" && as_dir=.
16002   for ac_exec_ext in '' $ac_executable_extensions; do
16003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004     ac_cv_prog_ac_ct_NMEDIT="nmedit"
16005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16006     break 2
16007   fi
16008 done
16009 done
16010
16011   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
16012 fi
16013 fi
16014 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16015 if test -n "$ac_ct_NMEDIT"; then
16016   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
16017 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
16018 else
16019   echo "$as_me:$LINENO: result: no" >&5
16020 echo "${ECHO_T}no" >&6
16021 fi
16022
16023   NMEDIT=$ac_ct_NMEDIT
16024 else
16025   NMEDIT="$ac_cv_prog_NMEDIT"
16026 fi
16027
16028     if test -n "$ac_tool_prefix"; then
16029   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16031 echo "$as_me:$LINENO: checking for $ac_word" >&5
16032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16033 if test "${ac_cv_prog_LIPO+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   if test -n "$LIPO"; then
16037   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16038 else
16039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16040 for as_dir in $PATH
16041 do
16042   IFS=$as_save_IFS
16043   test -z "$as_dir" && as_dir=.
16044   for ac_exec_ext in '' $ac_executable_extensions; do
16045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16046     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16048     break 2
16049   fi
16050 done
16051 done
16052
16053 fi
16054 fi
16055 LIPO=$ac_cv_prog_LIPO
16056 if test -n "$LIPO"; then
16057   echo "$as_me:$LINENO: result: $LIPO" >&5
16058 echo "${ECHO_T}$LIPO" >&6
16059 else
16060   echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16062 fi
16063
16064 fi
16065 if test -z "$ac_cv_prog_LIPO"; then
16066   ac_ct_LIPO=$LIPO
16067   # Extract the first word of "lipo", so it can be a program name with args.
16068 set dummy lipo; ac_word=$2
16069 echo "$as_me:$LINENO: checking for $ac_word" >&5
16070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16071 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   if test -n "$ac_ct_LIPO"; then
16075   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16076 else
16077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16078 for as_dir in $PATH
16079 do
16080   IFS=$as_save_IFS
16081   test -z "$as_dir" && as_dir=.
16082   for ac_exec_ext in '' $ac_executable_extensions; do
16083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16084     ac_cv_prog_ac_ct_LIPO="lipo"
16085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16086     break 2
16087   fi
16088 done
16089 done
16090
16091   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
16092 fi
16093 fi
16094 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16095 if test -n "$ac_ct_LIPO"; then
16096   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
16097 echo "${ECHO_T}$ac_ct_LIPO" >&6
16098 else
16099   echo "$as_me:$LINENO: result: no" >&5
16100 echo "${ECHO_T}no" >&6
16101 fi
16102
16103   LIPO=$ac_ct_LIPO
16104 else
16105   LIPO="$ac_cv_prog_LIPO"
16106 fi
16107
16108     if test -n "$ac_tool_prefix"; then
16109   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16110 set dummy ${ac_tool_prefix}otool; ac_word=$2
16111 echo "$as_me:$LINENO: checking for $ac_word" >&5
16112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16113 if test "${ac_cv_prog_OTOOL+set}" = set; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   if test -n "$OTOOL"; then
16117   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16118 else
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16121 do
16122   IFS=$as_save_IFS
16123   test -z "$as_dir" && as_dir=.
16124   for ac_exec_ext in '' $ac_executable_extensions; do
16125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16128     break 2
16129   fi
16130 done
16131 done
16132
16133 fi
16134 fi
16135 OTOOL=$ac_cv_prog_OTOOL
16136 if test -n "$OTOOL"; then
16137   echo "$as_me:$LINENO: result: $OTOOL" >&5
16138 echo "${ECHO_T}$OTOOL" >&6
16139 else
16140   echo "$as_me:$LINENO: result: no" >&5
16141 echo "${ECHO_T}no" >&6
16142 fi
16143
16144 fi
16145 if test -z "$ac_cv_prog_OTOOL"; then
16146   ac_ct_OTOOL=$OTOOL
16147   # Extract the first word of "otool", so it can be a program name with args.
16148 set dummy otool; ac_word=$2
16149 echo "$as_me:$LINENO: checking for $ac_word" >&5
16150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16151 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   if test -n "$ac_ct_OTOOL"; then
16155   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16156 else
16157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16158 for as_dir in $PATH
16159 do
16160   IFS=$as_save_IFS
16161   test -z "$as_dir" && as_dir=.
16162   for ac_exec_ext in '' $ac_executable_extensions; do
16163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16164     ac_cv_prog_ac_ct_OTOOL="otool"
16165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16166     break 2
16167   fi
16168 done
16169 done
16170
16171   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16172 fi
16173 fi
16174 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16175 if test -n "$ac_ct_OTOOL"; then
16176   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16177 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16178 else
16179   echo "$as_me:$LINENO: result: no" >&5
16180 echo "${ECHO_T}no" >&6
16181 fi
16182
16183   OTOOL=$ac_ct_OTOOL
16184 else
16185   OTOOL="$ac_cv_prog_OTOOL"
16186 fi
16187
16188     if test -n "$ac_tool_prefix"; then
16189   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16190 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16191 echo "$as_me:$LINENO: checking for $ac_word" >&5
16192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16193 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16194   echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196   if test -n "$OTOOL64"; then
16197   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16198 else
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200 for as_dir in $PATH
16201 do
16202   IFS=$as_save_IFS
16203   test -z "$as_dir" && as_dir=.
16204   for ac_exec_ext in '' $ac_executable_extensions; do
16205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16208     break 2
16209   fi
16210 done
16211 done
16212
16213 fi
16214 fi
16215 OTOOL64=$ac_cv_prog_OTOOL64
16216 if test -n "$OTOOL64"; then
16217   echo "$as_me:$LINENO: result: $OTOOL64" >&5
16218 echo "${ECHO_T}$OTOOL64" >&6
16219 else
16220   echo "$as_me:$LINENO: result: no" >&5
16221 echo "${ECHO_T}no" >&6
16222 fi
16223
16224 fi
16225 if test -z "$ac_cv_prog_OTOOL64"; then
16226   ac_ct_OTOOL64=$OTOOL64
16227   # Extract the first word of "otool64", so it can be a program name with args.
16228 set dummy otool64; ac_word=$2
16229 echo "$as_me:$LINENO: checking for $ac_word" >&5
16230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16232   echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234   if test -n "$ac_ct_OTOOL64"; then
16235   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16236 else
16237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238 for as_dir in $PATH
16239 do
16240   IFS=$as_save_IFS
16241   test -z "$as_dir" && as_dir=.
16242   for ac_exec_ext in '' $ac_executable_extensions; do
16243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16244     ac_cv_prog_ac_ct_OTOOL64="otool64"
16245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16246     break 2
16247   fi
16248 done
16249 done
16250
16251   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16252 fi
16253 fi
16254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16255 if test -n "$ac_ct_OTOOL64"; then
16256   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16257 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16258 else
16259   echo "$as_me:$LINENO: result: no" >&5
16260 echo "${ECHO_T}no" >&6
16261 fi
16262
16263   OTOOL64=$ac_ct_OTOOL64
16264 else
16265   OTOOL64="$ac_cv_prog_OTOOL64"
16266 fi
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16295 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16296 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   lt_cv_apple_cc_single_mod=no
16300       if test -z "${LT_MULTI_MODULE}"; then
16301         # By default we will add the -single_module flag. You can override
16302         # by either setting the environment variable LT_MULTI_MODULE
16303         # non-empty at configure time, or by adding -multi_module to the
16304         # link flags.
16305         rm -rf libconftest.dylib*
16306         echo "int foo(void){return 1;}" > conftest.c
16307         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16308 -dynamiclib -Wl,-single_module conftest.c" >&5
16309         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16310           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16311         _lt_result=$?
16312         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16313           lt_cv_apple_cc_single_mod=yes
16314         else
16315           cat conftest.err >&5
16316         fi
16317         rm -rf libconftest.dylib*
16318         rm -f conftest.*
16319       fi
16320 fi
16321 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16322 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16323     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16324 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16325 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   lt_cv_ld_exported_symbols_list=no
16329       save_LDFLAGS=$LDFLAGS
16330       echo "_main" > conftest.sym
16331       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16332       cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338
16339 int
16340 main ()
16341 {
16342
16343   ;
16344   return 0;
16345 }
16346 _ACEOF
16347 rm -f conftest.$ac_objext conftest$ac_exeext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349   (eval $ac_link) 2>conftest.er1
16350   ac_status=$?
16351   grep -v '^ *+' conftest.er1 >conftest.err
16352   rm -f conftest.er1
16353   cat conftest.err >&5
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -z "$ac_c_werror_flag"
16357                          || test ! -s conftest.err'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; } &&
16363          { ac_try='test -s conftest$ac_exeext'
16364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365   (eval $ac_try) 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   lt_cv_ld_exported_symbols_list=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 lt_cv_ld_exported_symbols_list=no
16375 fi
16376 rm -f conftest.err conftest.$ac_objext \
16377       conftest$ac_exeext conftest.$ac_ext
16378         LDFLAGS="$save_LDFLAGS"
16379
16380 fi
16381 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16382 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16383     case $host_os in
16384     rhapsody* | darwin1.[012])
16385       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16386     darwin1.*)
16387       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16388     darwin*) # darwin 5.x on
16389       # if running on 10.5 or later, the deployment target defaults
16390       # to the OS version, if on x86, and 10.4, the deployment
16391       # target defaults to 10.4. Don't you love it?
16392       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16393         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16394           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16395         10.[012]*)
16396           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16397         10.*)
16398           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16399       esac
16400     ;;
16401   esac
16402     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16403       _lt_dar_single_mod='$single_module'
16404     fi
16405     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16406       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16407     else
16408       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16409     fi
16410     if test "$DSYMUTIL" != ":"; then
16411       _lt_dsymutil='~$DSYMUTIL $lib || :'
16412     else
16413       _lt_dsymutil=
16414     fi
16415     ;;
16416   esac
16417
16418
16419 for ac_header in dlfcn.h
16420 do
16421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 echo "$as_me:$LINENO: checking for $ac_header" >&5
16423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 #include <$ac_header>
16434 _ACEOF
16435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16437   ac_status=$?
16438   grep -v '^ *+' conftest.er1 >conftest.err
16439   rm -f conftest.er1
16440   cat conftest.err >&5
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } >/dev/null; then
16443   if test -s conftest.err; then
16444     ac_cpp_err=$ac_c_preproc_warn_flag
16445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16446   else
16447     ac_cpp_err=
16448   fi
16449 else
16450   ac_cpp_err=yes
16451 fi
16452 if test -z "$ac_cpp_err"; then
16453   eval "$as_ac_Header=yes"
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458   eval "$as_ac_Header=no"
16459 fi
16460 rm -f conftest.err conftest.$ac_ext
16461 fi
16462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16465   cat >>confdefs.h <<_ACEOF
16466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16467 _ACEOF
16468
16469 fi
16470 done
16471
16472
16473
16474 # Set options
16475
16476
16477
16478         enable_dlopen=no
16479
16480
16481   enable_win32_dll=no
16482
16483
16484             # Check whether --enable-shared or --disable-shared was given.
16485 if test "${enable_shared+set}" = set; then
16486   enableval="$enable_shared"
16487   p=${PACKAGE-default}
16488     case $enableval in
16489     yes) enable_shared=yes ;;
16490     no) enable_shared=no ;;
16491     *)
16492       enable_shared=no
16493       # Look at the argument we got.  We use all the common list separators.
16494       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16495       for pkg in $enableval; do
16496         IFS="$lt_save_ifs"
16497         if test "X$pkg" = "X$p"; then
16498           enable_shared=yes
16499         fi
16500       done
16501       IFS="$lt_save_ifs"
16502       ;;
16503     esac
16504 else
16505   enable_shared=yes
16506 fi;
16507
16508
16509
16510
16511
16512
16513
16514
16515   # Check whether --enable-static or --disable-static was given.
16516 if test "${enable_static+set}" = set; then
16517   enableval="$enable_static"
16518   p=${PACKAGE-default}
16519     case $enableval in
16520     yes) enable_static=yes ;;
16521     no) enable_static=no ;;
16522     *)
16523      enable_static=no
16524       # Look at the argument we got.  We use all the common list separators.
16525       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16526       for pkg in $enableval; do
16527         IFS="$lt_save_ifs"
16528         if test "X$pkg" = "X$p"; then
16529           enable_static=yes
16530         fi
16531       done
16532       IFS="$lt_save_ifs"
16533       ;;
16534     esac
16535 else
16536   enable_static=yes
16537 fi;
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547 # Check whether --with-pic or --without-pic was given.
16548 if test "${with_pic+set}" = set; then
16549   withval="$with_pic"
16550   pic_mode="$withval"
16551 else
16552   pic_mode=default
16553 fi;
16554
16555 test -z "$pic_mode" && pic_mode=default
16556
16557
16558
16559
16560
16561
16562
16563   # Check whether --enable-fast-install or --disable-fast-install was given.
16564 if test "${enable_fast_install+set}" = set; then
16565   enableval="$enable_fast_install"
16566   p=${PACKAGE-default}
16567     case $enableval in
16568     yes) enable_fast_install=yes ;;
16569     no) enable_fast_install=no ;;
16570     *)
16571       enable_fast_install=no
16572       # Look at the argument we got.  We use all the common list separators.
16573       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16574       for pkg in $enableval; do
16575         IFS="$lt_save_ifs"
16576         if test "X$pkg" = "X$p"; then
16577           enable_fast_install=yes
16578         fi
16579       done
16580       IFS="$lt_save_ifs"
16581       ;;
16582     esac
16583 else
16584   enable_fast_install=yes
16585 fi;
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596 # This can be used to rebuild libtool when needed
16597 LIBTOOL_DEPS="$ltmain"
16598
16599 # Always use our own libtool.
16600 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626 test -z "$LN_S" && LN_S="ln -s"
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641 if test -n "${ZSH_VERSION+set}" ; then
16642    setopt NO_GLOB_SUBST
16643 fi
16644
16645 echo "$as_me:$LINENO: checking for objdir" >&5
16646 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16647 if test "${lt_cv_objdir+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   rm -f .libs 2>/dev/null
16651 mkdir .libs 2>/dev/null
16652 if test -d .libs; then
16653   lt_cv_objdir=.libs
16654 else
16655   # MS-DOS does not allow filenames that begin with a dot.
16656   lt_cv_objdir=_libs
16657 fi
16658 rmdir .libs 2>/dev/null
16659 fi
16660 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16661 echo "${ECHO_T}$lt_cv_objdir" >&6
16662 objdir=$lt_cv_objdir
16663
16664
16665
16666
16667
16668 cat >>confdefs.h <<_ACEOF
16669 #define LT_OBJDIR "$lt_cv_objdir/"
16670 _ACEOF
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688 case $host_os in
16689 aix3*)
16690   # AIX sometimes has problems with the GCC collect2 program.  For some
16691   # reason, if we set the COLLECT_NAMES environment variable, the problems
16692   # vanish in a puff of smoke.
16693   if test "X${COLLECT_NAMES+set}" != Xset; then
16694     COLLECT_NAMES=
16695     export COLLECT_NAMES
16696   fi
16697   ;;
16698 esac
16699
16700 # Sed substitution that helps us do robust quoting.  It backslashifies
16701 # metacharacters that are still active within double-quoted strings.
16702 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16703
16704 # Same as above, but do not quote variable references.
16705 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16706
16707 # Sed substitution to delay expansion of an escaped shell variable in a
16708 # double_quote_subst'ed string.
16709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16710
16711 # Sed substitution to delay expansion of an escaped single quote.
16712 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16713
16714 # Sed substitution to avoid accidental globbing in evaled expressions
16715 no_glob_subst='s/\*/\\\*/g'
16716
16717 # Global variables:
16718 ofile=libtool
16719 can_build_shared=yes
16720
16721 # All known linkers require a `.a' archive for static linking (except MSVC,
16722 # which needs '.lib').
16723 libext=a
16724
16725 with_gnu_ld="$lt_cv_prog_gnu_ld"
16726
16727 old_CC="$CC"
16728 old_CFLAGS="$CFLAGS"
16729
16730 # Set sane defaults for various variables
16731 test -z "$CC" && CC=cc
16732 test -z "$LTCC" && LTCC=$CC
16733 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16734 test -z "$LD" && LD=ld
16735 test -z "$ac_objext" && ac_objext=o
16736
16737 for cc_temp in $compiler""; do
16738   case $cc_temp in
16739     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16740     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16741     \-*) ;;
16742     *) break;;
16743   esac
16744 done
16745 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16746
16747
16748 # Only perform the check for file, if the check method requires it
16749 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16750 case $deplibs_check_method in
16751 file_magic*)
16752   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16753     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16754 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16755 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   case $MAGIC_CMD in
16759 [\\/*] |  ?:[\\/]*)
16760   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16761   ;;
16762 *)
16763   lt_save_MAGIC_CMD="$MAGIC_CMD"
16764   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16765   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16766   for ac_dir in $ac_dummy; do
16767     IFS="$lt_save_ifs"
16768     test -z "$ac_dir" && ac_dir=.
16769     if test -f $ac_dir/${ac_tool_prefix}file; then
16770       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16771       if test -n "$file_magic_test_file"; then
16772         case $deplibs_check_method in
16773         "file_magic "*)
16774           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16775           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16776           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16777             $EGREP "$file_magic_regex" > /dev/null; then
16778             :
16779           else
16780             cat <<_LT_EOF 1>&2
16781
16782 *** Warning: the command libtool uses to detect shared libraries,
16783 *** $file_magic_cmd, produces output that libtool cannot recognize.
16784 *** The result is that libtool may fail to recognize shared libraries
16785 *** as such.  This will affect the creation of libtool libraries that
16786 *** depend on shared libraries, but programs linked with such libtool
16787 *** libraries will work regardless of this problem.  Nevertheless, you
16788 *** may want to report the problem to your system manager and/or to
16789 *** bug-libtool@gnu.org
16790
16791 _LT_EOF
16792           fi ;;
16793         esac
16794       fi
16795       break
16796     fi
16797   done
16798   IFS="$lt_save_ifs"
16799   MAGIC_CMD="$lt_save_MAGIC_CMD"
16800   ;;
16801 esac
16802 fi
16803
16804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16805 if test -n "$MAGIC_CMD"; then
16806   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16807 echo "${ECHO_T}$MAGIC_CMD" >&6
16808 else
16809   echo "$as_me:$LINENO: result: no" >&5
16810 echo "${ECHO_T}no" >&6
16811 fi
16812
16813
16814
16815
16816
16817 if test -z "$lt_cv_path_MAGIC_CMD"; then
16818   if test -n "$ac_tool_prefix"; then
16819     echo "$as_me:$LINENO: checking for file" >&5
16820 echo $ECHO_N "checking for file... $ECHO_C" >&6
16821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   case $MAGIC_CMD in
16825 [\\/*] |  ?:[\\/]*)
16826   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16827   ;;
16828 *)
16829   lt_save_MAGIC_CMD="$MAGIC_CMD"
16830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16831   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16832   for ac_dir in $ac_dummy; do
16833     IFS="$lt_save_ifs"
16834     test -z "$ac_dir" && ac_dir=.
16835     if test -f $ac_dir/file; then
16836       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16837       if test -n "$file_magic_test_file"; then
16838         case $deplibs_check_method in
16839         "file_magic "*)
16840           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16841           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16842           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16843             $EGREP "$file_magic_regex" > /dev/null; then
16844             :
16845           else
16846             cat <<_LT_EOF 1>&2
16847
16848 *** Warning: the command libtool uses to detect shared libraries,
16849 *** $file_magic_cmd, produces output that libtool cannot recognize.
16850 *** The result is that libtool may fail to recognize shared libraries
16851 *** as such.  This will affect the creation of libtool libraries that
16852 *** depend on shared libraries, but programs linked with such libtool
16853 *** libraries will work regardless of this problem.  Nevertheless, you
16854 *** may want to report the problem to your system manager and/or to
16855 *** bug-libtool@gnu.org
16856
16857 _LT_EOF
16858           fi ;;
16859         esac
16860       fi
16861       break
16862     fi
16863   done
16864   IFS="$lt_save_ifs"
16865   MAGIC_CMD="$lt_save_MAGIC_CMD"
16866   ;;
16867 esac
16868 fi
16869
16870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16871 if test -n "$MAGIC_CMD"; then
16872   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16873 echo "${ECHO_T}$MAGIC_CMD" >&6
16874 else
16875   echo "$as_me:$LINENO: result: no" >&5
16876 echo "${ECHO_T}no" >&6
16877 fi
16878
16879
16880   else
16881     MAGIC_CMD=:
16882   fi
16883 fi
16884
16885   fi
16886   ;;
16887 esac
16888
16889 # Use C for the default configuration in the libtool script
16890
16891 lt_save_CC="$CC"
16892 ac_ext=c
16893 ac_cpp='$CPP $CPPFLAGS'
16894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16897
16898
16899 # Source file extension for C test sources.
16900 ac_ext=c
16901
16902 # Object file extension for compiled C test sources.
16903 objext=o
16904 objext=$objext
16905
16906 # Code to be used in simple compile tests
16907 lt_simple_compile_test_code="int some_variable = 0;"
16908
16909 # Code to be used in simple link tests
16910 lt_simple_link_test_code='int main(){return(0);}'
16911
16912
16913
16914
16915
16916
16917
16918 # If no C compiler was specified, use CC.
16919 LTCC=${LTCC-"$CC"}
16920
16921 # If no C compiler flags were specified, use CFLAGS.
16922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16923
16924 # Allow CC to be a program name with arguments.
16925 compiler=$CC
16926
16927 # Save the default compiler, since it gets overwritten when the other
16928 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16929 compiler_DEFAULT=$CC
16930
16931 # save warnings/boilerplate of simple test code
16932 ac_outfile=conftest.$ac_objext
16933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16935 _lt_compiler_boilerplate=`cat conftest.err`
16936 $RM conftest*
16937
16938 ac_outfile=conftest.$ac_objext
16939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16941 _lt_linker_boilerplate=`cat conftest.err`
16942 $RM -r conftest*
16943
16944
16945 ## CAVEAT EMPTOR:
16946 ## There is no encapsulation within the following macros, do not change
16947 ## the running order or otherwise move them around unless you know exactly
16948 ## what you are doing...
16949 if test -n "$compiler"; then
16950
16951 lt_prog_compiler_no_builtin_flag=
16952
16953 if test "$GCC" = yes; then
16954   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16955
16956   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16957 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   lt_cv_prog_compiler_rtti_exceptions=no
16962    ac_outfile=conftest.$ac_objext
16963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16964    lt_compiler_flag="-fno-rtti -fno-exceptions"
16965    # Insert the option either (1) after the last *FLAGS variable, or
16966    # (2) before a word containing "conftest.", or (3) at the end.
16967    # Note that $ac_compile itself does not contain backslashes and begins
16968    # with a dollar sign (not a hyphen), so the echo should work correctly.
16969    # The option is referenced via a variable to avoid confusing sed.
16970    lt_compile=`echo "$ac_compile" | $SED \
16971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16973    -e 's:$: $lt_compiler_flag:'`
16974    (eval echo "\"\$as_me:16974: $lt_compile\"" >&5)
16975    (eval "$lt_compile" 2>conftest.err)
16976    ac_status=$?
16977    cat conftest.err >&5
16978    echo "$as_me:16978: \$? = $ac_status" >&5
16979    if (exit $ac_status) && test -s "$ac_outfile"; then
16980      # The compiler can only warn and ignore the option if not recognized
16981      # So say no if there are warnings other than the usual output.
16982      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16983      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16984      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16985        lt_cv_prog_compiler_rtti_exceptions=yes
16986      fi
16987    fi
16988    $RM conftest*
16989
16990 fi
16991 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16992 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16993
16994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16995     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16996 else
16997     :
16998 fi
16999
17000 fi
17001
17002
17003
17004
17005
17006
17007   lt_prog_compiler_wl=
17008 lt_prog_compiler_pic=
17009 lt_prog_compiler_static=
17010
17011 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17013
17014   if test "$GCC" = yes; then
17015     lt_prog_compiler_wl='-Wl,'
17016     lt_prog_compiler_static='-static'
17017
17018     case $host_os in
17019       aix*)
17020       # All AIX code is PIC.
17021       if test "$host_cpu" = ia64; then
17022         # AIX 5 now supports IA64 processor
17023         lt_prog_compiler_static='-Bstatic'
17024       fi
17025       ;;
17026
17027     amigaos*)
17028       case $host_cpu in
17029       powerpc)
17030             # see comment about AmigaOS4 .so support
17031             lt_prog_compiler_pic='-fPIC'
17032         ;;
17033       m68k)
17034             # FIXME: we need at least 68020 code to build shared libraries, but
17035             # adding the `-m68020' flag to GCC prevents building anything better,
17036             # like `-m68040'.
17037             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17038         ;;
17039       esac
17040       ;;
17041
17042     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17043       # PIC is the default for these OSes.
17044       ;;
17045
17046     mingw* | cygwin* | pw32* | os2* | cegcc*)
17047       # This hack is so that the source file can tell whether it is being
17048       # built for inclusion in a dll (and should export symbols for example).
17049       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17050       # (--disable-auto-import) libraries
17051       lt_prog_compiler_pic='-DDLL_EXPORT'
17052       ;;
17053
17054     darwin* | rhapsody*)
17055       # PIC is the default on this platform
17056       # Common symbols not allowed in MH_DYLIB files
17057       lt_prog_compiler_pic='-fno-common'
17058       ;;
17059
17060     hpux*)
17061       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17062       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17063       # sets the default TLS model and affects inlining.
17064       case $host_cpu in
17065       hppa*64*)
17066         # +Z the default
17067         ;;
17068       *)
17069         lt_prog_compiler_pic='-fPIC'
17070         ;;
17071       esac
17072       ;;
17073
17074     interix[3-9]*)
17075       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17076       # Instead, we relocate shared libraries at runtime.
17077       ;;
17078
17079     msdosdjgpp*)
17080       # Just because we use GCC doesn't mean we suddenly get shared libraries
17081       # on systems that don't support them.
17082       lt_prog_compiler_can_build_shared=no
17083       enable_shared=no
17084       ;;
17085
17086     *nto* | *qnx*)
17087       # QNX uses GNU C++, but need to define -shared option too, otherwise
17088       # it will coredump.
17089       lt_prog_compiler_pic='-fPIC -shared'
17090       ;;
17091
17092     sysv4*MP*)
17093       if test -d /usr/nec; then
17094         lt_prog_compiler_pic=-Kconform_pic
17095       fi
17096       ;;
17097
17098     *)
17099       lt_prog_compiler_pic='-fPIC'
17100       ;;
17101     esac
17102   else
17103     # PORTME Check for flag to pass linker flags through the system compiler.
17104     case $host_os in
17105     aix*)
17106       lt_prog_compiler_wl='-Wl,'
17107       if test "$host_cpu" = ia64; then
17108         # AIX 5 now supports IA64 processor
17109         lt_prog_compiler_static='-Bstatic'
17110       else
17111         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17112       fi
17113       ;;
17114
17115     mingw* | cygwin* | pw32* | os2* | cegcc*)
17116       # This hack is so that the source file can tell whether it is being
17117       # built for inclusion in a dll (and should export symbols for example).
17118       lt_prog_compiler_pic='-DDLL_EXPORT'
17119       ;;
17120
17121     hpux9* | hpux10* | hpux11*)
17122       lt_prog_compiler_wl='-Wl,'
17123       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17124       # not for PA HP-UX.
17125       case $host_cpu in
17126       hppa*64*|ia64*)
17127         # +Z the default
17128         ;;
17129       *)
17130         lt_prog_compiler_pic='+Z'
17131         ;;
17132       esac
17133       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17134       lt_prog_compiler_static='${wl}-a ${wl}archive'
17135       ;;
17136
17137     irix5* | irix6* | nonstopux*)
17138       lt_prog_compiler_wl='-Wl,'
17139       # PIC (with -KPIC) is the default.
17140       lt_prog_compiler_static='-non_shared'
17141       ;;
17142
17143     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17144       case $cc_basename in
17145       # old Intel for x86_64 which still supported -KPIC.
17146       ecc*)
17147         lt_prog_compiler_wl='-Wl,'
17148         lt_prog_compiler_pic='-KPIC'
17149         lt_prog_compiler_static='-static'
17150         ;;
17151       # icc used to be incompatible with GCC.
17152       # ICC 10 doesn't accept -KPIC any more.
17153       icc* | ifort*)
17154         lt_prog_compiler_wl='-Wl,'
17155         lt_prog_compiler_pic='-fPIC'
17156         lt_prog_compiler_static='-static'
17157         ;;
17158       # Lahey Fortran 8.1.
17159       lf95*)
17160         lt_prog_compiler_wl='-Wl,'
17161         lt_prog_compiler_pic='--shared'
17162         lt_prog_compiler_static='--static'
17163         ;;
17164       pgcc* | pgf77* | pgf90* | pgf95*)
17165         # Portland Group compilers (*not* the Pentium gcc compiler,
17166         # which looks to be a dead project)
17167         lt_prog_compiler_wl='-Wl,'
17168         lt_prog_compiler_pic='-fpic'
17169         lt_prog_compiler_static='-Bstatic'
17170         ;;
17171       ccc*)
17172         lt_prog_compiler_wl='-Wl,'
17173         # All Alpha code is PIC.
17174         lt_prog_compiler_static='-non_shared'
17175         ;;
17176       xl*)
17177         # IBM XL C 8.0/Fortran 10.1 on PPC
17178         lt_prog_compiler_wl='-Wl,'
17179         lt_prog_compiler_pic='-qpic'
17180         lt_prog_compiler_static='-qstaticlink'
17181         ;;
17182       *)
17183         case `$CC -V 2>&1 | sed 5q` in
17184         *Sun\ C*)
17185           # Sun C 5.9
17186           lt_prog_compiler_pic='-KPIC'
17187           lt_prog_compiler_static='-Bstatic'
17188           lt_prog_compiler_wl='-Wl,'
17189           ;;
17190         *Sun\ F*)
17191           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17192           lt_prog_compiler_pic='-KPIC'
17193           lt_prog_compiler_static='-Bstatic'
17194           lt_prog_compiler_wl=''
17195           ;;
17196         esac
17197         ;;
17198       esac
17199       ;;
17200
17201     newsos6)
17202       lt_prog_compiler_pic='-KPIC'
17203       lt_prog_compiler_static='-Bstatic'
17204       ;;
17205
17206     *nto* | *qnx*)
17207       # QNX uses GNU C++, but need to define -shared option too, otherwise
17208       # it will coredump.
17209       lt_prog_compiler_pic='-fPIC -shared'
17210       ;;
17211
17212     osf3* | osf4* | osf5*)
17213       lt_prog_compiler_wl='-Wl,'
17214       # All OSF/1 code is PIC.
17215       lt_prog_compiler_static='-non_shared'
17216       ;;
17217
17218     rdos*)
17219       lt_prog_compiler_static='-non_shared'
17220       ;;
17221
17222     solaris*)
17223       lt_prog_compiler_pic='-KPIC'
17224       lt_prog_compiler_static='-Bstatic'
17225       case $cc_basename in
17226       f77* | f90* | f95*)
17227         lt_prog_compiler_wl='-Qoption ld ';;
17228       *)
17229         lt_prog_compiler_wl='-Wl,';;
17230       esac
17231       ;;
17232
17233     sunos4*)
17234       lt_prog_compiler_wl='-Qoption ld '
17235       lt_prog_compiler_pic='-PIC'
17236       lt_prog_compiler_static='-Bstatic'
17237       ;;
17238
17239     sysv4 | sysv4.2uw2* | sysv4.3*)
17240       lt_prog_compiler_wl='-Wl,'
17241       lt_prog_compiler_pic='-KPIC'
17242       lt_prog_compiler_static='-Bstatic'
17243       ;;
17244
17245     sysv4*MP*)
17246       if test -d /usr/nec ;then
17247         lt_prog_compiler_pic='-Kconform_pic'
17248         lt_prog_compiler_static='-Bstatic'
17249       fi
17250       ;;
17251
17252     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17253       lt_prog_compiler_wl='-Wl,'
17254       lt_prog_compiler_pic='-KPIC'
17255       lt_prog_compiler_static='-Bstatic'
17256       ;;
17257
17258     unicos*)
17259       lt_prog_compiler_wl='-Wl,'
17260       lt_prog_compiler_can_build_shared=no
17261       ;;
17262
17263     uts4*)
17264       lt_prog_compiler_pic='-pic'
17265       lt_prog_compiler_static='-Bstatic'
17266       ;;
17267
17268     *)
17269       lt_prog_compiler_can_build_shared=no
17270       ;;
17271     esac
17272   fi
17273
17274 case $host_os in
17275   # For platforms which do not support PIC, -DPIC is meaningless:
17276   *djgpp*)
17277     lt_prog_compiler_pic=
17278     ;;
17279   *)
17280     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17281     ;;
17282 esac
17283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17284 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17285
17286
17287
17288
17289
17290
17291 #
17292 # Check to make sure the PIC flag actually works.
17293 #
17294 if test -n "$lt_prog_compiler_pic"; then
17295   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17296 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17297 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300   lt_cv_prog_compiler_pic_works=no
17301    ac_outfile=conftest.$ac_objext
17302    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17303    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17304    # Insert the option either (1) after the last *FLAGS variable, or
17305    # (2) before a word containing "conftest.", or (3) at the end.
17306    # Note that $ac_compile itself does not contain backslashes and begins
17307    # with a dollar sign (not a hyphen), so the echo should work correctly.
17308    # The option is referenced via a variable to avoid confusing sed.
17309    lt_compile=`echo "$ac_compile" | $SED \
17310    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17311    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17312    -e 's:$: $lt_compiler_flag:'`
17313    (eval echo "\"\$as_me:17313: $lt_compile\"" >&5)
17314    (eval "$lt_compile" 2>conftest.err)
17315    ac_status=$?
17316    cat conftest.err >&5
17317    echo "$as_me:17317: \$? = $ac_status" >&5
17318    if (exit $ac_status) && test -s "$ac_outfile"; then
17319      # The compiler can only warn and ignore the option if not recognized
17320      # So say no if there are warnings other than the usual output.
17321      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17322      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17323      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17324        lt_cv_prog_compiler_pic_works=yes
17325      fi
17326    fi
17327    $RM conftest*
17328
17329 fi
17330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17331 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17332
17333 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17334     case $lt_prog_compiler_pic in
17335      "" | " "*) ;;
17336      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17337      esac
17338 else
17339     lt_prog_compiler_pic=
17340      lt_prog_compiler_can_build_shared=no
17341 fi
17342
17343 fi
17344
17345
17346
17347
17348
17349
17350 #
17351 # Check to make sure the static flag actually works.
17352 #
17353 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17354 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17355 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17356 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   lt_cv_prog_compiler_static_works=no
17360    save_LDFLAGS="$LDFLAGS"
17361    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17362    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17363    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17364      # The linker can only warn and ignore the option if not recognized
17365      # So say no if there are warnings
17366      if test -s conftest.err; then
17367        # Append any errors to the config.log.
17368        cat conftest.err 1>&5
17369        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17370        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17371        if diff conftest.exp conftest.er2 >/dev/null; then
17372          lt_cv_prog_compiler_static_works=yes
17373        fi
17374      else
17375        lt_cv_prog_compiler_static_works=yes
17376      fi
17377    fi
17378    $RM -r conftest*
17379    LDFLAGS="$save_LDFLAGS"
17380
17381 fi
17382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17383 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17384
17385 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17386     :
17387 else
17388     lt_prog_compiler_static=
17389 fi
17390
17391
17392
17393
17394
17395
17396
17397   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17398 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17399 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17400   echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402   lt_cv_prog_compiler_c_o=no
17403    $RM -r conftest 2>/dev/null
17404    mkdir conftest
17405    cd conftest
17406    mkdir out
17407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17408
17409    lt_compiler_flag="-o out/conftest2.$ac_objext"
17410    # Insert the option either (1) after the last *FLAGS variable, or
17411    # (2) before a word containing "conftest.", or (3) at the end.
17412    # Note that $ac_compile itself does not contain backslashes and begins
17413    # with a dollar sign (not a hyphen), so the echo should work correctly.
17414    lt_compile=`echo "$ac_compile" | $SED \
17415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17417    -e 's:$: $lt_compiler_flag:'`
17418    (eval echo "\"\$as_me:17418: $lt_compile\"" >&5)
17419    (eval "$lt_compile" 2>out/conftest.err)
17420    ac_status=$?
17421    cat out/conftest.err >&5
17422    echo "$as_me:17422: \$? = $ac_status" >&5
17423    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17424    then
17425      # The compiler can only warn and ignore the option if not recognized
17426      # So say no if there are warnings
17427      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17428      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17429      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17430        lt_cv_prog_compiler_c_o=yes
17431      fi
17432    fi
17433    chmod u+w . 2>&5
17434    $RM conftest*
17435    # SGI C++ compiler will create directory out/ii_files/ for
17436    # template instantiation
17437    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17438    $RM out/* && rmdir out
17439    cd ..
17440    $RM -r conftest
17441    $RM conftest*
17442
17443 fi
17444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17446
17447
17448
17449
17450
17451
17452   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17453 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457   lt_cv_prog_compiler_c_o=no
17458    $RM -r conftest 2>/dev/null
17459    mkdir conftest
17460    cd conftest
17461    mkdir out
17462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17463
17464    lt_compiler_flag="-o out/conftest2.$ac_objext"
17465    # Insert the option either (1) after the last *FLAGS variable, or
17466    # (2) before a word containing "conftest.", or (3) at the end.
17467    # Note that $ac_compile itself does not contain backslashes and begins
17468    # with a dollar sign (not a hyphen), so the echo should work correctly.
17469    lt_compile=`echo "$ac_compile" | $SED \
17470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17472    -e 's:$: $lt_compiler_flag:'`
17473    (eval echo "\"\$as_me:17473: $lt_compile\"" >&5)
17474    (eval "$lt_compile" 2>out/conftest.err)
17475    ac_status=$?
17476    cat out/conftest.err >&5
17477    echo "$as_me:17477: \$? = $ac_status" >&5
17478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17479    then
17480      # The compiler can only warn and ignore the option if not recognized
17481      # So say no if there are warnings
17482      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17485        lt_cv_prog_compiler_c_o=yes
17486      fi
17487    fi
17488    chmod u+w . 2>&5
17489    $RM conftest*
17490    # SGI C++ compiler will create directory out/ii_files/ for
17491    # template instantiation
17492    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17493    $RM out/* && rmdir out
17494    cd ..
17495    $RM -r conftest
17496    $RM conftest*
17497
17498 fi
17499 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17501
17502
17503
17504
17505 hard_links="nottested"
17506 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17507   # do not overwrite the value of need_locks provided by the user
17508   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17509 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17510   hard_links=yes
17511   $RM conftest*
17512   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17513   touch conftest.a
17514   ln conftest.a conftest.b 2>&5 || hard_links=no
17515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17516   echo "$as_me:$LINENO: result: $hard_links" >&5
17517 echo "${ECHO_T}$hard_links" >&6
17518   if test "$hard_links" = no; then
17519     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17520 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17521     need_locks=warn
17522   fi
17523 else
17524   need_locks=no
17525 fi
17526
17527
17528
17529
17530
17531
17532   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17534
17535   runpath_var=
17536   allow_undefined_flag=
17537   always_export_symbols=no
17538   archive_cmds=
17539   archive_expsym_cmds=
17540   compiler_needs_object=no
17541   enable_shared_with_static_runtimes=no
17542   export_dynamic_flag_spec=
17543   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17544   hardcode_automatic=no
17545   hardcode_direct=no
17546   hardcode_direct_absolute=no
17547   hardcode_libdir_flag_spec=
17548   hardcode_libdir_flag_spec_ld=
17549   hardcode_libdir_separator=
17550   hardcode_minus_L=no
17551   hardcode_shlibpath_var=unsupported
17552   inherit_rpath=no
17553   link_all_deplibs=unknown
17554   module_cmds=
17555   module_expsym_cmds=
17556   old_archive_from_new_cmds=
17557   old_archive_from_expsyms_cmds=
17558   thread_safe_flag_spec=
17559   whole_archive_flag_spec=
17560   # include_expsyms should be a list of space-separated symbols to be *always*
17561   # included in the symbol list
17562   include_expsyms=
17563   # exclude_expsyms can be an extended regexp of symbols to exclude
17564   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17565   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17566   # as well as any symbol that contains `d'.
17567   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17568   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17569   # platforms (ab)use it in PIC code, but their linkers get confused if
17570   # the symbol is explicitly referenced.  Since portable code cannot
17571   # rely on this symbol name, it's probably fine to never include it in
17572   # preloaded symbol tables.
17573   # Exclude shared library initialization/finalization symbols.
17574   extract_expsyms_cmds=
17575
17576   case $host_os in
17577   cygwin* | mingw* | pw32* | cegcc*)
17578     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17579     # When not using gcc, we currently assume that we are using
17580     # Microsoft Visual C++.
17581     if test "$GCC" != yes; then
17582       with_gnu_ld=no
17583     fi
17584     ;;
17585   interix*)
17586     # we just hope/assume this is gcc and not c89 (= MSVC++)
17587     with_gnu_ld=yes
17588     ;;
17589   openbsd*)
17590     with_gnu_ld=no
17591     ;;
17592   esac
17593
17594   ld_shlibs=yes
17595   if test "$with_gnu_ld" = yes; then
17596     # If archive_cmds runs LD, not CC, wlarc should be empty
17597     wlarc='${wl}'
17598
17599     # Set some defaults for GNU ld with shared library support. These
17600     # are reset later if shared libraries are not supported. Putting them
17601     # here allows them to be overridden if necessary.
17602     runpath_var=LD_RUN_PATH
17603     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17604     export_dynamic_flag_spec='${wl}--export-dynamic'
17605     # ancient GNU ld didn't support --whole-archive et. al.
17606     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17607       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17608     else
17609       whole_archive_flag_spec=
17610     fi
17611     supports_anon_versioning=no
17612     case `$LD -v 2>&1` in
17613       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17614       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17615       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17616       *\ 2.11.*) ;; # other 2.11 versions
17617       *) supports_anon_versioning=yes ;;
17618     esac
17619
17620     # See if GNU ld supports shared libraries.
17621     case $host_os in
17622     aix[3-9]*)
17623       # On AIX/PPC, the GNU linker is very broken
17624       if test "$host_cpu" != ia64; then
17625         ld_shlibs=no
17626         cat <<_LT_EOF 1>&2
17627
17628 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17629 *** to be unable to reliably create shared libraries on AIX.
17630 *** Therefore, libtool is disabling shared libraries support.  If you
17631 *** really care for shared libraries, you may want to modify your PATH
17632 *** so that a non-GNU linker is found, and then restart.
17633
17634 _LT_EOF
17635       fi
17636       ;;
17637
17638     amigaos*)
17639       case $host_cpu in
17640       powerpc)
17641             # see comment about AmigaOS4 .so support
17642             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17643             archive_expsym_cmds=''
17644         ;;
17645       m68k)
17646             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)'
17647             hardcode_libdir_flag_spec='-L$libdir'
17648             hardcode_minus_L=yes
17649         ;;
17650       esac
17651       ;;
17652
17653     beos*)
17654       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17655         allow_undefined_flag=unsupported
17656         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17657         # support --undefined.  This deserves some investigation.  FIXME
17658         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17659       else
17660         ld_shlibs=no
17661       fi
17662       ;;
17663
17664     cygwin* | mingw* | pw32* | cegcc*)
17665       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17666       # as there is no search path for DLLs.
17667       hardcode_libdir_flag_spec='-L$libdir'
17668       allow_undefined_flag=unsupported
17669       always_export_symbols=no
17670       enable_shared_with_static_runtimes=yes
17671       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17672
17673       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17675         # If the export-symbols file already is a .def file (1st line
17676         # is EXPORTS), use it as is; otherwise, prepend...
17677         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17678           cp $export_symbols $output_objdir/$soname.def;
17679         else
17680           echo EXPORTS > $output_objdir/$soname.def;
17681           cat $export_symbols >> $output_objdir/$soname.def;
17682         fi~
17683         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17684       else
17685         ld_shlibs=no
17686       fi
17687       ;;
17688
17689     interix[3-9]*)
17690       hardcode_direct=no
17691       hardcode_shlibpath_var=no
17692       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17693       export_dynamic_flag_spec='${wl}-E'
17694       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17695       # Instead, shared libraries are loaded at an image base (0x10000000 by
17696       # default) and relocated if they conflict, which is a slow very memory
17697       # consuming and fragmenting process.  To avoid this, we pick a random,
17698       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17699       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17700       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17701       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'
17702       ;;
17703
17704     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17705       tmp_diet=no
17706       if test "$host_os" = linux-dietlibc; then
17707         case $cc_basename in
17708           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17709         esac
17710       fi
17711       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17712          && test "$tmp_diet" = no
17713       then
17714         tmp_addflag=
17715         tmp_sharedflag='-shared'
17716         case $cc_basename,$host_cpu in
17717         pgcc*)                          # Portland Group C compiler
17718           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'
17719           tmp_addflag=' $pic_flag'
17720           ;;
17721         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17722           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'
17723           tmp_addflag=' $pic_flag -Mnomain' ;;
17724         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17725           tmp_addflag=' -i_dynamic' ;;
17726         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17727           tmp_addflag=' -i_dynamic -nofor_main' ;;
17728         ifc* | ifort*)                  # Intel Fortran compiler
17729           tmp_addflag=' -nofor_main' ;;
17730         lf95*)                          # Lahey Fortran 8.1
17731           whole_archive_flag_spec=
17732           tmp_sharedflag='--shared' ;;
17733         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17734           tmp_sharedflag='-qmkshrobj'
17735           tmp_addflag= ;;
17736         esac
17737         case `$CC -V 2>&1 | sed 5q` in
17738         *Sun\ C*)                       # Sun C 5.9
17739           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'
17740           compiler_needs_object=yes
17741           tmp_sharedflag='-G' ;;
17742         *Sun\ F*)                       # Sun Fortran 8.3
17743           tmp_sharedflag='-G' ;;
17744         esac
17745         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17746
17747         if test "x$supports_anon_versioning" = xyes; then
17748           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17749             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17750             echo "local: *; };" >> $output_objdir/$libname.ver~
17751             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17752         fi
17753
17754         case $cc_basename in
17755         xlf*)
17756           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17757           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17758           hardcode_libdir_flag_spec=
17759           hardcode_libdir_flag_spec_ld='-rpath $libdir'
17760           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17761           if test "x$supports_anon_versioning" = xyes; then
17762             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17763               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17764               echo "local: *; };" >> $output_objdir/$libname.ver~
17765               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17766           fi
17767           ;;
17768         esac
17769       else
17770         ld_shlibs=no
17771       fi
17772       ;;
17773
17774     netbsd*)
17775       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17776         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17777         wlarc=
17778       else
17779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17780         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17781       fi
17782       ;;
17783
17784     solaris*)
17785       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17786         ld_shlibs=no
17787         cat <<_LT_EOF 1>&2
17788
17789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17790 *** create shared libraries on Solaris systems.  Therefore, libtool
17791 *** is disabling shared libraries support.  We urge you to upgrade GNU
17792 *** binutils to release 2.9.1 or newer.  Another option is to modify
17793 *** your PATH or compiler configuration so that the native linker is
17794 *** used, and then restart.
17795
17796 _LT_EOF
17797       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17800       else
17801         ld_shlibs=no
17802       fi
17803       ;;
17804
17805     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17806       case `$LD -v 2>&1` in
17807         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17808         ld_shlibs=no
17809         cat <<_LT_EOF 1>&2
17810
17811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17812 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17813 *** is disabling shared libraries support.  We urge you to upgrade GNU
17814 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17815 *** your PATH or compiler configuration so that the native linker is
17816 *** used, and then restart.
17817
17818 _LT_EOF
17819         ;;
17820         *)
17821           # For security reasons, it is highly recommended that you always
17822           # use absolute paths for naming shared libraries, and exclude the
17823           # DT_RUNPATH tag from executables and libraries.  But doing so
17824           # requires that you compile everything twice, which is a pain.
17825           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17826             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17827             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17828             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17829           else
17830             ld_shlibs=no
17831           fi
17832         ;;
17833       esac
17834       ;;
17835
17836     sunos4*)
17837       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17838       wlarc=
17839       hardcode_direct=yes
17840       hardcode_shlibpath_var=no
17841       ;;
17842
17843     *)
17844       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17847       else
17848         ld_shlibs=no
17849       fi
17850       ;;
17851     esac
17852
17853     if test "$ld_shlibs" = no; then
17854       runpath_var=
17855       hardcode_libdir_flag_spec=
17856       export_dynamic_flag_spec=
17857       whole_archive_flag_spec=
17858     fi
17859   else
17860     # PORTME fill in a description of your system's linker (not GNU ld)
17861     case $host_os in
17862     aix3*)
17863       allow_undefined_flag=unsupported
17864       always_export_symbols=yes
17865       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'
17866       # Note: this linker hardcodes the directories in LIBPATH if there
17867       # are no directories specified by -L.
17868       hardcode_minus_L=yes
17869       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17870         # Neither direct hardcoding nor static linking is supported with a
17871         # broken collect2.
17872         hardcode_direct=unsupported
17873       fi
17874       ;;
17875
17876     aix[4-9]*)
17877       if test "$host_cpu" = ia64; then
17878         # On IA64, the linker does run time linking by default, so we don't
17879         # have to do anything special.
17880         aix_use_runtimelinking=no
17881         exp_sym_flag='-Bexport'
17882         no_entry_flag=""
17883       else
17884         # If we're using GNU nm, then we don't want the "-C" option.
17885         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17886         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17887           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'
17888         else
17889           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'
17890         fi
17891         aix_use_runtimelinking=no
17892
17893         # Test if we are trying to use run time linking or normal
17894         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17895         # need to do runtime linking.
17896         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17897           for ld_flag in $LDFLAGS; do
17898           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17899             aix_use_runtimelinking=yes
17900             break
17901           fi
17902           done
17903           ;;
17904         esac
17905
17906         exp_sym_flag='-bexport'
17907         no_entry_flag='-bnoentry'
17908       fi
17909
17910       # When large executables or shared objects are built, AIX ld can
17911       # have problems creating the table of contents.  If linking a library
17912       # or program results in "error TOC overflow" add -mminimal-toc to
17913       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17914       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17915
17916       archive_cmds=''
17917       hardcode_direct=yes
17918       hardcode_direct_absolute=yes
17919       hardcode_libdir_separator=':'
17920       link_all_deplibs=yes
17921       file_list_spec='${wl}-f,'
17922
17923       if test "$GCC" = yes; then
17924         case $host_os in aix4.[012]|aix4.[012].*)
17925         # We only want to do this on AIX 4.2 and lower, the check
17926         # below for broken collect2 doesn't work under 4.3+
17927           collect2name=`${CC} -print-prog-name=collect2`
17928           if test -f "$collect2name" &&
17929            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17930           then
17931           # We have reworked collect2
17932           :
17933           else
17934           # We have old collect2
17935           hardcode_direct=unsupported
17936           # It fails to find uninstalled libraries when the uninstalled
17937           # path is not listed in the libpath.  Setting hardcode_minus_L
17938           # to unsupported forces relinking
17939           hardcode_minus_L=yes
17940           hardcode_libdir_flag_spec='-L$libdir'
17941           hardcode_libdir_separator=
17942           fi
17943           ;;
17944         esac
17945         shared_flag='-shared'
17946         if test "$aix_use_runtimelinking" = yes; then
17947           shared_flag="$shared_flag "'${wl}-G'
17948         fi
17949       else
17950         # not using gcc
17951         if test "$host_cpu" = ia64; then
17952         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17953         # chokes on -Wl,-G. The following line is correct:
17954           shared_flag='-G'
17955         else
17956           if test "$aix_use_runtimelinking" = yes; then
17957             shared_flag='${wl}-G'
17958           else
17959             shared_flag='${wl}-bM:SRE'
17960           fi
17961         fi
17962       fi
17963
17964       export_dynamic_flag_spec='${wl}-bexpall'
17965       # It seems that -bexpall does not export symbols beginning with
17966       # underscore (_), so it is better to generate a list of symbols to export.
17967       always_export_symbols=yes
17968       if test "$aix_use_runtimelinking" = yes; then
17969         # Warning - without using the other runtime loading flags (-brtl),
17970         # -berok will link without error, but may produce a broken library.
17971         allow_undefined_flag='-berok'
17972         # Determine the default libpath from the value encoded in an
17973         # empty executable.
17974         cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980
17981 int
17982 main ()
17983 {
17984
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991   (eval $ac_link) 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } &&
17998          { ac_try='test -z "$ac_c_werror_flag"
17999                          || test ! -s conftest.err'
18000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001   (eval $ac_try) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; } &&
18005          { ac_try='test -s conftest$ac_exeext'
18006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007   (eval $ac_try) 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; }; then
18011
18012 lt_aix_libpath_sed='
18013     /Import File Strings/,/^$/ {
18014         /^0/ {
18015             s/^0  *\(.*\)$/\1/
18016             p
18017         }
18018     }'
18019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18020 # Check for a 64-bit object if we didn't find anything.
18021 if test -z "$aix_libpath"; then
18022   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18023 fi
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 fi
18029 rm -f conftest.err conftest.$ac_objext \
18030       conftest$ac_exeext conftest.$ac_ext
18031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18032
18033         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18034         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"
18035       else
18036         if test "$host_cpu" = ia64; then
18037           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18038           allow_undefined_flag="-z nodefs"
18039           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"
18040         else
18041          # Determine the default libpath from the value encoded in an
18042          # empty executable.
18043          cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049
18050 int
18051 main ()
18052 {
18053
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060   (eval $ac_link) 2>conftest.er1
18061   ac_status=$?
18062   grep -v '^ *+' conftest.er1 >conftest.err
18063   rm -f conftest.er1
18064   cat conftest.err >&5
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); } &&
18067          { ac_try='test -z "$ac_c_werror_flag"
18068                          || test ! -s conftest.err'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest$ac_exeext'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080
18081 lt_aix_libpath_sed='
18082     /Import File Strings/,/^$/ {
18083         /^0/ {
18084             s/^0  *\(.*\)$/\1/
18085             p
18086         }
18087     }'
18088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089 # Check for a 64-bit object if we didn't find anything.
18090 if test -z "$aix_libpath"; then
18091   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18092 fi
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097 fi
18098 rm -f conftest.err conftest.$ac_objext \
18099       conftest$ac_exeext conftest.$ac_ext
18100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18101
18102          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18103           # Warning - without using the other run time loading flags,
18104           # -berok will link without error, but may produce a broken library.
18105           no_undefined_flag=' ${wl}-bernotok'
18106           allow_undefined_flag=' ${wl}-berok'
18107           # Exported symbols can be pulled into shared objects from archives
18108           whole_archive_flag_spec='$convenience'
18109           archive_cmds_need_lc=yes
18110           # This is similar to how AIX traditionally builds its shared libraries.
18111           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'
18112         fi
18113       fi
18114       ;;
18115
18116     amigaos*)
18117       case $host_cpu in
18118       powerpc)
18119             # see comment about AmigaOS4 .so support
18120             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18121             archive_expsym_cmds=''
18122         ;;
18123       m68k)
18124             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)'
18125             hardcode_libdir_flag_spec='-L$libdir'
18126             hardcode_minus_L=yes
18127         ;;
18128       esac
18129       ;;
18130
18131     bsdi[45]*)
18132       export_dynamic_flag_spec=-rdynamic
18133       ;;
18134
18135     cygwin* | mingw* | pw32* | cegcc*)
18136       # When not using gcc, we currently assume that we are using
18137       # Microsoft Visual C++.
18138       # hardcode_libdir_flag_spec is actually meaningless, as there is
18139       # no search path for DLLs.
18140       hardcode_libdir_flag_spec=' '
18141       allow_undefined_flag=unsupported
18142       # Tell ltmain to make .lib files, not .a files.
18143       libext=lib
18144       # Tell ltmain to make .dll files, not .so files.
18145       shrext_cmds=".dll"
18146       # FIXME: Setting linknames here is a bad hack.
18147       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18148       # The linker will automatically build a .lib file if we build a DLL.
18149       old_archive_from_new_cmds='true'
18150       # FIXME: Should let the user specify the lib program.
18151       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18152       fix_srcfile_path='`cygpath -w "$srcfile"`'
18153       enable_shared_with_static_runtimes=yes
18154       ;;
18155
18156     darwin* | rhapsody*)
18157
18158
18159   archive_cmds_need_lc=no
18160   hardcode_direct=no
18161   hardcode_automatic=yes
18162   hardcode_shlibpath_var=unsupported
18163   whole_archive_flag_spec=''
18164   link_all_deplibs=yes
18165   allow_undefined_flag="$_lt_dar_allow_undefined"
18166   case $cc_basename in
18167      ifort*) _lt_dar_can_shared=yes ;;
18168      *) _lt_dar_can_shared=$GCC ;;
18169   esac
18170   if test "$_lt_dar_can_shared" = "yes"; then
18171     output_verbose_link_cmd=echo
18172     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18173     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18174     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18175     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18176
18177   else
18178   ld_shlibs=no
18179   fi
18180
18181       ;;
18182
18183     dgux*)
18184       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18185       hardcode_libdir_flag_spec='-L$libdir'
18186       hardcode_shlibpath_var=no
18187       ;;
18188
18189     freebsd1*)
18190       ld_shlibs=no
18191       ;;
18192
18193     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18194     # support.  Future versions do this automatically, but an explicit c++rt0.o
18195     # does not break anything, and helps significantly (at the cost of a little
18196     # extra space).
18197     freebsd2.2*)
18198       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18199       hardcode_libdir_flag_spec='-R$libdir'
18200       hardcode_direct=yes
18201       hardcode_shlibpath_var=no
18202       ;;
18203
18204     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18205     freebsd2*)
18206       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18207       hardcode_direct=yes
18208       hardcode_minus_L=yes
18209       hardcode_shlibpath_var=no
18210       ;;
18211
18212     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18213     freebsd* | dragonfly*)
18214       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18215       hardcode_libdir_flag_spec='-R$libdir'
18216       hardcode_direct=yes
18217       hardcode_shlibpath_var=no
18218       ;;
18219
18220     hpux9*)
18221       if test "$GCC" = yes; then
18222         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'
18223       else
18224         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'
18225       fi
18226       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18227       hardcode_libdir_separator=:
18228       hardcode_direct=yes
18229
18230       # hardcode_minus_L: Not really in the search PATH,
18231       # but as the default location of the library.
18232       hardcode_minus_L=yes
18233       export_dynamic_flag_spec='${wl}-E'
18234       ;;
18235
18236     hpux10*)
18237       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18238         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18239       else
18240         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18241       fi
18242       if test "$with_gnu_ld" = no; then
18243         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18244         hardcode_libdir_flag_spec_ld='+b $libdir'
18245         hardcode_libdir_separator=:
18246         hardcode_direct=yes
18247         hardcode_direct_absolute=yes
18248         export_dynamic_flag_spec='${wl}-E'
18249         # hardcode_minus_L: Not really in the search PATH,
18250         # but as the default location of the library.
18251         hardcode_minus_L=yes
18252       fi
18253       ;;
18254
18255     hpux11*)
18256       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18257         case $host_cpu in
18258         hppa*64*)
18259           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18260           ;;
18261         ia64*)
18262           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18263           ;;
18264         *)
18265           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18266           ;;
18267         esac
18268       else
18269         case $host_cpu in
18270         hppa*64*)
18271           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272           ;;
18273         ia64*)
18274           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18275           ;;
18276         *)
18277           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18278           ;;
18279         esac
18280       fi
18281       if test "$with_gnu_ld" = no; then
18282         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18283         hardcode_libdir_separator=:
18284
18285         case $host_cpu in
18286         hppa*64*|ia64*)
18287           hardcode_direct=no
18288           hardcode_shlibpath_var=no
18289           ;;
18290         *)
18291           hardcode_direct=yes
18292           hardcode_direct_absolute=yes
18293           export_dynamic_flag_spec='${wl}-E'
18294
18295           # hardcode_minus_L: Not really in the search PATH,
18296           # but as the default location of the library.
18297           hardcode_minus_L=yes
18298           ;;
18299         esac
18300       fi
18301       ;;
18302
18303     irix5* | irix6* | nonstopux*)
18304       if test "$GCC" = yes; then
18305         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'
18306         # Try to use the -exported_symbol ld option, if it does not
18307         # work, assume that -exports_file does not work either and
18308         # implicitly export all symbols.
18309         save_LDFLAGS="$LDFLAGS"
18310         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18311         cat >conftest.$ac_ext <<_ACEOF
18312 int foo(void) {}
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"
18324                          || test ! -s conftest.err'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; } &&
18330          { ac_try='test -s conftest$ac_exeext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   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'
18337
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 fi
18343 rm -f conftest.err conftest.$ac_objext \
18344       conftest$ac_exeext conftest.$ac_ext
18345         LDFLAGS="$save_LDFLAGS"
18346       else
18347         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'
18348         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'
18349       fi
18350       archive_cmds_need_lc='no'
18351       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18352       hardcode_libdir_separator=:
18353       inherit_rpath=yes
18354       link_all_deplibs=yes
18355       ;;
18356
18357     netbsd*)
18358       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18359         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18360       else
18361         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18362       fi
18363       hardcode_libdir_flag_spec='-R$libdir'
18364       hardcode_direct=yes
18365       hardcode_shlibpath_var=no
18366       ;;
18367
18368     newsos6)
18369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18370       hardcode_direct=yes
18371       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18372       hardcode_libdir_separator=:
18373       hardcode_shlibpath_var=no
18374       ;;
18375
18376     *nto* | *qnx*)
18377       ;;
18378
18379     openbsd*)
18380       if test -f /usr/libexec/ld.so; then
18381         hardcode_direct=yes
18382         hardcode_shlibpath_var=no
18383         hardcode_direct_absolute=yes
18384         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18385           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18386           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18387           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18388           export_dynamic_flag_spec='${wl}-E'
18389         else
18390           case $host_os in
18391            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18392              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18393              hardcode_libdir_flag_spec='-R$libdir'
18394              ;;
18395            *)
18396              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18397              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18398              ;;
18399           esac
18400         fi
18401       else
18402         ld_shlibs=no
18403       fi
18404       ;;
18405
18406     os2*)
18407       hardcode_libdir_flag_spec='-L$libdir'
18408       hardcode_minus_L=yes
18409       allow_undefined_flag=unsupported
18410       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'
18411       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18412       ;;
18413
18414     osf3*)
18415       if test "$GCC" = yes; then
18416         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18417         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'
18418       else
18419         allow_undefined_flag=' -expect_unresolved \*'
18420         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'
18421       fi
18422       archive_cmds_need_lc='no'
18423       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18424       hardcode_libdir_separator=:
18425       ;;
18426
18427     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18428       if test "$GCC" = yes; then
18429         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18430         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'
18431         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18432       else
18433         allow_undefined_flag=' -expect_unresolved \*'
18434         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'
18435         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~
18436         $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'
18437
18438         # Both c and cxx compiler support -rpath directly
18439         hardcode_libdir_flag_spec='-rpath $libdir'
18440       fi
18441       archive_cmds_need_lc='no'
18442       hardcode_libdir_separator=:
18443       ;;
18444
18445     solaris*)
18446       no_undefined_flag=' -z defs'
18447       if test "$GCC" = yes; then
18448         wlarc='${wl}'
18449         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18450         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18451           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18452       else
18453         case `$CC -V 2>&1` in
18454         *"Compilers 5.0"*)
18455           wlarc=''
18456           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18457           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18458           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18459           ;;
18460         *)
18461           wlarc='${wl}'
18462           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18463           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18464           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18465           ;;
18466         esac
18467       fi
18468       hardcode_libdir_flag_spec='-R$libdir'
18469       hardcode_shlibpath_var=no
18470       case $host_os in
18471       solaris2.[0-5] | solaris2.[0-5].*) ;;
18472       *)
18473         # The compiler driver will combine and reorder linker options,
18474         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18475         # but is careful enough not to reorder.
18476         # Supported since Solaris 2.6 (maybe 2.5.1?)
18477         if test "$GCC" = yes; then
18478           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18479         else
18480           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18481         fi
18482         ;;
18483       esac
18484       link_all_deplibs=yes
18485       ;;
18486
18487     sunos4*)
18488       if test "x$host_vendor" = xsequent; then
18489         # Use $CC to link under sequent, because it throws in some extra .o
18490         # files that make .init and .fini sections work.
18491         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18492       else
18493         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18494       fi
18495       hardcode_libdir_flag_spec='-L$libdir'
18496       hardcode_direct=yes
18497       hardcode_minus_L=yes
18498       hardcode_shlibpath_var=no
18499       ;;
18500
18501     sysv4)
18502       case $host_vendor in
18503         sni)
18504           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18505           hardcode_direct=yes # is this really true???
18506         ;;
18507         siemens)
18508           ## LD is ld it makes a PLAMLIB
18509           ## CC just makes a GrossModule.
18510           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18511           reload_cmds='$CC -r -o $output$reload_objs'
18512           hardcode_direct=no
18513         ;;
18514         motorola)
18515           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18517         ;;
18518       esac
18519       runpath_var='LD_RUN_PATH'
18520       hardcode_shlibpath_var=no
18521       ;;
18522
18523     sysv4.3*)
18524       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18525       hardcode_shlibpath_var=no
18526       export_dynamic_flag_spec='-Bexport'
18527       ;;
18528
18529     sysv4*MP*)
18530       if test -d /usr/nec; then
18531         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18532         hardcode_shlibpath_var=no
18533         runpath_var=LD_RUN_PATH
18534         hardcode_runpath_var=yes
18535         ld_shlibs=yes
18536       fi
18537       ;;
18538
18539     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18540       no_undefined_flag='${wl}-z,text'
18541       archive_cmds_need_lc=no
18542       hardcode_shlibpath_var=no
18543       runpath_var='LD_RUN_PATH'
18544
18545       if test "$GCC" = yes; then
18546         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18547         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18548       else
18549         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18550         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18551       fi
18552       ;;
18553
18554     sysv5* | sco3.2v5* | sco5v6*)
18555       # Note: We can NOT use -z defs as we might desire, because we do not
18556       # link with -lc, and that would cause any symbols used from libc to
18557       # always be unresolved, which means just about no library would
18558       # ever link correctly.  If we're not using GNU ld we use -z text
18559       # though, which does catch some bad symbols but isn't as heavy-handed
18560       # as -z defs.
18561       no_undefined_flag='${wl}-z,text'
18562       allow_undefined_flag='${wl}-z,nodefs'
18563       archive_cmds_need_lc=no
18564       hardcode_shlibpath_var=no
18565       hardcode_libdir_flag_spec='${wl}-R,$libdir'
18566       hardcode_libdir_separator=':'
18567       link_all_deplibs=yes
18568       export_dynamic_flag_spec='${wl}-Bexport'
18569       runpath_var='LD_RUN_PATH'
18570
18571       if test "$GCC" = yes; then
18572         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18573         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18574       else
18575         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18576         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18577       fi
18578       ;;
18579
18580     uts4*)
18581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18582       hardcode_libdir_flag_spec='-L$libdir'
18583       hardcode_shlibpath_var=no
18584       ;;
18585
18586     *)
18587       ld_shlibs=no
18588       ;;
18589     esac
18590
18591     if test x$host_vendor = xsni; then
18592       case $host in
18593       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18594         export_dynamic_flag_spec='${wl}-Blargedynsym'
18595         ;;
18596       esac
18597     fi
18598   fi
18599
18600 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18601 echo "${ECHO_T}$ld_shlibs" >&6
18602 test "$ld_shlibs" = no && can_build_shared=no
18603
18604 with_gnu_ld=$with_gnu_ld
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620 #
18621 # Do we need to explicitly link libc?
18622 #
18623 case "x$archive_cmds_need_lc" in
18624 x|xyes)
18625   # Assume -lc should be added
18626   archive_cmds_need_lc=yes
18627
18628   if test "$enable_shared" = yes && test "$GCC" = yes; then
18629     case $archive_cmds in
18630     *'~'*)
18631       # FIXME: we may have to deal with multi-command sequences.
18632       ;;
18633     '$CC '*)
18634       # Test whether the compiler implicitly links with -lc since on some
18635       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18636       # to ld, don't add -lc before -lgcc.
18637       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18639 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   $RM conftest*
18643         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18644
18645         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646   (eval $ac_compile) 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } 2>conftest.err; then
18650           soname=conftest
18651           lib=conftest
18652           libobjs=conftest.$ac_objext
18653           deplibs=
18654           wl=$lt_prog_compiler_wl
18655           pic_flag=$lt_prog_compiler_pic
18656           compiler_flags=-v
18657           linker_flags=-v
18658           verstring=
18659           output_objdir=.
18660           libname=conftest
18661           lt_save_allow_undefined_flag=$allow_undefined_flag
18662           allow_undefined_flag=
18663           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18664   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }
18668           then
18669             lt_cv_archive_cmds_need_lc=no
18670           else
18671             lt_cv_archive_cmds_need_lc=yes
18672           fi
18673           allow_undefined_flag=$lt_save_allow_undefined_flag
18674         else
18675           cat conftest.err 1>&5
18676         fi
18677         $RM conftest*
18678
18679 fi
18680 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18681 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18682       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18683       ;;
18684     esac
18685   fi
18686   ;;
18687 esac
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18846 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18847
18848 if test "$GCC" = yes; then
18849   case $host_os in
18850     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18851     *) lt_awk_arg="/^libraries:/" ;;
18852   esac
18853   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18854   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18855     # if the path contains ";" then we assume it to be the separator
18856     # otherwise default to the standard path separator (i.e. ":") - it is
18857     # assumed that no part of a normal pathname contains ";" but that should
18858     # okay in the real world where ";" in dirpaths is itself problematic.
18859     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18860   else
18861     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18862   fi
18863   # Ok, now we have the path, separated by spaces, we can step through it
18864   # and add multilib dir if necessary.
18865   lt_tmp_lt_search_path_spec=
18866   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18867   for lt_sys_path in $lt_search_path_spec; do
18868     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18869       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18870     else
18871       test -d "$lt_sys_path" && \
18872         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18873     fi
18874   done
18875   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18876 BEGIN {RS=" "; FS="/|\n";} {
18877   lt_foo="";
18878   lt_count=0;
18879   for (lt_i = NF; lt_i > 0; lt_i--) {
18880     if ($lt_i != "" && $lt_i != ".") {
18881       if ($lt_i == "..") {
18882         lt_count++;
18883       } else {
18884         if (lt_count == 0) {
18885           lt_foo="/" $lt_i lt_foo;
18886         } else {
18887           lt_count--;
18888         }
18889       }
18890     }
18891   }
18892   if (lt_foo != "") { lt_freq[lt_foo]++; }
18893   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18894 }'`
18895   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18896 else
18897   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18898 fi
18899 library_names_spec=
18900 libname_spec='lib$name'
18901 soname_spec=
18902 shrext_cmds=".so"
18903 postinstall_cmds=
18904 postuninstall_cmds=
18905 finish_cmds=
18906 finish_eval=
18907 shlibpath_var=
18908 shlibpath_overrides_runpath=unknown
18909 version_type=none
18910 dynamic_linker="$host_os ld.so"
18911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18912 need_lib_prefix=unknown
18913 hardcode_into_libs=no
18914
18915 # when you set need_version to no, make sure it does not cause -set_version
18916 # flags to be left without arguments
18917 need_version=unknown
18918
18919 case $host_os in
18920 aix3*)
18921   version_type=linux
18922   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18923   shlibpath_var=LIBPATH
18924
18925   # AIX 3 has no versioning support, so we append a major version to the name.
18926   soname_spec='${libname}${release}${shared_ext}$major'
18927   ;;
18928
18929 aix[4-9]*)
18930   version_type=linux
18931   need_lib_prefix=no
18932   need_version=no
18933   hardcode_into_libs=yes
18934   if test "$host_cpu" = ia64; then
18935     # AIX 5 supports IA64
18936     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18937     shlibpath_var=LD_LIBRARY_PATH
18938   else
18939     # With GCC up to 2.95.x, collect2 would create an import file
18940     # for dependence libraries.  The import file would start with
18941     # the line `#! .'.  This would cause the generated library to
18942     # depend on `.', always an invalid library.  This was fixed in
18943     # development snapshots of GCC prior to 3.0.
18944     case $host_os in
18945       aix4 | aix4.[01] | aix4.[01].*)
18946       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18947            echo ' yes '
18948            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18949         :
18950       else
18951         can_build_shared=no
18952       fi
18953       ;;
18954     esac
18955     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18956     # soname into executable. Probably we can add versioning support to
18957     # collect2, so additional links can be useful in future.
18958     if test "$aix_use_runtimelinking" = yes; then
18959       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18960       # instead of lib<name>.a to let people know that these are not
18961       # typical AIX shared libraries.
18962       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963     else
18964       # We preserve .a as extension for shared libraries through AIX4.2
18965       # and later when we are not doing run time linking.
18966       library_names_spec='${libname}${release}.a $libname.a'
18967       soname_spec='${libname}${release}${shared_ext}$major'
18968     fi
18969     shlibpath_var=LIBPATH
18970   fi
18971   ;;
18972
18973 amigaos*)
18974   case $host_cpu in
18975   powerpc)
18976     # Since July 2007 AmigaOS4 officially supports .so libraries.
18977     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18979     ;;
18980   m68k)
18981     library_names_spec='$libname.ixlibrary $libname.a'
18982     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18983     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'
18984     ;;
18985   esac
18986   ;;
18987
18988 beos*)
18989   library_names_spec='${libname}${shared_ext}'
18990   dynamic_linker="$host_os ld.so"
18991   shlibpath_var=LIBRARY_PATH
18992   ;;
18993
18994 bsdi[45]*)
18995   version_type=linux
18996   need_version=no
18997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18998   soname_spec='${libname}${release}${shared_ext}$major'
18999   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19000   shlibpath_var=LD_LIBRARY_PATH
19001   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19002   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19003   # the default ld.so.conf also contains /usr/contrib/lib and
19004   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19005   # libtool to hard-code these into programs
19006   ;;
19007
19008 cygwin* | mingw* | pw32* | cegcc*)
19009   version_type=windows
19010   shrext_cmds=".dll"
19011   need_version=no
19012   need_lib_prefix=no
19013
19014   case $GCC,$host_os in
19015   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19016     library_names_spec='$libname.dll.a'
19017     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19018     postinstall_cmds='base_file=`basename \${file}`~
19019       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19020       dldir=$destdir/`dirname \$dlpath`~
19021       test -d \$dldir || mkdir -p \$dldir~
19022       $install_prog $dir/$dlname \$dldir/$dlname~
19023       chmod a+x \$dldir/$dlname~
19024       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19025         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19026       fi'
19027     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19028       dlpath=$dir/\$dldll~
19029        $RM \$dlpath'
19030     shlibpath_overrides_runpath=yes
19031
19032     case $host_os in
19033     cygwin*)
19034       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19035       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19036       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19037       ;;
19038     mingw* | cegcc*)
19039       # MinGW DLLs use traditional 'lib' prefix
19040       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19041       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19042       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19043         # It is most probably a Windows format PATH printed by
19044         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19045         # path with ; separators, and with drive letters. We can handle the
19046         # drive letters (cygwin fileutils understands them), so leave them,
19047         # especially as we might pass files found there to a mingw objdump,
19048         # which wouldn't understand a cygwinified path. Ahh.
19049         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19050       else
19051         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19052       fi
19053       ;;
19054     pw32*)
19055       # pw32 DLLs use 'pw' prefix rather than 'lib'
19056       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19057       ;;
19058     esac
19059     ;;
19060
19061   *)
19062     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19063     ;;
19064   esac
19065   dynamic_linker='Win32 ld.exe'
19066   # FIXME: first we should search . and the directory the executable is in
19067   shlibpath_var=PATH
19068   ;;
19069
19070 darwin* | rhapsody*)
19071   dynamic_linker="$host_os dyld"
19072   version_type=darwin
19073   need_lib_prefix=no
19074   need_version=no
19075   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19076   soname_spec='${libname}${release}${major}$shared_ext'
19077   shlibpath_overrides_runpath=yes
19078   shlibpath_var=DYLD_LIBRARY_PATH
19079   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19080
19081   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19083   ;;
19084
19085 dgux*)
19086   version_type=linux
19087   need_lib_prefix=no
19088   need_version=no
19089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19090   soname_spec='${libname}${release}${shared_ext}$major'
19091   shlibpath_var=LD_LIBRARY_PATH
19092   ;;
19093
19094 freebsd1*)
19095   dynamic_linker=no
19096   ;;
19097
19098 freebsd* | dragonfly*)
19099   # DragonFly does not have aout.  When/if they implement a new
19100   # versioning mechanism, adjust this.
19101   if test -x /usr/bin/objformat; then
19102     objformat=`/usr/bin/objformat`
19103   else
19104     case $host_os in
19105     freebsd[123]*) objformat=aout ;;
19106     *) objformat=elf ;;
19107     esac
19108   fi
19109   version_type=freebsd-$objformat
19110   case $version_type in
19111     freebsd-elf*)
19112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19113       need_version=no
19114       need_lib_prefix=no
19115       ;;
19116     freebsd-*)
19117       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19118       need_version=yes
19119       ;;
19120   esac
19121   shlibpath_var=LD_LIBRARY_PATH
19122   case $host_os in
19123   freebsd2*)
19124     shlibpath_overrides_runpath=yes
19125     ;;
19126   freebsd3.[01]* | freebsdelf3.[01]*)
19127     shlibpath_overrides_runpath=yes
19128     hardcode_into_libs=yes
19129     ;;
19130   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19131   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19132     shlibpath_overrides_runpath=no
19133     hardcode_into_libs=yes
19134     ;;
19135   *) # from 4.6 on, and DragonFly
19136     shlibpath_overrides_runpath=yes
19137     hardcode_into_libs=yes
19138     ;;
19139   esac
19140   ;;
19141
19142 gnu*)
19143   version_type=linux
19144   need_lib_prefix=no
19145   need_version=no
19146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19147   soname_spec='${libname}${release}${shared_ext}$major'
19148   shlibpath_var=LD_LIBRARY_PATH
19149   hardcode_into_libs=yes
19150   ;;
19151
19152 hpux9* | hpux10* | hpux11*)
19153   # Give a soname corresponding to the major version so that dld.sl refuses to
19154   # link against other versions.
19155   version_type=sunos
19156   need_lib_prefix=no
19157   need_version=no
19158   case $host_cpu in
19159   ia64*)
19160     shrext_cmds='.so'
19161     hardcode_into_libs=yes
19162     dynamic_linker="$host_os dld.so"
19163     shlibpath_var=LD_LIBRARY_PATH
19164     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166     soname_spec='${libname}${release}${shared_ext}$major'
19167     if test "X$HPUX_IA64_MODE" = X32; then
19168       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19169     else
19170       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19171     fi
19172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19173     ;;
19174   hppa*64*)
19175     shrext_cmds='.sl'
19176     hardcode_into_libs=yes
19177     dynamic_linker="$host_os dld.sl"
19178     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181     soname_spec='${libname}${release}${shared_ext}$major'
19182     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19184     ;;
19185   *)
19186     shrext_cmds='.sl'
19187     dynamic_linker="$host_os dld.sl"
19188     shlibpath_var=SHLIB_PATH
19189     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19191     soname_spec='${libname}${release}${shared_ext}$major'
19192     ;;
19193   esac
19194   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19195   postinstall_cmds='chmod 555 $lib'
19196   ;;
19197
19198 interix[3-9]*)
19199   version_type=linux
19200   need_lib_prefix=no
19201   need_version=no
19202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19203   soname_spec='${libname}${release}${shared_ext}$major'
19204   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19205   shlibpath_var=LD_LIBRARY_PATH
19206   shlibpath_overrides_runpath=no
19207   hardcode_into_libs=yes
19208   ;;
19209
19210 irix5* | irix6* | nonstopux*)
19211   case $host_os in
19212     nonstopux*) version_type=nonstopux ;;
19213     *)
19214         if test "$lt_cv_prog_gnu_ld" = yes; then
19215                 version_type=linux
19216         else
19217                 version_type=irix
19218         fi ;;
19219   esac
19220   need_lib_prefix=no
19221   need_version=no
19222   soname_spec='${libname}${release}${shared_ext}$major'
19223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19224   case $host_os in
19225   irix5* | nonstopux*)
19226     libsuff= shlibsuff=
19227     ;;
19228   *)
19229     case $LD in # libtool.m4 will add one of these switches to LD
19230     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19231       libsuff= shlibsuff= libmagic=32-bit;;
19232     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19233       libsuff=32 shlibsuff=N32 libmagic=N32;;
19234     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19235       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19236     *) libsuff= shlibsuff= libmagic=never-match;;
19237     esac
19238     ;;
19239   esac
19240   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19241   shlibpath_overrides_runpath=no
19242   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19243   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19244   hardcode_into_libs=yes
19245   ;;
19246
19247 # No shared lib support for Linux oldld, aout, or coff.
19248 linux*oldld* | linux*aout* | linux*coff*)
19249   dynamic_linker=no
19250   ;;
19251
19252 # This must be Linux ELF.
19253 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19254   version_type=linux
19255   need_lib_prefix=no
19256   need_version=no
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258   soname_spec='${libname}${release}${shared_ext}$major'
19259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19260   shlibpath_var=LD_LIBRARY_PATH
19261   shlibpath_overrides_runpath=no
19262
19263   # Some binutils ld are patched to set DT_RUNPATH
19264   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19265   echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267   lt_cv_shlibpath_overrides_runpath=no
19268     save_LDFLAGS=$LDFLAGS
19269     save_libdir=$libdir
19270     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19271          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19272     cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h.  */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h.  */
19278
19279 int
19280 main ()
19281 {
19282
19283   ;
19284   return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289   (eval $ac_link) 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } &&
19296          { ac_try='test -z "$ac_c_werror_flag"
19297                          || test ! -s conftest.err'
19298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299   (eval $ac_try) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); }; } &&
19303          { ac_try='test -s conftest$ac_exeext'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; }; then
19309   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19310   lt_cv_shlibpath_overrides_runpath=yes
19311 fi
19312
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 fi
19318 rm -f conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320     LDFLAGS=$save_LDFLAGS
19321     libdir=$save_libdir
19322
19323 fi
19324
19325   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19326
19327   # This implies no fast_install, which is unacceptable.
19328   # Some rework will be needed to allow for fast_install
19329   # before this can be enabled.
19330   hardcode_into_libs=yes
19331
19332   # Append ld.so.conf contents to the search path
19333   if test -f /etc/ld.so.conf; then
19334     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19335     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19336   fi
19337
19338   # We used to test for /lib/ld.so.1 and disable shared libraries on
19339   # powerpc, because MkLinux only supported shared libraries with the
19340   # GNU dynamic linker.  Since this was broken with cross compilers,
19341   # most powerpc-linux boxes support dynamic linking these days and
19342   # people can always --disable-shared, the test was removed, and we
19343   # assume the GNU/Linux dynamic linker is in use.
19344   dynamic_linker='GNU/Linux ld.so'
19345   ;;
19346
19347 netbsd*)
19348   version_type=sunos
19349   need_lib_prefix=no
19350   need_version=no
19351   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19353     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19354     dynamic_linker='NetBSD (a.out) ld.so'
19355   else
19356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19357     soname_spec='${libname}${release}${shared_ext}$major'
19358     dynamic_linker='NetBSD ld.elf_so'
19359   fi
19360   shlibpath_var=LD_LIBRARY_PATH
19361   shlibpath_overrides_runpath=yes
19362   hardcode_into_libs=yes
19363   ;;
19364
19365 newsos6)
19366   version_type=linux
19367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19368   shlibpath_var=LD_LIBRARY_PATH
19369   shlibpath_overrides_runpath=yes
19370   ;;
19371
19372 *nto* | *qnx*)
19373   version_type=qnx
19374   need_lib_prefix=no
19375   need_version=no
19376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377   soname_spec='${libname}${release}${shared_ext}$major'
19378   shlibpath_var=LD_LIBRARY_PATH
19379   shlibpath_overrides_runpath=no
19380   hardcode_into_libs=yes
19381   dynamic_linker='ldqnx.so'
19382   ;;
19383
19384 openbsd*)
19385   version_type=sunos
19386   sys_lib_dlsearch_path_spec="/usr/lib"
19387   need_lib_prefix=no
19388   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19389   case $host_os in
19390     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19391     *)                          need_version=no  ;;
19392   esac
19393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19395   shlibpath_var=LD_LIBRARY_PATH
19396   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19397     case $host_os in
19398       openbsd2.[89] | openbsd2.[89].*)
19399         shlibpath_overrides_runpath=no
19400         ;;
19401       *)
19402         shlibpath_overrides_runpath=yes
19403         ;;
19404       esac
19405   else
19406     shlibpath_overrides_runpath=yes
19407   fi
19408   ;;
19409
19410 os2*)
19411   libname_spec='$name'
19412   shrext_cmds=".dll"
19413   need_lib_prefix=no
19414   library_names_spec='$libname${shared_ext} $libname.a'
19415   dynamic_linker='OS/2 ld.exe'
19416   shlibpath_var=LIBPATH
19417   ;;
19418
19419 osf3* | osf4* | osf5*)
19420   version_type=osf
19421   need_lib_prefix=no
19422   need_version=no
19423   soname_spec='${libname}${release}${shared_ext}$major'
19424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19425   shlibpath_var=LD_LIBRARY_PATH
19426   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19427   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19428   ;;
19429
19430 rdos*)
19431   dynamic_linker=no
19432   ;;
19433
19434 solaris*)
19435   version_type=linux
19436   need_lib_prefix=no
19437   need_version=no
19438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19439   soname_spec='${libname}${release}${shared_ext}$major'
19440   shlibpath_var=LD_LIBRARY_PATH
19441   shlibpath_overrides_runpath=yes
19442   hardcode_into_libs=yes
19443   # ldd complains unless libraries are executable
19444   postinstall_cmds='chmod +x $lib'
19445   ;;
19446
19447 sunos4*)
19448   version_type=sunos
19449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19450   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19451   shlibpath_var=LD_LIBRARY_PATH
19452   shlibpath_overrides_runpath=yes
19453   if test "$with_gnu_ld" = yes; then
19454     need_lib_prefix=no
19455   fi
19456   need_version=yes
19457   ;;
19458
19459 sysv4 | sysv4.3*)
19460   version_type=linux
19461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462   soname_spec='${libname}${release}${shared_ext}$major'
19463   shlibpath_var=LD_LIBRARY_PATH
19464   case $host_vendor in
19465     sni)
19466       shlibpath_overrides_runpath=no
19467       need_lib_prefix=no
19468       runpath_var=LD_RUN_PATH
19469       ;;
19470     siemens)
19471       need_lib_prefix=no
19472       ;;
19473     motorola)
19474       need_lib_prefix=no
19475       need_version=no
19476       shlibpath_overrides_runpath=no
19477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19478       ;;
19479   esac
19480   ;;
19481
19482 sysv4*MP*)
19483   if test -d /usr/nec ;then
19484     version_type=linux
19485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19486     soname_spec='$libname${shared_ext}.$major'
19487     shlibpath_var=LD_LIBRARY_PATH
19488   fi
19489   ;;
19490
19491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19492   version_type=freebsd-elf
19493   need_lib_prefix=no
19494   need_version=no
19495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19496   soname_spec='${libname}${release}${shared_ext}$major'
19497   shlibpath_var=LD_LIBRARY_PATH
19498   shlibpath_overrides_runpath=yes
19499   hardcode_into_libs=yes
19500   if test "$with_gnu_ld" = yes; then
19501     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19502   else
19503     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19504     case $host_os in
19505       sco3.2v5*)
19506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19507         ;;
19508     esac
19509   fi
19510   sys_lib_dlsearch_path_spec='/usr/lib'
19511   ;;
19512
19513 tpf*)
19514   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19515   version_type=linux
19516   need_lib_prefix=no
19517   need_version=no
19518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519   shlibpath_var=LD_LIBRARY_PATH
19520   shlibpath_overrides_runpath=no
19521   hardcode_into_libs=yes
19522   ;;
19523
19524 uts4*)
19525   version_type=linux
19526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527   soname_spec='${libname}${release}${shared_ext}$major'
19528   shlibpath_var=LD_LIBRARY_PATH
19529   ;;
19530
19531 *)
19532   dynamic_linker=no
19533   ;;
19534 esac
19535 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19536 echo "${ECHO_T}$dynamic_linker" >&6
19537 test "$dynamic_linker" = no && can_build_shared=no
19538
19539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19540 if test "$GCC" = yes; then
19541   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19542 fi
19543
19544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19545   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19546 fi
19547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19548   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19549 fi
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19638 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19639 hardcode_action=
19640 if test -n "$hardcode_libdir_flag_spec" ||
19641    test -n "$runpath_var" ||
19642    test "X$hardcode_automatic" = "Xyes" ; then
19643
19644   # We can hardcode non-existent directories.
19645   if test "$hardcode_direct" != no &&
19646      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19647      # have to relink, otherwise we might link with an installed library
19648      # when we should be linking with a yet-to-be-installed one
19649      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19650      test "$hardcode_minus_L" != no; then
19651     # Linking always hardcodes the temporary library directory.
19652     hardcode_action=relink
19653   else
19654     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19655     hardcode_action=immediate
19656   fi
19657 else
19658   # We cannot hardcode anything, or else we can only hardcode existing
19659   # directories.
19660   hardcode_action=unsupported
19661 fi
19662 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19663 echo "${ECHO_T}$hardcode_action" >&6
19664
19665 if test "$hardcode_action" = relink ||
19666    test "$inherit_rpath" = yes; then
19667   # Fast installation is not supported
19668   enable_fast_install=no
19669 elif test "$shlibpath_overrides_runpath" = yes ||
19670      test "$enable_shared" = no; then
19671   # Fast installation is not necessary
19672   enable_fast_install=needless
19673 fi
19674
19675
19676
19677
19678
19679
19680   if test "x$enable_dlopen" != xyes; then
19681   enable_dlopen=unknown
19682   enable_dlopen_self=unknown
19683   enable_dlopen_self_static=unknown
19684 else
19685   lt_cv_dlopen=no
19686   lt_cv_dlopen_libs=
19687
19688   case $host_os in
19689   beos*)
19690     lt_cv_dlopen="load_add_on"
19691     lt_cv_dlopen_libs=
19692     lt_cv_dlopen_self=yes
19693     ;;
19694
19695   mingw* | pw32* | cegcc*)
19696     lt_cv_dlopen="LoadLibrary"
19697     lt_cv_dlopen_libs=
19698     ;;
19699
19700   cygwin*)
19701     lt_cv_dlopen="dlopen"
19702     lt_cv_dlopen_libs=
19703     ;;
19704
19705   darwin*)
19706   # if libdl is installed we need to link against it
19707     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19708 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19709 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712   ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-ldl  $LIBS"
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720
19721 /* Override any gcc2 internal prototype to avoid an error.  */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 /* We use char because int might match the return type of a gcc2
19726    builtin and then its argument prototype would still apply.  */
19727 char dlopen ();
19728 int
19729 main ()
19730 {
19731 dlopen ();
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19738   (eval $ac_link) 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -z "$ac_c_werror_flag"
19746                          || test ! -s conftest.err'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; } &&
19752          { ac_try='test -s conftest$ac_exeext'
19753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754   (eval $ac_try) 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }; }; then
19758   ac_cv_lib_dl_dlopen=yes
19759 else
19760   echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 ac_cv_lib_dl_dlopen=no
19764 fi
19765 rm -f conftest.err conftest.$ac_objext \
19766       conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19768 fi
19769 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19770 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19771 if test $ac_cv_lib_dl_dlopen = yes; then
19772   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19773 else
19774
19775     lt_cv_dlopen="dyld"
19776     lt_cv_dlopen_libs=
19777     lt_cv_dlopen_self=yes
19778
19779 fi
19780
19781     ;;
19782
19783   *)
19784     echo "$as_me:$LINENO: checking for shl_load" >&5
19785 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19786 if test "${ac_cv_func_shl_load+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19797 #define shl_load innocuous_shl_load
19798
19799 /* System header to define __stub macros and hopefully few prototypes,
19800     which can conflict with char shl_load (); below.
19801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802     <limits.h> exists even on freestanding compilers.  */
19803
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19809
19810 #undef shl_load
19811
19812 /* Override any gcc2 internal prototype to avoid an error.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 {
19816 #endif
19817 /* We use char because int might match the return type of a gcc2
19818    builtin and then its argument prototype would still apply.  */
19819 char shl_load ();
19820 /* The GNU C library defines this for functions which it implements
19821     to always fail with ENOSYS.  Some functions are actually named
19822     something starting with __ and the normal name is an alias.  */
19823 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19824 choke me
19825 #else
19826 char (*f) () = shl_load;
19827 #endif
19828 #ifdef __cplusplus
19829 }
19830 #endif
19831
19832 int
19833 main ()
19834 {
19835 return f != shl_load;
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842   (eval $ac_link) 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag"
19850                          || test ! -s conftest.err'
19851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852   (eval $ac_try) 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); }; } &&
19856          { ac_try='test -s conftest$ac_exeext'
19857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858   (eval $ac_try) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   ac_cv_func_shl_load=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_cv_func_shl_load=no
19868 fi
19869 rm -f conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871 fi
19872 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19873 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19874 if test $ac_cv_func_shl_load = yes; then
19875   lt_cv_dlopen="shl_load"
19876 else
19877   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19878 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19879 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882   ac_check_lib_save_LIBS=$LIBS
19883 LIBS="-ldld  $LIBS"
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890
19891 /* Override any gcc2 internal prototype to avoid an error.  */
19892 #ifdef __cplusplus
19893 extern "C"
19894 #endif
19895 /* We use char because int might match the return type of a gcc2
19896    builtin and then its argument prototype would still apply.  */
19897 char shl_load ();
19898 int
19899 main ()
19900 {
19901 shl_load ();
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908   (eval $ac_link) 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } &&
19915          { ac_try='test -z "$ac_c_werror_flag"
19916                          || test ! -s conftest.err'
19917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918   (eval $ac_try) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; } &&
19922          { ac_try='test -s conftest$ac_exeext'
19923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924   (eval $ac_try) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; }; then
19928   ac_cv_lib_dld_shl_load=yes
19929 else
19930   echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ac_cv_lib_dld_shl_load=no
19934 fi
19935 rm -f conftest.err conftest.$ac_objext \
19936       conftest$ac_exeext conftest.$ac_ext
19937 LIBS=$ac_check_lib_save_LIBS
19938 fi
19939 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19940 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19941 if test $ac_cv_lib_dld_shl_load = yes; then
19942   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19943 else
19944   echo "$as_me:$LINENO: checking for dlopen" >&5
19945 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19946 if test "${ac_cv_func_dlopen+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19957 #define dlopen innocuous_dlopen
19958
19959 /* System header to define __stub macros and hopefully few prototypes,
19960     which can conflict with char dlopen (); below.
19961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19962     <limits.h> exists even on freestanding compilers.  */
19963
19964 #ifdef __STDC__
19965 # include <limits.h>
19966 #else
19967 # include <assert.h>
19968 #endif
19969
19970 #undef dlopen
19971
19972 /* Override any gcc2 internal prototype to avoid an error.  */
19973 #ifdef __cplusplus
19974 extern "C"
19975 {
19976 #endif
19977 /* We use char because int might match the return type of a gcc2
19978    builtin and then its argument prototype would still apply.  */
19979 char dlopen ();
19980 /* The GNU C library defines this for functions which it implements
19981     to always fail with ENOSYS.  Some functions are actually named
19982     something starting with __ and the normal name is an alias.  */
19983 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19984 choke me
19985 #else
19986 char (*f) () = dlopen;
19987 #endif
19988 #ifdef __cplusplus
19989 }
19990 #endif
19991
19992 int
19993 main ()
19994 {
19995 return f != dlopen;
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20002   (eval $ac_link) 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } &&
20009          { ac_try='test -z "$ac_c_werror_flag"
20010                          || test ! -s conftest.err'
20011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; } &&
20016          { ac_try='test -s conftest$ac_exeext'
20017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018   (eval $ac_try) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; }; then
20022   ac_cv_func_dlopen=yes
20023 else
20024   echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ac_cv_func_dlopen=no
20028 fi
20029 rm -f conftest.err conftest.$ac_objext \
20030       conftest$ac_exeext conftest.$ac_ext
20031 fi
20032 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20033 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20034 if test $ac_cv_func_dlopen = yes; then
20035   lt_cv_dlopen="dlopen"
20036 else
20037   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20038 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20039 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   ac_check_lib_save_LIBS=$LIBS
20043 LIBS="-ldl  $LIBS"
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050
20051 /* Override any gcc2 internal prototype to avoid an error.  */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 /* We use char because int might match the return type of a gcc2
20056    builtin and then its argument prototype would still apply.  */
20057 char dlopen ();
20058 int
20059 main ()
20060 {
20061 dlopen ();
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20068   (eval $ac_link) 2>conftest.er1
20069   ac_status=$?
20070   grep -v '^ *+' conftest.er1 >conftest.err
20071   rm -f conftest.er1
20072   cat conftest.err >&5
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); } &&
20075          { ac_try='test -z "$ac_c_werror_flag"
20076                          || test ! -s conftest.err'
20077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078   (eval $ac_try) 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; } &&
20082          { ac_try='test -s conftest$ac_exeext'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; }; then
20088   ac_cv_lib_dl_dlopen=yes
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 ac_cv_lib_dl_dlopen=no
20094 fi
20095 rm -f conftest.err conftest.$ac_objext \
20096       conftest$ac_exeext conftest.$ac_ext
20097 LIBS=$ac_check_lib_save_LIBS
20098 fi
20099 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20100 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20101 if test $ac_cv_lib_dl_dlopen = yes; then
20102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20103 else
20104   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20105 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lsvld  $LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117
20118 /* Override any gcc2 internal prototype to avoid an error.  */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 /* We use char because int might match the return type of a gcc2
20123    builtin and then its argument prototype would still apply.  */
20124 char dlopen ();
20125 int
20126 main ()
20127 {
20128 dlopen ();
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135   (eval $ac_link) 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag"
20143                          || test ! -s conftest.err'
20144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145   (eval $ac_try) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest$ac_exeext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_lib_svld_dlopen=yes
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_cv_lib_svld_dlopen=no
20161 fi
20162 rm -f conftest.err conftest.$ac_objext \
20163       conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20165 fi
20166 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20168 if test $ac_cv_lib_svld_dlopen = yes; then
20169   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20170 else
20171   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20172 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20174   echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176   ac_check_lib_save_LIBS=$LIBS
20177 LIBS="-ldld  $LIBS"
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184
20185 /* Override any gcc2 internal prototype to avoid an error.  */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 /* We use char because int might match the return type of a gcc2
20190    builtin and then its argument prototype would still apply.  */
20191 char dld_link ();
20192 int
20193 main ()
20194 {
20195 dld_link ();
20196   ;
20197   return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext conftest$ac_exeext
20201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20202   (eval $ac_link) 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } &&
20209          { ac_try='test -z "$ac_c_werror_flag"
20210                          || test ! -s conftest.err'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; } &&
20216          { ac_try='test -s conftest$ac_exeext'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; }; then
20222   ac_cv_lib_dld_dld_link=yes
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_cv_lib_dld_dld_link=no
20228 fi
20229 rm -f conftest.err conftest.$ac_objext \
20230       conftest$ac_exeext conftest.$ac_ext
20231 LIBS=$ac_check_lib_save_LIBS
20232 fi
20233 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20234 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20235 if test $ac_cv_lib_dld_dld_link = yes; then
20236   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20237 fi
20238
20239
20240 fi
20241
20242
20243 fi
20244
20245
20246 fi
20247
20248
20249 fi
20250
20251
20252 fi
20253
20254     ;;
20255   esac
20256
20257   if test "x$lt_cv_dlopen" != xno; then
20258     enable_dlopen=yes
20259   else
20260     enable_dlopen=no
20261   fi
20262
20263   case $lt_cv_dlopen in
20264   dlopen)
20265     save_CPPFLAGS="$CPPFLAGS"
20266     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20267
20268     save_LDFLAGS="$LDFLAGS"
20269     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20270
20271     save_LIBS="$LIBS"
20272     LIBS="$lt_cv_dlopen_libs $LIBS"
20273
20274     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20275 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20276 if test "${lt_cv_dlopen_self+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279           if test "$cross_compiling" = yes; then :
20280   lt_cv_dlopen_self=cross
20281 else
20282   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20283   lt_status=$lt_dlunknown
20284   cat > conftest.$ac_ext <<_LT_EOF
20285 #line 20285 "configure"
20286 #include "confdefs.h"
20287
20288 #if HAVE_DLFCN_H
20289 #include <dlfcn.h>
20290 #endif
20291
20292 #include <stdio.h>
20293
20294 #ifdef RTLD_GLOBAL
20295 #  define LT_DLGLOBAL           RTLD_GLOBAL
20296 #else
20297 #  ifdef DL_GLOBAL
20298 #    define LT_DLGLOBAL         DL_GLOBAL
20299 #  else
20300 #    define LT_DLGLOBAL         0
20301 #  endif
20302 #endif
20303
20304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20305    find out it does not work in some platform. */
20306 #ifndef LT_DLLAZY_OR_NOW
20307 #  ifdef RTLD_LAZY
20308 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20309 #  else
20310 #    ifdef DL_LAZY
20311 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20312 #    else
20313 #      ifdef RTLD_NOW
20314 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20315 #      else
20316 #        ifdef DL_NOW
20317 #          define LT_DLLAZY_OR_NOW      DL_NOW
20318 #        else
20319 #          define LT_DLLAZY_OR_NOW      0
20320 #        endif
20321 #      endif
20322 #    endif
20323 #  endif
20324 #endif
20325
20326 void fnord() { int i=42;}
20327 int main ()
20328 {
20329   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20330   int status = $lt_dlunknown;
20331
20332   if (self)
20333     {
20334       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20335       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20336       /* dlclose (self); */
20337     }
20338   else
20339     puts (dlerror ());
20340
20341   return status;
20342 }
20343 _LT_EOF
20344   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20345   (eval $ac_link) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20349     (./conftest; exit; ) >&5 2>/dev/null
20350     lt_status=$?
20351     case x$lt_status in
20352       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20353       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20354       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20355     esac
20356   else :
20357     # compilation failed
20358     lt_cv_dlopen_self=no
20359   fi
20360 fi
20361 rm -fr conftest*
20362
20363
20364 fi
20365 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20366 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20367
20368     if test "x$lt_cv_dlopen_self" = xyes; then
20369       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20370       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20371 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20372 if test "${lt_cv_dlopen_self_static+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375           if test "$cross_compiling" = yes; then :
20376   lt_cv_dlopen_self_static=cross
20377 else
20378   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20379   lt_status=$lt_dlunknown
20380   cat > conftest.$ac_ext <<_LT_EOF
20381 #line 20381 "configure"
20382 #include "confdefs.h"
20383
20384 #if HAVE_DLFCN_H
20385 #include <dlfcn.h>
20386 #endif
20387
20388 #include <stdio.h>
20389
20390 #ifdef RTLD_GLOBAL
20391 #  define LT_DLGLOBAL           RTLD_GLOBAL
20392 #else
20393 #  ifdef DL_GLOBAL
20394 #    define LT_DLGLOBAL         DL_GLOBAL
20395 #  else
20396 #    define LT_DLGLOBAL         0
20397 #  endif
20398 #endif
20399
20400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20401    find out it does not work in some platform. */
20402 #ifndef LT_DLLAZY_OR_NOW
20403 #  ifdef RTLD_LAZY
20404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20405 #  else
20406 #    ifdef DL_LAZY
20407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20408 #    else
20409 #      ifdef RTLD_NOW
20410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20411 #      else
20412 #        ifdef DL_NOW
20413 #          define LT_DLLAZY_OR_NOW      DL_NOW
20414 #        else
20415 #          define LT_DLLAZY_OR_NOW      0
20416 #        endif
20417 #      endif
20418 #    endif
20419 #  endif
20420 #endif
20421
20422 void fnord() { int i=42;}
20423 int main ()
20424 {
20425   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20426   int status = $lt_dlunknown;
20427
20428   if (self)
20429     {
20430       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20431       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20432       /* dlclose (self); */
20433     }
20434   else
20435     puts (dlerror ());
20436
20437   return status;
20438 }
20439 _LT_EOF
20440   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20441   (eval $ac_link) 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20445     (./conftest; exit; ) >&5 2>/dev/null
20446     lt_status=$?
20447     case x$lt_status in
20448       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20449       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20450       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20451     esac
20452   else :
20453     # compilation failed
20454     lt_cv_dlopen_self_static=no
20455   fi
20456 fi
20457 rm -fr conftest*
20458
20459
20460 fi
20461 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20462 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20463     fi
20464
20465     CPPFLAGS="$save_CPPFLAGS"
20466     LDFLAGS="$save_LDFLAGS"
20467     LIBS="$save_LIBS"
20468     ;;
20469   esac
20470
20471   case $lt_cv_dlopen_self in
20472   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20473   *) enable_dlopen_self=unknown ;;
20474   esac
20475
20476   case $lt_cv_dlopen_self_static in
20477   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20478   *) enable_dlopen_self_static=unknown ;;
20479   esac
20480 fi
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498 striplib=
20499 old_striplib=
20500 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20501 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20502 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20503   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20504   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20505   echo "$as_me:$LINENO: result: yes" >&5
20506 echo "${ECHO_T}yes" >&6
20507 else
20508 # FIXME - insert some real tests, host_os isn't really good enough
20509   case $host_os in
20510   darwin*)
20511     if test -n "$STRIP" ; then
20512       striplib="$STRIP -x"
20513       old_striplib="$STRIP -S"
20514       echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6
20516     else
20517       echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6
20519     fi
20520     ;;
20521   *)
20522     echo "$as_me:$LINENO: result: no" >&5
20523 echo "${ECHO_T}no" >&6
20524     ;;
20525   esac
20526 fi
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539   # Report which library types will actually be built
20540   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20541 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20542   echo "$as_me:$LINENO: result: $can_build_shared" >&5
20543 echo "${ECHO_T}$can_build_shared" >&6
20544
20545   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20546 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20547   test "$can_build_shared" = "no" && enable_shared=no
20548
20549   # On AIX, shared libraries and static libraries use the same namespace, and
20550   # are all built from PIC.
20551   case $host_os in
20552   aix3*)
20553     test "$enable_shared" = yes && enable_static=no
20554     if test -n "$RANLIB"; then
20555       archive_cmds="$archive_cmds~\$RANLIB \$lib"
20556       postinstall_cmds='$RANLIB $lib'
20557     fi
20558     ;;
20559
20560   aix[4-9]*)
20561     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20562       test "$enable_shared" = yes && enable_static=no
20563     fi
20564     ;;
20565   esac
20566   echo "$as_me:$LINENO: result: $enable_shared" >&5
20567 echo "${ECHO_T}$enable_shared" >&6
20568
20569   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20571   # Make sure either enable_shared or enable_static is yes.
20572   test "$enable_shared" = yes || enable_static=yes
20573   echo "$as_me:$LINENO: result: $enable_static" >&5
20574 echo "${ECHO_T}$enable_static" >&6
20575
20576
20577
20578
20579 fi
20580 ac_ext=c
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585
20586 CC="$lt_save_CC"
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603 # Only expand once:
20604
20605
20606
20607
20608
20609 # Identify the assembler which will work hand-in-glove with the newly
20610 # built GCC, so that we can examine its features.  This is the assembler
20611 # which will be driven by the driver program.
20612 #
20613 # If build != host, and we aren't building gas in-tree, we identify a
20614 # build->target assembler and hope that it will have the same features
20615 # as the host->target assembler we'll be using.
20616 gcc_cv_gas_major_version=
20617 gcc_cv_gas_minor_version=
20618 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20619
20620 if test "${gcc_cv_as+set}" = set; then
20621   :
20622 else
20623
20624 if test -x "$DEFAULT_ASSEMBLER"; then
20625         gcc_cv_as="$DEFAULT_ASSEMBLER"
20626 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20627      && test -f ../gas/Makefile \
20628      && test x$build = x$host; then
20629         gcc_cv_as=../gas/as-new$build_exeext
20630 elif test -x as$build_exeext; then
20631         # Build using assembler in the current directory.
20632         gcc_cv_as=./as$build_exeext
20633 elif test -x $AS_FOR_TARGET; then
20634         gcc_cv_as="$AS_FOR_TARGET"
20635 else
20636         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20637 set dummy $AS_FOR_TARGET; ac_word=$2
20638 echo "$as_me:$LINENO: checking for $ac_word" >&5
20639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20640 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20641   echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643   case $gcc_cv_as in
20644   [\\/]* | ?:[\\/]*)
20645   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20646   ;;
20647   *)
20648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20649 for as_dir in $PATH
20650 do
20651   IFS=$as_save_IFS
20652   test -z "$as_dir" && as_dir=.
20653   for ac_exec_ext in '' $ac_executable_extensions; do
20654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20655     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20657     break 2
20658   fi
20659 done
20660 done
20661
20662   ;;
20663 esac
20664 fi
20665 gcc_cv_as=$ac_cv_path_gcc_cv_as
20666
20667 if test -n "$gcc_cv_as"; then
20668   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20669 echo "${ECHO_T}$gcc_cv_as" >&6
20670 else
20671   echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6
20673 fi
20674
20675 fi
20676 fi
20677
20678
20679 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20680
20681 case "$ORIGINAL_AS_FOR_TARGET" in
20682   ./as | ./as$build_exeext) ;;
20683   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20684  ;;
20685 esac
20686
20687 echo "$as_me:$LINENO: checking what assembler to use" >&5
20688 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20689 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20690   # Single tree build which includes gas.  We want to prefer it
20691   # over whatever linker top-level may have detected, since
20692   # we'll use what we're building after installation anyway.
20693   echo "$as_me:$LINENO: result: newly built gas" >&5
20694 echo "${ECHO_T}newly built gas" >&6
20695   in_tree_gas=yes
20696   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20697 for f in $gcc_cv_as_bfd_srcdir/configure \
20698          $gcc_cv_as_gas_srcdir/configure \
20699          $gcc_cv_as_gas_srcdir/configure.in \
20700          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20701   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20702   if test x$gcc_cv_gas_version != x; then
20703     break
20704   fi
20705 done
20706 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20707 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20708 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20709 case $gcc_cv_gas_patch_version in
20710   "") gcc_cv_gas_patch_version="0" ;;
20711 esac
20712 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20713                             + $gcc_cv_gas_minor_version \) \* 1000 \
20714                             + $gcc_cv_gas_patch_version`
20715
20716   in_tree_gas_is_elf=no
20717   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20718      || (grep 'obj_format = multi' ../gas/Makefile \
20719          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20720   then
20721     in_tree_gas_is_elf=yes
20722   fi
20723 else
20724   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20725 echo "${ECHO_T}$gcc_cv_as" >&6
20726   in_tree_gas=no
20727 fi
20728
20729 # Identify the linker which will work hand-in-glove with the newly
20730 # built GCC, so that we can examine its features.  This is the linker
20731 # which will be driven by the driver program.
20732 #
20733 # If build != host, and we aren't building gas in-tree, we identify a
20734 # build->target linker and hope that it will have the same features
20735 # as the host->target linker we'll be using.
20736 gcc_cv_gld_major_version=
20737 gcc_cv_gld_minor_version=
20738 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20739 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20740
20741 if test "${gcc_cv_ld+set}" = set; then
20742   :
20743 else
20744
20745 if test -x "$DEFAULT_LINKER"; then
20746         gcc_cv_ld="$DEFAULT_LINKER"
20747 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20748      && test -f ../ld/Makefile \
20749      && test x$build = x$host; then
20750         gcc_cv_ld=../ld/ld-new$build_exeext
20751 elif test -x collect-ld$build_exeext; then
20752         # Build using linker in the current directory.
20753         gcc_cv_ld=./collect-ld$build_exeext
20754 elif test -x $LD_FOR_TARGET; then
20755         gcc_cv_ld="$LD_FOR_TARGET"
20756 else
20757         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20758 set dummy $LD_FOR_TARGET; ac_word=$2
20759 echo "$as_me:$LINENO: checking for $ac_word" >&5
20760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20761 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764   case $gcc_cv_ld in
20765   [\\/]* | ?:[\\/]*)
20766   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20767   ;;
20768   *)
20769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20770 for as_dir in $PATH
20771 do
20772   IFS=$as_save_IFS
20773   test -z "$as_dir" && as_dir=.
20774   for ac_exec_ext in '' $ac_executable_extensions; do
20775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20776     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20778     break 2
20779   fi
20780 done
20781 done
20782
20783   ;;
20784 esac
20785 fi
20786 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20787
20788 if test -n "$gcc_cv_ld"; then
20789   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20790 echo "${ECHO_T}$gcc_cv_ld" >&6
20791 else
20792   echo "$as_me:$LINENO: result: no" >&5
20793 echo "${ECHO_T}no" >&6
20794 fi
20795
20796 fi
20797 fi
20798
20799
20800 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20801
20802 case "$ORIGINAL_LD_FOR_TARGET" in
20803   ./collect-ld | ./collect-ld$build_exeext) ;;
20804   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20805  ;;
20806 esac
20807
20808 echo "$as_me:$LINENO: checking what linker to use" >&5
20809 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20810 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20811         # Single tree build which includes ld.  We want to prefer it
20812         # over whatever linker top-level may have detected, since
20813         # we'll use what we're building after installation anyway.
20814         echo "$as_me:$LINENO: result: newly built ld" >&5
20815 echo "${ECHO_T}newly built ld" >&6
20816         in_tree_ld=yes
20817         in_tree_ld_is_elf=no
20818         if (grep 'EMUL = .*elf' ../ld/Makefile \
20819             || grep 'EMUL = .*linux' ../ld/Makefile \
20820             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20821           in_tree_ld_is_elf=yes
20822         fi
20823         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
20824         do
20825                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20826                 if test x$gcc_cv_gld_version != x; then
20827                         break
20828                 fi
20829         done
20830         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20831         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20832 else
20833         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20834 echo "${ECHO_T}$gcc_cv_ld" >&6
20835         in_tree_ld=no
20836 fi
20837
20838 # Figure out what nm we will be using.
20839 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20840 if test "${gcc_cv_nm+set}" = set; then
20841   :
20842 else
20843
20844 if test -f $gcc_cv_binutils_srcdir/configure.in \
20845      && test -f ../binutils/Makefile \
20846      && test x$build = x$host; then
20847         gcc_cv_nm=../binutils/nm-new$build_exeext
20848 elif test -x nm$build_exeext; then
20849         gcc_cv_nm=./nm$build_exeext
20850 elif test -x $NM_FOR_TARGET; then
20851         gcc_cv_nm="$NM_FOR_TARGET"
20852 else
20853         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20854 set dummy $NM_FOR_TARGET; ac_word=$2
20855 echo "$as_me:$LINENO: checking for $ac_word" >&5
20856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20857 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   case $gcc_cv_nm in
20861   [\\/]* | ?:[\\/]*)
20862   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20863   ;;
20864   *)
20865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 for as_dir in $PATH
20867 do
20868   IFS=$as_save_IFS
20869   test -z "$as_dir" && as_dir=.
20870   for ac_exec_ext in '' $ac_executable_extensions; do
20871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20872     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20874     break 2
20875   fi
20876 done
20877 done
20878
20879   ;;
20880 esac
20881 fi
20882 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20883
20884 if test -n "$gcc_cv_nm"; then
20885   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20886 echo "${ECHO_T}$gcc_cv_nm" >&6
20887 else
20888   echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20890 fi
20891
20892 fi
20893 fi
20894
20895
20896 echo "$as_me:$LINENO: checking what nm to use" >&5
20897 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20898 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20899         # Single tree build which includes binutils.
20900         echo "$as_me:$LINENO: result: newly built nm" >&5
20901 echo "${ECHO_T}newly built nm" >&6
20902         in_tree_nm=yes
20903 else
20904         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20905 echo "${ECHO_T}$gcc_cv_nm" >&6
20906         in_tree_nm=no
20907 fi
20908
20909 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20910
20911 case "$ORIGINAL_NM_FOR_TARGET" in
20912   ./nm | ./nm$build_exeext) ;;
20913   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20914  ;;
20915 esac
20916
20917
20918 # Figure out what objdump we will be using.
20919 if test "${gcc_cv_objdump+set}" = set; then
20920   :
20921 else
20922
20923 if test -f $gcc_cv_binutils_srcdir/configure.in \
20924      && test -f ../binutils/Makefile \
20925      && test x$build = x$host; then
20926         # Single tree build which includes binutils.
20927         gcc_cv_objdump=../binutils/objdump$build_exeext
20928 elif test -x objdump$build_exeext; then
20929         gcc_cv_objdump=./objdump$build_exeext
20930 elif test -x $OBJDUMP_FOR_TARGET; then
20931         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20932 else
20933         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20934 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20935 echo "$as_me:$LINENO: checking for $ac_word" >&5
20936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20937 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940   case $gcc_cv_objdump in
20941   [\\/]* | ?:[\\/]*)
20942   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20943   ;;
20944   *)
20945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20946 for as_dir in $PATH
20947 do
20948   IFS=$as_save_IFS
20949   test -z "$as_dir" && as_dir=.
20950   for ac_exec_ext in '' $ac_executable_extensions; do
20951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20952     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20954     break 2
20955   fi
20956 done
20957 done
20958
20959   ;;
20960 esac
20961 fi
20962 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20963
20964 if test -n "$gcc_cv_objdump"; then
20965   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20966 echo "${ECHO_T}$gcc_cv_objdump" >&6
20967 else
20968   echo "$as_me:$LINENO: result: no" >&5
20969 echo "${ECHO_T}no" >&6
20970 fi
20971
20972 fi
20973 fi
20974
20975
20976 echo "$as_me:$LINENO: checking what objdump to use" >&5
20977 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20978 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20979         # Single tree build which includes binutils.
20980         echo "$as_me:$LINENO: result: newly built objdump" >&5
20981 echo "${ECHO_T}newly built objdump" >&6
20982 elif test x$gcc_cv_objdump = x; then
20983         echo "$as_me:$LINENO: result: not found" >&5
20984 echo "${ECHO_T}not found" >&6
20985 else
20986         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20987 echo "${ECHO_T}$gcc_cv_objdump" >&6
20988 fi
20989
20990 # Figure out what readelf we will be using.
20991 if test "${gcc_cv_readelf+set}" = set; then
20992   :
20993 else
20994
20995 if test -f $gcc_cv_binutils_srcdir/configure.in \
20996      && test -f ../binutils/Makefile \
20997      && test x$build = x$host; then
20998         # Single tree build which includes binutils.
20999         gcc_cv_readelf=../binutils/readelf$build_exeext
21000 elif test -x readelf$build_exeext; then
21001         gcc_cv_readelf=./readelf$build_exeext
21002 else
21003         # Extract the first word of "readelf", so it can be a program name with args.
21004 set dummy readelf; ac_word=$2
21005 echo "$as_me:$LINENO: checking for $ac_word" >&5
21006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21007 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
21008   echo $ECHO_N "(cached) $ECHO_C" >&6
21009 else
21010   case $gcc_cv_readelf in
21011   [\\/]* | ?:[\\/]*)
21012   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21013   ;;
21014   *)
21015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21017 do
21018   IFS=$as_save_IFS
21019   test -z "$as_dir" && as_dir=.
21020   for ac_exec_ext in '' $ac_executable_extensions; do
21021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21022     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21024     break 2
21025   fi
21026 done
21027 done
21028
21029   ;;
21030 esac
21031 fi
21032 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21033
21034 if test -n "$gcc_cv_readelf"; then
21035   echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
21036 echo "${ECHO_T}$gcc_cv_readelf" >&6
21037 else
21038   echo "$as_me:$LINENO: result: no" >&5
21039 echo "${ECHO_T}no" >&6
21040 fi
21041
21042 fi
21043 fi
21044
21045
21046 echo "$as_me:$LINENO: checking what readelf to use" >&5
21047 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
21048 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21049         # Single tree build which includes binutils.
21050         echo "$as_me:$LINENO: result: newly built readelf" >&5
21051 echo "${ECHO_T}newly built readelf" >&6
21052 elif test x$gcc_cv_readelf = x; then
21053         echo "$as_me:$LINENO: result: not found" >&5
21054 echo "${ECHO_T}not found" >&6
21055 else
21056         echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
21057 echo "${ECHO_T}$gcc_cv_readelf" >&6
21058 fi
21059
21060 # Figure out what assembler alignment features are present.
21061 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
21062 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
21063 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
21064   echo $ECHO_N "(cached) $ECHO_C" >&6
21065 else
21066   gcc_cv_as_balign_and_p2align=no
21067     if test $in_tree_gas = yes; then
21068     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21069   then gcc_cv_as_balign_and_p2align=yes
21070 fi
21071   elif test x$gcc_cv_as != x; then
21072     echo '.balign 4
21073 .p2align 2' > conftest.s
21074     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076   (eval $ac_try) 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; }
21080     then
21081         gcc_cv_as_balign_and_p2align=yes
21082     else
21083       echo "configure: failed program was" >&5
21084       cat conftest.s >&5
21085     fi
21086     rm -f conftest.o conftest.s
21087   fi
21088 fi
21089 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
21090 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
21091 if test $gcc_cv_as_balign_and_p2align = yes; then
21092
21093 cat >>confdefs.h <<\_ACEOF
21094 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
21095 _ACEOF
21096
21097 fi
21098
21099 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
21100 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
21101 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
21102   echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104   gcc_cv_as_max_skip_p2align=no
21105     if test $in_tree_gas = yes; then
21106     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21107   then gcc_cv_as_max_skip_p2align=yes
21108 fi
21109   elif test x$gcc_cv_as != x; then
21110     echo '.p2align 4,,7' > conftest.s
21111     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; }
21117     then
21118         gcc_cv_as_max_skip_p2align=yes
21119     else
21120       echo "configure: failed program was" >&5
21121       cat conftest.s >&5
21122     fi
21123     rm -f conftest.o conftest.s
21124   fi
21125 fi
21126 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21127 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21128 if test $gcc_cv_as_max_skip_p2align = yes; then
21129
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21132 _ACEOF
21133
21134 fi
21135
21136 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21137 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21138 if test "${gcc_cv_as_literal16+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141   gcc_cv_as_literal16=no
21142     if test $in_tree_gas = yes; then
21143     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21144   then gcc_cv_as_literal16=yes
21145 fi
21146   elif test x$gcc_cv_as != x; then
21147     echo '.literal16' > conftest.s
21148     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; }
21154     then
21155         gcc_cv_as_literal16=yes
21156     else
21157       echo "configure: failed program was" >&5
21158       cat conftest.s >&5
21159     fi
21160     rm -f conftest.o conftest.s
21161   fi
21162 fi
21163 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21164 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21165 if test $gcc_cv_as_literal16 = yes; then
21166
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_GAS_LITERAL16 1
21169 _ACEOF
21170
21171 fi
21172
21173 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21174 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21175 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   gcc_cv_as_subsection_m1=no
21179     if test $in_tree_gas = yes; then
21180     if test $in_tree_gas_is_elf = yes \
21181   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21182   then gcc_cv_as_subsection_m1=yes
21183 fi
21184   elif test x$gcc_cv_as != x; then
21185     echo 'conftest_label1: .word 0
21186 .subsection -1
21187 conftest_label2: .word 0
21188 .previous' > conftest.s
21189     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191   (eval $ac_try) 2>&5
21192   ac_status=$?
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); }; }
21195     then
21196         if test x$gcc_cv_nm != x; then
21197     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21198     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21199     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21200     then :
21201     else gcc_cv_as_subsection_m1=yes
21202     fi
21203     rm -f conftest.nm1 conftest.nm2
21204   fi
21205     else
21206       echo "configure: failed program was" >&5
21207       cat conftest.s >&5
21208     fi
21209     rm -f conftest.o conftest.s
21210   fi
21211 fi
21212 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21213 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21214 if test $gcc_cv_as_subsection_m1 = yes; then
21215
21216 cat >>confdefs.h <<\_ACEOF
21217 #define HAVE_GAS_SUBSECTION_ORDERING 1
21218 _ACEOF
21219
21220 fi
21221
21222 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21223 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21224 if test "${gcc_cv_as_weak+set}" = set; then
21225   echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227   gcc_cv_as_weak=no
21228     if test $in_tree_gas = yes; then
21229     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21230   then gcc_cv_as_weak=yes
21231 fi
21232   elif test x$gcc_cv_as != x; then
21233     echo '      .weak foobar' > conftest.s
21234     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }
21240     then
21241         gcc_cv_as_weak=yes
21242     else
21243       echo "configure: failed program was" >&5
21244       cat conftest.s >&5
21245     fi
21246     rm -f conftest.o conftest.s
21247   fi
21248 fi
21249 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21250 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21251 if test $gcc_cv_as_weak = yes; then
21252
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_GAS_WEAK 1
21255 _ACEOF
21256
21257 fi
21258
21259 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21260 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21261 if test "${gcc_cv_as_weakref+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   gcc_cv_as_weakref=no
21265     if test $in_tree_gas = yes; then
21266     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21267   then gcc_cv_as_weakref=yes
21268 fi
21269   elif test x$gcc_cv_as != x; then
21270     echo '      .weakref foobar, barfnot' > conftest.s
21271     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273   (eval $ac_try) 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); }; }
21277     then
21278         gcc_cv_as_weakref=yes
21279     else
21280       echo "configure: failed program was" >&5
21281       cat conftest.s >&5
21282     fi
21283     rm -f conftest.o conftest.s
21284   fi
21285 fi
21286 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21287 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21288 if test $gcc_cv_as_weakref = yes; then
21289
21290 cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_GAS_WEAKREF 1
21292 _ACEOF
21293
21294 fi
21295
21296 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21297 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21298 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21299   echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301   gcc_cv_as_nsubspa_comdat=no
21302     if test $in_tree_gas = yes; then
21303     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21304   then gcc_cv_as_nsubspa_comdat=yes
21305 fi
21306   elif test x$gcc_cv_as != x; then
21307     echo '      .SPACE $TEXT$
21308         .NSUBSPA $CODE$,COMDAT' > conftest.s
21309     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311   (eval $ac_try) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; }
21315     then
21316         gcc_cv_as_nsubspa_comdat=yes
21317     else
21318       echo "configure: failed program was" >&5
21319       cat conftest.s >&5
21320     fi
21321     rm -f conftest.o conftest.s
21322   fi
21323 fi
21324 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21325 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21326 if test $gcc_cv_as_nsubspa_comdat = yes; then
21327
21328 cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_GAS_NSUBSPA_COMDAT 1
21330 _ACEOF
21331
21332 fi
21333
21334 # .hidden needs to be supported in both the assembler and the linker,
21335 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21336 # This is irritatingly difficult to feature test for; we have to check the
21337 # date string after the version number.  If we've got an in-tree
21338 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21339 # to be safe.
21340 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21341 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21342 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21343 if test "${gcc_cv_as_hidden+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   gcc_cv_as_hidden=no
21347     if test $in_tree_gas = yes; then
21348     if test $in_tree_gas_is_elf = yes \
21349   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21350   then gcc_cv_as_hidden=yes
21351 fi
21352   elif test x$gcc_cv_as != x; then
21353     echo '      .hidden foobar
21354 foobar:' > conftest.s
21355     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357   (eval $ac_try) 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); }; }
21361     then
21362         gcc_cv_as_hidden=yes
21363     else
21364       echo "configure: failed program was" >&5
21365       cat conftest.s >&5
21366     fi
21367     rm -f conftest.o conftest.s
21368   fi
21369 fi
21370 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21371 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21372
21373
21374 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21375 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21376 if test "${gcc_cv_ld_hidden+set}" = set; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379   if test $in_tree_ld = yes ; then
21380   gcc_cv_ld_hidden=no
21381   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 \
21382      && test $in_tree_ld_is_elf = yes; then
21383      gcc_cv_ld_hidden=yes
21384   fi
21385 else
21386   gcc_cv_ld_hidden=yes
21387   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21388   if echo "$ld_ver" | grep GNU > /dev/null; then
21389     ld_vers=`echo $ld_ver | sed -n \
21390         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21391     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'`
21392     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21393     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21394     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21395     if test 0"$ld_date" -lt 20020404; then
21396       if test -n "$ld_date"; then
21397         # If there was date string, but was earlier than 2002-04-04, fail
21398         gcc_cv_ld_hidden=no
21399       elif test -z "$ld_vers"; then
21400         # If there was no date string nor ld version number, something is wrong
21401         gcc_cv_ld_hidden=no
21402       else
21403         test -z "$ld_vers_patch" && ld_vers_patch=0
21404         if test "$ld_vers_major" -lt 2; then
21405           gcc_cv_ld_hidden=no
21406         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21407           gcc_cv_ld_hidden="no"
21408         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21409           gcc_cv_ld_hidden=no
21410         fi
21411       fi
21412     fi
21413   else
21414     case "${target}" in
21415       hppa64*-*-hpux* | ia64*-*-hpux*)
21416         gcc_cv_ld_hidden=yes
21417         ;;
21418       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21419         gcc_cv_ld_hidden=yes
21420         ;;
21421       *)
21422         gcc_cv_ld_hidden=no
21423         ;;
21424     esac
21425   fi
21426 fi
21427 fi
21428 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21429 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21430 libgcc_visibility=no
21431
21432
21433 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21434   libgcc_visibility=yes
21435
21436 cat >>confdefs.h <<\_ACEOF
21437 #define HAVE_GAS_HIDDEN 1
21438 _ACEOF
21439
21440 fi
21441
21442 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21443 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21444 gcc_cv_ld_ro_rw_mix=unknown
21445 if test $in_tree_ld = yes ; then
21446   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 \
21447      && test $in_tree_ld_is_elf = yes; then
21448     gcc_cv_ld_ro_rw_mix=read-write
21449   fi
21450 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21451   echo '.section myfoosect, "a"' > conftest1.s
21452   echo '.section myfoosect, "aw"' > conftest2.s
21453   echo '.byte 1' >> conftest2.s
21454   echo '.section myfoosect, "a"' > conftest3.s
21455   echo '.byte 0' >> conftest3.s
21456   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21457      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21458      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21459      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21460         conftest2.o conftest3.o > /dev/null 2>&1; then
21461     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21462                          | sed -e '/myfoosect/!d' -e N`
21463     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21464       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21465         gcc_cv_ld_ro_rw_mix=read-only
21466       else
21467         gcc_cv_ld_ro_rw_mix=read-write
21468       fi
21469     fi
21470   fi
21471   rm -f conftest.* conftest[123].*
21472 fi
21473 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21474
21475 cat >>confdefs.h <<\_ACEOF
21476 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21477 _ACEOF
21478
21479 fi
21480 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21481 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21482
21483 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21484 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21485 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21486 if test "${gcc_cv_as_leb128+set}" = set; then
21487   echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489   gcc_cv_as_leb128=no
21490     if test $in_tree_gas = yes; then
21491     if test $in_tree_gas_is_elf = yes \
21492   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21493   then gcc_cv_as_leb128=yes
21494 fi
21495   elif test x$gcc_cv_as != x; then
21496     echo '      .data
21497         .uleb128 L2 - L1
21498 L1:
21499         .uleb128 1280
21500         .sleb128 -1010
21501 L2:' > conftest.s
21502     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504   (eval $ac_try) 2>&5
21505   ac_status=$?
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); }; }
21508     then
21509         # GAS versions before 2.11 do not support uleb128,
21510   # despite appearing to.
21511   # ??? There exists an elf-specific test that will crash
21512   # the assembler.  Perhaps it's better to figure out whether
21513   # arbitrary sections are supported and try the test.
21514   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21515   if echo "$as_ver" | grep GNU > /dev/null; then
21516     as_vers=`echo $as_ver | sed -n \
21517         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21518     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21519     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21520     if test $as_major -eq 2 && test $as_minor -lt 11
21521     then :
21522     else gcc_cv_as_leb128=yes
21523     fi
21524   fi
21525     else
21526       echo "configure: failed program was" >&5
21527       cat conftest.s >&5
21528     fi
21529     rm -f conftest.o conftest.s
21530   fi
21531 fi
21532 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21533 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21534 if test $gcc_cv_as_leb128 = yes; then
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_AS_LEB128 1
21538 _ACEOF
21539
21540 fi
21541
21542 # Check if we have assembler support for unwind directives.
21543 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21544 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21545 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   gcc_cv_as_cfi_directive=no
21549   if test x$gcc_cv_as != x; then
21550     echo '      .text
21551         .cfi_startproc
21552         .cfi_offset 0, 0
21553         .cfi_same_value 1
21554         .cfi_def_cfa 1, 2
21555         .cfi_escape 1, 2, 3, 4, 5
21556         .cfi_endproc' > conftest.s
21557     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; }
21563     then
21564         case "$target" in
21565   *-*-solaris*)
21566     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21567     # read-only and read-write sections, we need to make sure that the
21568     # assembler used emits read-write .eh_frame sections.
21569     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21570       if test "x$gcc_cv_objdump" != x; then
21571         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21572                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21573           gcc_cv_as_cfi_directive=no
21574         else
21575           gcc_cv_as_cfi_directive=yes
21576         fi
21577       else
21578         # no objdump, err on the side of caution
21579         gcc_cv_as_cfi_directive=no
21580       fi
21581     else
21582       gcc_cv_as_cfi_directive=yes
21583     fi
21584     ;;
21585   *-*-*)
21586     gcc_cv_as_cfi_directive=yes
21587     ;;
21588 esac
21589     else
21590       echo "configure: failed program was" >&5
21591       cat conftest.s >&5
21592     fi
21593     rm -f conftest.o conftest.s
21594   fi
21595 fi
21596 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21597 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21598
21599 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21600 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21601 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21602 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21603   echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605   gcc_cv_as_cfi_advance_working=no
21606   if test x$gcc_cv_as != x; then
21607     echo '      .text
21608         .cfi_startproc
21609         .cfi_adjust_cfa_offset 64
21610         .skip 512, 0
21611         .cfi_adjust_cfa_offset 128
21612         .cfi_endproc' > conftest.s
21613     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615   (eval $ac_try) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }
21619     then
21620
21621 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21622     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21623    gcc_cv_as_cfi_advance_working=yes
21624 fi
21625
21626     else
21627       echo "configure: failed program was" >&5
21628       cat conftest.s >&5
21629     fi
21630     rm -f conftest.o conftest.s
21631   fi
21632 fi
21633 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21634 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21635
21636 else
21637   # no readelf, err on the side of caution
21638   gcc_cv_as_cfi_advance_working=no
21639 fi
21640
21641 cat >>confdefs.h <<_ACEOF
21642 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21643        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21644 _ACEOF
21645
21646
21647 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21648 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21649 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   gcc_cv_as_cfi_personality_directive=no
21653   if test x$gcc_cv_as != x; then
21654     echo '      .text
21655         .cfi_startproc
21656         .cfi_personality 0, symbol
21657         .cfi_endproc' > conftest.s
21658     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660   (eval $ac_try) 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); }; }
21664     then
21665         gcc_cv_as_cfi_personality_directive=yes
21666     else
21667       echo "configure: failed program was" >&5
21668       cat conftest.s >&5
21669     fi
21670     rm -f conftest.o conftest.s
21671   fi
21672 fi
21673 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21674 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21675
21676
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21679     then echo 1; else echo 0; fi`
21680 _ACEOF
21681
21682
21683 # GAS versions up to and including 2.11.0 may mis-optimize
21684 # .eh_frame data.
21685 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21686 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21687 if test "${gcc_cv_as_eh_frame+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   gcc_cv_as_eh_frame=no
21691     if test $in_tree_gas = yes; then
21692     if test $in_tree_gas_is_elf = yes \
21693   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21694   then gcc_cv_as_eh_frame=yes
21695 fi
21696   elif test x$gcc_cv_as != x; then
21697     echo '      .text
21698 .LFB1:
21699         .4byte  0
21700 .L1:
21701         .4byte  0
21702 .LFE1:
21703         .section        .eh_frame,"aw",@progbits
21704 __FRAME_BEGIN__:
21705         .4byte  .LECIE1-.LSCIE1
21706 .LSCIE1:
21707         .4byte  0x0
21708         .byte   0x1
21709         .ascii "z\0"
21710         .byte   0x1
21711         .byte   0x78
21712         .byte   0x1a
21713         .byte   0x0
21714         .byte   0x4
21715         .4byte  1
21716         .p2align 1
21717 .LECIE1:
21718 .LSFDE1:
21719         .4byte  .LEFDE1-.LASFDE1
21720 .LASFDE1:
21721         .4byte  .LASFDE1-__FRAME_BEGIN__
21722         .4byte  .LFB1
21723         .4byte  .LFE1-.LFB1
21724         .byte   0x4
21725         .4byte  .LFE1-.LFB1
21726         .byte   0x4
21727         .4byte  .L1-.LFB1
21728 .LEFDE1:' > conftest.s
21729     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }
21735     then
21736           cat > conftest.lit <<EOF
21737  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21738  0010 01000000 12000000 18000000 00000000  ................
21739  0020 08000000 04080000 0044               .........D      
21740 EOF
21741 cat > conftest.big <<EOF
21742  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21743  0010 00000001 00000012 00000018 00000000  ................
21744  0020 00000008 04000000 0844               .........D      
21745 EOF
21746   # If the assembler didn't choke, and we can objdump,
21747   # and we got the correct data, then succeed.
21748   # The text in the here-document typically retains its unix-style line
21749   # endings, while the output of objdump will use host line endings.
21750   # Therefore, use diff -b for the comparisons.
21751   if test x$gcc_cv_objdump != x \
21752   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21753      | tail -3 > conftest.got \
21754   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21755     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21756   then
21757     gcc_cv_as_eh_frame=yes
21758   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764     gcc_cv_as_eh_frame=buggy
21765   else
21766     # Uh oh, what do we do now?
21767     gcc_cv_as_eh_frame=no
21768   fi
21769     else
21770       echo "configure: failed program was" >&5
21771       cat conftest.s >&5
21772     fi
21773     rm -f conftest.o conftest.s
21774   fi
21775 fi
21776 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21777 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21778
21779
21780 if test $gcc_cv_as_eh_frame = buggy; then
21781
21782 cat >>confdefs.h <<\_ACEOF
21783 #define USE_AS_TRADITIONAL_FORMAT 1
21784 _ACEOF
21785
21786 fi
21787
21788 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21789 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21790 if test "${gcc_cv_as_shf_merge+set}" = set; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793   gcc_cv_as_shf_merge=no
21794     if test $in_tree_gas = yes; then
21795     if test $in_tree_gas_is_elf = yes \
21796   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21797   then gcc_cv_as_shf_merge=yes
21798 fi
21799   elif test x$gcc_cv_as != x; then
21800     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21801     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803   (eval $ac_try) 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; }
21807     then
21808         gcc_cv_as_shf_merge=yes
21809     else
21810       echo "configure: failed program was" >&5
21811       cat conftest.s >&5
21812     fi
21813     rm -f conftest.o conftest.s
21814   fi
21815 fi
21816 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21817 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21818
21819 if test $gcc_cv_as_shf_merge = no; then
21820   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21821 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21822 if test "${gcc_cv_as_shf_merge+set}" = set; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825   gcc_cv_as_shf_merge=no
21826     if test $in_tree_gas = yes; then
21827     if test $in_tree_gas_is_elf = yes \
21828   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21829   then gcc_cv_as_shf_merge=yes
21830 fi
21831   elif test x$gcc_cv_as != x; then
21832     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21833     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }
21839     then
21840         gcc_cv_as_shf_merge=yes
21841     else
21842       echo "configure: failed program was" >&5
21843       cat conftest.s >&5
21844     fi
21845     rm -f conftest.o conftest.s
21846   fi
21847 fi
21848 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21849 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21850
21851 fi
21852
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21855 _ACEOF
21856
21857
21858 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21859 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21860 if test "${gcc_cv_as_comdat_group+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   gcc_cv_as_comdat_group=no
21864     if test $in_tree_gas = yes; then
21865     if test $in_tree_gas_is_elf = yes \
21866   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21867   then gcc_cv_as_comdat_group=yes
21868 fi
21869   elif test x$gcc_cv_as != x; then
21870     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21871     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }
21877     then
21878         gcc_cv_as_comdat_group=yes
21879     else
21880       echo "configure: failed program was" >&5
21881       cat conftest.s >&5
21882     fi
21883     rm -f conftest.o conftest.s
21884   fi
21885 fi
21886 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21887 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21888
21889 if test $gcc_cv_as_comdat_group = yes; then
21890   gcc_cv_as_comdat_group_percent=no
21891 else
21892  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21893 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21894 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   gcc_cv_as_comdat_group_percent=no
21898     if test $in_tree_gas = yes; then
21899     if test $in_tree_gas_is_elf = yes \
21900   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21901   then gcc_cv_as_comdat_group_percent=yes
21902 fi
21903   elif test x$gcc_cv_as != x; then
21904     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21905     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); }; }
21911     then
21912         gcc_cv_as_comdat_group_percent=yes
21913     else
21914       echo "configure: failed program was" >&5
21915       cat conftest.s >&5
21916     fi
21917     rm -f conftest.o conftest.s
21918   fi
21919 fi
21920 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21921 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21922
21923 fi
21924 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21925   comdat_group=yes
21926   if test 0"$ld_date" -lt 20050308; then
21927     if test -n "$ld_date"; then
21928       # If there was date string, but was earlier than 2005-03-08, fail
21929       comdat_group=no
21930     elif test "$ld_vers_major" -lt 2; then
21931       comdat_group=no
21932     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21933       comdat_group=no
21934     fi
21935   fi
21936 else
21937   # assume linkers other than GNU ld don't support COMDAT group
21938   comdat_group=no
21939 fi
21940 if test $comdat_group = no; then
21941   gcc_cv_as_comdat_group=no
21942   gcc_cv_as_comdat_group_percent=no
21943 fi
21944
21945 cat >>confdefs.h <<_ACEOF
21946 #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`
21947 _ACEOF
21948
21949
21950 # Thread-local storage - the check is heavily parameterized.
21951 conftest_s=
21952 tls_first_major=
21953 tls_first_minor=
21954 tls_as_opt=
21955 case "$target" in
21956   alpha*-*-*)
21957     conftest_s='
21958         .section ".tdata","awT",@progbits
21959 foo:    .long   25
21960         .text
21961         ldq     $27,__tls_get_addr($29)         !literal!1
21962         lda     $16,foo($29)                    !tlsgd!1
21963         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21964         ldq     $27,__tls_get_addr($29)         !literal!2
21965         lda     $16,foo($29)                    !tlsldm!2
21966         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21967         ldq     $1,foo($29)                     !gotdtprel
21968         ldah    $2,foo($29)                     !dtprelhi
21969         lda     $3,foo($2)                      !dtprello
21970         lda     $4,foo($29)                     !dtprel
21971         ldq     $1,foo($29)                     !gottprel
21972         ldah    $2,foo($29)                     !tprelhi
21973         lda     $3,foo($2)                      !tprello
21974         lda     $4,foo($29)                     !tprel'
21975         tls_first_major=2
21976         tls_first_minor=13
21977         tls_as_opt=--fatal-warnings
21978         ;;
21979   frv*-*-*)
21980     conftest_s='
21981         .section ".tdata","awT",@progbits
21982 x:      .long   25
21983         .text
21984         call    #gettlsoff(x)'
21985         tls_first_major=2
21986         tls_first_minor=14
21987         ;;
21988   hppa*-*-linux*)
21989     conftest_s='
21990 t1:     .reg    %r20
21991 t2:     .reg    %r21
21992 gp:     .reg    %r19
21993         .section ".tdata","awT",@progbits
21994 foo:    .long   25
21995         .text
21996         .align  4
21997         addil LT%foo-$tls_gdidx$,gp
21998         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21999         b __tls_get_addr
22000         nop
22001         addil LT%foo-$tls_ldidx$,gp
22002         b __tls_get_addr
22003         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22004         addil LR%foo-$tls_dtpoff$,%ret0
22005         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22006         mfctl %cr27,%t1
22007         addil LT%foo-$tls_ieoff$,gp
22008         ldw RT%foo-$tls_ieoff$(%r1),%t2
22009         add %t1,%t2,%t3
22010         mfctl %cr27,%t1
22011         addil LR%foo-$tls_leoff$,%t1
22012         ldo RR%foo-$tls_leoff$(%r1),%t2'
22013         tls_first_major=2
22014         tls_first_minor=15
22015         tls_as_opt=--fatal-warnings
22016         ;;
22017   arm*-*-*)
22018     conftest_s='
22019         .section ".tdata","awT",%progbits
22020 foo:    .long   25
22021         .text
22022 .word foo(gottpoff)
22023 .word foo(tpoff)
22024 .word foo(tlsgd)
22025 .word foo(tlsldm)
22026 .word foo(tlsldo)'
22027         tls_first_major=2
22028         tls_first_minor=17
22029         ;;
22030   i[34567]86-*-*)
22031     conftest_s='
22032         .section ".tdata","awT",@progbits
22033 foo:    .long   25
22034         .text
22035         movl    %gs:0, %eax
22036         leal    foo@TLSGD(,%ebx,1), %eax
22037         leal    foo@TLSLDM(%ebx), %eax
22038         leal    foo@DTPOFF(%eax), %edx
22039         movl    foo@GOTTPOFF(%ebx), %eax
22040         subl    foo@GOTTPOFF(%ebx), %eax
22041         addl    foo@GOTNTPOFF(%ebx), %eax
22042         movl    foo@INDNTPOFF, %eax
22043         movl    $foo@TPOFF, %eax
22044         subl    $foo@TPOFF, %eax
22045         leal    foo@NTPOFF(%ecx), %eax'
22046         tls_first_major=2
22047         tls_first_minor=14
22048         tls_as_opt=--fatal-warnings
22049         ;;
22050   x86_64-*-*)
22051     conftest_s='
22052         .section ".tdata","awT",@progbits
22053 foo:    .long   25
22054         .text
22055         movq    %fs:0, %rax
22056         leaq    foo@TLSGD(%rip), %rdi
22057         leaq    foo@TLSLD(%rip), %rdi
22058         leaq    foo@DTPOFF(%rax), %rdx
22059         movq    foo@GOTTPOFF(%rip), %rax
22060         movq    $foo@TPOFF, %rax'
22061         tls_first_major=2
22062         tls_first_minor=14
22063         tls_as_opt=--fatal-warnings
22064         ;;
22065   ia64-*-*)
22066     conftest_s='
22067         .section ".tdata","awT",@progbits
22068 foo:    data8   25
22069         .text
22070         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22071         addl    r17 = @ltoff(@dtprel(foo#)), gp
22072         addl    r18 = @ltoff(@tprel(foo#)), gp
22073         addl    r19 = @dtprel(foo#), gp
22074         adds    r21 = @dtprel(foo#), r13
22075         movl    r23 = @dtprel(foo#)
22076         addl    r20 = @tprel(foo#), gp
22077         adds    r22 = @tprel(foo#), r13
22078         movl    r24 = @tprel(foo#)'
22079         tls_first_major=2
22080         tls_first_minor=13
22081         tls_as_opt=--fatal-warnings
22082         ;;
22083   mips*-*-*)
22084     conftest_s='
22085         .section .tdata,"awT",@progbits
22086 x:
22087         .word 2
22088         .text
22089         addiu $4, $28, %tlsgd(x)
22090         addiu $4, $28, %tlsldm(x)
22091         lui $4, %dtprel_hi(x)
22092         addiu $4, $4, %dtprel_lo(x)
22093         lw $4, %gottprel(x)($28)
22094         lui $4, %tprel_hi(x)
22095         addiu $4, $4, %tprel_lo(x)'
22096         tls_first_major=2
22097         tls_first_minor=16
22098         tls_as_opt='-32 --fatal-warnings'
22099         ;;
22100   powerpc-*-*)
22101     conftest_s='
22102         .section ".tdata","awT",@progbits
22103         .align 2
22104 ld0:    .space 4
22105 ld1:    .space 4
22106 x1:     .space 4
22107 x2:     .space 4
22108 x3:     .space 4
22109         .text
22110         addi 3,31,ld0@got@tlsgd
22111         bl __tls_get_addr
22112         addi 3,31,x1@got@tlsld
22113         bl __tls_get_addr
22114         addi 9,3,x1@dtprel
22115         addis 9,3,x2@dtprel@ha
22116         addi 9,9,x2@dtprel@l
22117         lwz 9,x3@got@tprel(31)
22118         add 9,9,x@tls
22119         addi 9,2,x1@tprel
22120         addis 9,2,x2@tprel@ha
22121         addi 9,9,x2@tprel@l'
22122         tls_first_major=2
22123         tls_first_minor=14
22124         tls_as_opt="-a32 --fatal-warnings"
22125         ;;
22126   powerpc64-*-*)
22127     conftest_s='
22128         .section ".tdata","awT",@progbits
22129         .align 3
22130 ld0:    .space 8
22131 ld1:    .space 8
22132 x1:     .space 8
22133 x2:     .space 8
22134 x3:     .space 8
22135         .text
22136         addi 3,2,ld0@got@tlsgd
22137         bl .__tls_get_addr
22138         nop
22139         addi 3,2,ld1@toc
22140         bl .__tls_get_addr
22141         nop
22142         addi 3,2,x1@got@tlsld
22143         bl .__tls_get_addr
22144         nop
22145         addi 9,3,x1@dtprel
22146         bl .__tls_get_addr
22147         nop
22148         addis 9,3,x2@dtprel@ha
22149         addi 9,9,x2@dtprel@l
22150         bl .__tls_get_addr
22151         nop
22152         ld 9,x3@got@dtprel(2)
22153         add 9,9,3
22154         bl .__tls_get_addr
22155         nop'
22156         tls_first_major=2
22157         tls_first_minor=14
22158         tls_as_opt="-a64 --fatal-warnings"
22159         ;;
22160   s390-*-*)
22161     conftest_s='
22162         .section ".tdata","awT",@progbits
22163 foo:    .long   25
22164         .text
22165         .long   foo@TLSGD
22166         .long   foo@TLSLDM
22167         .long   foo@DTPOFF
22168         .long   foo@NTPOFF
22169         .long   foo@GOTNTPOFF
22170         .long   foo@INDNTPOFF
22171         l       %r1,foo@GOTNTPOFF(%r12)
22172         l       %r1,0(%r1):tls_load:foo
22173         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22174         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22175         tls_first_major=2
22176         tls_first_minor=14
22177         tls_as_opt="-m31 --fatal-warnings"
22178         ;;
22179   s390x-*-*)
22180     conftest_s='
22181         .section ".tdata","awT",@progbits
22182 foo:    .long   25
22183         .text
22184         .quad   foo@TLSGD
22185         .quad   foo@TLSLDM
22186         .quad   foo@DTPOFF
22187         .quad   foo@NTPOFF
22188         .quad   foo@GOTNTPOFF
22189         lg      %r1,foo@GOTNTPOFF(%r12)
22190         larl    %r1,foo@INDNTPOFF
22191         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22192         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22193         tls_first_major=2
22194         tls_first_minor=14
22195         tls_as_opt="-m64 -Aesame --fatal-warnings"
22196         ;;
22197   sh-*-* | sh[34]-*-*)
22198     conftest_s='
22199         .section ".tdata","awT",@progbits
22200 foo:    .long   25
22201         .text
22202         .long   foo@TLSGD
22203         .long   foo@TLSLDM
22204         .long   foo@DTPOFF
22205         .long   foo@GOTTPOFF
22206         .long   foo@TPOFF'
22207         tls_first_major=2
22208         tls_first_minor=13
22209         tls_as_opt=--fatal-warnings
22210         ;;
22211   sparc*-*-*)
22212     case "$target" in
22213       sparc*-sun-solaris2.[56789]*)
22214         # TLS was introduced in the Solaris 9 4/04 release but
22215         # we do not enable it by default on Solaris 9 either.
22216         if test "x$enable_tls" = xyes ; then
22217           on_solaris=yes
22218         else
22219           enable_tls=no;
22220         fi
22221         ;;
22222       sparc*-sun-solaris2.*)
22223         on_solaris=yes
22224         ;;
22225       *)
22226         on_solaris=no
22227         ;;
22228     esac
22229     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22230       conftest_s='
22231         .section ".tdata",#alloc,#write,#tls
22232 foo:    .long   25
22233         .text
22234         sethi   %tgd_hi22(foo), %o0
22235         add     %o0, %tgd_lo10(foo), %o1
22236         add     %l7, %o1, %o0, %tgd_add(foo)
22237         call    __tls_get_addr, %tgd_call(foo)
22238         sethi   %tldm_hi22(foo), %l1
22239         add     %l1, %tldm_lo10(foo), %l2
22240         add     %l7, %l2, %o0, %tldm_add(foo)
22241         call    __tls_get_addr, %tldm_call(foo)
22242         sethi   %tldo_hix22(foo), %l3
22243         xor     %l3, %tldo_lox10(foo), %l4
22244         add     %o0, %l4, %l5, %tldo_add(foo)
22245         sethi   %tie_hi22(foo), %o3
22246         add     %o3, %tie_lo10(foo), %o3
22247         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22248         add     %g7, %o2, %o4, %tie_add(foo)
22249         sethi   %tle_hix22(foo), %l1
22250         xor     %l1, %tle_lox10(foo), %o5
22251         ld      [%g7 + %o5], %o1'
22252         tls_first_major=0
22253         tls_first_minor=0
22254     else
22255       conftest_s='
22256         .section ".tdata","awT",@progbits
22257 foo:    .long   25
22258         .text
22259         sethi   %tgd_hi22(foo), %o0
22260         add     %o0, %tgd_lo10(foo), %o1
22261         add     %l7, %o1, %o0, %tgd_add(foo)
22262         call    __tls_get_addr, %tgd_call(foo)
22263         sethi   %tldm_hi22(foo), %l1
22264         add     %l1, %tldm_lo10(foo), %l2
22265         add     %l7, %l2, %o0, %tldm_add(foo)
22266         call    __tls_get_addr, %tldm_call(foo)
22267         sethi   %tldo_hix22(foo), %l3
22268         xor     %l3, %tldo_lox10(foo), %l4
22269         add     %o0, %l4, %l5, %tldo_add(foo)
22270         sethi   %tie_hi22(foo), %o3
22271         add     %o3, %tie_lo10(foo), %o3
22272         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22273         add     %g7, %o2, %o4, %tie_add(foo)
22274         sethi   %tle_hix22(foo), %l1
22275         xor     %l1, %tle_lox10(foo), %o5
22276         ld      [%g7 + %o5], %o1'
22277         tls_first_major=2
22278         tls_first_minor=14
22279         tls_as_opt="-32 --fatal-warnings"
22280       fi
22281         ;;
22282   xtensa*-*-*)
22283     conftest_s='
22284         .section ".tdata","awT",@progbits
22285 foo:    .long   25
22286         .text
22287         movi    a8, foo@TLSFUNC
22288         movi    a10, foo@TLSARG
22289         callx8.tls a8, foo@TLSCALL'
22290         tls_first_major=2
22291         tls_first_minor=19
22292         ;;
22293 esac
22294 set_have_as_tls=no
22295 if test "x$enable_tls" = xno ; then
22296   : # TLS explicitly disabled.
22297 elif test "x$enable_tls" = xyes ; then
22298   set_have_as_tls=yes # TLS explicitly enabled.
22299 elif test -z "$tls_first_major"; then
22300   : # If we don't have a check, assume no support.
22301 else
22302   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22303 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22304 if test "${gcc_cv_as_tls+set}" = set; then
22305   echo $ECHO_N "(cached) $ECHO_C" >&6
22306 else
22307   gcc_cv_as_tls=no
22308     if test $in_tree_gas = yes; then
22309     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22310   then gcc_cv_as_tls=yes
22311 fi
22312   elif test x$gcc_cv_as != x; then
22313     echo "$conftest_s" > conftest.s
22314     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }
22320     then
22321         gcc_cv_as_tls=yes
22322     else
22323       echo "configure: failed program was" >&5
22324       cat conftest.s >&5
22325     fi
22326     rm -f conftest.o conftest.s
22327   fi
22328 fi
22329 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22330 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22331 if test $gcc_cv_as_tls = yes; then
22332   set_have_as_tls=yes
22333 fi
22334 fi
22335 if test $set_have_as_tls = yes ; then
22336
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_AS_TLS 1
22339 _ACEOF
22340
22341 fi
22342
22343 # Target-specific assembler checks.
22344
22345 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22346 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22347 gcc_cv_ld_static_dynamic=no
22348 if test $in_tree_ld = yes ; then
22349   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
22350     gcc_cv_ld_static_dynamic=yes
22351   fi
22352 elif test x$gcc_cv_ld != x; then
22353         # Check if linker supports -Bstatic/-Bdynamic option
22354         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22355           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22356                 gcc_cv_ld_static_dynamic=yes
22357         fi
22358 fi
22359 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22360
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_LD_STATIC_DYNAMIC 1
22363 _ACEOF
22364
22365 fi
22366 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22367 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22368
22369 if test x"$demangler_in_ld" = xyes; then
22370   echo "$as_me:$LINENO: checking linker --demangle support" >&5
22371 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22372   gcc_cv_ld_demangle=no
22373   if test $in_tree_ld = yes; then
22374     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 \
22375       gcc_cv_ld_demangle=yes
22376     fi
22377   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22378     # Check if the GNU linker supports --demangle option
22379     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22380       gcc_cv_ld_demangle=yes
22381     fi
22382   fi
22383   if test x"$gcc_cv_ld_demangle" = xyes; then
22384
22385 cat >>confdefs.h <<\_ACEOF
22386 #define HAVE_LD_DEMANGLE 1
22387 _ACEOF
22388
22389   fi
22390   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22391 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22392 fi
22393
22394 case "$target" in
22395   # All TARGET_ABI_OSF targets.
22396   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22397     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22398 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22399 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22400   echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402   gcc_cv_as_alpha_explicit_relocs=no
22403     if test $in_tree_gas = yes; then
22404     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22405   then gcc_cv_as_alpha_explicit_relocs=yes
22406 fi
22407   elif test x$gcc_cv_as != x; then
22408     echo '      .set nomacro
22409         .text
22410         extbl   $3, $2, $3      !lituse_bytoff!1
22411         ldq     $2, a($29)      !literal!1
22412         ldq     $4, b($29)      !literal!2
22413         ldq_u   $3, 0($2)       !lituse_base!1
22414         ldq     $27, f($29)     !literal!5
22415         jsr     $26, ($27), f   !lituse_jsr!5
22416         ldah    $29, 0($26)     !gpdisp!3
22417         lda     $0, c($29)      !gprel
22418         ldah    $1, d($29)      !gprelhigh
22419         lda     $1, d($1)       !gprellow
22420         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22421     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423   (eval $ac_try) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; }
22427     then
22428         gcc_cv_as_alpha_explicit_relocs=yes
22429     else
22430       echo "configure: failed program was" >&5
22431       cat conftest.s >&5
22432     fi
22433     rm -f conftest.o conftest.s
22434   fi
22435 fi
22436 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22437 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22438 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_AS_EXPLICIT_RELOCS 1
22442 _ACEOF
22443
22444 fi
22445     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22446 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22447 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22448   echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450   gcc_cv_as_alpha_jsrdirect_relocs=no
22451     if test $in_tree_gas = yes; then
22452     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22453   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22454 fi
22455   elif test x$gcc_cv_as != x; then
22456     echo '      .set nomacro
22457         .text
22458         ldq     $27, a($29)     !literal!1
22459         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22460     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462   (eval $ac_try) 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; }
22466     then
22467         gcc_cv_as_alpha_jsrdirect_relocs=yes
22468     else
22469       echo "configure: failed program was" >&5
22470       cat conftest.s >&5
22471     fi
22472     rm -f conftest.o conftest.s
22473   fi
22474 fi
22475 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22476 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22477 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22478
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_AS_JSRDIRECT_RELOCS 1
22481 _ACEOF
22482
22483 fi
22484     ;;
22485
22486   cris-*-*)
22487     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22488 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22489 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   gcc_cv_as_cris_no_mul_bug=no
22493     if test $in_tree_gas = yes; then
22494     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22495   then gcc_cv_as_cris_no_mul_bug=yes
22496 fi
22497   elif test x$gcc_cv_as != x; then
22498     echo '.text' > conftest.s
22499     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501   (eval $ac_try) 2>&5
22502   ac_status=$?
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); }; }
22505     then
22506         gcc_cv_as_cris_no_mul_bug=yes
22507     else
22508       echo "configure: failed program was" >&5
22509       cat conftest.s >&5
22510     fi
22511     rm -f conftest.o conftest.s
22512   fi
22513 fi
22514 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22515 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22516 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22517
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22520 _ACEOF
22521
22522 fi
22523     ;;
22524
22525   sparc*-*-*)
22526     echo "$as_me:$LINENO: checking assembler for .register" >&5
22527 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22528 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531   gcc_cv_as_sparc_register_op=no
22532   if test x$gcc_cv_as != x; then
22533     echo '.register %g2, #scratch' > conftest.s
22534     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536   (eval $ac_try) 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; }
22540     then
22541         gcc_cv_as_sparc_register_op=yes
22542     else
22543       echo "configure: failed program was" >&5
22544       cat conftest.s >&5
22545     fi
22546     rm -f conftest.o conftest.s
22547   fi
22548 fi
22549 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22550 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22551 if test $gcc_cv_as_sparc_register_op = yes; then
22552
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22555 _ACEOF
22556
22557 fi
22558
22559     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22560 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22561 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22562   echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564   gcc_cv_as_sparc_relax=no
22565   if test x$gcc_cv_as != x; then
22566     echo '.text' > conftest.s
22567     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }
22573     then
22574         gcc_cv_as_sparc_relax=yes
22575     else
22576       echo "configure: failed program was" >&5
22577       cat conftest.s >&5
22578     fi
22579     rm -f conftest.o conftest.s
22580   fi
22581 fi
22582 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22583 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22584 if test $gcc_cv_as_sparc_relax = yes; then
22585
22586 cat >>confdefs.h <<\_ACEOF
22587 #define HAVE_AS_RELAX_OPTION 1
22588 _ACEOF
22589
22590 fi
22591
22592     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22593 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22594 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   gcc_cv_as_sparc_ua_pcrel=no
22598   if test x$gcc_cv_as != x; then
22599     echo '.text
22600 foo:
22601         nop
22602 .data
22603 .align 4
22604 .byte 0
22605 .uaword %r_disp32(foo)' > conftest.s
22606     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608   (eval $ac_try) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); }; }
22612     then
22613         if test x$gcc_cv_ld != x \
22614        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22615          gcc_cv_as_sparc_ua_pcrel=yes
22616        fi
22617        rm -f conftest
22618     else
22619       echo "configure: failed program was" >&5
22620       cat conftest.s >&5
22621     fi
22622     rm -f conftest.o conftest.s
22623   fi
22624 fi
22625 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22626 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22627 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22628
22629 cat >>confdefs.h <<\_ACEOF
22630 #define HAVE_AS_SPARC_UA_PCREL 1
22631 _ACEOF
22632
22633
22634       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22635 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22636 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22637   echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639   gcc_cv_as_sparc_ua_pcrel_hidden=no
22640   if test x$gcc_cv_as != x; then
22641     echo '.data
22642 .align 4
22643 .byte 0x31
22644 .uaword %r_disp32(foo)
22645 .byte 0x32, 0x33, 0x34
22646 .global foo
22647 .hidden foo
22648 foo:
22649 .skip 4' > conftest.s
22650     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652   (eval $ac_try) 2>&5
22653   ac_status=$?
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); }; }
22656     then
22657         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22658          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22659          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22660             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22661             if $gcc_cv_objdump -R conftest 2> /dev/null \
22662                | grep 'DISP32' > /dev/null 2>&1; then
22663                 :
22664             else
22665                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22666             fi
22667          fi
22668          rm -f conftest
22669     else
22670       echo "configure: failed program was" >&5
22671       cat conftest.s >&5
22672     fi
22673     rm -f conftest.o conftest.s
22674   fi
22675 fi
22676 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22677 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22678 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22679
22680 cat >>confdefs.h <<\_ACEOF
22681 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22682 _ACEOF
22683
22684 fi
22685
22686 fi # unaligned pcrel relocs
22687
22688     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22689 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22690 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22691   echo $ECHO_N "(cached) $ECHO_C" >&6
22692 else
22693   gcc_cv_as_sparc_offsetable_lo10=no
22694   if test x$gcc_cv_as != x; then
22695     echo '.text
22696         or %g1, %lo(ab) + 12, %g1
22697         or %g1, %lo(ab + 12), %g1' > conftest.s
22698     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700   (eval $ac_try) 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); }; }
22704     then
22705         if test x$gcc_cv_objdump != x \
22706        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22707           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22708          gcc_cv_as_sparc_offsetable_lo10=yes
22709        fi
22710     else
22711       echo "configure: failed program was" >&5
22712       cat conftest.s >&5
22713     fi
22714     rm -f conftest.o conftest.s
22715   fi
22716 fi
22717 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22718 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22719 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22720
22721 cat >>confdefs.h <<\_ACEOF
22722 #define HAVE_AS_OFFSETABLE_LO10 1
22723 _ACEOF
22724
22725 fi
22726     ;;
22727
22728   i[34567]86-*-* | x86_64-*-*)
22729     case $target_os in
22730       cygwin* | pe | mingw32*)
22731         # Used for DWARF 2 in PE
22732         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22733 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22734 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22735   echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737   gcc_cv_as_ix86_pe_secrel32=no
22738     if test $in_tree_gas = yes; then
22739     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22740   then gcc_cv_as_ix86_pe_secrel32=yes
22741 fi
22742   elif test x$gcc_cv_as != x; then
22743     echo '.text
22744 foo:    nop
22745 .data
22746         .secrel32 foo' > conftest.s
22747     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; }
22753     then
22754         if test x$gcc_cv_ld != x \
22755            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22756              gcc_cv_as_ix86_pe_secrel32=yes
22757            fi
22758            rm -f conftest
22759     else
22760       echo "configure: failed program was" >&5
22761       cat conftest.s >&5
22762     fi
22763     rm -f conftest.o conftest.s
22764   fi
22765 fi
22766 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22767 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22768 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22769
22770 cat >>confdefs.h <<\_ACEOF
22771 #define HAVE_GAS_PE_SECREL32_RELOC 1
22772 _ACEOF
22773
22774 fi
22775         ;;
22776     esac
22777
22778     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22779 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22780 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783   gcc_cv_as_ix86_filds_fists=no
22784     if test $in_tree_gas = yes; then
22785     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22786   then gcc_cv_as_ix86_filds_fists=yes
22787 fi
22788   elif test x$gcc_cv_as != x; then
22789     echo 'filds mem; fists mem' > conftest.s
22790     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792   (eval $ac_try) 2>&5
22793   ac_status=$?
22794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795   (exit $ac_status); }; }
22796     then
22797         gcc_cv_as_ix86_filds_fists=yes
22798     else
22799       echo "configure: failed program was" >&5
22800       cat conftest.s >&5
22801     fi
22802     rm -f conftest.o conftest.s
22803   fi
22804 fi
22805 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
22806 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
22807 if test $gcc_cv_as_ix86_filds_fists = yes; then
22808
22809 cat >>confdefs.h <<\_ACEOF
22810 #define HAVE_GAS_FILDS_FISTS 1
22811 _ACEOF
22812
22813 fi
22814
22815     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22816 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22817 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22818   echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820   gcc_cv_as_ix86_cmov_sun_syntax=no
22821   if test x$gcc_cv_as != x; then
22822     echo 'cmovl.l %edx, %eax' > conftest.s
22823     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22825   (eval $ac_try) 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); }; }
22829     then
22830         gcc_cv_as_ix86_cmov_sun_syntax=yes
22831     else
22832       echo "configure: failed program was" >&5
22833       cat conftest.s >&5
22834     fi
22835     rm -f conftest.o conftest.s
22836   fi
22837 fi
22838 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22839 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22840 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22841
22842 cat >>confdefs.h <<\_ACEOF
22843 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22844 _ACEOF
22845
22846 fi
22847
22848     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22849 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22850 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22851   echo $ECHO_N "(cached) $ECHO_C" >&6
22852 else
22853   gcc_cv_as_ix86_ffreep=no
22854   if test x$gcc_cv_as != x; then
22855     echo 'ffreep %st(1)' > conftest.s
22856     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858   (eval $ac_try) 2>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); }; }
22862     then
22863         gcc_cv_as_ix86_ffreep=yes
22864     else
22865       echo "configure: failed program was" >&5
22866       cat conftest.s >&5
22867     fi
22868     rm -f conftest.o conftest.s
22869   fi
22870 fi
22871 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22872 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22873 if test $gcc_cv_as_ix86_ffreep = yes; then
22874
22875 cat >>confdefs.h <<\_ACEOF
22876 #define HAVE_AS_IX86_FFREEP 1
22877 _ACEOF
22878
22879 fi
22880
22881     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22882 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22883 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22884   echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886   gcc_cv_as_ix86_sahf=no
22887   if test x$gcc_cv_as != x; then
22888     echo 'sahf' > conftest.s
22889     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891   (eval $ac_try) 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; }
22895     then
22896         gcc_cv_as_ix86_sahf=yes
22897     else
22898       echo "configure: failed program was" >&5
22899       cat conftest.s >&5
22900     fi
22901     rm -f conftest.o conftest.s
22902   fi
22903 fi
22904 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22905 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22906 if test $gcc_cv_as_ix86_sahf = yes; then
22907
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_AS_IX86_SAHF 1
22910 _ACEOF
22911
22912 fi
22913
22914     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22915 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22916 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919   gcc_cv_as_ix86_diff_sect_delta=no
22920   if test x$gcc_cv_as != x; then
22921     echo '.section .rodata
22922 .L1:
22923         .long .L2-.L1
22924         .long .L3-.L1
22925         .text
22926 .L3:    nop
22927 .L2:    nop' > conftest.s
22928     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; }
22934     then
22935         gcc_cv_as_ix86_diff_sect_delta=yes
22936     else
22937       echo "configure: failed program was" >&5
22938       cat conftest.s >&5
22939     fi
22940     rm -f conftest.o conftest.s
22941   fi
22942 fi
22943 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22944 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22945 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22946
22947 cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22949 _ACEOF
22950
22951 fi
22952
22953     # This one is used unconditionally by i386.[ch]; it is to be defined
22954     # to 1 if the feature is present, 0 otherwise.
22955     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22956 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22957 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   gcc_cv_as_ix86_gotoff_in_data=no
22961     if test $in_tree_gas = yes; then
22962     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22963   then gcc_cv_as_ix86_gotoff_in_data=yes
22964 fi
22965   elif test x$gcc_cv_as != x; then
22966     echo '      .text
22967 .L0:
22968         nop
22969         .data
22970         .long .L0@GOTOFF' > conftest.s
22971     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }
22977     then
22978         gcc_cv_as_ix86_gotoff_in_data=yes
22979     else
22980       echo "configure: failed program was" >&5
22981       cat conftest.s >&5
22982     fi
22983     rm -f conftest.o conftest.s
22984   fi
22985 fi
22986 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22987 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22988
22989
22990 cat >>confdefs.h <<_ACEOF
22991 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22992 _ACEOF
22993
22994     ;;
22995
22996   ia64*-*-*)
22997     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22998 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22999 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23003     if test $in_tree_gas = yes; then
23004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23005   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23006 fi
23007   elif test x$gcc_cv_as != x; then
23008     echo '      .text
23009         addl r15 = @ltoffx(x#), gp
23010         ;;
23011         ld8.mov r16 = [r15], x#' > conftest.s
23012     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; }
23018     then
23019         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23020     else
23021       echo "configure: failed program was" >&5
23022       cat conftest.s >&5
23023     fi
23024     rm -f conftest.o conftest.s
23025   fi
23026 fi
23027 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23028 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
23029 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23030
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
23033 _ACEOF
23034
23035 fi
23036
23037     ;;
23038
23039   powerpc*-*-*)
23040     case $target in
23041       *-*-aix*) conftest_s='    .machine "pwr5"
23042         .csect .text[PR]
23043         mfcr 3,128';;
23044       *-*-darwin*)
23045         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
23046 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
23047 if test "${gcc_cv_as_machine_directive+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   gcc_cv_as_machine_directive=no
23051   if test x$gcc_cv_as != x; then
23052     echo '      .machine ppc7400' > conftest.s
23053     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055   (eval $ac_try) 2>&5
23056   ac_status=$?
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); }; }
23059     then
23060         gcc_cv_as_machine_directive=yes
23061     else
23062       echo "configure: failed program was" >&5
23063       cat conftest.s >&5
23064     fi
23065     rm -f conftest.o conftest.s
23066   fi
23067 fi
23068 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
23069 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
23070
23071         if test x$gcc_cv_as_machine_directive != xyes; then
23072           echo "*** This target requires an assembler supporting \".machine\"" >&2
23073           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23074           test x$build = x$target && exit 1
23075         fi
23076         conftest_s='    .text
23077         mfcr r3,128';;
23078       *) conftest_s='   .machine power4
23079         .text
23080         mfcr 3,128';;
23081     esac
23082
23083     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
23084 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
23085 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
23086   echo $ECHO_N "(cached) $ECHO_C" >&6
23087 else
23088   gcc_cv_as_powerpc_mfcrf=no
23089     if test $in_tree_gas = yes; then
23090     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23091   then gcc_cv_as_powerpc_mfcrf=yes
23092 fi
23093   elif test x$gcc_cv_as != x; then
23094     echo "$conftest_s" > conftest.s
23095     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; }
23101     then
23102         gcc_cv_as_powerpc_mfcrf=yes
23103     else
23104       echo "configure: failed program was" >&5
23105       cat conftest.s >&5
23106     fi
23107     rm -f conftest.o conftest.s
23108   fi
23109 fi
23110 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23111 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23112 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23113
23114 cat >>confdefs.h <<\_ACEOF
23115 #define HAVE_AS_MFCRF 1
23116 _ACEOF
23117
23118 fi
23119
23120     case $target in
23121       *-*-aix*) conftest_s='    .machine "pwr5"
23122         .csect .text[PR]
23123         popcntb 3,3';;
23124       *) conftest_s='   .machine power5
23125         .text
23126         popcntb 3,3';;
23127     esac
23128
23129     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23130 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23131 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23132   echo $ECHO_N "(cached) $ECHO_C" >&6
23133 else
23134   gcc_cv_as_powerpc_popcntb=no
23135     if test $in_tree_gas = yes; then
23136     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23137   then gcc_cv_as_powerpc_popcntb=yes
23138 fi
23139   elif test x$gcc_cv_as != x; then
23140     echo "$conftest_s" > conftest.s
23141     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; }
23147     then
23148         gcc_cv_as_powerpc_popcntb=yes
23149     else
23150       echo "configure: failed program was" >&5
23151       cat conftest.s >&5
23152     fi
23153     rm -f conftest.o conftest.s
23154   fi
23155 fi
23156 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23157 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23158 if test $gcc_cv_as_powerpc_popcntb = yes; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_AS_POPCNTB 1
23162 _ACEOF
23163
23164 fi
23165
23166     case $target in
23167       *-*-aix*) conftest_s='    .machine "pwr5x"
23168         .csect .text[PR]
23169         frin 1,1';;
23170       *) conftest_s='   .machine power5
23171         .text
23172         frin 1,1';;
23173     esac
23174
23175     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23176 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23177 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23178   echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180   gcc_cv_as_powerpc_fprnd=no
23181     if test $in_tree_gas = yes; then
23182     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23183   then gcc_cv_as_powerpc_fprnd=yes
23184 fi
23185   elif test x$gcc_cv_as != x; then
23186     echo "$conftest_s" > conftest.s
23187     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }
23193     then
23194         gcc_cv_as_powerpc_fprnd=yes
23195     else
23196       echo "configure: failed program was" >&5
23197       cat conftest.s >&5
23198     fi
23199     rm -f conftest.o conftest.s
23200   fi
23201 fi
23202 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23203 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23204 if test $gcc_cv_as_powerpc_fprnd = yes; then
23205
23206 cat >>confdefs.h <<\_ACEOF
23207 #define HAVE_AS_FPRND 1
23208 _ACEOF
23209
23210 fi
23211
23212     case $target in
23213       *-*-aix*) conftest_s='    .machine "pwr6"
23214         .csect .text[PR]
23215         mffgpr 1,3';;
23216       *) conftest_s='   .machine power6
23217         .text
23218         mffgpr 1,3';;
23219     esac
23220
23221     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23222 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23223 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23224   echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226   gcc_cv_as_powerpc_mfpgpr=no
23227     if test $in_tree_gas = yes; then
23228     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23229   then gcc_cv_as_powerpc_mfpgpr=yes
23230 fi
23231   elif test x$gcc_cv_as != x; then
23232     echo "$conftest_s" > conftest.s
23233     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); }; }
23239     then
23240         gcc_cv_as_powerpc_mfpgpr=yes
23241     else
23242       echo "configure: failed program was" >&5
23243       cat conftest.s >&5
23244     fi
23245     rm -f conftest.o conftest.s
23246   fi
23247 fi
23248 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23249 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23250 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23251
23252 cat >>confdefs.h <<\_ACEOF
23253 #define HAVE_AS_MFPGPR 1
23254 _ACEOF
23255
23256 fi
23257
23258     case $target in
23259       *-*-aix*) conftest_s='    .csect .text[PR]
23260 LCF..0:
23261         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23262       *-*-darwin*)
23263         conftest_s='    .text
23264 LCF0:
23265         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23266       *) conftest_s='   .text
23267 .LCF0:
23268         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23269     esac
23270
23271     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23272 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23273 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23274   echo $ECHO_N "(cached) $ECHO_C" >&6
23275 else
23276   gcc_cv_as_powerpc_rel16=no
23277     if test $in_tree_gas = yes; then
23278     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23279   then gcc_cv_as_powerpc_rel16=yes
23280 fi
23281   elif test x$gcc_cv_as != x; then
23282     echo "$conftest_s" > conftest.s
23283     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; }
23289     then
23290         gcc_cv_as_powerpc_rel16=yes
23291     else
23292       echo "configure: failed program was" >&5
23293       cat conftest.s >&5
23294     fi
23295     rm -f conftest.o conftest.s
23296   fi
23297 fi
23298 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23299 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23300 if test $gcc_cv_as_powerpc_rel16 = yes; then
23301
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_AS_REL16 1
23304 _ACEOF
23305
23306 fi
23307
23308     case $target in
23309       *-*-aix*) conftest_s='    .machine "pwr6"
23310         .csect .text[PR]
23311         cmpb 3,4,5';;
23312       *) conftest_s='   .machine power6
23313         .text
23314         cmpb 3,4,5';;
23315     esac
23316
23317     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23318 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23319 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23320   echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322   gcc_cv_as_powerpc_cmpb=no
23323     if test $in_tree_gas = yes; then
23324     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23325   then gcc_cv_as_powerpc_cmpb=yes
23326 fi
23327   elif test x$gcc_cv_as != x; then
23328     echo "$conftest_s" > conftest.s
23329     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331   (eval $ac_try) 2>&5
23332   ac_status=$?
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); }; }
23335     then
23336         gcc_cv_as_powerpc_cmpb=yes
23337     else
23338       echo "configure: failed program was" >&5
23339       cat conftest.s >&5
23340     fi
23341     rm -f conftest.o conftest.s
23342   fi
23343 fi
23344 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23345 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23346 if test $gcc_cv_as_powerpc_cmpb = yes; then
23347
23348 cat >>confdefs.h <<\_ACEOF
23349 #define HAVE_AS_CMPB 1
23350 _ACEOF
23351
23352 fi
23353
23354     case $target in
23355       *-*-aix*) conftest_s='    .machine "pwr6"
23356         .csect .text[PR]
23357         dadd 1,2,3';;
23358       *) conftest_s='   .machine power6
23359         .text
23360         dadd 1,2,3';;
23361     esac
23362
23363     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23364 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23365 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368   gcc_cv_as_powerpc_dfp=no
23369     if test $in_tree_gas = yes; then
23370     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23371   then gcc_cv_as_powerpc_dfp=yes
23372 fi
23373   elif test x$gcc_cv_as != x; then
23374     echo "$conftest_s" > conftest.s
23375     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377   (eval $ac_try) 2>&5
23378   ac_status=$?
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); }; }
23381     then
23382         gcc_cv_as_powerpc_dfp=yes
23383     else
23384       echo "configure: failed program was" >&5
23385       cat conftest.s >&5
23386     fi
23387     rm -f conftest.o conftest.s
23388   fi
23389 fi
23390 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23391 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23392 if test $gcc_cv_as_powerpc_dfp = yes; then
23393
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_AS_DFP 1
23396 _ACEOF
23397
23398 fi
23399
23400     case $target in
23401       *-*-aix*) conftest_s='    .machine "pwr7"
23402         .csect .text[PR]
23403         lxvd2x 1,2,3';;
23404       *) conftest_s='   .machine power7
23405         .text
23406         lxvd2x 1,2,3';;
23407     esac
23408
23409     echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23410 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23411 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23412   echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414   gcc_cv_as_powerpc_vsx=no
23415     if test $in_tree_gas = yes; then
23416     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23417   then gcc_cv_as_powerpc_vsx=yes
23418 fi
23419   elif test x$gcc_cv_as != x; then
23420     echo "$conftest_s" > conftest.s
23421     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
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     then
23428         gcc_cv_as_powerpc_vsx=yes
23429     else
23430       echo "configure: failed program was" >&5
23431       cat conftest.s >&5
23432     fi
23433     rm -f conftest.o conftest.s
23434   fi
23435 fi
23436 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23437 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23438 if test $gcc_cv_as_powerpc_vsx = yes; then
23439
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_AS_VSX 1
23442 _ACEOF
23443
23444 fi
23445
23446     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23447 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23448 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23449   echo $ECHO_N "(cached) $ECHO_C" >&6
23450 else
23451   gcc_cv_as_powerpc_gnu_attribute=no
23452     if test $in_tree_gas = yes; then
23453     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23454   then gcc_cv_as_powerpc_gnu_attribute=yes
23455 fi
23456   elif test x$gcc_cv_as != x; then
23457     echo '.gnu_attribute 4,1' > conftest.s
23458     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460   (eval $ac_try) 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }
23464     then
23465         gcc_cv_as_powerpc_gnu_attribute=yes
23466     else
23467       echo "configure: failed program was" >&5
23468       cat conftest.s >&5
23469     fi
23470     rm -f conftest.o conftest.s
23471   fi
23472 fi
23473 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23474 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23475 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23476
23477 cat >>confdefs.h <<\_ACEOF
23478 #define HAVE_AS_GNU_ATTRIBUTE 1
23479 _ACEOF
23480
23481 fi
23482     ;;
23483
23484   mips*-*-*)
23485     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23486 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23487 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490   gcc_cv_as_mips_explicit_relocs=no
23491     if test $in_tree_gas = yes; then
23492     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23493   then gcc_cv_as_mips_explicit_relocs=yes
23494 fi
23495   elif test x$gcc_cv_as != x; then
23496     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23497     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499   (eval $ac_try) 2>&5
23500   ac_status=$?
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); }; }
23503     then
23504         gcc_cv_as_mips_explicit_relocs=yes
23505     else
23506       echo "configure: failed program was" >&5
23507       cat conftest.s >&5
23508     fi
23509     rm -f conftest.o conftest.s
23510   fi
23511 fi
23512 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23513 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23514 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23515   if test x$target_cpu_default = x
23516        then target_cpu_default=MASK_EXPLICIT_RELOCS
23517        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23518        fi
23519 fi
23520     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23521 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23522 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23523   echo $ECHO_N "(cached) $ECHO_C" >&6
23524 else
23525   gcc_cv_as_mips_no_shared=no
23526     if test $in_tree_gas = yes; then
23527     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23528   then gcc_cv_as_mips_no_shared=yes
23529 fi
23530   elif test x$gcc_cv_as != x; then
23531     echo 'nop' > conftest.s
23532     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534   (eval $ac_try) 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); }; }
23538     then
23539         gcc_cv_as_mips_no_shared=yes
23540     else
23541       echo "configure: failed program was" >&5
23542       cat conftest.s >&5
23543     fi
23544     rm -f conftest.o conftest.s
23545   fi
23546 fi
23547 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23548 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23549 if test $gcc_cv_as_mips_no_shared = yes; then
23550
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_AS_NO_SHARED 1
23553 _ACEOF
23554
23555 fi
23556
23557     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23558 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23559 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23560   echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562   gcc_cv_as_mips_gnu_attribute=no
23563     if test $in_tree_gas = yes; then
23564     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23565   then gcc_cv_as_mips_gnu_attribute=yes
23566 fi
23567   elif test x$gcc_cv_as != x; then
23568     echo '.gnu_attribute 4,1' > conftest.s
23569     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571   (eval $ac_try) 2>&5
23572   ac_status=$?
23573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); }; }
23575     then
23576         gcc_cv_as_mips_gnu_attribute=yes
23577     else
23578       echo "configure: failed program was" >&5
23579       cat conftest.s >&5
23580     fi
23581     rm -f conftest.o conftest.s
23582   fi
23583 fi
23584 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23585 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23586 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23587
23588 cat >>confdefs.h <<\_ACEOF
23589 #define HAVE_AS_GNU_ATTRIBUTE 1
23590 _ACEOF
23591
23592 fi
23593
23594     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23595 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23596 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   gcc_cv_as_mips_dtprelword=no
23600     if test $in_tree_gas = yes; then
23601     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23602   then gcc_cv_as_mips_dtprelword=yes
23603 fi
23604   elif test x$gcc_cv_as != x; then
23605     echo '.section .tdata,"awT",@progbits
23606 x:
23607         .word 2
23608         .text
23609         .dtprelword x+0x8000' > conftest.s
23610     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; }
23616     then
23617         gcc_cv_as_mips_dtprelword=yes
23618     else
23619       echo "configure: failed program was" >&5
23620       cat conftest.s >&5
23621     fi
23622     rm -f conftest.o conftest.s
23623   fi
23624 fi
23625 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23626 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23627 if test $gcc_cv_as_mips_dtprelword = yes; then
23628
23629 cat >>confdefs.h <<\_ACEOF
23630 #define HAVE_AS_DTPRELWORD 1
23631 _ACEOF
23632
23633 fi
23634     ;;
23635 esac
23636
23637 # Mips and HP-UX need the GNU assembler.
23638 # Linux on IA64 might be able to use the Intel assembler.
23639
23640 case "$target" in
23641   mips*-*-* | *-*-hpux* )
23642     if test x$gas_flag = xyes \
23643        || test x"$host" != x"$build" \
23644        || test ! -x "$gcc_cv_as" \
23645        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23646       :
23647     else
23648       echo "*** This configuration requires the GNU assembler" >&2
23649       exit 1
23650     fi
23651     ;;
23652 esac
23653
23654 # ??? Not all targets support dwarf2 debug_line, even within a version
23655 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23656 # info to the output file.  So, as supported targets are added to gas 2.11,
23657 # add some instruction here to (also) show we expect this might work.
23658 # ??? Once 2.11 is released, probably need to add first known working
23659 # version to the per-target configury.
23660 case "$target" in
23661   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23662   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23663   | xstormy16*-*-* | cris-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23664   | spu-*-* | fido*-*-* | m32c-*-*)
23665     insn="nop"
23666     ;;
23667   ia64*-*-* | s390*-*-*)
23668     insn="nop 0"
23669     ;;
23670   mmix-*-*)
23671     insn="swym 0"
23672     ;;
23673 esac
23674 if test x"$insn" != x; then
23675  conftest_s="\
23676         .file 1 \"conftest.s\"
23677         .loc 1 3 0
23678         $insn"
23679  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23680 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23681 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684   gcc_cv_as_dwarf2_debug_line=no
23685     if test $in_tree_gas = yes; then
23686     if test $in_tree_gas_is_elf = yes \
23687   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23688   then gcc_cv_as_dwarf2_debug_line=yes
23689 fi
23690   elif test x$gcc_cv_as != x; then
23691     echo "$conftest_s" > conftest.s
23692     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694   (eval $ac_try) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; }
23698     then
23699         if test x$gcc_cv_objdump != x \
23700    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23701       | grep debug_line > /dev/null 2>&1; then
23702      gcc_cv_as_dwarf2_debug_line=yes
23703    fi
23704     else
23705       echo "configure: failed program was" >&5
23706       cat conftest.s >&5
23707     fi
23708     rm -f conftest.o conftest.s
23709   fi
23710 fi
23711 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23712 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23713
23714
23715 # The .debug_line file table must be in the exact order that
23716 # we specified the files, since these indices are also used
23717 # by DW_AT_decl_file.  Approximate this test by testing if
23718 # the assembler bitches if the same index is assigned twice.
23719  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23720 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23721 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   gcc_cv_as_dwarf2_file_buggy=no
23725   if test x$gcc_cv_as != x; then
23726     echo '      .file 1 "foo.s"
23727         .file 1 "bar.s"' > conftest.s
23728     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; }
23734     then
23735         gcc_cv_as_dwarf2_file_buggy=yes
23736     else
23737       echo "configure: failed program was" >&5
23738       cat conftest.s >&5
23739     fi
23740     rm -f conftest.o conftest.s
23741   fi
23742 fi
23743 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23744 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23745
23746
23747  if test $gcc_cv_as_dwarf2_debug_line = yes \
23748  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23749
23750 cat >>confdefs.h <<\_ACEOF
23751 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23752 _ACEOF
23753
23754  fi
23755
23756  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23757 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23758 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23759   echo $ECHO_N "(cached) $ECHO_C" >&6
23760 else
23761   gcc_cv_as_gdwarf2_flag=no
23762     if test $in_tree_gas = yes; then
23763     if test $in_tree_gas_is_elf = yes \
23764   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23765   then gcc_cv_as_gdwarf2_flag=yes
23766 fi
23767   elif test x$gcc_cv_as != x; then
23768     echo "$insn" > conftest.s
23769     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771   (eval $ac_try) 2>&5
23772   ac_status=$?
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); }; }
23775     then
23776         gcc_cv_as_gdwarf2_flag=yes
23777     else
23778       echo "configure: failed program was" >&5
23779       cat conftest.s >&5
23780     fi
23781     rm -f conftest.o conftest.s
23782   fi
23783 fi
23784 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23785 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23786 if test $gcc_cv_as_gdwarf2_flag = yes; then
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23790 _ACEOF
23791
23792 fi
23793
23794  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23795 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23796 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799   gcc_cv_as_gstabs_flag=no
23800     if test $in_tree_gas = yes; then
23801     if test $in_tree_gas_is_elf = yes \
23802   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23803   then gcc_cv_as_gstabs_flag=yes
23804 fi
23805   elif test x$gcc_cv_as != x; then
23806     echo "$insn" > conftest.s
23807     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809   (eval $ac_try) 2>&5
23810   ac_status=$?
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); }; }
23813     then
23814         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23815    # and warns about it, but still exits successfully.  So check for
23816    # this.
23817    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }
23823    then :
23824    else gcc_cv_as_gstabs_flag=yes
23825    fi
23826     else
23827       echo "configure: failed program was" >&5
23828       cat conftest.s >&5
23829     fi
23830     rm -f conftest.o conftest.s
23831   fi
23832 fi
23833 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23834 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23835 if test $gcc_cv_as_gstabs_flag = yes; then
23836
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23839 _ACEOF
23840
23841 fi
23842
23843  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23844 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23845 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23846   echo $ECHO_N "(cached) $ECHO_C" >&6
23847 else
23848   gcc_cv_as_debug_prefix_map_flag=no
23849     if test $in_tree_gas = yes; then
23850     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23851   then gcc_cv_as_debug_prefix_map_flag=yes
23852 fi
23853   elif test x$gcc_cv_as != x; then
23854     echo "$insn" > conftest.s
23855     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; }
23861     then
23862         gcc_cv_as_debug_prefix_map_flag=yes
23863     else
23864       echo "configure: failed program was" >&5
23865       cat conftest.s >&5
23866     fi
23867     rm -f conftest.o conftest.s
23868   fi
23869 fi
23870 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23871 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23872 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23873
23874 cat >>confdefs.h <<\_ACEOF
23875 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23876 _ACEOF
23877
23878 fi
23879 fi
23880
23881 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23882 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23883 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23884   echo $ECHO_N "(cached) $ECHO_C" >&6
23885 else
23886   gcc_cv_as_lcomm_with_alignment=no
23887   if test x$gcc_cv_as != x; then
23888     echo '.lcomm bar,4,16' > conftest.s
23889     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); }; }
23895     then
23896         gcc_cv_as_lcomm_with_alignment=yes
23897     else
23898       echo "configure: failed program was" >&5
23899       cat conftest.s >&5
23900     fi
23901     rm -f conftest.o conftest.s
23902   fi
23903 fi
23904 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23905 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23906 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23907
23908 cat >>confdefs.h <<\_ACEOF
23909 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23910 _ACEOF
23911
23912 fi
23913
23914 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23915 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23916 if test "${gcc_cv_as_line_zero+set}" = set; then
23917   echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919   gcc_cv_as_line_zero=no
23920   if test $in_tree_gas = yes; then
23921     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23922   then gcc_cv_as_line_zero=yes
23923 fi
23924   elif test "x$gcc_cv_as" != x; then
23925     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23926     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; } &&
23932        test "x`cat conftest.out`" = x
23933     then
23934       gcc_cv_as_line_zero=yes
23935     else
23936       echo "configure: failed program was" >&5
23937       cat conftest.s >&5
23938       echo "configure: error output was" >&5
23939       cat conftest.out >&5
23940     fi
23941     rm -f conftest.o conftest.s conftest.out
23942   fi
23943 fi
23944 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23945 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23946 if test "x$gcc_cv_as_line_zero" = xyes; then
23947
23948 cat >>confdefs.h <<\_ACEOF
23949 #define HAVE_AS_LINE_ZERO 1
23950 _ACEOF
23951
23952 fi
23953
23954 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23955 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23956 gcc_cv_ld_eh_frame_hdr=no
23957 if test $in_tree_ld = yes ; then
23958   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 \
23959      && test $in_tree_ld_is_elf = yes; then
23960     gcc_cv_ld_eh_frame_hdr=yes
23961   fi
23962 elif test x$gcc_cv_ld != x; then
23963         # Check if linker supports --eh-frame-hdr option
23964         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23965                 gcc_cv_ld_eh_frame_hdr=yes
23966         fi
23967 fi
23968
23969 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23970
23971 cat >>confdefs.h <<\_ACEOF
23972 #define HAVE_LD_EH_FRAME_HDR 1
23973 _ACEOF
23974
23975 fi
23976 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23977 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23978
23979 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23980 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23981 gcc_cv_ld_pie=no
23982 if test $in_tree_ld = yes ; then
23983   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 \
23984      && test $in_tree_ld_is_elf = yes; then
23985     gcc_cv_ld_pie=yes
23986   fi
23987 elif test x$gcc_cv_ld != x; then
23988         # Check if linker supports -pie option
23989         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23990                 gcc_cv_ld_pie=yes
23991         fi
23992 fi
23993 if test x"$gcc_cv_ld_pie" = xyes; then
23994
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_LD_PIE 1
23997 _ACEOF
23998
23999 fi
24000 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
24001 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
24002
24003 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
24004 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
24005 gcc_cv_ld_eh_gc_sections=no
24006 if test $in_tree_ld = yes ; then
24007   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 \
24008      && test $in_tree_ld_is_elf = yes; then
24009     gcc_cv_ld_eh_gc_sections=yes
24010   fi
24011 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24012   cat > conftest.s <<EOF
24013         .section        .text
24014 .globl _start
24015         .type _start, @function
24016 _start:
24017         .long foo
24018         .size _start, .-_start
24019         .section        .text.foo,"ax",@progbits
24020         .type foo, @function
24021 foo:
24022         .long 0
24023         .size foo, .-foo
24024         .section        .gcc_except_table.foo,"a",@progbits
24025 .L0:
24026         .long 0
24027         .section        .eh_frame,"a",@progbits
24028         .long .L0
24029 EOF
24030   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24031     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24032          | grep "gc-sections option ignored" > /dev/null; then
24033       gcc_cv_ld_eh_gc_sections=no
24034     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24035       gcc_cv_ld_eh_gc_sections=yes
24036       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24037       if test x$gcc_cv_as_comdat_group != xyes; then
24038         gcc_cv_ld_eh_gc_sections=no
24039         cat > conftest.s <<EOF
24040         .section        .text
24041 .globl _start
24042         .type _start, @function
24043 _start:
24044         .long foo
24045         .size _start, .-_start
24046         .section        .gnu.linkonce.t.foo,"ax",@progbits
24047         .type foo, @function
24048 foo:
24049         .long 0
24050         .size foo, .-foo
24051         .section        .gcc_except_table.foo,"a",@progbits
24052 .L0:
24053         .long 0
24054         .section        .eh_frame,"a",@progbits
24055         .long .L0
24056 EOF
24057         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24058           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24059                | grep "gc-sections option ignored" > /dev/null; then
24060             gcc_cv_ld_eh_gc_sections=no
24061           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24062             gcc_cv_ld_eh_gc_sections=yes
24063           fi
24064         fi
24065       fi
24066     fi
24067   fi
24068   rm -f conftest.s conftest.o conftest
24069 fi
24070 case "$target" in
24071   hppa*-*-linux*)
24072     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24073     gcc_cv_ld_eh_gc_sections=no
24074     ;;
24075 esac
24076 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24077
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_LD_EH_GC_SECTIONS 1
24080 _ACEOF
24081
24082 fi
24083 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24084 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24085
24086 # --------
24087 # UNSORTED
24088 # --------
24089
24090 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24091 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24092 if test "${gcc_cv_ld_as_needed+set}" = set; then
24093   echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095   gcc_cv_ld_as_needed=no
24096 if test $in_tree_ld = yes ; then
24097   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 \
24098      && test $in_tree_ld_is_elf = yes; then
24099     gcc_cv_ld_as_needed=yes
24100   fi
24101 elif test x$gcc_cv_ld != x; then
24102         # Check if linker supports --as-needed and --no-as-needed options
24103         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24104                 gcc_cv_ld_as_needed=yes
24105         fi
24106 fi
24107
24108 fi
24109 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24110 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24111 if test x"$gcc_cv_ld_as_needed" = xyes; then
24112
24113 cat >>confdefs.h <<\_ACEOF
24114 #define HAVE_LD_AS_NEEDED 1
24115 _ACEOF
24116
24117 fi
24118
24119 case "$target:$tm_file" in
24120   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24121     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24122 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24123 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   gcc_cv_ld_no_dot_syms=no
24127     if test $in_tree_ld = yes ; then
24128       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
24129         gcc_cv_ld_no_dot_syms=yes
24130       fi
24131     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24132       cat > conftest1.s <<EOF
24133         .text
24134         bl .foo
24135 EOF
24136       cat > conftest2.s <<EOF
24137         .section ".opd","aw"
24138         .align 3
24139         .globl foo
24140         .type foo,@function
24141 foo:
24142         .quad .LEfoo,.TOC.@tocbase,0
24143         .text
24144 .LEfoo:
24145         blr
24146         .size foo,.-.LEfoo
24147 EOF
24148       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24149          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24150          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24151         gcc_cv_ld_no_dot_syms=yes
24152       fi
24153       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24154     fi
24155
24156 fi
24157 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24158 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24159     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24160
24161 cat >>confdefs.h <<\_ACEOF
24162 #define HAVE_LD_NO_DOT_SYMS 1
24163 _ACEOF
24164
24165     fi
24166     ;;
24167 esac
24168
24169 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24170 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24171 if test "${gcc_cv_ld_sysroot+set}" = set; then
24172   echo $ECHO_N "(cached) $ECHO_C" >&6
24173 else
24174   gcc_cv_ld_sysroot=no
24175   if test $in_tree_ld = yes ; then
24176       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
24177         gcc_cv_ld_sysroot=yes
24178       fi
24179   elif test x$gcc_cv_ld != x; then
24180     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24181       gcc_cv_ld_sysroot=yes
24182     fi
24183   fi
24184 fi
24185 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24186 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24187 if test x"$gcc_cv_ld_sysroot" = xyes; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_LD_SYSROOT 1
24191 _ACEOF
24192
24193 fi
24194
24195 if test x$with_sysroot = x && test x$host = x$target \
24196    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24197    && test "$prefix" != "NONE"; then
24198
24199 cat >>confdefs.h <<_ACEOF
24200 #define PREFIX_INCLUDE_DIR "$prefix/include"
24201 _ACEOF
24202
24203 fi
24204
24205 # Test for stack protector support in target C library.
24206 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24207 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24208 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24209   echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24211   gcc_cv_libc_provides_ssp=no
24212     case "$target" in
24213        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24214       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24215         if test "x$with_sysroot" = x; then
24216           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24217         elif test "x$with_build_sysroot" != "x"; then
24218           glibc_header_dir="${with_build_sysroot}/usr/include"
24219         elif test "x$with_sysroot" = xyes; then
24220           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24221         else
24222           glibc_header_dir="${with_sysroot}/usr/include"
24223         fi
24224       else
24225         glibc_header_dir=/usr/include
24226       fi
24227       # glibc 2.4 and later provides __stack_chk_fail and
24228       # either __stack_chk_guard, or TLS access to stack guard canary.
24229       if test -f $glibc_header_dir/features.h \
24230          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24231             $glibc_header_dir/features.h > /dev/null; then
24232         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24233            $glibc_header_dir/features.h > /dev/null; then
24234           gcc_cv_libc_provides_ssp=yes
24235         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24236              $glibc_header_dir/features.h > /dev/null \
24237              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24238              $glibc_header_dir/features.h > /dev/null; then
24239           gcc_cv_libc_provides_ssp=yes
24240         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24241              $glibc_header_dir/features.h > /dev/null && \
24242              test -f $glibc_header_dir/bits/uClibc_config.h && \
24243              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24244              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24245           gcc_cv_libc_provides_ssp=yes
24246         fi
24247       fi
24248         ;;
24249        *-*-gnu*)
24250          # Avoid complicated tests (see
24251          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24252          # simply assert that glibc does provide this, which is true for all
24253          # realistically usable GNU/Hurd configurations.
24254          gcc_cv_libc_provides_ssp=yes;;
24255        *-*-darwin*)
24256          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24257 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24258 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24259   echo $ECHO_N "(cached) $ECHO_C" >&6
24260 else
24261   cat >conftest.$ac_ext <<_ACEOF
24262 /* confdefs.h.  */
24263 _ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h.  */
24267 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24269 #define __stack_chk_fail innocuous___stack_chk_fail
24270
24271 /* System header to define __stub macros and hopefully few prototypes,
24272     which can conflict with char __stack_chk_fail (); below.
24273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24274     <limits.h> exists even on freestanding compilers.  */
24275
24276 #ifdef __STDC__
24277 # include <limits.h>
24278 #else
24279 # include <assert.h>
24280 #endif
24281
24282 #undef __stack_chk_fail
24283
24284 /* Override any gcc2 internal prototype to avoid an error.  */
24285 #ifdef __cplusplus
24286 extern "C"
24287 {
24288 #endif
24289 /* We use char because int might match the return type of a gcc2
24290    builtin and then its argument prototype would still apply.  */
24291 char __stack_chk_fail ();
24292 /* The GNU C library defines this for functions which it implements
24293     to always fail with ENOSYS.  Some functions are actually named
24294     something starting with __ and the normal name is an alias.  */
24295 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24296 choke me
24297 #else
24298 char (*f) () = __stack_chk_fail;
24299 #endif
24300 #ifdef __cplusplus
24301 }
24302 #endif
24303
24304 int
24305 main ()
24306 {
24307 return f != __stack_chk_fail;
24308   ;
24309   return 0;
24310 }
24311 _ACEOF
24312 rm -f conftest.$ac_objext conftest$ac_exeext
24313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24314   (eval $ac_link) 2>conftest.er1
24315   ac_status=$?
24316   grep -v '^ *+' conftest.er1 >conftest.err
24317   rm -f conftest.er1
24318   cat conftest.err >&5
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); } &&
24321          { ac_try='test -z "$ac_c_werror_flag"
24322                          || test ! -s conftest.err'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; } &&
24328          { ac_try='test -s conftest$ac_exeext'
24329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24330   (eval $ac_try) 2>&5
24331   ac_status=$?
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); }; }; then
24334   ac_cv_func___stack_chk_fail=yes
24335 else
24336   echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24338
24339 ac_cv_func___stack_chk_fail=no
24340 fi
24341 rm -f conftest.err conftest.$ac_objext \
24342       conftest$ac_exeext conftest.$ac_ext
24343 fi
24344 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24345 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24346 if test $ac_cv_func___stack_chk_fail = yes; then
24347   gcc_cv_libc_provides_ssp=yes
24348 else
24349   echo "no __stack_chk_fail on this target"
24350 fi
24351
24352         ;;
24353   *) gcc_cv_libc_provides_ssp=no ;;
24354     esac
24355 fi
24356 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24357 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24358
24359 if test x$gcc_cv_libc_provides_ssp = xyes; then
24360
24361 cat >>confdefs.h <<\_ACEOF
24362 #define TARGET_LIBC_PROVIDES_SSP 1
24363 _ACEOF
24364
24365 fi
24366
24367 # Check if TFmode long double should be used by default or not.
24368 # Some glibc targets used DFmode long double, but with glibc 2.4
24369 # and later they can use TFmode.
24370 case "$target" in
24371   powerpc*-*-linux* | \
24372   powerpc*-*-gnu* | \
24373   sparc*-*-linux* | \
24374   s390*-*-linux* | \
24375   alpha*-*-linux*)
24376
24377 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24378 if test "${with_long_double_128+set}" = set; then
24379   withval="$with_long_double_128"
24380   gcc_cv_target_ldbl128="$with_long_double_128"
24381 else
24382   gcc_cv_target_ldbl128=no
24383       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24384         if test "x$with_sysroot" = x; then
24385           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24386         elif test "x$with_build_sysroot" != "x"; then
24387           glibc_header_dir="${with_build_sysroot}/usr/include"
24388         elif test "x$with_sysroot" = xyes; then
24389           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24390         else
24391           glibc_header_dir="${with_sysroot}/usr/include"
24392         fi
24393       else
24394         glibc_header_dir=/usr/include
24395       fi
24396       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24397         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24398       && gcc_cv_target_ldbl128=yes
24399
24400 fi;
24401     ;;
24402 esac
24403 if test x$gcc_cv_target_ldbl128 = xyes; then
24404
24405 cat >>confdefs.h <<\_ACEOF
24406 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24407 _ACEOF
24408
24409 fi
24410
24411 # Find out what GC implementation we want, or may, use.
24412
24413 # Check whether --with-gc or --without-gc was given.
24414 if test "${with_gc+set}" = set; then
24415   withval="$with_gc"
24416   case "$withval" in
24417   page)
24418     GGC=ggc-$withval
24419     ;;
24420   zone)
24421     GGC=ggc-$withval
24422
24423 cat >>confdefs.h <<\_ACEOF
24424 #define GGC_ZONE 1
24425 _ACEOF
24426
24427     ;;
24428   *)
24429     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24430 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24431    { (exit 1); exit 1; }; }
24432     ;;
24433 esac
24434 else
24435   GGC=ggc-page
24436 fi;
24437
24438 echo "Using $GGC for garbage collection."
24439
24440 # Use the system's zlib library.
24441 zlibdir=-L../zlib
24442 zlibinc="-I\$(srcdir)/../zlib"
24443
24444 # Check whether --with-system-zlib or --without-system-zlib was given.
24445 if test "${with_system_zlib+set}" = set; then
24446   withval="$with_system_zlib"
24447   zlibdir=
24448 zlibinc=
24449
24450 fi;
24451
24452
24453
24454
24455 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24456 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24457     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24458 if test "${enable_maintainer_mode+set}" = set; then
24459   enableval="$enable_maintainer_mode"
24460   maintainer_mode=$enableval
24461 else
24462   maintainer_mode=no
24463 fi;
24464
24465 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24466 echo "${ECHO_T}$maintainer_mode" >&6
24467
24468 if test "$maintainer_mode" = "yes"; then
24469   MAINT=''
24470 else
24471   MAINT='#'
24472 fi
24473
24474 # --------------
24475 # Language hooks
24476 # --------------
24477
24478 # Make empty files to contain the specs and options for each language.
24479 # Then add #include lines to for a compiler that has specs and/or options.
24480
24481 subdirs=
24482 lang_opt_files=
24483 lang_specs_files=
24484 lang_tree_files=
24485 # These (without "all_") are set in each config-lang.in.
24486 # `language' must be a single word so is spelled singularly.
24487 all_languages=
24488 all_compilers=
24489 all_outputs='Makefile gccbug'
24490 # List of language makefile fragments.
24491 all_lang_makefrags=
24492 # List of language subdirectory makefiles.  Deprecated.
24493 all_lang_makefiles=
24494 # Additional files for gengtype
24495 all_gtfiles="$target_gtfiles"
24496
24497 # These are the languages that are set in --enable-languages,
24498 # and are available in the GCC tree.
24499 all_selected_languages=
24500
24501 # Add the language fragments.
24502 # Languages are added via two mechanisms.  Some information must be
24503 # recorded in makefile variables, these are defined in config-lang.in.
24504 # We accumulate them and plug them into the main Makefile.
24505 # The other mechanism is a set of hooks for each of the main targets
24506 # like `clean', `install', etc.
24507
24508 language_hooks="Make-hooks"
24509
24510 for lang in ${srcdir}/*/config-lang.in
24511 do
24512         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24513
24514         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24515         if test "x$lang_alias" = x
24516         then
24517               echo "$lang doesn't set \$language." 1>&2
24518               exit 1
24519         fi
24520         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24521         subdirs="$subdirs $subdir"
24522
24523         # $gcc_subdir is where the gcc integration files are to be found
24524         # for a language, both for internal compiler purposes (compiler
24525         # sources implementing front-end to GCC tree converters), and for
24526         # build infrastructure purposes (Make-lang.in, etc.)
24527         #
24528         # This will be <subdir> (relative to $srcdir) if a line like
24529         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24530         # is found in <langdir>/config-lang.in, and will remain <langdir>
24531         # otherwise.
24532         #
24533         # Except for the language alias (fetched above), the regular
24534         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24535         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24536         # only this and the language alias.
24537
24538         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24539         if [ "$gcc_subdir" = "" ]; then
24540            gcc_subdir="$subdir"
24541         fi
24542
24543         case ",$enable_languages," in
24544         *,$lang_alias,*)
24545             all_selected_languages="$all_selected_languages $lang_alias"
24546             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24547                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24548             fi
24549             ;;
24550         esac
24551
24552         language=
24553         boot_language=
24554         compilers=
24555         outputs=
24556         gtfiles=
24557         subdir_requires=
24558         . ${srcdir}/$gcc_subdir/config-lang.in
24559         if test "x$language" = x
24560         then
24561                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24562                 exit 1
24563         fi
24564
24565         ok=:
24566         case ",$enable_languages," in
24567                 *,$lang_alias,*) ;;
24568                 *)
24569                         for i in $subdir_requires; do
24570                                 test -f "${srcdir}/$i/config-lang.in" && continue
24571                                 ok=false
24572                                 break
24573                         done
24574                 ;;
24575         esac
24576         $ok || continue
24577
24578         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24579         if test -f $srcdir/$gcc_subdir/lang.opt; then
24580             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24581         fi
24582         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24583             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24584         fi
24585         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24586                 then all_lang_makefiles="$gcc_subdir/Makefile"
24587         fi
24588         all_languages="$all_languages $language"
24589         all_compilers="$all_compilers $compilers"
24590         all_outputs="$all_outputs $outputs"
24591         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24592 done
24593
24594 # Pick up gtfiles for c
24595 gtfiles=
24596 . ${srcdir}/c-config-lang.in
24597 all_gtfiles="$all_gtfiles [c] $gtfiles"
24598
24599 check_languages=
24600 for language in $all_selected_languages
24601 do
24602         check_languages="$check_languages check-$language"
24603 done
24604
24605 # We link each language in with a set of hooks, reached indirectly via
24606 # lang.${target}.  Only do so for selected languages.
24607
24608 rm -f Make-hooks
24609 touch Make-hooks
24610 target_list="all.cross start.encap rest.encap tags \
24611         install-common install-man install-info install-pdf dvi pdf \
24612         html uninstall info man srcextra srcman srcinfo \
24613         mostlyclean clean distclean maintainer-clean"
24614
24615 for t in $target_list
24616 do
24617         x=
24618         for lang in $all_selected_languages
24619         do
24620                 x="$x $lang.$t"
24621         done
24622         echo "lang.$t: $x" >> Make-hooks
24623 done
24624
24625 # --------
24626 # UNSORTED
24627 # --------
24628
24629 # Create .gdbinit.
24630
24631 echo "dir ." > .gdbinit
24632 echo "dir ${srcdir}" >> .gdbinit
24633 if test x$gdb_needs_out_file_path = xyes
24634 then
24635         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24636 fi
24637 if test "x$subdirs" != x; then
24638         for s in $subdirs
24639         do
24640                 echo "dir ${srcdir}/$s" >> .gdbinit
24641         done
24642 fi
24643 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24644
24645 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24646
24647
24648
24649 # Find a directory in which to install a shared libgcc.
24650
24651 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24652 if test "${enable_version_specific_runtime_libs+set}" = set; then
24653   enableval="$enable_version_specific_runtime_libs"
24654
24655 fi;
24656
24657
24658 # Check whether --with-slibdir or --without-slibdir was given.
24659 if test "${with_slibdir+set}" = set; then
24660   withval="$with_slibdir"
24661   slibdir="$with_slibdir"
24662 else
24663   if test "${enable_version_specific_runtime_libs+set}" = set; then
24664   slibdir='$(libsubdir)'
24665 elif test "$host" != "$target"; then
24666   slibdir='$(build_tooldir)/lib'
24667 else
24668   slibdir='$(libdir)'
24669 fi
24670 fi;
24671
24672
24673
24674 # Check whether --with-datarootdir or --without-datarootdir was given.
24675 if test "${with_datarootdir+set}" = set; then
24676   withval="$with_datarootdir"
24677   datarootdir="\${prefix}/$with_datarootdir"
24678 else
24679   datarootdir='$(prefix)/share'
24680 fi;
24681
24682
24683
24684 # Check whether --with-docdir or --without-docdir was given.
24685 if test "${with_docdir+set}" = set; then
24686   withval="$with_docdir"
24687   docdir="\${prefix}/$with_docdir"
24688 else
24689   docdir='$(datarootdir)'
24690 fi;
24691
24692
24693
24694 # Check whether --with-htmldir or --without-htmldir was given.
24695 if test "${with_htmldir+set}" = set; then
24696   withval="$with_htmldir"
24697   htmldir="\${prefix}/$with_htmldir"
24698 else
24699   htmldir='$(docdir)'
24700 fi;
24701
24702
24703 # Substitute configuration variables
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761 # Echo link setup.
24762 if test x${build} = x${host} ; then
24763   if test x${host} = x${target} ; then
24764     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24765   else
24766     echo "Links are now set up to build a cross-compiler" 1>&2
24767     echo " from ${host} to ${target}." 1>&2
24768   fi
24769 else
24770   if test x${host} = x${target} ; then
24771     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24772     echo " for ${target}." 1>&2
24773   else
24774     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24775     echo " from ${host} to ${target}." 1>&2
24776   fi
24777 fi
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787 if test "x${CLOOGLIBS}" != "x" ; then
24788
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_cloog 1
24791 _ACEOF
24792
24793 fi
24794
24795 # Configure the subdirectories
24796 # AC_CONFIG_SUBDIRS($subdirs)
24797
24798 # Create the Makefile
24799 # and configure language subdirectories
24800           ac_config_files="$ac_config_files $all_outputs"
24801
24802
24803           ac_config_commands="$ac_config_commands default"
24804
24805 cat >confcache <<\_ACEOF
24806 # This file is a shell script that caches the results of configure
24807 # tests run on this system so they can be shared between configure
24808 # scripts and configure runs, see configure's option --config-cache.
24809 # It is not useful on other systems.  If it contains results you don't
24810 # want to keep, you may remove or edit it.
24811 #
24812 # config.status only pays attention to the cache file if you give it
24813 # the --recheck option to rerun configure.
24814 #
24815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24817 # following values.
24818
24819 _ACEOF
24820
24821 # The following way of writing the cache mishandles newlines in values,
24822 # but we know of no workaround that is simple, portable, and efficient.
24823 # So, don't put newlines in cache variables' values.
24824 # Ultrix sh set writes to stderr and can't be redirected directly,
24825 # and sets the high bit in the cache file unless we assign to the vars.
24826 {
24827   (set) 2>&1 |
24828     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24829     *ac_space=\ *)
24830       # `set' does not quote correctly, so add quotes (double-quote
24831       # substitution turns \\\\ into \\, and sed turns \\ into \).
24832       sed -n \
24833         "s/'/'\\\\''/g;
24834           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24835       ;;
24836     *)
24837       # `set' quotes correctly as required by POSIX, so do not add quotes.
24838       sed -n \
24839         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24840       ;;
24841     esac;
24842 } |
24843   sed '
24844      t clear
24845      : clear
24846      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24847      t end
24848      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24849      : end' >>confcache
24850 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24851   if test -w $cache_file; then
24852     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24853     cat confcache >$cache_file
24854   else
24855     echo "not updating unwritable cache $cache_file"
24856   fi
24857 fi
24858 rm -f confcache
24859
24860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24861 # Let make expand exec_prefix.
24862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24863
24864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24866 # trailing colons and then remove the whole line if VPATH becomes empty
24867 # (actually we leave an empty line to preserve line numbers).
24868 if test "x$srcdir" = x.; then
24869   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24870 s/:*\$(srcdir):*/:/;
24871 s/:*\${srcdir}:*/:/;
24872 s/:*@srcdir@:*/:/;
24873 s/^\([^=]*=[     ]*\):*/\1/;
24874 s/:*$//;
24875 s/^[^=]*=[       ]*$//;
24876 }'
24877 fi
24878
24879 DEFS=-DHAVE_CONFIG_H
24880
24881 ac_libobjs=
24882 ac_ltlibobjs=
24883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24884   # 1. Remove the extension, and $U if already installed.
24885   ac_i=`echo "$ac_i" |
24886          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24887   # 2. Add them.
24888   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24889   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24890 done
24891 LIBOBJS=$ac_libobjs
24892
24893 LTLIBOBJS=$ac_ltlibobjs
24894
24895
24896
24897 : ${CONFIG_STATUS=./config.status}
24898 ac_clean_files_save=$ac_clean_files
24899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24900 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24901 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24902 cat >$CONFIG_STATUS <<_ACEOF
24903 #! $SHELL
24904 # Generated by $as_me.
24905 # Run this file to recreate the current configuration.
24906 # Compiler output produced by configure, useful for debugging
24907 # configure, is in config.log if it exists.
24908
24909 debug=false
24910 ac_cs_recheck=false
24911 ac_cs_silent=false
24912 SHELL=\${CONFIG_SHELL-$SHELL}
24913 _ACEOF
24914
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 ## --------------------- ##
24917 ## M4sh Initialization.  ##
24918 ## --------------------- ##
24919
24920 # Be Bourne compatible
24921 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24922   emulate sh
24923   NULLCMD=:
24924   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24925   # is contrary to our usage.  Disable this feature.
24926   alias -g '${1+"$@"}'='"$@"'
24927 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24928   set -o posix
24929 fi
24930 DUALCASE=1; export DUALCASE # for MKS sh
24931
24932 # Support unset when possible.
24933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24934   as_unset=unset
24935 else
24936   as_unset=false
24937 fi
24938
24939
24940 # Work around bugs in pre-3.0 UWIN ksh.
24941 $as_unset ENV MAIL MAILPATH
24942 PS1='$ '
24943 PS2='> '
24944 PS4='+ '
24945
24946 # NLS nuisances.
24947 for as_var in \
24948   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24949   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24950   LC_TELEPHONE LC_TIME
24951 do
24952   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24953     eval $as_var=C; export $as_var
24954   else
24955     $as_unset $as_var
24956   fi
24957 done
24958
24959 # Required to use basename.
24960 if expr a : '\(a\)' >/dev/null 2>&1; then
24961   as_expr=expr
24962 else
24963   as_expr=false
24964 fi
24965
24966 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24967   as_basename=basename
24968 else
24969   as_basename=false
24970 fi
24971
24972
24973 # Name of the executable.
24974 as_me=`$as_basename "$0" ||
24975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24976          X"$0" : 'X\(//\)$' \| \
24977          X"$0" : 'X\(/\)$' \| \
24978          .     : '\(.\)' 2>/dev/null ||
24979 echo X/"$0" |
24980     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24981           /^X\/\(\/\/\)$/{ s//\1/; q; }
24982           /^X\/\(\/\).*/{ s//\1/; q; }
24983           s/.*/./; q'`
24984
24985
24986 # PATH needs CR, and LINENO needs CR and PATH.
24987 # Avoid depending upon Character Ranges.
24988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24991 as_cr_digits='0123456789'
24992 as_cr_alnum=$as_cr_Letters$as_cr_digits
24993
24994 # The user is always right.
24995 if test "${PATH_SEPARATOR+set}" != set; then
24996   echo "#! /bin/sh" >conf$$.sh
24997   echo  "exit 0"   >>conf$$.sh
24998   chmod +x conf$$.sh
24999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25000     PATH_SEPARATOR=';'
25001   else
25002     PATH_SEPARATOR=:
25003   fi
25004   rm -f conf$$.sh
25005 fi
25006
25007
25008   as_lineno_1=$LINENO
25009   as_lineno_2=$LINENO
25010   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25011   test "x$as_lineno_1" != "x$as_lineno_2" &&
25012   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25013   # Find who we are.  Look in the path if we contain no path at all
25014   # relative or not.
25015   case $0 in
25016     *[\\/]* ) as_myself=$0 ;;
25017     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25018 for as_dir in $PATH
25019 do
25020   IFS=$as_save_IFS
25021   test -z "$as_dir" && as_dir=.
25022   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25023 done
25024
25025        ;;
25026   esac
25027   # We did not find ourselves, most probably we were run as `sh COMMAND'
25028   # in which case we are not to be found in the path.
25029   if test "x$as_myself" = x; then
25030     as_myself=$0
25031   fi
25032   if test ! -f "$as_myself"; then
25033     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25034 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25035    { (exit 1); exit 1; }; }
25036   fi
25037   case $CONFIG_SHELL in
25038   '')
25039     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25040 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25041 do
25042   IFS=$as_save_IFS
25043   test -z "$as_dir" && as_dir=.
25044   for as_base in sh bash ksh sh5; do
25045          case $as_dir in
25046          /*)
25047            if ("$as_dir/$as_base" -c '
25048   as_lineno_1=$LINENO
25049   as_lineno_2=$LINENO
25050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25051   test "x$as_lineno_1" != "x$as_lineno_2" &&
25052   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25053              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25054              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25055              CONFIG_SHELL=$as_dir/$as_base
25056              export CONFIG_SHELL
25057              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25058            fi;;
25059          esac
25060        done
25061 done
25062 ;;
25063   esac
25064
25065   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25066   # uniformly replaced by the line number.  The first 'sed' inserts a
25067   # line-number line before each line; the second 'sed' does the real
25068   # work.  The second script uses 'N' to pair each line-number line
25069   # with the numbered line, and appends trailing '-' during
25070   # substitution so that $LINENO is not a special case at line end.
25071   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25072   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25073   sed '=' <$as_myself |
25074     sed '
25075       N
25076       s,$,-,
25077       : loop
25078       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25079       t loop
25080       s,-$,,
25081       s,^['$as_cr_digits']*\n,,
25082     ' >$as_me.lineno &&
25083   chmod +x $as_me.lineno ||
25084     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25085 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25086    { (exit 1); exit 1; }; }
25087
25088   # Don't try to exec as it changes $[0], causing all sort of problems
25089   # (the dirname of $[0] is not the place where we might find the
25090   # original and so on.  Autoconf is especially sensible to this).
25091   . ./$as_me.lineno
25092   # Exit status is that of the last command.
25093   exit
25094 }
25095
25096
25097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25098   *c*,-n*) ECHO_N= ECHO_C='
25099 ' ECHO_T='      ' ;;
25100   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25101   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25102 esac
25103
25104 if expr a : '\(a\)' >/dev/null 2>&1; then
25105   as_expr=expr
25106 else
25107   as_expr=false
25108 fi
25109
25110 rm -f conf$$ conf$$.exe conf$$.file
25111 echo >conf$$.file
25112 if ln -s conf$$.file conf$$ 2>/dev/null; then
25113   # We could just check for DJGPP; but this test a) works b) is more generic
25114   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25115   if test -f conf$$.exe; then
25116     # Don't use ln at all; we don't have any links
25117     as_ln_s='cp -p'
25118   else
25119     as_ln_s='ln -s'
25120   fi
25121 elif ln conf$$.file conf$$ 2>/dev/null; then
25122   as_ln_s=ln
25123 else
25124   as_ln_s='cp -p'
25125 fi
25126 rm -f conf$$ conf$$.exe conf$$.file
25127
25128 if mkdir -p . 2>/dev/null; then
25129   as_mkdir_p=:
25130 else
25131   test -d ./-p && rmdir ./-p
25132   as_mkdir_p=false
25133 fi
25134
25135 as_executable_p="test -f"
25136
25137 # Sed expression to map a string onto a valid CPP name.
25138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25139
25140 # Sed expression to map a string onto a valid variable name.
25141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25142
25143
25144 # IFS
25145 # We need space, tab and new line, in precisely that order.
25146 as_nl='
25147 '
25148 IFS="   $as_nl"
25149
25150 # CDPATH.
25151 $as_unset CDPATH
25152
25153 exec 6>&1
25154
25155 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25156 # report actual input values of CONFIG_FILES etc. instead of their
25157 # values after options handling.  Logging --version etc. is OK.
25158 exec 5>>config.log
25159 {
25160   echo
25161   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25162 ## Running $as_me. ##
25163 _ASBOX
25164 } >&5
25165 cat >&5 <<_CSEOF
25166
25167 This file was extended by $as_me, which was
25168 generated by GNU Autoconf 2.59.  Invocation command line was
25169
25170   CONFIG_FILES    = $CONFIG_FILES
25171   CONFIG_HEADERS  = $CONFIG_HEADERS
25172   CONFIG_LINKS    = $CONFIG_LINKS
25173   CONFIG_COMMANDS = $CONFIG_COMMANDS
25174   $ $0 $@
25175
25176 _CSEOF
25177 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25178 echo >&5
25179 _ACEOF
25180
25181 # Files that config.status was made for.
25182 if test -n "$ac_config_files"; then
25183   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25184 fi
25185
25186 if test -n "$ac_config_headers"; then
25187   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25188 fi
25189
25190 if test -n "$ac_config_links"; then
25191   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25192 fi
25193
25194 if test -n "$ac_config_commands"; then
25195   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25196 fi
25197
25198 cat >>$CONFIG_STATUS <<\_ACEOF
25199
25200 ac_cs_usage="\
25201 \`$as_me' instantiates files from templates according to the
25202 current configuration.
25203
25204 Usage: $0 [OPTIONS] [FILE]...
25205
25206   -h, --help       print this help, then exit
25207   -V, --version    print version number, then exit
25208   -q, --quiet      do not print progress messages
25209   -d, --debug      don't remove temporary files
25210       --recheck    update $as_me by reconfiguring in the same conditions
25211   --file=FILE[:TEMPLATE]
25212                    instantiate the configuration file FILE
25213   --header=FILE[:TEMPLATE]
25214                    instantiate the configuration header FILE
25215
25216 Configuration files:
25217 $config_files
25218
25219 Configuration headers:
25220 $config_headers
25221
25222 Configuration commands:
25223 $config_commands
25224
25225 Report bugs to <bug-autoconf@gnu.org>."
25226 _ACEOF
25227
25228 cat >>$CONFIG_STATUS <<_ACEOF
25229 ac_cs_version="\\
25230 config.status
25231 configured by $0, generated by GNU Autoconf 2.59,
25232   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25233
25234 Copyright (C) 2003 Free Software Foundation, Inc.
25235 This config.status script is free software; the Free Software Foundation
25236 gives unlimited permission to copy, distribute and modify it."
25237 srcdir=$srcdir
25238 _ACEOF
25239
25240 cat >>$CONFIG_STATUS <<\_ACEOF
25241 # If no file are specified by the user, then we need to provide default
25242 # value.  By we need to know if files were specified by the user.
25243 ac_need_defaults=:
25244 while test $# != 0
25245 do
25246   case $1 in
25247   --*=*)
25248     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25249     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25250     ac_shift=:
25251     ;;
25252   -*)
25253     ac_option=$1
25254     ac_optarg=$2
25255     ac_shift=shift
25256     ;;
25257   *) # This is not an option, so the user has probably given explicit
25258      # arguments.
25259      ac_option=$1
25260      ac_need_defaults=false;;
25261   esac
25262
25263   case $ac_option in
25264   # Handling of the options.
25265 _ACEOF
25266 cat >>$CONFIG_STATUS <<\_ACEOF
25267   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25268     ac_cs_recheck=: ;;
25269   --version | --vers* | -V )
25270     echo "$ac_cs_version"; exit 0 ;;
25271   --he | --h)
25272     # Conflict between --help and --header
25273     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25274 Try \`$0 --help' for more information." >&5
25275 echo "$as_me: error: ambiguous option: $1
25276 Try \`$0 --help' for more information." >&2;}
25277    { (exit 1); exit 1; }; };;
25278   --help | --hel | -h )
25279     echo "$ac_cs_usage"; exit 0 ;;
25280   --debug | --d* | -d )
25281     debug=: ;;
25282   --file | --fil | --fi | --f )
25283     $ac_shift
25284     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25285     ac_need_defaults=false;;
25286   --header | --heade | --head | --hea )
25287     $ac_shift
25288     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25289     ac_need_defaults=false;;
25290   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25291   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25292     ac_cs_silent=: ;;
25293
25294   # This is an error.
25295   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25296 Try \`$0 --help' for more information." >&5
25297 echo "$as_me: error: unrecognized option: $1
25298 Try \`$0 --help' for more information." >&2;}
25299    { (exit 1); exit 1; }; } ;;
25300
25301   *) ac_config_targets="$ac_config_targets $1" ;;
25302
25303   esac
25304   shift
25305 done
25306
25307 ac_configure_extra_args=
25308
25309 if $ac_cs_silent; then
25310   exec 6>/dev/null
25311   ac_configure_extra_args="$ac_configure_extra_args --silent"
25312 fi
25313
25314 _ACEOF
25315 cat >>$CONFIG_STATUS <<_ACEOF
25316 if \$ac_cs_recheck; then
25317   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25318   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25319 fi
25320
25321 _ACEOF
25322
25323 cat >>$CONFIG_STATUS <<_ACEOF
25324 #
25325 # INIT-COMMANDS section.
25326 #
25327
25328 subdirs='$subdirs'
25329
25330 _ACEOF
25331
25332
25333
25334 cat >>$CONFIG_STATUS <<\_ACEOF
25335 for ac_config_target in $ac_config_targets
25336 do
25337   case "$ac_config_target" in
25338   # Handling of arguments.
25339   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25340   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25341   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25342   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25343   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25344   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25345   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25347    { (exit 1); exit 1; }; };;
25348   esac
25349 done
25350
25351 # If the user did not use the arguments to specify the items to instantiate,
25352 # then the envvar interface is used.  Set only those that are not.
25353 # We use the long form for the default assignment because of an extremely
25354 # bizarre bug on SunOS 4.1.3.
25355 if $ac_need_defaults; then
25356   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25357   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25358   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25359 fi
25360
25361 # Have a temporary directory for convenience.  Make it in the build tree
25362 # simply because there is no reason to put it here, and in addition,
25363 # creating and moving files from /tmp can sometimes cause problems.
25364 # Create a temporary directory, and hook for its removal unless debugging.
25365 $debug ||
25366 {
25367   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25368   trap '{ (exit 1); exit 1; }' 1 2 13 15
25369 }
25370
25371 # Create a (secure) tmp directory for tmp files.
25372
25373 {
25374   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25375   test -n "$tmp" && test -d "$tmp"
25376 }  ||
25377 {
25378   tmp=./confstat$$-$RANDOM
25379   (umask 077 && mkdir $tmp)
25380 } ||
25381 {
25382    echo "$me: cannot create a temporary directory in ." >&2
25383    { (exit 1); exit 1; }
25384 }
25385
25386 _ACEOF
25387
25388 cat >>$CONFIG_STATUS <<_ACEOF
25389
25390 #
25391 # CONFIG_FILES section.
25392 #
25393
25394 # No need to generate the scripts if there are no CONFIG_FILES.
25395 # This happens for instance when ./config.status config.h
25396 if test -n "\$CONFIG_FILES"; then
25397   # Protect against being on the right side of a sed subst in config.status.
25398   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25399    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25400 s,@SHELL@,$SHELL,;t t
25401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25407 s,@exec_prefix@,$exec_prefix,;t t
25408 s,@prefix@,$prefix,;t t
25409 s,@program_transform_name@,$program_transform_name,;t t
25410 s,@bindir@,$bindir,;t t
25411 s,@sbindir@,$sbindir,;t t
25412 s,@libexecdir@,$libexecdir,;t t
25413 s,@datadir@,$datadir,;t t
25414 s,@sysconfdir@,$sysconfdir,;t t
25415 s,@sharedstatedir@,$sharedstatedir,;t t
25416 s,@localstatedir@,$localstatedir,;t t
25417 s,@libdir@,$libdir,;t t
25418 s,@includedir@,$includedir,;t t
25419 s,@oldincludedir@,$oldincludedir,;t t
25420 s,@infodir@,$infodir,;t t
25421 s,@mandir@,$mandir,;t t
25422 s,@build_alias@,$build_alias,;t t
25423 s,@host_alias@,$host_alias,;t t
25424 s,@target_alias@,$target_alias,;t t
25425 s,@DEFS@,$DEFS,;t t
25426 s,@ECHO_C@,$ECHO_C,;t t
25427 s,@ECHO_N@,$ECHO_N,;t t
25428 s,@ECHO_T@,$ECHO_T,;t t
25429 s,@LIBS@,$LIBS,;t t
25430 s,@build@,$build,;t t
25431 s,@build_cpu@,$build_cpu,;t t
25432 s,@build_vendor@,$build_vendor,;t t
25433 s,@build_os@,$build_os,;t t
25434 s,@host@,$host,;t t
25435 s,@host_cpu@,$host_cpu,;t t
25436 s,@host_vendor@,$host_vendor,;t t
25437 s,@host_os@,$host_os,;t t
25438 s,@target@,$target,;t t
25439 s,@target_cpu@,$target_cpu,;t t
25440 s,@target_vendor@,$target_vendor,;t t
25441 s,@target_os@,$target_os,;t t
25442 s,@target_noncanonical@,$target_noncanonical,;t t
25443 s,@build_libsubdir@,$build_libsubdir,;t t
25444 s,@build_subdir@,$build_subdir,;t t
25445 s,@host_subdir@,$host_subdir,;t t
25446 s,@target_subdir@,$target_subdir,;t t
25447 s,@GENINSRC@,$GENINSRC,;t t
25448 s,@CC@,$CC,;t t
25449 s,@CFLAGS@,$CFLAGS,;t t
25450 s,@LDFLAGS@,$LDFLAGS,;t t
25451 s,@CPPFLAGS@,$CPPFLAGS,;t t
25452 s,@ac_ct_CC@,$ac_ct_CC,;t t
25453 s,@EXEEXT@,$EXEEXT,;t t
25454 s,@OBJEXT@,$OBJEXT,;t t
25455 s,@GNATBIND@,$GNATBIND,;t t
25456 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25457 s,@GNATMAKE@,$GNATMAKE,;t t
25458 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25459 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25460 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25461 s,@CPP@,$CPP,;t t
25462 s,@EGREP@,$EGREP,;t t
25463 s,@loose_warn@,$loose_warn,;t t
25464 s,@strict_warn@,$strict_warn,;t t
25465 s,@warn_cflags@,$warn_cflags,;t t
25466 s,@nocommon_flag@,$nocommon_flag,;t t
25467 s,@TREEBROWSER@,$TREEBROWSER,;t t
25468 s,@valgrind_path@,$valgrind_path,;t t
25469 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25470 s,@valgrind_command@,$valgrind_command,;t t
25471 s,@coverage_flags@,$coverage_flags,;t t
25472 s,@enable_multilib@,$enable_multilib,;t t
25473 s,@enable_decimal_float@,$enable_decimal_float,;t t
25474 s,@enable_fixed_point@,$enable_fixed_point,;t t
25475 s,@enable_shared@,$enable_shared,;t t
25476 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25477 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25478 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25479 s,@onestep@,$onestep,;t t
25480 s,@PKGVERSION@,$PKGVERSION,;t t
25481 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25482 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25483 s,@datarootdir@,$datarootdir,;t t
25484 s,@docdir@,$docdir,;t t
25485 s,@htmldir@,$htmldir,;t t
25486 s,@SET_MAKE@,$SET_MAKE,;t t
25487 s,@AWK@,$AWK,;t t
25488 s,@LN_S@,$LN_S,;t t
25489 s,@LN@,$LN,;t t
25490 s,@RANLIB@,$RANLIB,;t t
25491 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25492 s,@ranlib_flags@,$ranlib_flags,;t t
25493 s,@INSTALL@,$INSTALL,;t t
25494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25495 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25496 s,@make_compare_target@,$make_compare_target,;t t
25497 s,@have_mktemp_command@,$have_mktemp_command,;t t
25498 s,@MAKEINFO@,$MAKEINFO,;t t
25499 s,@BUILD_INFO@,$BUILD_INFO,;t t
25500 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25501 s,@FLEX@,$FLEX,;t t
25502 s,@BISON@,$BISON,;t t
25503 s,@NM@,$NM,;t t
25504 s,@AR@,$AR,;t t
25505 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25506 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25507 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25508 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
25509 s,@LIBICONV@,$LIBICONV,;t t
25510 s,@LTLIBICONV@,$LTLIBICONV,;t t
25511 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25512 s,@manext@,$manext,;t t
25513 s,@objext@,$objext,;t t
25514 s,@gthread_flags@,$gthread_flags,;t t
25515 s,@extra_modes_file@,$extra_modes_file,;t t
25516 s,@extra_opt_files@,$extra_opt_files,;t t
25517 s,@USE_NLS@,$USE_NLS,;t t
25518 s,@LIBINTL@,$LIBINTL,;t t
25519 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25520 s,@INCINTL@,$INCINTL,;t t
25521 s,@XGETTEXT@,$XGETTEXT,;t t
25522 s,@GMSGFMT@,$GMSGFMT,;t t
25523 s,@POSUB@,$POSUB,;t t
25524 s,@CATALOGS@,$CATALOGS,;t t
25525 s,@DATADIRNAME@,$DATADIRNAME,;t t
25526 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25527 s,@GENCAT@,$GENCAT,;t t
25528 s,@CATOBJEXT@,$CATOBJEXT,;t t
25529 s,@CROSS@,$CROSS,;t t
25530 s,@ALL@,$ALL,;t t
25531 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25532 s,@inhibit_libc@,$inhibit_libc,;t t
25533 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25534 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25535 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25536 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25537 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
25538 s,@collect2@,$collect2,;t t
25539 s,@LIBTOOL@,$LIBTOOL,;t t
25540 s,@SED@,$SED,;t t
25541 s,@FGREP@,$FGREP,;t t
25542 s,@GREP@,$GREP,;t t
25543 s,@LD@,$LD,;t t
25544 s,@DUMPBIN@,$DUMPBIN,;t t
25545 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25546 s,@OBJDUMP@,$OBJDUMP,;t t
25547 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25548 s,@ac_ct_AR@,$ac_ct_AR,;t t
25549 s,@STRIP@,$STRIP,;t t
25550 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25551 s,@lt_ECHO@,$lt_ECHO,;t t
25552 s,@DSYMUTIL@,$DSYMUTIL,;t t
25553 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25554 s,@NMEDIT@,$NMEDIT,;t t
25555 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25556 s,@LIPO@,$LIPO,;t t
25557 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25558 s,@OTOOL@,$OTOOL,;t t
25559 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25560 s,@OTOOL64@,$OTOOL64,;t t
25561 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25562 s,@objdir@,$objdir,;t t
25563 s,@enable_fast_install@,$enable_fast_install,;t t
25564 s,@gcc_cv_as@,$gcc_cv_as,;t t
25565 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25566 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25567 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25568 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25569 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25570 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25571 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25572 s,@libgcc_visibility@,$libgcc_visibility,;t t
25573 s,@GGC@,$GGC,;t t
25574 s,@zlibdir@,$zlibdir,;t t
25575 s,@zlibinc@,$zlibinc,;t t
25576 s,@MAINT@,$MAINT,;t t
25577 s,@gcc_tooldir@,$gcc_tooldir,;t t
25578 s,@dollar@,$dollar,;t t
25579 s,@slibdir@,$slibdir,;t t
25580 s,@subdirs@,$subdirs,;t t
25581 s,@srcdir@,$srcdir,;t t
25582 s,@all_compilers@,$all_compilers,;t t
25583 s,@all_gtfiles@,$all_gtfiles,;t t
25584 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25585 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25586 s,@all_languages@,$all_languages,;t t
25587 s,@all_selected_languages@,$all_selected_languages,;t t
25588 s,@build_exeext@,$build_exeext,;t t
25589 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25590 s,@build_xm_file_list@,$build_xm_file_list,;t t
25591 s,@build_xm_include_list@,$build_xm_include_list,;t t
25592 s,@build_xm_defines@,$build_xm_defines,;t t
25593 s,@build_file_translate@,$build_file_translate,;t t
25594 s,@check_languages@,$check_languages,;t t
25595 s,@cpp_install_dir@,$cpp_install_dir,;t t
25596 s,@xmake_file@,$xmake_file,;t t
25597 s,@tmake_file@,$tmake_file,;t t
25598 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25599 s,@extra_headers_list@,$extra_headers_list,;t t
25600 s,@extra_objs@,$extra_objs,;t t
25601 s,@extra_parts@,$extra_parts,;t t
25602 s,@extra_passes@,$extra_passes,;t t
25603 s,@extra_programs@,$extra_programs,;t t
25604 s,@float_h_file@,$float_h_file,;t t
25605 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25606 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25607 s,@host_exeext@,$host_exeext,;t t
25608 s,@host_xm_file_list@,$host_xm_file_list,;t t
25609 s,@host_xm_include_list@,$host_xm_include_list,;t t
25610 s,@host_xm_defines@,$host_xm_defines,;t t
25611 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25612 s,@install@,$install,;t t
25613 s,@lang_opt_files@,$lang_opt_files,;t t
25614 s,@lang_specs_files@,$lang_specs_files,;t t
25615 s,@lang_tree_files@,$lang_tree_files,;t t
25616 s,@local_prefix@,$local_prefix,;t t
25617 s,@md_file@,$md_file,;t t
25618 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25619 s,@out_file@,$out_file,;t t
25620 s,@out_object_file@,$out_object_file,;t t
25621 s,@thread_file@,$thread_file,;t t
25622 s,@tm_file_list@,$tm_file_list,;t t
25623 s,@tm_include_list@,$tm_include_list,;t t
25624 s,@tm_defines@,$tm_defines,;t t
25625 s,@tm_p_file_list@,$tm_p_file_list,;t t
25626 s,@tm_p_include_list@,$tm_p_include_list,;t t
25627 s,@xm_file_list@,$xm_file_list,;t t
25628 s,@xm_include_list@,$xm_include_list,;t t
25629 s,@xm_defines@,$xm_defines,;t t
25630 s,@c_target_objs@,$c_target_objs,;t t
25631 s,@cxx_target_objs@,$cxx_target_objs,;t t
25632 s,@fortran_target_objs@,$fortran_target_objs,;t t
25633 s,@target_cpu_default@,$target_cpu_default,;t t
25634 s,@GMPLIBS@,$GMPLIBS,;t t
25635 s,@GMPINC@,$GMPINC,;t t
25636 s,@PPLLIBS@,$PPLLIBS,;t t
25637 s,@PPLINC@,$PPLINC,;t t
25638 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25639 s,@CLOOGINC@,$CLOOGINC,;t t
25640 s,@LIBOBJS@,$LIBOBJS,;t t
25641 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25642 /@language_hooks@/r $language_hooks
25643 s,@language_hooks@,,;t t
25644 CEOF
25645
25646 _ACEOF
25647
25648   cat >>$CONFIG_STATUS <<\_ACEOF
25649   # Split the substitutions into bite-sized pieces for seds with
25650   # small command number limits, like on Digital OSF/1 and HP-UX.
25651   ac_max_sed_lines=48
25652   ac_sed_frag=1 # Number of current file.
25653   ac_beg=1 # First line for current file.
25654   ac_end=$ac_max_sed_lines # Line after last line for current file.
25655   ac_more_lines=:
25656   ac_sed_cmds=
25657   while $ac_more_lines; do
25658     if test $ac_beg -gt 1; then
25659       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25660     else
25661       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25662     fi
25663     if test ! -s $tmp/subs.frag; then
25664       ac_more_lines=false
25665     else
25666       # The purpose of the label and of the branching condition is to
25667       # speed up the sed processing (if there are no `@' at all, there
25668       # is no need to browse any of the substitutions).
25669       # These are the two extra sed commands mentioned above.
25670       (echo ':t
25671   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25672       if test -z "$ac_sed_cmds"; then
25673         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25674       else
25675         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25676       fi
25677       ac_sed_frag=`expr $ac_sed_frag + 1`
25678       ac_beg=$ac_end
25679       ac_end=`expr $ac_end + $ac_max_sed_lines`
25680     fi
25681   done
25682   if test -z "$ac_sed_cmds"; then
25683     ac_sed_cmds=cat
25684   fi
25685 fi # test -n "$CONFIG_FILES"
25686
25687 _ACEOF
25688 cat >>$CONFIG_STATUS <<\_ACEOF
25689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25691   case $ac_file in
25692   - | *:- | *:-:* ) # input from stdin
25693         cat >$tmp/stdin
25694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25698   * )   ac_file_in=$ac_file.in ;;
25699   esac
25700
25701   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25702   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25704          X"$ac_file" : 'X\(//\)[^/]' \| \
25705          X"$ac_file" : 'X\(//\)$' \| \
25706          X"$ac_file" : 'X\(/\)' \| \
25707          .     : '\(.\)' 2>/dev/null ||
25708 echo X"$ac_file" |
25709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25711           /^X\(\/\/\)$/{ s//\1/; q; }
25712           /^X\(\/\).*/{ s//\1/; q; }
25713           s/.*/./; q'`
25714   { if $as_mkdir_p; then
25715     mkdir -p "$ac_dir"
25716   else
25717     as_dir="$ac_dir"
25718     as_dirs=
25719     while test ! -d "$as_dir"; do
25720       as_dirs="$as_dir $as_dirs"
25721       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25723          X"$as_dir" : 'X\(//\)[^/]' \| \
25724          X"$as_dir" : 'X\(//\)$' \| \
25725          X"$as_dir" : 'X\(/\)' \| \
25726          .     : '\(.\)' 2>/dev/null ||
25727 echo X"$as_dir" |
25728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25730           /^X\(\/\/\)$/{ s//\1/; q; }
25731           /^X\(\/\).*/{ s//\1/; q; }
25732           s/.*/./; q'`
25733     done
25734     test ! -n "$as_dirs" || mkdir $as_dirs
25735   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25737    { (exit 1); exit 1; }; }; }
25738
25739   ac_builddir=.
25740
25741 if test "$ac_dir" != .; then
25742   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25743   # A "../" for each directory in $ac_dir_suffix.
25744   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25745 else
25746   ac_dir_suffix= ac_top_builddir=
25747 fi
25748
25749 case $srcdir in
25750   .)  # No --srcdir option.  We are building in place.
25751     ac_srcdir=.
25752     if test -z "$ac_top_builddir"; then
25753        ac_top_srcdir=.
25754     else
25755        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25756     fi ;;
25757   [\\/]* | ?:[\\/]* )  # Absolute path.
25758     ac_srcdir=$srcdir$ac_dir_suffix;
25759     ac_top_srcdir=$srcdir ;;
25760   *) # Relative path.
25761     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25762     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25763 esac
25764
25765 # Do not use `cd foo && pwd` to compute absolute paths, because
25766 # the directories may not exist.
25767 case `pwd` in
25768 .) ac_abs_builddir="$ac_dir";;
25769 *)
25770   case "$ac_dir" in
25771   .) ac_abs_builddir=`pwd`;;
25772   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25773   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25774   esac;;
25775 esac
25776 case $ac_abs_builddir in
25777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25778 *)
25779   case ${ac_top_builddir}. in
25780   .) ac_abs_top_builddir=$ac_abs_builddir;;
25781   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25782   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25783   esac;;
25784 esac
25785 case $ac_abs_builddir in
25786 .) ac_abs_srcdir=$ac_srcdir;;
25787 *)
25788   case $ac_srcdir in
25789   .) ac_abs_srcdir=$ac_abs_builddir;;
25790   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25791   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25792   esac;;
25793 esac
25794 case $ac_abs_builddir in
25795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25796 *)
25797   case $ac_top_srcdir in
25798   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25799   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25800   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25801   esac;;
25802 esac
25803
25804
25805
25806   if test x"$ac_file" != x-; then
25807     { echo "$as_me:$LINENO: creating $ac_file" >&5
25808 echo "$as_me: creating $ac_file" >&6;}
25809     rm -f "$ac_file"
25810   fi
25811   # Let's still pretend it is `configure' which instantiates (i.e., don't
25812   # use $as_me), people would be surprised to read:
25813   #    /* config.h.  Generated by config.status.  */
25814   if test x"$ac_file" = x-; then
25815     configure_input=
25816   else
25817     configure_input="$ac_file.  "
25818   fi
25819   configure_input=$configure_input"Generated from `echo $ac_file_in |
25820                                      sed 's,.*/,,'` by configure."
25821
25822   # First look for the input files in the build tree, otherwise in the
25823   # src tree.
25824   ac_file_inputs=`IFS=:
25825     for f in $ac_file_in; do
25826       case $f in
25827       -) echo $tmp/stdin ;;
25828       [\\/$]*)
25829          # Absolute (can't be DOS-style, as IFS=:)
25830          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25831 echo "$as_me: error: cannot find input file: $f" >&2;}
25832    { (exit 1); exit 1; }; }
25833          echo "$f";;
25834       *) # Relative
25835          if test -f "$f"; then
25836            # Build tree
25837            echo "$f"
25838          elif test -f "$srcdir/$f"; then
25839            # Source tree
25840            echo "$srcdir/$f"
25841          else
25842            # /dev/null tree
25843            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25844 echo "$as_me: error: cannot find input file: $f" >&2;}
25845    { (exit 1); exit 1; }; }
25846          fi;;
25847       esac
25848     done` || { (exit 1); exit 1; }
25849 _ACEOF
25850 cat >>$CONFIG_STATUS <<_ACEOF
25851   sed "$ac_vpsub
25852 $extrasub
25853 _ACEOF
25854 cat >>$CONFIG_STATUS <<\_ACEOF
25855 :t
25856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25857 s,@configure_input@,$configure_input,;t t
25858 s,@srcdir@,$ac_srcdir,;t t
25859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25860 s,@top_srcdir@,$ac_top_srcdir,;t t
25861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25862 s,@builddir@,$ac_builddir,;t t
25863 s,@abs_builddir@,$ac_abs_builddir,;t t
25864 s,@top_builddir@,$ac_top_builddir,;t t
25865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25866 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25867   rm -f $tmp/stdin
25868   if test x"$ac_file" != x-; then
25869     mv $tmp/out $ac_file
25870   else
25871     cat $tmp/out
25872     rm -f $tmp/out
25873   fi
25874
25875   # Run the commands associated with the file.
25876   case $ac_file in
25877     as ) chmod +x as ;;
25878     collect-ld ) chmod +x collect-ld ;;
25879     nm ) chmod +x nm ;;
25880   esac
25881 done
25882 _ACEOF
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25884
25885 #
25886 # CONFIG_HEADER section.
25887 #
25888
25889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25891 #
25892 # ac_d sets the value in "#define NAME VALUE" lines.
25893 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25894 ac_dB='[         ].*$,\1#\2'
25895 ac_dC=' '
25896 ac_dD=',;t'
25897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25898 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25899 ac_uB='$,\1#\2define\3'
25900 ac_uC=' '
25901 ac_uD=',;t'
25902
25903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25904   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25905   case $ac_file in
25906   - | *:- | *:-:* ) # input from stdin
25907         cat >$tmp/stdin
25908         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25909         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25910   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25911         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25912   * )   ac_file_in=$ac_file.in ;;
25913   esac
25914
25915   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25916 echo "$as_me: creating $ac_file" >&6;}
25917
25918   # First look for the input files in the build tree, otherwise in the
25919   # src tree.
25920   ac_file_inputs=`IFS=:
25921     for f in $ac_file_in; do
25922       case $f in
25923       -) echo $tmp/stdin ;;
25924       [\\/$]*)
25925          # Absolute (can't be DOS-style, as IFS=:)
25926          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25927 echo "$as_me: error: cannot find input file: $f" >&2;}
25928    { (exit 1); exit 1; }; }
25929          # Do quote $f, to prevent DOS paths from being IFS'd.
25930          echo "$f";;
25931       *) # Relative
25932          if test -f "$f"; then
25933            # Build tree
25934            echo "$f"
25935          elif test -f "$srcdir/$f"; then
25936            # Source tree
25937            echo "$srcdir/$f"
25938          else
25939            # /dev/null tree
25940            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25941 echo "$as_me: error: cannot find input file: $f" >&2;}
25942    { (exit 1); exit 1; }; }
25943          fi;;
25944       esac
25945     done` || { (exit 1); exit 1; }
25946   # Remove the trailing spaces.
25947   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25948
25949 _ACEOF
25950
25951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25952 # `conftest.undefs', that substitutes the proper values into
25953 # config.h.in to produce config.h.  The first handles `#define'
25954 # templates, and the second `#undef' templates.
25955 # And first: Protect against being on the right side of a sed subst in
25956 # config.status.  Protect against being in an unquoted here document
25957 # in config.status.
25958 rm -f conftest.defines conftest.undefs
25959 # Using a here document instead of a string reduces the quoting nightmare.
25960 # Putting comments in sed scripts is not portable.
25961 #
25962 # `end' is used to avoid that the second main sed command (meant for
25963 # 0-ary CPP macros) applies to n-ary macro definitions.
25964 # See the Autoconf documentation for `clear'.
25965 cat >confdef2sed.sed <<\_ACEOF
25966 s/[\\&,]/\\&/g
25967 s,[\\$`],\\&,g
25968 t clear
25969 : clear
25970 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25971 t end
25972 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25973 : end
25974 _ACEOF
25975 # If some macros were called several times there might be several times
25976 # the same #defines, which is useless.  Nevertheless, we may not want to
25977 # sort them, since we want the *last* AC-DEFINE to be honored.
25978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25980 rm -f confdef2sed.sed
25981
25982 # This sed command replaces #undef with comments.  This is necessary, for
25983 # example, in the case of _POSIX_SOURCE, which is predefined and required
25984 # on some systems where configure will not decide to define it.
25985 cat >>conftest.undefs <<\_ACEOF
25986 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25987 _ACEOF
25988
25989 # Break up conftest.defines because some shells have a limit on the size
25990 # of here documents, and old seds have small limits too (100 cmds).
25991 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25992 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25993 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25994 echo '  :' >>$CONFIG_STATUS
25995 rm -f conftest.tail
25996 while grep . conftest.defines >/dev/null
25997 do
25998   # Write a limited-size here document to $tmp/defines.sed.
25999   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26000   # Speed up: don't consider the non `#define' lines.
26001   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26002   # Work around the forget-to-reset-the-flag bug.
26003   echo 't clr' >>$CONFIG_STATUS
26004   echo ': clr' >>$CONFIG_STATUS
26005   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26006   echo 'CEOF
26007   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26008   rm -f $tmp/in
26009   mv $tmp/out $tmp/in
26010 ' >>$CONFIG_STATUS
26011   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26012   rm -f conftest.defines
26013   mv conftest.tail conftest.defines
26014 done
26015 rm -f conftest.defines
26016 echo '  fi # grep' >>$CONFIG_STATUS
26017 echo >>$CONFIG_STATUS
26018
26019 # Break up conftest.undefs because some shells have a limit on the size
26020 # of here documents, and old seds have small limits too (100 cmds).
26021 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26022 rm -f conftest.tail
26023 while grep . conftest.undefs >/dev/null
26024 do
26025   # Write a limited-size here document to $tmp/undefs.sed.
26026   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26027   # Speed up: don't consider the non `#undef'
26028   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26029   # Work around the forget-to-reset-the-flag bug.
26030   echo 't clr' >>$CONFIG_STATUS
26031   echo ': clr' >>$CONFIG_STATUS
26032   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26033   echo 'CEOF
26034   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26035   rm -f $tmp/in
26036   mv $tmp/out $tmp/in
26037 ' >>$CONFIG_STATUS
26038   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26039   rm -f conftest.undefs
26040   mv conftest.tail conftest.undefs
26041 done
26042 rm -f conftest.undefs
26043
26044 cat >>$CONFIG_STATUS <<\_ACEOF
26045   # Let's still pretend it is `configure' which instantiates (i.e., don't
26046   # use $as_me), people would be surprised to read:
26047   #    /* config.h.  Generated by config.status.  */
26048   if test x"$ac_file" = x-; then
26049     echo "/* Generated by configure.  */" >$tmp/config.h
26050   else
26051     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26052   fi
26053   cat $tmp/in >>$tmp/config.h
26054   rm -f $tmp/in
26055   if test x"$ac_file" != x-; then
26056     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26057       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26058 echo "$as_me: $ac_file is unchanged" >&6;}
26059     else
26060       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26062          X"$ac_file" : 'X\(//\)[^/]' \| \
26063          X"$ac_file" : 'X\(//\)$' \| \
26064          X"$ac_file" : 'X\(/\)' \| \
26065          .     : '\(.\)' 2>/dev/null ||
26066 echo X"$ac_file" |
26067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26069           /^X\(\/\/\)$/{ s//\1/; q; }
26070           /^X\(\/\).*/{ s//\1/; q; }
26071           s/.*/./; q'`
26072       { if $as_mkdir_p; then
26073     mkdir -p "$ac_dir"
26074   else
26075     as_dir="$ac_dir"
26076     as_dirs=
26077     while test ! -d "$as_dir"; do
26078       as_dirs="$as_dir $as_dirs"
26079       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26081          X"$as_dir" : 'X\(//\)[^/]' \| \
26082          X"$as_dir" : 'X\(//\)$' \| \
26083          X"$as_dir" : 'X\(/\)' \| \
26084          .     : '\(.\)' 2>/dev/null ||
26085 echo X"$as_dir" |
26086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26088           /^X\(\/\/\)$/{ s//\1/; q; }
26089           /^X\(\/\).*/{ s//\1/; q; }
26090           s/.*/./; q'`
26091     done
26092     test ! -n "$as_dirs" || mkdir $as_dirs
26093   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26095    { (exit 1); exit 1; }; }; }
26096
26097       rm -f $ac_file
26098       mv $tmp/config.h $ac_file
26099     fi
26100   else
26101     cat $tmp/config.h
26102     rm -f $tmp/config.h
26103   fi
26104 done
26105 _ACEOF
26106 cat >>$CONFIG_STATUS <<\_ACEOF
26107
26108 #
26109 # CONFIG_COMMANDS section.
26110 #
26111 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26112   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26113   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26114   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26115 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26116          X"$ac_dest" : 'X\(//\)[^/]' \| \
26117          X"$ac_dest" : 'X\(//\)$' \| \
26118          X"$ac_dest" : 'X\(/\)' \| \
26119          .     : '\(.\)' 2>/dev/null ||
26120 echo X"$ac_dest" |
26121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26123           /^X\(\/\/\)$/{ s//\1/; q; }
26124           /^X\(\/\).*/{ s//\1/; q; }
26125           s/.*/./; q'`
26126   { if $as_mkdir_p; then
26127     mkdir -p "$ac_dir"
26128   else
26129     as_dir="$ac_dir"
26130     as_dirs=
26131     while test ! -d "$as_dir"; do
26132       as_dirs="$as_dir $as_dirs"
26133       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26135          X"$as_dir" : 'X\(//\)[^/]' \| \
26136          X"$as_dir" : 'X\(//\)$' \| \
26137          X"$as_dir" : 'X\(/\)' \| \
26138          .     : '\(.\)' 2>/dev/null ||
26139 echo X"$as_dir" |
26140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26142           /^X\(\/\/\)$/{ s//\1/; q; }
26143           /^X\(\/\).*/{ s//\1/; q; }
26144           s/.*/./; q'`
26145     done
26146     test ! -n "$as_dirs" || mkdir $as_dirs
26147   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26148 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26149    { (exit 1); exit 1; }; }; }
26150
26151   ac_builddir=.
26152
26153 if test "$ac_dir" != .; then
26154   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26155   # A "../" for each directory in $ac_dir_suffix.
26156   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26157 else
26158   ac_dir_suffix= ac_top_builddir=
26159 fi
26160
26161 case $srcdir in
26162   .)  # No --srcdir option.  We are building in place.
26163     ac_srcdir=.
26164     if test -z "$ac_top_builddir"; then
26165        ac_top_srcdir=.
26166     else
26167        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26168     fi ;;
26169   [\\/]* | ?:[\\/]* )  # Absolute path.
26170     ac_srcdir=$srcdir$ac_dir_suffix;
26171     ac_top_srcdir=$srcdir ;;
26172   *) # Relative path.
26173     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26174     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26175 esac
26176
26177 # Do not use `cd foo && pwd` to compute absolute paths, because
26178 # the directories may not exist.
26179 case `pwd` in
26180 .) ac_abs_builddir="$ac_dir";;
26181 *)
26182   case "$ac_dir" in
26183   .) ac_abs_builddir=`pwd`;;
26184   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26185   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26186   esac;;
26187 esac
26188 case $ac_abs_builddir in
26189 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26190 *)
26191   case ${ac_top_builddir}. in
26192   .) ac_abs_top_builddir=$ac_abs_builddir;;
26193   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26194   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26195   esac;;
26196 esac
26197 case $ac_abs_builddir in
26198 .) ac_abs_srcdir=$ac_srcdir;;
26199 *)
26200   case $ac_srcdir in
26201   .) ac_abs_srcdir=$ac_abs_builddir;;
26202   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26203   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26204   esac;;
26205 esac
26206 case $ac_abs_builddir in
26207 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26208 *)
26209   case $ac_top_srcdir in
26210   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26211   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26212   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26213   esac;;
26214 esac
26215
26216
26217   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26218 echo "$as_me: executing $ac_dest commands" >&6;}
26219   case $ac_dest in
26220     default )
26221 case ${CONFIG_HEADERS} in
26222   *auto-host.h:config.in*)
26223   echo > cstamp-h ;;
26224 esac
26225 # Make sure all the subdirs exist.
26226 for d in $subdirs doc build
26227 do
26228     test -d $d || mkdir $d
26229 done
26230  ;;
26231   esac
26232 done
26233 _ACEOF
26234
26235 cat >>$CONFIG_STATUS <<\_ACEOF
26236
26237 { (exit 0); exit 0; }
26238 _ACEOF
26239 chmod +x $CONFIG_STATUS
26240 ac_clean_files=$ac_clean_files_save
26241
26242
26243 # configure is writing to config.log, and then calls config.status.
26244 # config.status does its own redirection, appending to config.log.
26245 # Unfortunately, on DOS this fails, as config.log is still kept open
26246 # by configure, so config.status won't be able to write to it; its
26247 # output is simply discarded.  So we exec the FD to /dev/null,
26248 # effectively closing config.log, so it can be properly (re)opened and
26249 # appended to by config.status.  When coming back to configure, we
26250 # need to make the FD available again.
26251 if test "$no_create" != yes; then
26252   ac_cs_success=:
26253   ac_config_status_args=
26254   test "$silent" = yes &&
26255     ac_config_status_args="$ac_config_status_args --quiet"
26256   exec 5>/dev/null
26257   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26258   exec 5>>config.log
26259   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26260   # would make configure fail if this is the last instruction.
26261   $ac_cs_success || { (exit 1); exit 1; }
26262 fi
26263