OSDN Git Service

* gcc/ChangeLog: Fix ChangeLog.
[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 LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 use_gcc_stdint 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
10417 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10418 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10419 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10420   echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422   cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h.  */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h.  */
10428 #include <sys/mman.h>
10429 _ACEOF
10430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10432   ac_status=$?
10433   grep -v '^ *+' conftest.er1 >conftest.err
10434   rm -f conftest.er1
10435   cat conftest.err >&5
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } >/dev/null; then
10438   if test -s conftest.err; then
10439     ac_cpp_err=$ac_c_preproc_warn_flag
10440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10441   else
10442     ac_cpp_err=
10443   fi
10444 else
10445   ac_cpp_err=yes
10446 fi
10447 if test -z "$ac_cpp_err"; then
10448   ac_cv_header_sys_mman_h=yes
10449 else
10450   echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453   ac_cv_header_sys_mman_h=no
10454 fi
10455 rm -f conftest.err conftest.$ac_ext
10456 fi
10457 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10458 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10459 if test $ac_cv_header_sys_mman_h = yes; then
10460   gcc_header_sys_mman_h=yes
10461 else
10462   gcc_header_sys_mman_h=no
10463 fi
10464
10465 echo "$as_me:$LINENO: checking for mmap" >&5
10466 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10467 if test "${ac_cv_func_mmap+set}" = set; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h.  */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h.  */
10476 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10478 #define mmap innocuous_mmap
10479
10480 /* System header to define __stub macros and hopefully few prototypes,
10481     which can conflict with char mmap (); below.
10482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483     <limits.h> exists even on freestanding compilers.  */
10484
10485 #ifdef __STDC__
10486 # include <limits.h>
10487 #else
10488 # include <assert.h>
10489 #endif
10490
10491 #undef mmap
10492
10493 /* Override any gcc2 internal prototype to avoid an error.  */
10494 #ifdef __cplusplus
10495 extern "C"
10496 {
10497 #endif
10498 /* We use char because int might match the return type of a gcc2
10499    builtin and then its argument prototype would still apply.  */
10500 char mmap ();
10501 /* The GNU C library defines this for functions which it implements
10502     to always fail with ENOSYS.  Some functions are actually named
10503     something starting with __ and the normal name is an alias.  */
10504 #if defined (__stub_mmap) || defined (__stub___mmap)
10505 choke me
10506 #else
10507 char (*f) () = mmap;
10508 #endif
10509 #ifdef __cplusplus
10510 }
10511 #endif
10512
10513 int
10514 main ()
10515 {
10516 return f != mmap;
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523   (eval $ac_link) 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_c_werror_flag"
10531                          || test ! -s conftest.err'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest$ac_exeext'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_func_mmap=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_cv_func_mmap=no
10549 fi
10550 rm -f conftest.err conftest.$ac_objext \
10551       conftest$ac_exeext conftest.$ac_ext
10552 fi
10553 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10554 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10555 if test $ac_cv_func_mmap = yes; then
10556   gcc_func_mmap=yes
10557 else
10558   gcc_func_mmap=no
10559 fi
10560
10561 if test "$gcc_header_sys_mman_h" != yes \
10562  || test "$gcc_func_mmap" != yes; then
10563    gcc_cv_func_mmap_file=no
10564    gcc_cv_func_mmap_dev_zero=no
10565    gcc_cv_func_mmap_anon=no
10566 else
10567    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10568 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10569 if test "${gcc_cv_func_mmap_file+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572   # Add a system to this blacklist if
10573    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10574    # memory area containing the same data that you'd get if you applied
10575    # read() to the same fd.  The only system known to have a problem here
10576    # is VMS, where text files have record structure.
10577    case "$host_os" in
10578      vms* | ultrix*)
10579         gcc_cv_func_mmap_file=no ;;
10580      *)
10581         gcc_cv_func_mmap_file=yes;;
10582    esac
10583 fi
10584 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10585 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10586    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10587 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10588 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   # Add a system to this blacklist if it has mmap() but /dev/zero
10592    # does not exist, or if mmapping /dev/zero does not give anonymous
10593    # zeroed pages with both the following properties:
10594    # 1. If you map N consecutive pages in with one call, and then
10595    #    unmap any subset of those pages, the pages that were not
10596    #    explicitly unmapped remain accessible.
10597    # 2. If you map two adjacent blocks of memory and then unmap them
10598    #    both at once, they must both go away.
10599    # Systems known to be in this category are Windows (all variants),
10600    # VMS, and Darwin.
10601    case "$host_os" in
10602      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10603         gcc_cv_func_mmap_dev_zero=no ;;
10604      *)
10605         gcc_cv_func_mmap_dev_zero=yes;;
10606    esac
10607 fi
10608 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10609 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10610
10611    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10612    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10613 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10614 if test "${gcc_cv_decl_map_anon+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #include <sys/types.h>
10624 #include <sys/mman.h>
10625 #include <unistd.h>
10626
10627 #ifndef MAP_ANONYMOUS
10628 #define MAP_ANONYMOUS MAP_ANON
10629 #endif
10630
10631 int
10632 main ()
10633 {
10634 int n = MAP_ANONYMOUS;
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641   (eval $ac_compile) 2>conftest.er1
10642   ac_status=$?
10643   grep -v '^ *+' conftest.er1 >conftest.err
10644   rm -f conftest.er1
10645   cat conftest.err >&5
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -z "$ac_c_werror_flag"
10649                          || test ! -s conftest.err'
10650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651   (eval $ac_try) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; } &&
10655          { ac_try='test -s conftest.$ac_objext'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661   gcc_cv_decl_map_anon=yes
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 gcc_cv_decl_map_anon=no
10667 fi
10668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10669 fi
10670 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10671 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10672
10673    if test $gcc_cv_decl_map_anon = no; then
10674      gcc_cv_func_mmap_anon=no
10675    else
10676      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10677 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10678 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10682    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10683    # doesn't give anonymous zeroed pages with the same properties listed
10684    # above for use of /dev/zero.
10685    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10686    case "$host_os" in
10687      vms* | cygwin* | pe | mingw* | sco* | udk* )
10688         gcc_cv_func_mmap_anon=no ;;
10689      *)
10690         gcc_cv_func_mmap_anon=yes;;
10691    esac
10692 fi
10693 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10694 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10695    fi
10696 fi
10697
10698 if test $gcc_cv_func_mmap_file = yes; then
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_MMAP_FILE 1
10702 _ACEOF
10703
10704 fi
10705 if test $gcc_cv_func_mmap_dev_zero = yes; then
10706
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_MMAP_DEV_ZERO 1
10709 _ACEOF
10710
10711 fi
10712 if test $gcc_cv_func_mmap_anon = yes; then
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_MMAP_ANON 1
10716 _ACEOF
10717
10718 fi
10719
10720
10721 case "${host}" in
10722 *-*-*vms*)
10723   # Under VMS, vfork works very differently than on Unix. The standard test
10724   # won't work, and it isn't easily adaptable. It makes more sense to
10725   # just force it.
10726   ac_cv_func_vfork_works=yes
10727   ;;
10728 esac
10729 echo "$as_me:$LINENO: checking for pid_t" >&5
10730 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10731 if test "${ac_cv_type_pid_t+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 $ac_includes_default
10741 int
10742 main ()
10743 {
10744 if ((pid_t *) 0)
10745   return 0;
10746 if (sizeof (pid_t))
10747   return 0;
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754   (eval $ac_compile) 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -z "$ac_c_werror_flag"
10762                          || test ! -s conftest.err'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest.$ac_objext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_type_pid_t=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_type_pid_t=no
10780 fi
10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10784 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10785 if test $ac_cv_type_pid_t = yes; then
10786   :
10787 else
10788
10789 cat >>confdefs.h <<_ACEOF
10790 #define pid_t int
10791 _ACEOF
10792
10793 fi
10794
10795
10796
10797 for ac_header in unistd.h vfork.h
10798 do
10799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800 echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 #include <$ac_header>
10812 _ACEOF
10813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } >/dev/null; then
10821   if test -s conftest.err; then
10822     ac_cpp_err=$ac_c_preproc_warn_flag
10823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10824   else
10825     ac_cpp_err=
10826   fi
10827 else
10828   ac_cpp_err=yes
10829 fi
10830 if test -z "$ac_cpp_err"; then
10831   eval "$as_ac_Header=yes"
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836   eval "$as_ac_Header=no"
10837 fi
10838 rm -f conftest.err conftest.$ac_ext
10839 fi
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843   cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 _ACEOF
10846
10847 fi
10848 done
10849
10850
10851
10852 for ac_func in fork vfork
10853 do
10854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855 echo "$as_me:$LINENO: checking for $ac_func" >&5
10856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_var+set}\" = set"; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10868 #define $ac_func innocuous_$ac_func
10869
10870 /* System header to define __stub macros and hopefully few prototypes,
10871     which can conflict with char $ac_func (); below.
10872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873     <limits.h> exists even on freestanding compilers.  */
10874
10875 #ifdef __STDC__
10876 # include <limits.h>
10877 #else
10878 # include <assert.h>
10879 #endif
10880
10881 #undef $ac_func
10882
10883 /* Override any gcc2 internal prototype to avoid an error.  */
10884 #ifdef __cplusplus
10885 extern "C"
10886 {
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889    builtin and then its argument prototype would still apply.  */
10890 char $ac_func ();
10891 /* The GNU C library defines this for functions which it implements
10892     to always fail with ENOSYS.  Some functions are actually named
10893     something starting with __ and the normal name is an alias.  */
10894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 choke me
10896 #else
10897 char (*f) () = $ac_func;
10898 #endif
10899 #ifdef __cplusplus
10900 }
10901 #endif
10902
10903 int
10904 main ()
10905 {
10906 return f != $ac_func;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -z "$ac_c_werror_flag"
10921                          || test ! -s conftest.err'
10922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923   (eval $ac_try) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; } &&
10927          { ac_try='test -s conftest$ac_exeext'
10928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929   (eval $ac_try) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; }; then
10933   eval "$as_ac_var=yes"
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 eval "$as_ac_var=no"
10939 fi
10940 rm -f conftest.err conftest.$ac_objext \
10941       conftest$ac_exeext conftest.$ac_ext
10942 fi
10943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10945 if test `eval echo '${'$as_ac_var'}'` = yes; then
10946   cat >>confdefs.h <<_ACEOF
10947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10948 _ACEOF
10949
10950 fi
10951 done
10952
10953 if test "x$ac_cv_func_fork" = xyes; then
10954   echo "$as_me:$LINENO: checking for working fork" >&5
10955 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10956 if test "${ac_cv_func_fork_works+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   if test "$cross_compiling" = yes; then
10960   ac_cv_func_fork_works=cross
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* By Ruediger Kuhlmann. */
10964       #include <sys/types.h>
10965       #if HAVE_UNISTD_H
10966       # include <unistd.h>
10967       #endif
10968       /* Some systems only have a dummy stub for fork() */
10969       int main ()
10970       {
10971         if (fork() < 0)
10972           exit (1);
10973         exit (0);
10974       }
10975 _ACEOF
10976 rm -f conftest$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978   (eval $ac_link) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_cv_func_fork_works=yes
10988 else
10989   echo "$as_me: program exited with status $ac_status" >&5
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ( exit $ac_status )
10994 ac_cv_func_fork_works=no
10995 fi
10996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10997 fi
10998 fi
10999 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11000 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11001
11002 else
11003   ac_cv_func_fork_works=$ac_cv_func_fork
11004 fi
11005 if test "x$ac_cv_func_fork_works" = xcross; then
11006   case $host in
11007     *-*-amigaos* | *-*-msdosdjgpp*)
11008       # Override, as these systems have only a dummy fork() stub
11009       ac_cv_func_fork_works=no
11010       ;;
11011     *)
11012       ac_cv_func_fork_works=yes
11013       ;;
11014   esac
11015   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11016 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11017 fi
11018 ac_cv_func_vfork_works=$ac_cv_func_vfork
11019 if test "x$ac_cv_func_vfork" = xyes; then
11020   echo "$as_me:$LINENO: checking for working vfork" >&5
11021 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11022 if test "${ac_cv_func_vfork_works+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   if test "$cross_compiling" = yes; then
11026   ac_cv_func_vfork_works=cross
11027 else
11028   cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034 /* Thanks to Paul Eggert for this test.  */
11035 #include <stdio.h>
11036 #include <stdlib.h>
11037 #include <sys/types.h>
11038 #include <sys/stat.h>
11039 #include <sys/wait.h>
11040 #if HAVE_UNISTD_H
11041 # include <unistd.h>
11042 #endif
11043 #if HAVE_VFORK_H
11044 # include <vfork.h>
11045 #endif
11046 /* On some sparc systems, changes by the child to local and incoming
11047    argument registers are propagated back to the parent.  The compiler
11048    is told about this with #include <vfork.h>, but some compilers
11049    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11050    static variable whose address is put into a register that is
11051    clobbered by the vfork.  */
11052 static void
11053 #ifdef __cplusplus
11054 sparc_address_test (int arg)
11055 # else
11056 sparc_address_test (arg) int arg;
11057 #endif
11058 {
11059   static pid_t child;
11060   if (!child) {
11061     child = vfork ();
11062     if (child < 0) {
11063       perror ("vfork");
11064       _exit(2);
11065     }
11066     if (!child) {
11067       arg = getpid();
11068       write(-1, "", 0);
11069       _exit (arg);
11070     }
11071   }
11072 }
11073
11074 int
11075 main ()
11076 {
11077   pid_t parent = getpid ();
11078   pid_t child;
11079
11080   sparc_address_test (0);
11081
11082   child = vfork ();
11083
11084   if (child == 0) {
11085     /* Here is another test for sparc vfork register problems.  This
11086        test uses lots of local variables, at least as many local
11087        variables as main has allocated so far including compiler
11088        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11089        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11090        reuse the register of parent for one of the local variables,
11091        since it will think that parent can't possibly be used any more
11092        in this routine.  Assigning to the local variable will thus
11093        munge parent in the parent process.  */
11094     pid_t
11095       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11096       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11097     /* Convince the compiler that p..p7 are live; otherwise, it might
11098        use the same hardware register for all 8 local variables.  */
11099     if (p != p1 || p != p2 || p != p3 || p != p4
11100         || p != p5 || p != p6 || p != p7)
11101       _exit(1);
11102
11103     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11104        from child file descriptors.  If the child closes a descriptor
11105        before it execs or exits, this munges the parent's descriptor
11106        as well.  Test for this by closing stdout in the child.  */
11107     _exit(close(fileno(stdout)) != 0);
11108   } else {
11109     int status;
11110     struct stat st;
11111
11112     while (wait(&status) != child)
11113       ;
11114     exit(
11115          /* Was there some problem with vforking?  */
11116          child < 0
11117
11118          /* Did the child fail?  (This shouldn't happen.)  */
11119          || status
11120
11121          /* Did the vfork/compiler bug occur?  */
11122          || parent != getpid()
11123
11124          /* Did the file descriptor bug occur?  */
11125          || fstat(fileno(stdout), &st) != 0
11126          );
11127   }
11128 }
11129 _ACEOF
11130 rm -f conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137   (eval $ac_try) 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; }; then
11141   ac_cv_func_vfork_works=yes
11142 else
11143   echo "$as_me: program exited with status $ac_status" >&5
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ( exit $ac_status )
11148 ac_cv_func_vfork_works=no
11149 fi
11150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151 fi
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11154 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11155
11156 fi;
11157 if test "x$ac_cv_func_fork_works" = xcross; then
11158   ac_cv_func_vfork_works=$ac_cv_func_vfork
11159   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11160 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11161 fi
11162
11163 if test "x$ac_cv_func_vfork_works" = xyes; then
11164
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_WORKING_VFORK 1
11167 _ACEOF
11168
11169 else
11170
11171 cat >>confdefs.h <<\_ACEOF
11172 #define vfork fork
11173 _ACEOF
11174
11175 fi
11176 if test "x$ac_cv_func_fork_works" = xyes; then
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_WORKING_FORK 1
11180 _ACEOF
11181
11182 fi
11183
11184
11185
11186       if test "X$prefix" = "XNONE"; then
11187     acl_final_prefix="$ac_default_prefix"
11188   else
11189     acl_final_prefix="$prefix"
11190   fi
11191   if test "X$exec_prefix" = "XNONE"; then
11192     acl_final_exec_prefix='${prefix}'
11193   else
11194     acl_final_exec_prefix="$exec_prefix"
11195   fi
11196   acl_save_prefix="$prefix"
11197   prefix="$acl_final_prefix"
11198   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11199   prefix="$acl_save_prefix"
11200
11201
11202 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11203 if test "${with_gnu_ld+set}" = set; then
11204   withval="$with_gnu_ld"
11205   test "$withval" = no || with_gnu_ld=yes
11206 else
11207   with_gnu_ld=no
11208 fi;
11209 # Prepare PATH_SEPARATOR.
11210 # The user is always right.
11211 if test "${PATH_SEPARATOR+set}" != set; then
11212   echo "#! /bin/sh" >conf$$.sh
11213   echo  "exit 0"   >>conf$$.sh
11214   chmod +x conf$$.sh
11215   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11216     PATH_SEPARATOR=';'
11217   else
11218     PATH_SEPARATOR=:
11219   fi
11220   rm -f conf$$.sh
11221 fi
11222 ac_prog=ld
11223 if test "$GCC" = yes; then
11224   # Check if gcc -print-prog-name=ld gives a path.
11225   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11226 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11227   case $host in
11228   *-*-mingw*)
11229     # gcc leaves a trailing carriage return which upsets mingw
11230     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11231   *)
11232     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11233   esac
11234   case $ac_prog in
11235     # Accept absolute paths.
11236     [\\/]* | [A-Za-z]:[\\/]*)
11237       re_direlt='/[^/][^/]*/\.\./'
11238       # Canonicalize the path of ld
11239       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11240       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11241         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11242       done
11243       test -z "$LD" && LD="$ac_prog"
11244       ;;
11245   "")
11246     # If it fails, then pretend we aren't using GCC.
11247     ac_prog=ld
11248     ;;
11249   *)
11250     # If it is relative, then search for the first ld in PATH.
11251     with_gnu_ld=unknown
11252     ;;
11253   esac
11254 elif test "$with_gnu_ld" = yes; then
11255   echo "$as_me:$LINENO: checking for GNU ld" >&5
11256 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11257 else
11258   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11259 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11260 fi
11261 if test "${acl_cv_path_LD+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264   if test -z "$LD"; then
11265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11266   for ac_dir in $PATH; do
11267     test -z "$ac_dir" && ac_dir=.
11268     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11269       acl_cv_path_LD="$ac_dir/$ac_prog"
11270       # Check to see if the program is GNU ld.  I'd rather use --version,
11271       # but apparently some GNU ld's only accept -v.
11272       # Break only if it was the GNU/non-GNU ld that we prefer.
11273       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11274         test "$with_gnu_ld" != no && break
11275       else
11276         test "$with_gnu_ld" != yes && break
11277       fi
11278     fi
11279   done
11280   IFS="$ac_save_ifs"
11281 else
11282   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11283 fi
11284 fi
11285
11286 LD="$acl_cv_path_LD"
11287 if test -n "$LD"; then
11288   echo "$as_me:$LINENO: result: $LD" >&5
11289 echo "${ECHO_T}$LD" >&6
11290 else
11291   echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6
11293 fi
11294 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11295 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11296    { (exit 1); exit 1; }; }
11297 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11298 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11299 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11303 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11304   acl_cv_prog_gnu_ld=yes
11305 else
11306   acl_cv_prog_gnu_ld=no
11307 fi
11308 fi
11309 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11310 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11311 with_gnu_ld=$acl_cv_prog_gnu_ld
11312
11313
11314
11315                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11316 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11317 if test "${acl_cv_rpath+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320
11321     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11322     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11323     . ./conftest.sh
11324     rm -f ./conftest.sh
11325     acl_cv_rpath=done
11326
11327 fi
11328 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11329 echo "${ECHO_T}$acl_cv_rpath" >&6
11330   wl="$acl_cv_wl"
11331   libext="$acl_cv_libext"
11332   shlibext="$acl_cv_shlibext"
11333   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11334   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11335   hardcode_direct="$acl_cv_hardcode_direct"
11336   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11337     # Check whether --enable-rpath or --disable-rpath was given.
11338 if test "${enable_rpath+set}" = set; then
11339   enableval="$enable_rpath"
11340   :
11341 else
11342   enable_rpath=yes
11343 fi;
11344
11345
11346
11347
11348
11349
11350
11351     use_additional=yes
11352
11353   acl_save_prefix="$prefix"
11354   prefix="$acl_final_prefix"
11355   acl_save_exec_prefix="$exec_prefix"
11356   exec_prefix="$acl_final_exec_prefix"
11357
11358     eval additional_includedir=\"$includedir\"
11359     eval additional_libdir=\"$libdir\"
11360
11361   exec_prefix="$acl_save_exec_prefix"
11362   prefix="$acl_save_prefix"
11363
11364
11365 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11366 if test "${with_libiconv_prefix+set}" = set; then
11367   withval="$with_libiconv_prefix"
11368
11369     if test "X$withval" = "Xno"; then
11370       use_additional=no
11371     else
11372       if test "X$withval" = "X"; then
11373
11374   acl_save_prefix="$prefix"
11375   prefix="$acl_final_prefix"
11376   acl_save_exec_prefix="$exec_prefix"
11377   exec_prefix="$acl_final_exec_prefix"
11378
11379           eval additional_includedir=\"$includedir\"
11380           eval additional_libdir=\"$libdir\"
11381
11382   exec_prefix="$acl_save_exec_prefix"
11383   prefix="$acl_save_prefix"
11384
11385       else
11386         additional_includedir="$withval/include"
11387         additional_libdir="$withval/lib"
11388       fi
11389     fi
11390
11391 fi;
11392       LIBICONV=
11393   LTLIBICONV=
11394   INCICONV=
11395   rpathdirs=
11396   ltrpathdirs=
11397   names_already_handled=
11398   names_next_round='iconv '
11399   while test -n "$names_next_round"; do
11400     names_this_round="$names_next_round"
11401     names_next_round=
11402     for name in $names_this_round; do
11403       already_handled=
11404       for n in $names_already_handled; do
11405         if test "$n" = "$name"; then
11406           already_handled=yes
11407           break
11408         fi
11409       done
11410       if test -z "$already_handled"; then
11411         names_already_handled="$names_already_handled $name"
11412                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11413         eval value=\"\$HAVE_LIB$uppername\"
11414         if test -n "$value"; then
11415           if test "$value" = yes; then
11416             eval value=\"\$LIB$uppername\"
11417             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11418             eval value=\"\$LTLIB$uppername\"
11419             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11420           else
11421                                     :
11422           fi
11423         else
11424                               found_dir=
11425           found_la=
11426           found_so=
11427           found_a=
11428           if test $use_additional = yes; then
11429             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11430               found_dir="$additional_libdir"
11431               found_so="$additional_libdir/lib$name.$shlibext"
11432               if test -f "$additional_libdir/lib$name.la"; then
11433                 found_la="$additional_libdir/lib$name.la"
11434               fi
11435             else
11436               if test -f "$additional_libdir/lib$name.$libext"; then
11437                 found_dir="$additional_libdir"
11438                 found_a="$additional_libdir/lib$name.$libext"
11439                 if test -f "$additional_libdir/lib$name.la"; then
11440                   found_la="$additional_libdir/lib$name.la"
11441                 fi
11442               fi
11443             fi
11444           fi
11445           if test "X$found_dir" = "X"; then
11446             for x in $LDFLAGS $LTLIBICONV; do
11447
11448   acl_save_prefix="$prefix"
11449   prefix="$acl_final_prefix"
11450   acl_save_exec_prefix="$exec_prefix"
11451   exec_prefix="$acl_final_exec_prefix"
11452   eval x=\"$x\"
11453   exec_prefix="$acl_save_exec_prefix"
11454   prefix="$acl_save_prefix"
11455
11456               case "$x" in
11457                 -L*)
11458                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11459                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11460                     found_dir="$dir"
11461                     found_so="$dir/lib$name.$shlibext"
11462                     if test -f "$dir/lib$name.la"; then
11463                       found_la="$dir/lib$name.la"
11464                     fi
11465                   else
11466                     if test -f "$dir/lib$name.$libext"; then
11467                       found_dir="$dir"
11468                       found_a="$dir/lib$name.$libext"
11469                       if test -f "$dir/lib$name.la"; then
11470                         found_la="$dir/lib$name.la"
11471                       fi
11472                     fi
11473                   fi
11474                   ;;
11475               esac
11476               if test "X$found_dir" != "X"; then
11477                 break
11478               fi
11479             done
11480           fi
11481           if test "X$found_dir" != "X"; then
11482                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11483             if test "X$found_so" != "X"; then
11484                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11485                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11486               else
11487                                                                                 haveit=
11488                 for x in $ltrpathdirs; do
11489                   if test "X$x" = "X$found_dir"; then
11490                     haveit=yes
11491                     break
11492                   fi
11493                 done
11494                 if test -z "$haveit"; then
11495                   ltrpathdirs="$ltrpathdirs $found_dir"
11496                 fi
11497                                 if test "$hardcode_direct" = yes; then
11498                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11499                 else
11500                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11501                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11502                                                             haveit=
11503                     for x in $rpathdirs; do
11504                       if test "X$x" = "X$found_dir"; then
11505                         haveit=yes
11506                         break
11507                       fi
11508                     done
11509                     if test -z "$haveit"; then
11510                       rpathdirs="$rpathdirs $found_dir"
11511                     fi
11512                   else
11513                                                                                 haveit=
11514                     for x in $LDFLAGS $LIBICONV; do
11515
11516   acl_save_prefix="$prefix"
11517   prefix="$acl_final_prefix"
11518   acl_save_exec_prefix="$exec_prefix"
11519   exec_prefix="$acl_final_exec_prefix"
11520   eval x=\"$x\"
11521   exec_prefix="$acl_save_exec_prefix"
11522   prefix="$acl_save_prefix"
11523
11524                       if test "X$x" = "X-L$found_dir"; then
11525                         haveit=yes
11526                         break
11527                       fi
11528                     done
11529                     if test -z "$haveit"; then
11530                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11531                     fi
11532                     if test "$hardcode_minus_L" != no; then
11533                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11534                     else
11535                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11536                     fi
11537                   fi
11538                 fi
11539               fi
11540             else
11541               if test "X$found_a" != "X"; then
11542                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11543               else
11544                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11545               fi
11546             fi
11547                         additional_includedir=
11548             case "$found_dir" in
11549               */lib | */lib/)
11550                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11551                 additional_includedir="$basedir/include"
11552                 ;;
11553             esac
11554             if test "X$additional_includedir" != "X"; then
11555                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11556                 haveit=
11557                 if test "X$additional_includedir" = "X/usr/local/include"; then
11558                   if test -n "$GCC"; then
11559                     case $host_os in
11560                       linux*) haveit=yes;;
11561                     esac
11562                   fi
11563                 fi
11564                 if test -z "$haveit"; then
11565                   for x in $CPPFLAGS $INCICONV; do
11566
11567   acl_save_prefix="$prefix"
11568   prefix="$acl_final_prefix"
11569   acl_save_exec_prefix="$exec_prefix"
11570   exec_prefix="$acl_final_exec_prefix"
11571   eval x=\"$x\"
11572   exec_prefix="$acl_save_exec_prefix"
11573   prefix="$acl_save_prefix"
11574
11575                     if test "X$x" = "X-I$additional_includedir"; then
11576                       haveit=yes
11577                       break
11578                     fi
11579                   done
11580                   if test -z "$haveit"; then
11581                     if test -d "$additional_includedir"; then
11582                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11583                     fi
11584                   fi
11585                 fi
11586               fi
11587             fi
11588                         if test -n "$found_la"; then
11589                                                         save_libdir="$libdir"
11590               case "$found_la" in
11591                 */* | *\\*) . "$found_la" ;;
11592                 *) . "./$found_la" ;;
11593               esac
11594               libdir="$save_libdir"
11595                             for dep in $dependency_libs; do
11596                 case "$dep" in
11597                   -L*)
11598                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11599                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11600                       haveit=
11601                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11602                         if test -n "$GCC"; then
11603                           case $host_os in
11604                             linux*) haveit=yes;;
11605                           esac
11606                         fi
11607                       fi
11608                       if test -z "$haveit"; then
11609                         haveit=
11610                         for x in $LDFLAGS $LIBICONV; do
11611
11612   acl_save_prefix="$prefix"
11613   prefix="$acl_final_prefix"
11614   acl_save_exec_prefix="$exec_prefix"
11615   exec_prefix="$acl_final_exec_prefix"
11616   eval x=\"$x\"
11617   exec_prefix="$acl_save_exec_prefix"
11618   prefix="$acl_save_prefix"
11619
11620                           if test "X$x" = "X-L$additional_libdir"; then
11621                             haveit=yes
11622                             break
11623                           fi
11624                         done
11625                         if test -z "$haveit"; then
11626                           if test -d "$additional_libdir"; then
11627                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11628                           fi
11629                         fi
11630                         haveit=
11631                         for x in $LDFLAGS $LTLIBICONV; do
11632
11633   acl_save_prefix="$prefix"
11634   prefix="$acl_final_prefix"
11635   acl_save_exec_prefix="$exec_prefix"
11636   exec_prefix="$acl_final_exec_prefix"
11637   eval x=\"$x\"
11638   exec_prefix="$acl_save_exec_prefix"
11639   prefix="$acl_save_prefix"
11640
11641                           if test "X$x" = "X-L$additional_libdir"; then
11642                             haveit=yes
11643                             break
11644                           fi
11645                         done
11646                         if test -z "$haveit"; then
11647                           if test -d "$additional_libdir"; then
11648                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11649                           fi
11650                         fi
11651                       fi
11652                     fi
11653                     ;;
11654                   -R*)
11655                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11656                     if test "$enable_rpath" != no; then
11657                                                                   haveit=
11658                       for x in $rpathdirs; do
11659                         if test "X$x" = "X$dir"; then
11660                           haveit=yes
11661                           break
11662                         fi
11663                       done
11664                       if test -z "$haveit"; then
11665                         rpathdirs="$rpathdirs $dir"
11666                       fi
11667                                                                   haveit=
11668                       for x in $ltrpathdirs; do
11669                         if test "X$x" = "X$dir"; then
11670                           haveit=yes
11671                           break
11672                         fi
11673                       done
11674                       if test -z "$haveit"; then
11675                         ltrpathdirs="$ltrpathdirs $dir"
11676                       fi
11677                     fi
11678                     ;;
11679                   -l*)
11680                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11681                     ;;
11682                   *.la)
11683                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11684                     ;;
11685                   *)
11686                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11687                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11688                     ;;
11689                 esac
11690               done
11691             fi
11692           else
11693                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11694             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11695           fi
11696         fi
11697       fi
11698     done
11699   done
11700   if test "X$rpathdirs" != "X"; then
11701     if test -n "$hardcode_libdir_separator"; then
11702                         alldirs=
11703       for found_dir in $rpathdirs; do
11704         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11705       done
11706             acl_save_libdir="$libdir"
11707       libdir="$alldirs"
11708       eval flag=\"$hardcode_libdir_flag_spec\"
11709       libdir="$acl_save_libdir"
11710       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11711     else
11712             for found_dir in $rpathdirs; do
11713         acl_save_libdir="$libdir"
11714         libdir="$found_dir"
11715         eval flag=\"$hardcode_libdir_flag_spec\"
11716         libdir="$acl_save_libdir"
11717         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11718       done
11719     fi
11720   fi
11721   if test "X$ltrpathdirs" != "X"; then
11722             for found_dir in $ltrpathdirs; do
11723       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11724     done
11725   fi
11726
11727
11728
11729
11730
11731
11732
11733           am_save_CPPFLAGS="$CPPFLAGS"
11734
11735   for element in $INCICONV; do
11736     haveit=
11737     for x in $CPPFLAGS; do
11738
11739   acl_save_prefix="$prefix"
11740   prefix="$acl_final_prefix"
11741   acl_save_exec_prefix="$exec_prefix"
11742   exec_prefix="$acl_final_exec_prefix"
11743   eval x=\"$x\"
11744   exec_prefix="$acl_save_exec_prefix"
11745   prefix="$acl_save_prefix"
11746
11747       if test "X$x" = "X$element"; then
11748         haveit=yes
11749         break
11750       fi
11751     done
11752     if test -z "$haveit"; then
11753       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11754     fi
11755   done
11756
11757
11758   echo "$as_me:$LINENO: checking for iconv" >&5
11759 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11760 if test "${am_cv_func_iconv+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763
11764     am_cv_func_iconv="no, consider installing GNU libiconv"
11765     am_cv_lib_iconv=no
11766     cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 #include <stdlib.h>
11773 #include <iconv.h>
11774 int
11775 main ()
11776 {
11777 iconv_t cd = iconv_open("","");
11778        iconv(cd,NULL,NULL,NULL,NULL);
11779        iconv_close(cd);
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786   (eval $ac_link) 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -z "$ac_c_werror_flag"
11794                          || test ! -s conftest.err'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; } &&
11800          { ac_try='test -s conftest$ac_exeext'
11801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802   (eval $ac_try) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; }; then
11806   am_cv_func_iconv=yes
11807 else
11808   echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11810
11811 fi
11812 rm -f conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814     if test "$am_cv_func_iconv" != yes; then
11815       am_save_LIBS="$LIBS"
11816       LIBS="$LIBS $LIBICONV"
11817       cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <stdlib.h>
11824 #include <iconv.h>
11825 int
11826 main ()
11827 {
11828 iconv_t cd = iconv_open("","");
11829          iconv(cd,NULL,NULL,NULL,NULL);
11830          iconv_close(cd);
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837   (eval $ac_link) 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -z "$ac_c_werror_flag"
11845                          || test ! -s conftest.err'
11846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847   (eval $ac_try) 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; } &&
11851          { ac_try='test -s conftest$ac_exeext'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   am_cv_lib_iconv=yes
11858         am_cv_func_iconv=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 fi
11864 rm -f conftest.err conftest.$ac_objext \
11865       conftest$ac_exeext conftest.$ac_ext
11866       LIBS="$am_save_LIBS"
11867     fi
11868
11869 fi
11870 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11871 echo "${ECHO_T}$am_cv_func_iconv" >&6
11872   if test "$am_cv_func_iconv" = yes; then
11873
11874 cat >>confdefs.h <<\_ACEOF
11875 #define HAVE_ICONV 1
11876 _ACEOF
11877
11878   fi
11879   if test "$am_cv_lib_iconv" = yes; then
11880     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11881 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11882     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11883 echo "${ECHO_T}$LIBICONV" >&6
11884   else
11885             CPPFLAGS="$am_save_CPPFLAGS"
11886     LIBICONV=
11887     LTLIBICONV=
11888   fi
11889
11890
11891
11892   if test "$am_cv_func_iconv" = yes; then
11893     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11894 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11895     if test "${am_cv_proto_iconv+set}" = set; then
11896   echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898
11899       cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905
11906 #include <stdlib.h>
11907 #include <iconv.h>
11908 extern
11909 #ifdef __cplusplus
11910 "C"
11911 #endif
11912 #if defined(__STDC__) || defined(__cplusplus)
11913 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11914 #else
11915 size_t iconv();
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928   (eval $ac_compile) 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -z "$ac_c_werror_flag"
11936                          || test ! -s conftest.err'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   am_cv_proto_iconv_arg1=""
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 am_cv_proto_iconv_arg1="const"
11954 fi
11955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11956       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);"
11957 fi
11958
11959     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11960     echo "$as_me:$LINENO: result: ${ac_t:-
11961          }$am_cv_proto_iconv" >&5
11962 echo "${ECHO_T}${ac_t:-
11963          }$am_cv_proto_iconv" >&6
11964
11965 cat >>confdefs.h <<_ACEOF
11966 #define ICONV_CONST $am_cv_proto_iconv_arg1
11967 _ACEOF
11968
11969   fi
11970
11971 # Until we have in-tree GNU iconv:
11972 LIBICONV_DEP=
11973
11974
11975
11976   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11978 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 #include <locale.h>
11988 int
11989 main ()
11990 {
11991 return LC_MESSAGES
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998   (eval $ac_link) 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag"
12006                          || test ! -s conftest.err'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   am_cv_val_LC_MESSAGES=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 am_cv_val_LC_MESSAGES=no
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026       conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12029 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12030   if test $am_cv_val_LC_MESSAGES = yes; then
12031
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_LC_MESSAGES 1
12034 _ACEOF
12035
12036   fi
12037
12038
12039
12040   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12041 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12042 if test "${am_cv_langinfo_codeset+set}" = set; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051 #include <langinfo.h>
12052 int
12053 main ()
12054 {
12055 char* cs = nl_langinfo(CODESET);
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_c_werror_flag"
12070                          || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   am_cv_langinfo_codeset=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 am_cv_langinfo_codeset=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091
12092 fi
12093 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12094 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12095   if test $am_cv_langinfo_codeset = yes; then
12096
12097 cat >>confdefs.h <<\_ACEOF
12098 #define HAVE_LANGINFO_CODESET 1
12099 _ACEOF
12100
12101   fi
12102
12103
12104 # We will need to find libiberty.h and ansidecl.h
12105 saved_CFLAGS="$CFLAGS"
12106 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12147         strsignal strstr strverscmp \
12148         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12149         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
12150 do
12151   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12152 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12153 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12154 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12155   echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157   cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h.  */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h.  */
12163 #undef $ac_tr_decl
12164 #define $ac_tr_decl 1
12165
12166 #include "ansidecl.h"
12167 #include "system.h"
12168
12169 int
12170 main ()
12171 {
12172 #ifndef $ac_func
12173 char *(*pfn) = (char *(*)) $ac_func ;
12174 #endif
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181   (eval $ac_compile) 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -z "$ac_c_werror_flag"
12189                          || test ! -s conftest.err'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest.$ac_objext'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; }; then
12201   eval "gcc_cv_have_decl_$ac_func=yes"
12202 else
12203   echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 eval "gcc_cv_have_decl_$ac_func=no"
12207 fi
12208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12209 fi
12210
12211 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12212   echo "$as_me:$LINENO: result: yes" >&5
12213 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12214 #define $ac_tr_decl 1
12215 _ACEOF
12216
12217 else
12218   echo "$as_me:$LINENO: result: no" >&5
12219 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12220 #define $ac_tr_decl 0
12221 _ACEOF
12222
12223 fi
12224
12225 done
12226
12227
12228
12229
12230
12231 for ac_func in getrlimit setrlimit getrusage
12232 do
12233   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12234 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12235 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12236 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 #undef $ac_tr_decl
12246 #define $ac_tr_decl 1
12247
12248 #include "ansidecl.h"
12249 #include "system.h"
12250 #ifdef HAVE_SYS_RESOURCE_H
12251 #include <sys/resource.h>
12252 #endif
12253
12254
12255 int
12256 main ()
12257 {
12258 #ifndef $ac_func
12259 char *(*pfn) = (char *(*)) $ac_func ;
12260 #endif
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267   (eval $ac_compile) 2>conftest.er1
12268   ac_status=$?
12269   grep -v '^ *+' conftest.er1 >conftest.err
12270   rm -f conftest.er1
12271   cat conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -z "$ac_c_werror_flag"
12275                          || test ! -s conftest.err'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283   (eval $ac_try) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; }; then
12287   eval "gcc_cv_have_decl_$ac_func=yes"
12288 else
12289   echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 eval "gcc_cv_have_decl_$ac_func=no"
12293 fi
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 fi
12296
12297 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12298   echo "$as_me:$LINENO: result: yes" >&5
12299 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12300 #define $ac_tr_decl 1
12301 _ACEOF
12302
12303 else
12304   echo "$as_me:$LINENO: result: no" >&5
12305 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12306 #define $ac_tr_decl 0
12307 _ACEOF
12308
12309 fi
12310
12311 done
12312
12313
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320
12321 #include "ansidecl.h"
12322 #include "system.h"
12323 #ifdef HAVE_SYS_RESOURCE_H
12324 #include <sys/resource.h>
12325 #endif
12326
12327 int
12328 main ()
12329 {
12330 rlim_t l = 0;
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337   (eval $ac_compile) 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -z "$ac_c_werror_flag"
12345                          || test ! -s conftest.err'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest.$ac_objext'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   :
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define rlim_t long
12365 _ACEOF
12366
12367 fi
12368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369
12370 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12371 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12372 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12373 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12374
12375 for ac_func in ldgetname
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_LDFCN_H
12395 #undef FREAD
12396 #undef FWRITE
12397 #include <ldfcn.h>
12398 #endif
12399
12400
12401 int
12402 main ()
12403 {
12404 #ifndef $ac_func
12405 char *(*pfn) = (char *(*)) $ac_func ;
12406 #endif
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413   (eval $ac_compile) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   eval "gcc_cv_have_decl_$ac_func=yes"
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 eval "gcc_cv_have_decl_$ac_func=no"
12439 fi
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442
12443 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12444   echo "$as_me:$LINENO: result: yes" >&5
12445 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12446 #define $ac_tr_decl 1
12447 _ACEOF
12448
12449 else
12450   echo "$as_me:$LINENO: result: no" >&5
12451 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12452 #define $ac_tr_decl 0
12453 _ACEOF
12454
12455 fi
12456
12457 done
12458
12459
12460
12461 for ac_func in times
12462 do
12463   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12464 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12465 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12466 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 #undef $ac_tr_decl
12476 #define $ac_tr_decl 1
12477
12478 #include "ansidecl.h"
12479 #include "system.h"
12480 #ifdef HAVE_SYS_TIMES_H
12481 #include <sys/times.h>
12482 #endif
12483
12484
12485 int
12486 main ()
12487 {
12488 #ifndef $ac_func
12489 char *(*pfn) = (char *(*)) $ac_func ;
12490 #endif
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497   (eval $ac_compile) 2>conftest.er1
12498   ac_status=$?
12499   grep -v '^ *+' conftest.er1 >conftest.err
12500   rm -f conftest.er1
12501   cat conftest.err >&5
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } &&
12504          { ac_try='test -z "$ac_c_werror_flag"
12505                          || test ! -s conftest.err'
12506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507   (eval $ac_try) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; } &&
12511          { ac_try='test -s conftest.$ac_objext'
12512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513   (eval $ac_try) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   eval "gcc_cv_have_decl_$ac_func=yes"
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522 eval "gcc_cv_have_decl_$ac_func=no"
12523 fi
12524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12525 fi
12526
12527 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12528   echo "$as_me:$LINENO: result: yes" >&5
12529 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12530 #define $ac_tr_decl 1
12531 _ACEOF
12532
12533 else
12534   echo "$as_me:$LINENO: result: no" >&5
12535 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12536 #define $ac_tr_decl 0
12537 _ACEOF
12538
12539 fi
12540
12541 done
12542
12543
12544
12545 for ac_func in sigaltstack
12546 do
12547   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12548 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12549 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12550 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12551   echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553   cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 #undef $ac_tr_decl
12560 #define $ac_tr_decl 1
12561
12562 #include "ansidecl.h"
12563 #include "system.h"
12564 #include <signal.h>
12565
12566
12567 int
12568 main ()
12569 {
12570 #ifndef $ac_func
12571 char *(*pfn) = (char *(*)) $ac_func ;
12572 #endif
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579   (eval $ac_compile) 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -z "$ac_c_werror_flag"
12587                          || test ! -s conftest.err'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest.$ac_objext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   eval "gcc_cv_have_decl_$ac_func=yes"
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 eval "gcc_cv_have_decl_$ac_func=no"
12605 fi
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608
12609 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12610   echo "$as_me:$LINENO: result: yes" >&5
12611 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12612 #define $ac_tr_decl 1
12613 _ACEOF
12614
12615 else
12616   echo "$as_me:$LINENO: result: no" >&5
12617 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12618 #define $ac_tr_decl 0
12619 _ACEOF
12620
12621 fi
12622
12623 done
12624
12625
12626 # More time-related stuff.
12627 echo "$as_me:$LINENO: checking for struct tms" >&5
12628 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12629 if test "${ac_cv_struct_tms+set}" = set; then
12630   echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639
12640 #include "ansidecl.h"
12641 #include "system.h"
12642 #ifdef HAVE_SYS_TIMES_H
12643 #include <sys/times.h>
12644 #endif
12645
12646 int
12647 main ()
12648 {
12649 struct tms tms;
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>conftest.er1
12657   ac_status=$?
12658   grep -v '^ *+' conftest.er1 >conftest.err
12659   rm -f conftest.er1
12660   cat conftest.err >&5
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } &&
12663          { ac_try='test -z "$ac_c_werror_flag"
12664                          || test ! -s conftest.err'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_cv_struct_tms=yes
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_cv_struct_tms=no
12682 fi
12683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 fi
12685 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12686 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12687 if test $ac_cv_struct_tms = yes; then
12688
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_STRUCT_TMS 1
12691 _ACEOF
12692
12693 fi
12694
12695 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12696 # revisit after autoconf 2.50.
12697 echo "$as_me:$LINENO: checking for clock_t" >&5
12698 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12699 if test "${gcc_cv_type_clock_t+set}" = set; then
12700   echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709
12710 #include "ansidecl.h"
12711 #include "system.h"
12712
12713 int
12714 main ()
12715 {
12716 clock_t x;
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   gcc_cv_type_clock_t=yes
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 gcc_cv_type_clock_t=no
12749 fi
12750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 fi
12752 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12753 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12754 if test $gcc_cv_type_clock_t = yes; then
12755
12756 cat >>confdefs.h <<\_ACEOF
12757 #define HAVE_CLOCK_T 1
12758 _ACEOF
12759
12760 fi
12761
12762 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12763 CFLAGS="$saved_CFLAGS"
12764
12765 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12766 if test "${enable_initfini_array+set}" = set; then
12767   enableval="$enable_initfini_array"
12768
12769 else
12770
12771 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12772 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12773 if test "${gcc_cv_initfini_array+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776     if test "$cross_compiling" = yes; then
12777   gcc_cv_initfini_array=no
12778 else
12779   cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h.  */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h.  */
12785
12786 static int x = -1;
12787 int main (void) { return x; }
12788 int foo (void) { x = 0; }
12789 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12790 _ACEOF
12791 rm -f conftest$ac_exeext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793   (eval $ac_link) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802   gcc_cv_initfini_array=yes
12803 else
12804   echo "$as_me: program exited with status $ac_status" >&5
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 ( exit $ac_status )
12809 gcc_cv_initfini_array=no
12810 fi
12811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12812 fi
12813 fi
12814 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12815 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12816   enable_initfini_array=$gcc_cv_initfini_array
12817
12818 fi;
12819 if test $enable_initfini_array = yes; then
12820
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_INITFINI_ARRAY 1
12823 _ACEOF
12824
12825 fi
12826
12827 # mkdir takes a single argument on some systems.
12828 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12829 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12830 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12831   echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833   cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839
12840 #include <sys/types.h>
12841 #ifdef HAVE_SYS_STAT_H
12842 # include <sys/stat.h>
12843 #endif
12844 #ifdef HAVE_UNISTD_H
12845 # include <unistd.h>
12846 #endif
12847 #ifdef HAVE_DIRECT_H
12848 # include <direct.h>
12849 #endif
12850 int
12851 main ()
12852 {
12853 mkdir ("foo", 0);
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860   (eval $ac_compile) 2>conftest.er1
12861   ac_status=$?
12862   grep -v '^ *+' conftest.er1 >conftest.err
12863   rm -f conftest.er1
12864   cat conftest.err >&5
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -z "$ac_c_werror_flag"
12868                          || test ! -s conftest.err'
12869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870   (eval $ac_try) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; } &&
12874          { ac_try='test -s conftest.$ac_objext'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   gcc_cv_mkdir_takes_one_arg=no
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 gcc_cv_mkdir_takes_one_arg=yes
12886 fi
12887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12888 fi
12889 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12890 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12891 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12892
12893 cat >>confdefs.h <<\_ACEOF
12894 #define MKDIR_TAKES_ONE_ARG 1
12895 _ACEOF
12896
12897 fi
12898
12899
12900 # File extensions
12901 manext='.1'
12902 objext='.o'
12903
12904
12905
12906 # With Setjmp/Longjmp based exception handling.
12907 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12908 if test "${enable_sjlj_exceptions+set}" = set; then
12909   enableval="$enable_sjlj_exceptions"
12910   case $target in
12911   *-*-hpux10*)
12912     if test $enableval != yes; then
12913       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12914 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12915       enableval=yes
12916     fi
12917     ;;
12918 esac
12919 force_sjlj_exceptions=yes
12920 else
12921   case $target in
12922   *-*-hpux10*)
12923     force_sjlj_exceptions=yes
12924     enableval=yes
12925     ;;
12926   *)
12927     force_sjlj_exceptions=no
12928     ;;
12929 esac
12930 fi;
12931 if test $force_sjlj_exceptions = yes; then
12932   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12933
12934 cat >>confdefs.h <<_ACEOF
12935 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12936 _ACEOF
12937
12938 fi
12939
12940 # For platforms with the unwind ABI which includes an unwind library,
12941 # libunwind, we can choose to use the system libunwind.
12942 # config.gcc also contains tests of with_system_libunwind.
12943
12944
12945 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12946 if test "${with_system_libunwind+set}" = set; then
12947   withval="$with_system_libunwind"
12948
12949 fi;
12950   # If system-libunwind was not specifically set, pick a default setting.
12951   if test x$with_system_libunwind = x; then
12952     case ${target} in
12953       ia64-*-hpux*) with_system_libunwind=yes ;;
12954       *) with_system_libunwind=no ;;
12955     esac
12956   fi
12957   # Based on system-libunwind and target, do we have ipinfo?
12958   if  test x$with_system_libunwind = xyes; then
12959     case ${target} in
12960       ia64-*-*) have_unwind_getipinfo=no ;;
12961       *) have_unwind_getipinfo=yes ;;
12962     esac
12963   else
12964     # Darwin before version 9 does not have _Unwind_GetIPInfo.
12965
12966     case ${target} in
12967       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12968       *) have_unwind_getipinfo=yes ;;
12969     esac
12970
12971   fi
12972
12973   if test x$have_unwind_getipinfo = xyes; then
12974
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_GETIPINFO 1
12977 _ACEOF
12978
12979   fi
12980
12981
12982 # --------------------------------------------------------
12983 # Build, host, and target specific configuration fragments
12984 # --------------------------------------------------------
12985
12986 # Collect build-machine-specific information.
12987 . ${srcdir}/config.build
12988
12989 # Collect host-machine-specific information.
12990 . ${srcdir}/config.host
12991
12992 target_gtfiles=
12993
12994 # Collect target-machine-specific information.
12995 . ${srcdir}/config.gcc
12996
12997 extra_objs="${host_extra_objs} ${extra_objs}"
12998 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12999
13000 # Default the target-machine variables that were not explicitly set.
13001 if test x"$tm_file" = x
13002 then tm_file=$cpu_type/$cpu_type.h; fi
13003
13004 if test x"$extra_headers" = x
13005 then extra_headers=; fi
13006
13007 if test x$md_file = x
13008 then md_file=$cpu_type/$cpu_type.md; fi
13009
13010 if test x$out_file = x
13011 then out_file=$cpu_type/$cpu_type.c; fi
13012
13013 if test x"$tmake_file" = x
13014 then tmake_file=$cpu_type/t-$cpu_type
13015 fi
13016
13017 if test x"$dwarf2" = xyes
13018 then tm_file="$tm_file tm-dwarf2.h"
13019 fi
13020
13021 # Say what files are being used for the output code and MD file.
13022 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13023 echo "Using \`$srcdir/config/$md_file' as machine description file."
13024
13025 # If any of the xm_file variables contain nonexistent files, warn
13026 # about them and drop them.
13027
13028 bx=
13029 for x in $build_xm_file; do
13030   if    test -f $srcdir/config/$x
13031   then      bx="$bx $x"
13032   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13033 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13034   fi
13035 done
13036 build_xm_file="$bx"
13037
13038 hx=
13039 for x in $host_xm_file; do
13040   if    test -f $srcdir/config/$x
13041   then      hx="$hx $x"
13042   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13043 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13044   fi
13045 done
13046 host_xm_file="$hx"
13047
13048 tx=
13049 for x in $xm_file; do
13050   if    test -f $srcdir/config/$x
13051   then      tx="$tx $x"
13052   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13053 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13054   fi
13055 done
13056 xm_file="$tx"
13057
13058 count=a
13059 for f in $tm_file; do
13060         count=${count}x
13061 done
13062 if test $count = ax; then
13063         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13064 else
13065         echo "Using the following target machine macro files:"
13066         for f in $tm_file; do
13067                 echo "  $srcdir/config/$f"
13068         done
13069 fi
13070
13071 if test x$need_64bit_hwint = xyes; then
13072
13073 cat >>confdefs.h <<\_ACEOF
13074 #define NEED_64BIT_HOST_WIDE_INT 1
13075 _ACEOF
13076
13077 fi
13078
13079 if test x$use_long_long_for_widest_fast_int = xyes; then
13080
13081 cat >>confdefs.h <<\_ACEOF
13082 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13083 _ACEOF
13084
13085 fi
13086
13087 count=a
13088 for f in $host_xm_file; do
13089         count=${count}x
13090 done
13091 if test $count = a; then
13092         :
13093 elif test $count = ax; then
13094         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13095 else
13096         echo "Using the following host machine macro files:"
13097         for f in $host_xm_file; do
13098                 echo "  $srcdir/config/$f"
13099         done
13100 fi
13101 echo "Using ${out_host_hook_obj} for host machine hooks."
13102
13103 if test "$host_xm_file" != "$build_xm_file"; then
13104         count=a
13105         for f in $build_xm_file; do
13106                 count=${count}x
13107         done
13108         if test $count = a; then
13109                 :
13110         elif test $count = ax; then
13111                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13112         else
13113                 echo "Using the following build machine macro files:"
13114                 for f in $build_xm_file; do
13115                         echo "  $srcdir/config/$f"
13116                 done
13117         fi
13118 fi
13119
13120 case ${host} in
13121   powerpc*-*-darwin*)
13122     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13123 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13124 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   cat >conftest.$ac_ext <<_ACEOF
13128
13129 #include <sys/cdefs.h>
13130 #include <sys/signal.h>
13131 #include <ucontext.h>
13132 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13133
13134 _ACEOF
13135 rm -f conftest.$ac_objext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137   (eval $ac_compile) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -z "$ac_c_werror_flag"
13145                          || test ! -s conftest.err'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest.$ac_objext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   gcc_cv_mcontext_underscores=no
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 gcc_cv_mcontext_underscores=yes
13163 fi
13164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13167 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13168       if test $gcc_cv_mcontext_underscores = yes; then
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAS_MCONTEXT_T_UNDERSCORES
13172 _ACEOF
13173
13174       fi
13175     ;;
13176 esac
13177
13178 # ---------
13179 # Threading
13180 # ---------
13181
13182 # Check if a valid thread package
13183 case ${enable_threads} in
13184   "" | no)
13185     # No threads
13186     target_thread_file='single'
13187     ;;
13188   yes)
13189     # default
13190     target_thread_file='single'
13191     ;;
13192   aix | dce | gnat | irix | posix | posix95 | rtems | \
13193   single | solaris | vxworks | win32 | mipssde)
13194     target_thread_file=${enable_threads}
13195     ;;
13196   *)
13197     echo "${enable_threads} is an unknown thread package" 1>&2
13198     exit 1
13199     ;;
13200 esac
13201
13202 if test x${thread_file} = x; then
13203   # No thread file set by target-specific clauses in config.gcc,
13204   # so use file chosen by default logic above
13205   thread_file=${target_thread_file}
13206 fi
13207
13208 # Make gthr-default.h if we have a thread file.
13209 gthread_flags=
13210 if test $thread_file != single; then
13211   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13212   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13213     rm -f gthr-default.h-t
13214   else
13215     mv -f gthr-default.h-t gthr-default.h
13216   fi
13217   gthread_flags=-DHAVE_GTHR_DEFAULT
13218 fi
13219
13220
13221 # --------
13222 # UNSORTED
13223 # --------
13224
13225 use_cxa_atexit=no
13226 if test x$enable___cxa_atexit = xyes || \
13227    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13228   if test x$host = x$target; then
13229     case $host in
13230       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13231       # keyed to flag_use_cxa_atexit
13232       *-*-mingw32*)
13233         use_cxa_atexit=yes
13234         ;;
13235       *)
13236         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13237 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13238 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13249 #define __cxa_atexit innocuous___cxa_atexit
13250
13251 /* System header to define __stub macros and hopefully few prototypes,
13252     which can conflict with char __cxa_atexit (); below.
13253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254     <limits.h> exists even on freestanding compilers.  */
13255
13256 #ifdef __STDC__
13257 # include <limits.h>
13258 #else
13259 # include <assert.h>
13260 #endif
13261
13262 #undef __cxa_atexit
13263
13264 /* Override any gcc2 internal prototype to avoid an error.  */
13265 #ifdef __cplusplus
13266 extern "C"
13267 {
13268 #endif
13269 /* We use char because int might match the return type of a gcc2
13270    builtin and then its argument prototype would still apply.  */
13271 char __cxa_atexit ();
13272 /* The GNU C library defines this for functions which it implements
13273     to always fail with ENOSYS.  Some functions are actually named
13274     something starting with __ and the normal name is an alias.  */
13275 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13276 choke me
13277 #else
13278 char (*f) () = __cxa_atexit;
13279 #endif
13280 #ifdef __cplusplus
13281 }
13282 #endif
13283
13284 int
13285 main ()
13286 {
13287 return f != __cxa_atexit;
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294   (eval $ac_link) 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -z "$ac_c_werror_flag"
13302                          || test ! -s conftest.err'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; } &&
13308          { ac_try='test -s conftest$ac_exeext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_func___cxa_atexit=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_cv_func___cxa_atexit=no
13320 fi
13321 rm -f conftest.err conftest.$ac_objext \
13322       conftest$ac_exeext conftest.$ac_ext
13323 fi
13324 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13325 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13326 if test $ac_cv_func___cxa_atexit = yes; then
13327   use_cxa_atexit=yes
13328 else
13329   echo "__cxa_atexit can't be enabled on this target"
13330 fi
13331
13332         ;;
13333     esac
13334   else
13335     # We can't check for __cxa_atexit when building a cross, so assume
13336     # it is available
13337     use_cxa_atexit=yes
13338   fi
13339   if test x$use_cxa_atexit = xyes; then
13340
13341 cat >>confdefs.h <<\_ACEOF
13342 #define DEFAULT_USE_CXA_ATEXIT 2
13343 _ACEOF
13344
13345   fi
13346 fi
13347
13348 # Look for a file containing extra machine modes.
13349 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13350   extra_modes_file='$(srcdir)'/config/${extra_modes}
13351
13352
13353 cat >>confdefs.h <<_ACEOF
13354 #define EXTRA_MODES_FILE "config/$extra_modes"
13355 _ACEOF
13356
13357 fi
13358
13359 # Convert extra_options into a form suitable for Makefile use.
13360 extra_opt_files=
13361 for f in $extra_options; do
13362   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13363 done
13364
13365
13366 # auto-host.h is the file containing items generated by autoconf and is
13367 # the first file included by config.h.
13368 # If host=build, it is correct to have bconfig include auto-host.h
13369 # as well.  If host!=build, we are in error and need to do more
13370 # work to find out the build config parameters.
13371 if test x$host = x$build
13372 then
13373         build_auto=auto-host.h
13374 else
13375         # We create a subdir, then run autoconf in the subdir.
13376         # To prevent recursion we set host and build for the new
13377         # invocation of configure to the build for this invocation
13378         # of configure.
13379         tempdir=build.$$
13380         rm -rf $tempdir
13381         mkdir $tempdir
13382         cd $tempdir
13383         case ${srcdir} in
13384         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13385         *) realsrcdir=../${srcdir};;
13386         esac
13387         saved_CFLAGS="${CFLAGS}"
13388         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13389         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13390         ${realsrcdir}/configure \
13391                 --enable-languages=${enable_languages-all} \
13392                 --target=$target_alias --host=$build_alias --build=$build_alias
13393         CFLAGS="${saved_CFLAGS}"
13394
13395         # We just finished tests for the build machine, so rename
13396         # the file auto-build.h in the gcc directory.
13397         mv auto-host.h ../auto-build.h
13398         cd ..
13399         rm -rf $tempdir
13400         build_auto=auto-build.h
13401 fi
13402
13403
13404 tm_file="${tm_file} defaults.h"
13405 tm_p_file="${tm_p_file} tm-preds.h"
13406 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13407 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13408 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13409 # put this back in temporarily.
13410 xm_file="auto-host.h ansidecl.h ${xm_file}"
13411
13412 # --------
13413 # UNSORTED
13414 # --------
13415
13416 # Compile in configure arguments.
13417 if test -f configargs.h ; then
13418         # Being re-configured.
13419         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13420         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13421 else
13422         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13423 fi
13424
13425 # Double all backslashes and backslash all quotes to turn
13426 # gcc_config_arguments into a C string.
13427 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13428 $gcc_config_arguments
13429 EOF
13430 gcc_config_arguments_str=`cat conftest.out`
13431 rm -f conftest.out
13432
13433 cat > configargs.h <<EOF
13434 /* Generated automatically. */
13435 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13436 static const char thread_model[] = "$thread_file";
13437
13438 static const struct {
13439   const char *name, *value;
13440 } configure_default_options[] = $configure_default_options;
13441 EOF
13442
13443 # Internationalization
13444 # If we haven't got the data from the intl directory,
13445 # assume NLS is disabled.
13446 USE_NLS=no
13447 LIBINTL=
13448 LIBINTL_DEP=
13449 INCINTL=
13450 XGETTEXT=
13451 GMSGFMT=
13452 POSUB=
13453
13454 if test -f  ../intl/config.intl; then
13455   .  ../intl/config.intl
13456 fi
13457 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13458 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13459 if test x"$USE_NLS" != xyes; then
13460   echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6
13462 else
13463   echo "$as_me:$LINENO: result: yes" >&5
13464 echo "${ECHO_T}yes" >&6
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define ENABLE_NLS 1
13468 _ACEOF
13469
13470
13471   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13472 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13473   # Look for .po and .gmo files in the source directory.
13474   CATALOGS=
13475   XLINGUAS=
13476   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13477     # If there aren't any .gmo files the shell will give us the
13478     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13479     # weeded out.
13480     case "$cat" in *\**)
13481       continue;;
13482     esac
13483     # The quadruple backslash is collapsed to a double backslash
13484     # by the backticks, then collapsed again by the double quotes,
13485     # leaving us with one backslash in the sed expression (right
13486     # before the dot that mustn't act as a wildcard).
13487     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13488     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13489     # The user is allowed to set LINGUAS to a list of languages to
13490     # install catalogs for.  If it's empty that means "all of them."
13491     if test "x$LINGUAS" = x; then
13492       CATALOGS="$CATALOGS $cat"
13493       XLINGUAS="$XLINGUAS $lang"
13494     else
13495       case "$LINGUAS" in *$lang*)
13496         CATALOGS="$CATALOGS $cat"
13497         XLINGUAS="$XLINGUAS $lang"
13498         ;;
13499       esac
13500     fi
13501   done
13502   LINGUAS="$XLINGUAS"
13503   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13504 echo "${ECHO_T}$LINGUAS" >&6
13505
13506
13507     DATADIRNAME=share
13508
13509   INSTOBJEXT=.mo
13510
13511   GENCAT=gencat
13512
13513   CATOBJEXT=.gmo
13514
13515 fi
13516
13517 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13518 # -liconv on the link line twice.
13519 case "$LIBINTL" in *$LIBICONV*)
13520         LIBICONV= ;;
13521 esac
13522
13523 # Check whether --enable-secureplt or --disable-secureplt was given.
13524 if test "${enable_secureplt+set}" = set; then
13525   enableval="$enable_secureplt"
13526
13527 fi;
13528
13529 # Check whether --enable-cld or --disable-cld was given.
13530 if test "${enable_cld+set}" = set; then
13531   enableval="$enable_cld"
13532
13533 else
13534   enable_cld=no
13535 fi;
13536
13537 # Windows32 Registry support for specifying GCC installation paths.
13538 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13539 if test "${enable_win32_registry+set}" = set; then
13540   enableval="$enable_win32_registry"
13541
13542 fi;
13543
13544 case $host_os in
13545   win32 | pe | cygwin* | mingw32* | uwin*)
13546     if test "x$enable_win32_registry" != xno; then
13547       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13548 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13549 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   ac_func_search_save_LIBS=$LIBS
13553 ac_cv_search_RegOpenKeyExA=no
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560
13561 /* Override any gcc2 internal prototype to avoid an error.  */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 /* We use char because int might match the return type of a gcc2
13566    builtin and then its argument prototype would still apply.  */
13567 char RegOpenKeyExA ();
13568 int
13569 main ()
13570 {
13571 RegOpenKeyExA ();
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578   (eval $ac_link) 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_c_werror_flag"
13586                          || test ! -s conftest.err'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; } &&
13592          { ac_try='test -s conftest$ac_exeext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_cv_search_RegOpenKeyExA="none required"
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603 fi
13604 rm -f conftest.err conftest.$ac_objext \
13605       conftest$ac_exeext conftest.$ac_ext
13606 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13607   for ac_lib in advapi32; do
13608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13609     cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615
13616 /* Override any gcc2 internal prototype to avoid an error.  */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 /* We use char because int might match the return type of a gcc2
13621    builtin and then its argument prototype would still apply.  */
13622 char RegOpenKeyExA ();
13623 int
13624 main ()
13625 {
13626 RegOpenKeyExA ();
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13633   (eval $ac_link) 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -z "$ac_c_werror_flag"
13641                          || test ! -s conftest.err'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest$ac_exeext'
13648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649   (eval $ac_try) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13654 break
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 fi
13660 rm -f conftest.err conftest.$ac_objext \
13661       conftest$ac_exeext conftest.$ac_ext
13662   done
13663 fi
13664 LIBS=$ac_func_search_save_LIBS
13665 fi
13666 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13667 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13668 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13669   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13670
13671 else
13672   enable_win32_registry=no
13673 fi
13674
13675     fi
13676
13677     if test "x$enable_win32_registry" != xno; then
13678
13679 cat >>confdefs.h <<\_ACEOF
13680 #define ENABLE_WIN32_REGISTRY 1
13681 _ACEOF
13682
13683
13684       if test "x$enable_win32_registry" != xyes \
13685          && test "x$enable_win32_registry" != x; then
13686
13687 cat >>confdefs.h <<_ACEOF
13688 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13689 _ACEOF
13690
13691       fi
13692     fi
13693   ;;
13694 esac
13695
13696 # Get an absolute path to the GCC top-level source directory
13697 holddir=`${PWDCMD-pwd}`
13698 cd $srcdir
13699 topdir=`${PWDCMD-pwd}`
13700 cd $holddir
13701
13702 # Conditionalize the makefile for this host machine.
13703 xmake_file=
13704 for f in ${host_xmake_file}
13705 do
13706         if test -f ${srcdir}/config/$f
13707         then
13708                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13709         fi
13710 done
13711
13712 # Conditionalize the makefile for this target machine.
13713 tmake_file_=
13714 for f in ${tmake_file}
13715 do
13716         if test -f ${srcdir}/config/$f
13717         then
13718                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13719         fi
13720 done
13721 tmake_file="${tmake_file_}"
13722
13723 out_object_file=`basename $out_file .c`.o
13724
13725 tm_file_list="options.h"
13726 tm_include_list="options.h"
13727 for f in $tm_file; do
13728   case $f in
13729     ./* )
13730        f=`echo $f | sed 's/^..//'`
13731        tm_file_list="${tm_file_list} $f"
13732        tm_include_list="${tm_include_list} $f"
13733        ;;
13734     defaults.h )
13735        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13736        tm_include_list="${tm_include_list} $f"
13737        ;;
13738     * )
13739        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13740        tm_include_list="${tm_include_list} config/$f"
13741        ;;
13742   esac
13743 done
13744
13745 tm_p_file_list=
13746 tm_p_include_list=
13747 for f in $tm_p_file; do
13748   case $f in
13749     tm-preds.h )
13750        tm_p_file_list="${tm_p_file_list} $f"
13751        tm_p_include_list="${tm_p_include_list} $f"
13752        ;;
13753     * )
13754        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13755        tm_p_include_list="${tm_p_include_list} config/$f"
13756   esac
13757 done
13758
13759 xm_file_list=
13760 xm_include_list=
13761 for f in $xm_file; do
13762   case $f in
13763     ansidecl.h )
13764        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13765        xm_include_list="${xm_include_list} $f"
13766        ;;
13767     auto-host.h )
13768        xm_file_list="${xm_file_list} $f"
13769        xm_include_list="${xm_include_list} $f"
13770        ;;
13771     * )
13772        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13773        xm_include_list="${xm_include_list} config/$f"
13774        ;;
13775   esac
13776 done
13777
13778 host_xm_file_list=
13779 host_xm_include_list=
13780 for f in $host_xm_file; do
13781   case $f in
13782     ansidecl.h )
13783        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13784        host_xm_include_list="${host_xm_include_list} $f"
13785        ;;
13786     auto-host.h )
13787        host_xm_file_list="${host_xm_file_list} $f"
13788        host_xm_include_list="${host_xm_include_list} $f"
13789        ;;
13790     * )
13791        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13792        host_xm_include_list="${host_xm_include_list} config/$f"
13793        ;;
13794   esac
13795 done
13796
13797 build_xm_file_list=
13798 for f in $build_xm_file; do
13799   case $f in
13800     ansidecl.h )
13801        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13802        build_xm_include_list="${build_xm_include_list} $f"
13803        ;;
13804     auto-build.h | auto-host.h )
13805        build_xm_file_list="${build_xm_file_list} $f"
13806        build_xm_include_list="${build_xm_include_list} $f"
13807        ;;
13808     * )
13809        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13810        build_xm_include_list="${build_xm_include_list} config/$f"
13811        ;;
13812   esac
13813 done
13814
13815 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13816 # cross-compiler which does not use the native headers and libraries.
13817 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13818 CROSS=
13819 ALL=all.internal
13820 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13821
13822 if test "x$with_build_sysroot" != x; then
13823   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13824 else
13825   # This value is used, even on a native system, because
13826   # CROSS_SYSTEM_HEADER_DIR is just
13827   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13828   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13829 fi
13830
13831 if test x$host != x$target
13832 then
13833         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13834         ALL=all.cross
13835         SYSTEM_HEADER_DIR=$build_system_header_dir
13836         case "$host","$target" in
13837         # Darwin crosses can use the host system's libraries and headers,
13838         # because of the fat library support.  Of course, it must be the
13839         # same version of Darwin on both sides.  Allow the user to
13840         # just say --target=foo-darwin without a version number to mean
13841         # "the version on this system".
13842             *-*-darwin*,*-*-darwin*)
13843                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13844                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13845                 if test $hostos = $targetos -o $targetos = darwin ; then
13846                     CROSS=
13847                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13848                     with_headers=yes
13849                 fi
13850                 ;;
13851
13852             i?86-*-*,x86_64-*-* \
13853             | powerpc*-*-*,powerpc64*-*-*)
13854                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13855         esac
13856 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13857         SYSTEM_HEADER_DIR=$build_system_header_dir
13858 fi
13859
13860 # If this is a cross-compiler that does not
13861 # have its own set of headers then define
13862 # inhibit_libc
13863
13864 # If this is using newlib, without having the headers available now,
13865 # then define inhibit_libc in LIBGCC2_CFLAGS.
13866 # This prevents libgcc2 from containing any code which requires libc
13867 # support.
13868 : ${inhibit_libc=false}
13869 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13870        test x$with_newlib = xyes ; } &&
13871      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13872        inhibit_libc=true
13873 fi
13874
13875
13876 # When building gcc with a cross-compiler, we need to adjust things so
13877 # that the generator programs are still built with the native compiler.
13878 # Also, we cannot run fixincludes.
13879
13880 # These are the normal (build=host) settings:
13881 CC_FOR_BUILD='$(CC)'
13882 BUILD_CFLAGS='$(ALL_CFLAGS)'
13883 BUILD_LDFLAGS='$(LDFLAGS)'
13884 STMP_FIXINC=stmp-fixinc
13885
13886 # And these apply if build != host, or we are generating coverage data
13887 if test x$build != x$host || test "x$coverage_flags" != x
13888 then
13889     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13890     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13891 fi
13892
13893 # Expand extra_headers to include complete path.
13894 # This substitutes for lots of t-* files.
13895 extra_headers_list=
13896 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13897 for file in ${extra_headers} ; do
13898   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13899 done
13900
13901 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13902 if test x"$use_gcc_tgmath" = xyes
13903 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13904 fi
13905
13906 # Define collect2 in Makefile.
13907 case $host_can_use_collect2 in
13908   no) collect2= ;;
13909   *) collect2='collect2$(exeext)' ;;
13910 esac
13911
13912
13913 # Add a definition of USE_COLLECT2 if system wants one.
13914 case $use_collect2 in
13915   no) use_collect2= ;;
13916   "") ;;
13917   *)
13918     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13919     xm_defines="${xm_defines} USE_COLLECT2"
13920     case $host_can_use_collect2 in
13921       no)
13922         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13923 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13924    { (exit 1); exit 1; }; }
13925         ;;
13926     esac
13927     ;;
13928 esac
13929
13930 # ---------------------------
13931 # Assembler & linker features
13932 # ---------------------------
13933
13934 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13935 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13936 # However when ld-new is first executed from the build tree, libtool will
13937 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13938 # to the build tree.  While doing this we need to use the previous-stage
13939 # linker, or we have an infinite loop.  The presence of a shell script as
13940 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13941 # the gcc/collect-ld script.  So we need to know how libtool works, or
13942 # exec-tool will fail.
13943
13944
13945 case `pwd` in
13946   *\ * | *\     *)
13947     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13948 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13949 esac
13950
13951
13952
13953 macro_version='2.2.6'
13954 macro_revision='1.3012'
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 ltmain="$ac_aux_dir/ltmain.sh"
13969
13970 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13971 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13972 if test "${lt_cv_path_SED+set}" = set; then
13973   echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975   # Loop through the user's path and test for sed and gsed.
13976 # Then use that list of sed's as ones to test for truncation.
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $PATH
13979 do
13980   IFS=$as_save_IFS
13981   test -z "$as_dir" && as_dir=.
13982   for lt_ac_prog in sed gsed; do
13983     for ac_exec_ext in '' $ac_executable_extensions; do
13984       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13985         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13986       fi
13987     done
13988   done
13989 done
13990 IFS=$as_save_IFS
13991 lt_ac_max=0
13992 lt_ac_count=0
13993 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13994 # along with /bin/sed that truncates output.
13995 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13996   test ! -f $lt_ac_sed && continue
13997   cat /dev/null > conftest.in
13998   lt_ac_count=0
13999   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14000   # Check for GNU sed and select it if it is found.
14001   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14002     lt_cv_path_SED=$lt_ac_sed
14003     break
14004   fi
14005   while true; do
14006     cat conftest.in conftest.in >conftest.tmp
14007     mv conftest.tmp conftest.in
14008     cp conftest.in conftest.nl
14009     echo >>conftest.nl
14010     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14011     cmp -s conftest.out conftest.nl || break
14012     # 10000 chars as input seems more than enough
14013     test $lt_ac_count -gt 10 && break
14014     lt_ac_count=`expr $lt_ac_count + 1`
14015     if test $lt_ac_count -gt $lt_ac_max; then
14016       lt_ac_max=$lt_ac_count
14017       lt_cv_path_SED=$lt_ac_sed
14018     fi
14019   done
14020 done
14021
14022 fi
14023
14024 SED=$lt_cv_path_SED
14025
14026 echo "$as_me:$LINENO: result: $SED" >&5
14027 echo "${ECHO_T}$SED" >&6
14028
14029 test -z "$SED" && SED=sed
14030 Xsed="$SED -e 1s/^X//"
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042 echo "$as_me:$LINENO: checking for fgrep" >&5
14043 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14044 if test "${ac_cv_prog_fgrep+set}" = set; then
14045   echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14048     then ac_cv_prog_fgrep='grep -F'
14049     else ac_cv_prog_fgrep='fgrep'
14050     fi
14051 fi
14052 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14053 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14054  FGREP=$ac_cv_prog_fgrep
14055
14056
14057 test -z "$GREP" && GREP=grep
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14078 if test "${with_gnu_ld+set}" = set; then
14079   withval="$with_gnu_ld"
14080   test "$withval" = no || with_gnu_ld=yes
14081 else
14082   with_gnu_ld=no
14083 fi;
14084 ac_prog=ld
14085 if test "$GCC" = yes; then
14086   # Check if gcc -print-prog-name=ld gives a path.
14087   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14089   case $host in
14090   *-*-mingw*)
14091     # gcc leaves a trailing carriage return which upsets mingw
14092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14093   *)
14094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14095   esac
14096   case $ac_prog in
14097     # Accept absolute paths.
14098     [\\/]* | ?:[\\/]*)
14099       re_direlt='/[^/][^/]*/\.\./'
14100       # Canonicalize the pathname of ld
14101       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14102       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14103         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14104       done
14105       test -z "$LD" && LD="$ac_prog"
14106       ;;
14107   "")
14108     # If it fails, then pretend we aren't using GCC.
14109     ac_prog=ld
14110     ;;
14111   *)
14112     # If it is relative, then search for the first ld in PATH.
14113     with_gnu_ld=unknown
14114     ;;
14115   esac
14116 elif test "$with_gnu_ld" = yes; then
14117   echo "$as_me:$LINENO: checking for GNU ld" >&5
14118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14119 else
14120   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14122 fi
14123 if test "${lt_cv_path_LD+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   if test -z "$LD"; then
14127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14128   for ac_dir in $PATH; do
14129     IFS="$lt_save_ifs"
14130     test -z "$ac_dir" && ac_dir=.
14131     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14132       lt_cv_path_LD="$ac_dir/$ac_prog"
14133       # Check to see if the program is GNU ld.  I'd rather use --version,
14134       # but apparently some variants of GNU ld only accept -v.
14135       # Break only if it was the GNU/non-GNU ld that we prefer.
14136       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14137       *GNU* | *'with BFD'*)
14138         test "$with_gnu_ld" != no && break
14139         ;;
14140       *)
14141         test "$with_gnu_ld" != yes && break
14142         ;;
14143       esac
14144     fi
14145   done
14146   IFS="$lt_save_ifs"
14147 else
14148   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14149 fi
14150 fi
14151
14152 LD="$lt_cv_path_LD"
14153 if test -n "$LD"; then
14154   echo "$as_me:$LINENO: result: $LD" >&5
14155 echo "${ECHO_T}$LD" >&6
14156 else
14157   echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6
14159 fi
14160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14162    { (exit 1); exit 1; }; }
14163 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14169 case `$LD -v 2>&1 </dev/null` in
14170 *GNU* | *'with BFD'*)
14171   lt_cv_prog_gnu_ld=yes
14172   ;;
14173 *)
14174   lt_cv_prog_gnu_ld=no
14175   ;;
14176 esac
14177 fi
14178 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14180 with_gnu_ld=$lt_cv_prog_gnu_ld
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14191 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14192 if test "${lt_cv_path_NM+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   if test -n "$NM"; then
14196   # Let the user override the test.
14197   lt_cv_path_NM="$NM"
14198 else
14199   lt_nm_to_check="${ac_tool_prefix}nm"
14200   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14201     lt_nm_to_check="$lt_nm_to_check nm"
14202   fi
14203   for lt_tmp_nm in $lt_nm_to_check; do
14204     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14205     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14206       IFS="$lt_save_ifs"
14207       test -z "$ac_dir" && ac_dir=.
14208       tmp_nm="$ac_dir/$lt_tmp_nm"
14209       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14210         # Check to see if the nm accepts a BSD-compat flag.
14211         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14212         #   nm: unknown option "B" ignored
14213         # Tru64's nm complains that /dev/null is an invalid object file
14214         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14215         */dev/null* | *'Invalid file or object type'*)
14216           lt_cv_path_NM="$tmp_nm -B"
14217           break
14218           ;;
14219         *)
14220           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14221           */dev/null*)
14222             lt_cv_path_NM="$tmp_nm -p"
14223             break
14224             ;;
14225           *)
14226             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14227             continue # so that we can try to find one that supports BSD flags
14228             ;;
14229           esac
14230           ;;
14231         esac
14232       fi
14233     done
14234     IFS="$lt_save_ifs"
14235   done
14236   : ${lt_cv_path_NM=no}
14237 fi
14238 fi
14239 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14240 echo "${ECHO_T}$lt_cv_path_NM" >&6
14241 if test "$lt_cv_path_NM" != "no"; then
14242   NM="$lt_cv_path_NM"
14243 else
14244   # Didn't find any BSD compatible name lister, look for dumpbin.
14245   if test -n "$ac_tool_prefix"; then
14246   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14247   do
14248     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14250 echo "$as_me:$LINENO: checking for $ac_word" >&5
14251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14252 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   if test -n "$DUMPBIN"; then
14256   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14257 else
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14260 do
14261   IFS=$as_save_IFS
14262   test -z "$as_dir" && as_dir=.
14263   for ac_exec_ext in '' $ac_executable_extensions; do
14264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14267     break 2
14268   fi
14269 done
14270 done
14271
14272 fi
14273 fi
14274 DUMPBIN=$ac_cv_prog_DUMPBIN
14275 if test -n "$DUMPBIN"; then
14276   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14277 echo "${ECHO_T}$DUMPBIN" >&6
14278 else
14279   echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6
14281 fi
14282
14283     test -n "$DUMPBIN" && break
14284   done
14285 fi
14286 if test -z "$DUMPBIN"; then
14287   ac_ct_DUMPBIN=$DUMPBIN
14288   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14289 do
14290   # Extract the first word of "$ac_prog", so it can be a program name with args.
14291 set dummy $ac_prog; ac_word=$2
14292 echo "$as_me:$LINENO: checking for $ac_word" >&5
14293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14294 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   if test -n "$ac_ct_DUMPBIN"; then
14298   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14299 else
14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301 for as_dir in $PATH
14302 do
14303   IFS=$as_save_IFS
14304   test -z "$as_dir" && as_dir=.
14305   for ac_exec_ext in '' $ac_executable_extensions; do
14306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14307     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14309     break 2
14310   fi
14311 done
14312 done
14313
14314 fi
14315 fi
14316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14317 if test -n "$ac_ct_DUMPBIN"; then
14318   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14319 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14320 else
14321   echo "$as_me:$LINENO: result: no" >&5
14322 echo "${ECHO_T}no" >&6
14323 fi
14324
14325   test -n "$ac_ct_DUMPBIN" && break
14326 done
14327 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14328
14329   DUMPBIN=$ac_ct_DUMPBIN
14330 fi
14331
14332
14333   if test "$DUMPBIN" != ":"; then
14334     NM="$DUMPBIN"
14335   fi
14336 fi
14337 test -z "$NM" && NM=nm
14338
14339
14340
14341
14342
14343
14344 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14345 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14346 if test "${lt_cv_nm_interface+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   lt_cv_nm_interface="BSD nm"
14350   echo "int some_variable = 0;" > conftest.$ac_ext
14351   (eval echo "\"\$as_me:14351: $ac_compile\"" >&5)
14352   (eval "$ac_compile" 2>conftest.err)
14353   cat conftest.err >&5
14354   (eval echo "\"\$as_me:14354: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14355   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14356   cat conftest.err >&5
14357   (eval echo "\"\$as_me:14357: output\"" >&5)
14358   cat conftest.out >&5
14359   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14360     lt_cv_nm_interface="MS dumpbin"
14361   fi
14362   rm -f conftest*
14363 fi
14364 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14365 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14366
14367 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14368 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14369 LN_S=$as_ln_s
14370 if test "$LN_S" = "ln -s"; then
14371   echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6
14373 else
14374   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14375 echo "${ECHO_T}no, using $LN_S" >&6
14376 fi
14377
14378 # find the maximum length of command line arguments
14379 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14380 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14381 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14382   echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384     i=0
14385   teststring="ABCD"
14386
14387   case $build_os in
14388   msdosdjgpp*)
14389     # On DJGPP, this test can blow up pretty badly due to problems in libc
14390     # (any single argument exceeding 2000 bytes causes a buffer overrun
14391     # during glob expansion).  Even if it were fixed, the result of this
14392     # check would be larger than it should be.
14393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14394     ;;
14395
14396   gnu*)
14397     # Under GNU Hurd, this test is not required because there is
14398     # no limit to the length of command line arguments.
14399     # Libtool will interpret -1 as no limit whatsoever
14400     lt_cv_sys_max_cmd_len=-1;
14401     ;;
14402
14403   cygwin* | mingw* | cegcc*)
14404     # On Win9x/ME, this test blows up -- it succeeds, but takes
14405     # about 5 minutes as the teststring grows exponentially.
14406     # Worse, since 9x/ME are not pre-emptively multitasking,
14407     # you end up with a "frozen" computer, even though with patience
14408     # the test eventually succeeds (with a max line length of 256k).
14409     # Instead, let's just punt: use the minimum linelength reported by
14410     # all of the supported platforms: 8192 (on NT/2K/XP).
14411     lt_cv_sys_max_cmd_len=8192;
14412     ;;
14413
14414   amigaos*)
14415     # On AmigaOS with pdksh, this test takes hours, literally.
14416     # So we just punt and use a minimum line length of 8192.
14417     lt_cv_sys_max_cmd_len=8192;
14418     ;;
14419
14420   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14421     # This has been around since 386BSD, at least.  Likely further.
14422     if test -x /sbin/sysctl; then
14423       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14424     elif test -x /usr/sbin/sysctl; then
14425       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14426     else
14427       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14428     fi
14429     # And add a safety zone
14430     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14431     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14432     ;;
14433
14434   interix*)
14435     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14436     lt_cv_sys_max_cmd_len=196608
14437     ;;
14438
14439   osf*)
14440     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14441     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14442     # nice to cause kernel panics so lets avoid the loop below.
14443     # First set a reasonable default.
14444     lt_cv_sys_max_cmd_len=16384
14445     #
14446     if test -x /sbin/sysconfig; then
14447       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14448         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14449       esac
14450     fi
14451     ;;
14452   sco3.2v5*)
14453     lt_cv_sys_max_cmd_len=102400
14454     ;;
14455   sysv5* | sco5v6* | sysv4.2uw2*)
14456     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14457     if test -n "$kargmax"; then
14458       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14459     else
14460       lt_cv_sys_max_cmd_len=32768
14461     fi
14462     ;;
14463   *)
14464     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14465     if test -n "$lt_cv_sys_max_cmd_len"; then
14466       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14467       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14468     else
14469       # Make teststring a little bigger before we do anything with it.
14470       # a 1K string should be a reasonable start.
14471       for i in 1 2 3 4 5 6 7 8 ; do
14472         teststring=$teststring$teststring
14473       done
14474       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14475       # If test is not a shell built-in, we'll probably end up computing a
14476       # maximum length that is only half of the actual maximum length, but
14477       # we can't tell.
14478       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14479                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14480               test $i != 17 # 1/2 MB should be enough
14481       do
14482         i=`expr $i + 1`
14483         teststring=$teststring$teststring
14484       done
14485       # Only check the string length outside the loop.
14486       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14487       teststring=
14488       # Add a significant safety factor because C++ compilers can tack on
14489       # massive amounts of additional arguments before passing them to the
14490       # linker.  It appears as though 1/2 is a usable value.
14491       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14492     fi
14493     ;;
14494   esac
14495
14496 fi
14497
14498 if test -n $lt_cv_sys_max_cmd_len ; then
14499   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14501 else
14502   echo "$as_me:$LINENO: result: none" >&5
14503 echo "${ECHO_T}none" >&6
14504 fi
14505 max_cmd_len=$lt_cv_sys_max_cmd_len
14506
14507
14508
14509
14510
14511
14512 : ${CP="cp -f"}
14513 : ${MV="mv -f"}
14514 : ${RM="rm -f"}
14515
14516 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14517 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14518 # Try some XSI features
14519 xsi_shell=no
14520 ( _lt_dummy="a/b/c"
14521   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14522       = c,a/b,, \
14523     && eval 'test $(( 1 + 1 )) -eq 2 \
14524     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14525   && xsi_shell=yes
14526 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14527 echo "${ECHO_T}$xsi_shell" >&6
14528
14529
14530 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14531 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14532 lt_shell_append=no
14533 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14534     >/dev/null 2>&1 \
14535   && lt_shell_append=yes
14536 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14537 echo "${ECHO_T}$lt_shell_append" >&6
14538
14539
14540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14541   lt_unset=unset
14542 else
14543   lt_unset=false
14544 fi
14545
14546
14547
14548
14549
14550 # test EBCDIC or ASCII
14551 case `echo X|tr X '\101'` in
14552  A) # ASCII based system
14553     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14554   lt_SP2NL='tr \040 \012'
14555   lt_NL2SP='tr \015\012 \040\040'
14556   ;;
14557  *) # EBCDIC based system
14558   lt_SP2NL='tr \100 \n'
14559   lt_NL2SP='tr \r\n \100\100'
14560   ;;
14561 esac
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14572 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14573 if test "${lt_cv_ld_reload_flag+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   lt_cv_ld_reload_flag='-r'
14577 fi
14578 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14579 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14580 reload_flag=$lt_cv_ld_reload_flag
14581 case $reload_flag in
14582 "" | " "*) ;;
14583 *) reload_flag=" $reload_flag" ;;
14584 esac
14585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14586 case $host_os in
14587   darwin*)
14588     if test "$GCC" = yes; then
14589       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14590     else
14591       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14592     fi
14593     ;;
14594 esac
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604 if test -n "$ac_tool_prefix"; then
14605   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14606 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14607 echo "$as_me:$LINENO: checking for $ac_word" >&5
14608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14609 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   if test -n "$OBJDUMP"; then
14613   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14617 do
14618   IFS=$as_save_IFS
14619   test -z "$as_dir" && as_dir=.
14620   for ac_exec_ext in '' $ac_executable_extensions; do
14621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14624     break 2
14625   fi
14626 done
14627 done
14628
14629 fi
14630 fi
14631 OBJDUMP=$ac_cv_prog_OBJDUMP
14632 if test -n "$OBJDUMP"; then
14633   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14634 echo "${ECHO_T}$OBJDUMP" >&6
14635 else
14636   echo "$as_me:$LINENO: result: no" >&5
14637 echo "${ECHO_T}no" >&6
14638 fi
14639
14640 fi
14641 if test -z "$ac_cv_prog_OBJDUMP"; then
14642   ac_ct_OBJDUMP=$OBJDUMP
14643   # Extract the first word of "objdump", so it can be a program name with args.
14644 set dummy objdump; ac_word=$2
14645 echo "$as_me:$LINENO: checking for $ac_word" >&5
14646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14647 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   if test -n "$ac_ct_OBJDUMP"; then
14651   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14652 else
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14655 do
14656   IFS=$as_save_IFS
14657   test -z "$as_dir" && as_dir=.
14658   for ac_exec_ext in '' $ac_executable_extensions; do
14659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660     ac_cv_prog_ac_ct_OBJDUMP="objdump"
14661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14662     break 2
14663   fi
14664 done
14665 done
14666
14667   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14668 fi
14669 fi
14670 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14671 if test -n "$ac_ct_OBJDUMP"; then
14672   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14673 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14674 else
14675   echo "$as_me:$LINENO: result: no" >&5
14676 echo "${ECHO_T}no" >&6
14677 fi
14678
14679   OBJDUMP=$ac_ct_OBJDUMP
14680 else
14681   OBJDUMP="$ac_cv_prog_OBJDUMP"
14682 fi
14683
14684 test -z "$OBJDUMP" && OBJDUMP=objdump
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14695 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14696 if test "${lt_cv_deplibs_check_method+set}" = set; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699   lt_cv_file_magic_cmd='$MAGIC_CMD'
14700 lt_cv_file_magic_test_file=
14701 lt_cv_deplibs_check_method='unknown'
14702 # Need to set the preceding variable on all platforms that support
14703 # interlibrary dependencies.
14704 # 'none' -- dependencies not supported.
14705 # `unknown' -- same as none, but documents that we really don't know.
14706 # 'pass_all' -- all dependencies passed with no checks.
14707 # 'test_compile' -- check by making test program.
14708 # 'file_magic [[regex]]' -- check by looking for files in library path
14709 # which responds to the $file_magic_cmd with a given extended regex.
14710 # If you have `file' or equivalent on your system and you're not sure
14711 # whether `pass_all' will *always* work, you probably want this one.
14712
14713 case $host_os in
14714 aix[4-9]*)
14715   lt_cv_deplibs_check_method=pass_all
14716   ;;
14717
14718 beos*)
14719   lt_cv_deplibs_check_method=pass_all
14720   ;;
14721
14722 bsdi[45]*)
14723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14724   lt_cv_file_magic_cmd='/usr/bin/file -L'
14725   lt_cv_file_magic_test_file=/shlib/libc.so
14726   ;;
14727
14728 cygwin*)
14729   # func_win32_libid is a shell function defined in ltmain.sh
14730   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14731   lt_cv_file_magic_cmd='func_win32_libid'
14732   ;;
14733
14734 mingw* | pw32*)
14735   # Base MSYS/MinGW do not provide the 'file' command needed by
14736   # func_win32_libid shell function, so use a weaker test based on 'objdump',
14737   # unless we find 'file', for example because we are cross-compiling.
14738   if ( file / ) >/dev/null 2>&1; then
14739     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14740     lt_cv_file_magic_cmd='func_win32_libid'
14741   else
14742     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14743     lt_cv_file_magic_cmd='$OBJDUMP -f'
14744   fi
14745   ;;
14746
14747 cegcc)
14748   # use the weaker test based on 'objdump'. See mingw*.
14749   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14750   lt_cv_file_magic_cmd='$OBJDUMP -f'
14751   ;;
14752
14753 darwin* | rhapsody*)
14754   lt_cv_deplibs_check_method=pass_all
14755   ;;
14756
14757 freebsd* | dragonfly*)
14758   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14759     case $host_cpu in
14760     i*86 )
14761       # Not sure whether the presence of OpenBSD here was a mistake.
14762       # Let's accept both of them until this is cleared up.
14763       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14764       lt_cv_file_magic_cmd=/usr/bin/file
14765       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14766       ;;
14767     esac
14768   else
14769     lt_cv_deplibs_check_method=pass_all
14770   fi
14771   ;;
14772
14773 gnu*)
14774   lt_cv_deplibs_check_method=pass_all
14775   ;;
14776
14777 hpux10.20* | hpux11*)
14778   lt_cv_file_magic_cmd=/usr/bin/file
14779   case $host_cpu in
14780   ia64*)
14781     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14782     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14783     ;;
14784   hppa*64*)
14785     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]'
14786     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14787     ;;
14788   *)
14789     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14790     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14791     ;;
14792   esac
14793   ;;
14794
14795 interix[3-9]*)
14796   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14797   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14798   ;;
14799
14800 irix5* | irix6* | nonstopux*)
14801   case $LD in
14802   *-32|*"-32 ") libmagic=32-bit;;
14803   *-n32|*"-n32 ") libmagic=N32;;
14804   *-64|*"-64 ") libmagic=64-bit;;
14805   *) libmagic=never-match;;
14806   esac
14807   lt_cv_deplibs_check_method=pass_all
14808   ;;
14809
14810 # This must be Linux ELF.
14811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14812   lt_cv_deplibs_check_method=pass_all
14813   ;;
14814
14815 netbsd*)
14816   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14818   else
14819     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14820   fi
14821   ;;
14822
14823 newos6*)
14824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14825   lt_cv_file_magic_cmd=/usr/bin/file
14826   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14827   ;;
14828
14829 *nto* | *qnx*)
14830   lt_cv_deplibs_check_method=pass_all
14831   ;;
14832
14833 openbsd*)
14834   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14835     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14836   else
14837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14838   fi
14839   ;;
14840
14841 osf3* | osf4* | osf5*)
14842   lt_cv_deplibs_check_method=pass_all
14843   ;;
14844
14845 rdos*)
14846   lt_cv_deplibs_check_method=pass_all
14847   ;;
14848
14849 solaris*)
14850   lt_cv_deplibs_check_method=pass_all
14851   ;;
14852
14853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14854   lt_cv_deplibs_check_method=pass_all
14855   ;;
14856
14857 sysv4 | sysv4.3*)
14858   case $host_vendor in
14859   motorola)
14860     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]'
14861     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14862     ;;
14863   ncr)
14864     lt_cv_deplibs_check_method=pass_all
14865     ;;
14866   sequent)
14867     lt_cv_file_magic_cmd='/bin/file'
14868     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14869     ;;
14870   sni)
14871     lt_cv_file_magic_cmd='/bin/file'
14872     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14873     lt_cv_file_magic_test_file=/lib/libc.so
14874     ;;
14875   siemens)
14876     lt_cv_deplibs_check_method=pass_all
14877     ;;
14878   pc)
14879     lt_cv_deplibs_check_method=pass_all
14880     ;;
14881   esac
14882   ;;
14883
14884 tpf*)
14885   lt_cv_deplibs_check_method=pass_all
14886   ;;
14887 esac
14888
14889 fi
14890 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14891 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14892 file_magic_cmd=$lt_cv_file_magic_cmd
14893 deplibs_check_method=$lt_cv_deplibs_check_method
14894 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907 if test -n "$ac_tool_prefix"; then
14908   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14909 set dummy ${ac_tool_prefix}ar; ac_word=$2
14910 echo "$as_me:$LINENO: checking for $ac_word" >&5
14911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14912 if test "${ac_cv_prog_AR+set}" = set; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915   if test -n "$AR"; then
14916   ac_cv_prog_AR="$AR" # Let the user override the test.
14917 else
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921   IFS=$as_save_IFS
14922   test -z "$as_dir" && as_dir=.
14923   for ac_exec_ext in '' $ac_executable_extensions; do
14924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14925     ac_cv_prog_AR="${ac_tool_prefix}ar"
14926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14927     break 2
14928   fi
14929 done
14930 done
14931
14932 fi
14933 fi
14934 AR=$ac_cv_prog_AR
14935 if test -n "$AR"; then
14936   echo "$as_me:$LINENO: result: $AR" >&5
14937 echo "${ECHO_T}$AR" >&6
14938 else
14939   echo "$as_me:$LINENO: result: no" >&5
14940 echo "${ECHO_T}no" >&6
14941 fi
14942
14943 fi
14944 if test -z "$ac_cv_prog_AR"; then
14945   ac_ct_AR=$AR
14946   # Extract the first word of "ar", so it can be a program name with args.
14947 set dummy ar; ac_word=$2
14948 echo "$as_me:$LINENO: checking for $ac_word" >&5
14949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14950 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   if test -n "$ac_ct_AR"; then
14954   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14955 else
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14958 do
14959   IFS=$as_save_IFS
14960   test -z "$as_dir" && as_dir=.
14961   for ac_exec_ext in '' $ac_executable_extensions; do
14962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14963     ac_cv_prog_ac_ct_AR="ar"
14964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14965     break 2
14966   fi
14967 done
14968 done
14969
14970   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14971 fi
14972 fi
14973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14974 if test -n "$ac_ct_AR"; then
14975   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14976 echo "${ECHO_T}$ac_ct_AR" >&6
14977 else
14978   echo "$as_me:$LINENO: result: no" >&5
14979 echo "${ECHO_T}no" >&6
14980 fi
14981
14982   AR=$ac_ct_AR
14983 else
14984   AR="$ac_cv_prog_AR"
14985 fi
14986
14987 test -z "$AR" && AR=ar
14988 test -z "$AR_FLAGS" && AR_FLAGS=cru
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000 if test -n "$ac_tool_prefix"; then
15001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15002 set dummy ${ac_tool_prefix}strip; ac_word=$2
15003 echo "$as_me:$LINENO: checking for $ac_word" >&5
15004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15005 if test "${ac_cv_prog_STRIP+set}" = set; then
15006   echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008   if test -n "$STRIP"; then
15009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15010 else
15011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012 for as_dir in $PATH
15013 do
15014   IFS=$as_save_IFS
15015   test -z "$as_dir" && as_dir=.
15016   for ac_exec_ext in '' $ac_executable_extensions; do
15017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15020     break 2
15021   fi
15022 done
15023 done
15024
15025 fi
15026 fi
15027 STRIP=$ac_cv_prog_STRIP
15028 if test -n "$STRIP"; then
15029   echo "$as_me:$LINENO: result: $STRIP" >&5
15030 echo "${ECHO_T}$STRIP" >&6
15031 else
15032   echo "$as_me:$LINENO: result: no" >&5
15033 echo "${ECHO_T}no" >&6
15034 fi
15035
15036 fi
15037 if test -z "$ac_cv_prog_STRIP"; then
15038   ac_ct_STRIP=$STRIP
15039   # Extract the first word of "strip", so it can be a program name with args.
15040 set dummy strip; ac_word=$2
15041 echo "$as_me:$LINENO: checking for $ac_word" >&5
15042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15044   echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046   if test -n "$ac_ct_STRIP"; then
15047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15048 else
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15051 do
15052   IFS=$as_save_IFS
15053   test -z "$as_dir" && as_dir=.
15054   for ac_exec_ext in '' $ac_executable_extensions; do
15055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056     ac_cv_prog_ac_ct_STRIP="strip"
15057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15058     break 2
15059   fi
15060 done
15061 done
15062
15063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15064 fi
15065 fi
15066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15067 if test -n "$ac_ct_STRIP"; then
15068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15069 echo "${ECHO_T}$ac_ct_STRIP" >&6
15070 else
15071   echo "$as_me:$LINENO: result: no" >&5
15072 echo "${ECHO_T}no" >&6
15073 fi
15074
15075   STRIP=$ac_ct_STRIP
15076 else
15077   STRIP="$ac_cv_prog_STRIP"
15078 fi
15079
15080 test -z "$STRIP" && STRIP=:
15081
15082
15083
15084
15085
15086
15087 if test -n "$ac_tool_prefix"; then
15088   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15090 echo "$as_me:$LINENO: checking for $ac_word" >&5
15091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15092 if test "${ac_cv_prog_RANLIB+set}" = set; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   if test -n "$RANLIB"; then
15096   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15097 else
15098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15099 for as_dir in $PATH
15100 do
15101   IFS=$as_save_IFS
15102   test -z "$as_dir" && as_dir=.
15103   for ac_exec_ext in '' $ac_executable_extensions; do
15104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15105     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15107     break 2
15108   fi
15109 done
15110 done
15111
15112 fi
15113 fi
15114 RANLIB=$ac_cv_prog_RANLIB
15115 if test -n "$RANLIB"; then
15116   echo "$as_me:$LINENO: result: $RANLIB" >&5
15117 echo "${ECHO_T}$RANLIB" >&6
15118 else
15119   echo "$as_me:$LINENO: result: no" >&5
15120 echo "${ECHO_T}no" >&6
15121 fi
15122
15123 fi
15124 if test -z "$ac_cv_prog_RANLIB"; then
15125   ac_ct_RANLIB=$RANLIB
15126   # Extract the first word of "ranlib", so it can be a program name with args.
15127 set dummy ranlib; ac_word=$2
15128 echo "$as_me:$LINENO: checking for $ac_word" >&5
15129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15130 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133   if test -n "$ac_ct_RANLIB"; then
15134   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15135 else
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 for as_dir in $PATH
15138 do
15139   IFS=$as_save_IFS
15140   test -z "$as_dir" && as_dir=.
15141   for ac_exec_ext in '' $ac_executable_extensions; do
15142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15143     ac_cv_prog_ac_ct_RANLIB="ranlib"
15144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15145     break 2
15146   fi
15147 done
15148 done
15149
15150   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15151 fi
15152 fi
15153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15154 if test -n "$ac_ct_RANLIB"; then
15155   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15156 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15157 else
15158   echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6
15160 fi
15161
15162   RANLIB=$ac_ct_RANLIB
15163 else
15164   RANLIB="$ac_cv_prog_RANLIB"
15165 fi
15166
15167 test -z "$RANLIB" && RANLIB=:
15168
15169
15170
15171
15172
15173
15174 # Determine commands to create old-style static archives.
15175 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15176 old_postinstall_cmds='chmod 644 $oldlib'
15177 old_postuninstall_cmds=
15178
15179 if test -n "$RANLIB"; then
15180   case $host_os in
15181   openbsd*)
15182     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15183     ;;
15184   *)
15185     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15186     ;;
15187   esac
15188   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15189 fi
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224 # If no C compiler was specified, use CC.
15225 LTCC=${LTCC-"$CC"}
15226
15227 # If no C compiler flags were specified, use CFLAGS.
15228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15229
15230 # Allow CC to be a program name with arguments.
15231 compiler=$CC
15232
15233
15234 # Check for command to grab the raw symbol name followed by C symbol from nm.
15235 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15236 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15237 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240
15241 # These are sane defaults that work on at least a few old systems.
15242 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15243
15244 # Character class describing NM global symbol codes.
15245 symcode='[BCDEGRST]'
15246
15247 # Regexp to match symbols that can be accessed directly from C.
15248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15249
15250 # Define system-specific variables.
15251 case $host_os in
15252 aix*)
15253   symcode='[BCDT]'
15254   ;;
15255 cygwin* | mingw* | pw32* | cegcc*)
15256   symcode='[ABCDGISTW]'
15257   ;;
15258 hpux*)
15259   if test "$host_cpu" = ia64; then
15260     symcode='[ABCDEGRST]'
15261   fi
15262   ;;
15263 irix* | nonstopux*)
15264   symcode='[BCDEGRST]'
15265   ;;
15266 osf*)
15267   symcode='[BCDEGQRST]'
15268   ;;
15269 solaris*)
15270   symcode='[BDRT]'
15271   ;;
15272 sco3.2v5*)
15273   symcode='[DT]'
15274   ;;
15275 sysv4.2uw2*)
15276   symcode='[DT]'
15277   ;;
15278 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15279   symcode='[ABDT]'
15280   ;;
15281 sysv4)
15282   symcode='[DFNSTU]'
15283   ;;
15284 esac
15285
15286 # If we're using GNU nm, then use its standard symbol codes.
15287 case `$NM -V 2>&1` in
15288 *GNU* | *'with BFD'*)
15289   symcode='[ABCDGIRSTW]' ;;
15290 esac
15291
15292 # Transform an extracted symbol line into a proper C declaration.
15293 # Some systems (esp. on ia64) link data and code symbols differently,
15294 # so use this general approach.
15295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15296
15297 # Transform an extracted symbol line into symbol name and symbol address
15298 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15299 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'"
15300
15301 # Handle CRLF in mingw tool chain
15302 opt_cr=
15303 case $build_os in
15304 mingw*)
15305   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15306   ;;
15307 esac
15308
15309 # Try without a prefix underscore, then with it.
15310 for ac_symprfx in "" "_"; do
15311
15312   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15313   symxfrm="\\1 $ac_symprfx\\2 \\2"
15314
15315   # Write the raw and C identifiers.
15316   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15317     # Fake it for dumpbin and say T for any non-static function
15318     # and D for any global variable.
15319     # Also find C++ and __fastcall symbols from MSVC++,
15320     # which start with @ or ?.
15321     lt_cv_sys_global_symbol_pipe="$AWK '"\
15322 "     {last_section=section; section=\$ 3};"\
15323 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15324 "     \$ 0!~/External *\|/{next};"\
15325 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15326 "     {if(hide[section]) next};"\
15327 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15328 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15329 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15330 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15331 "     ' prfx=^$ac_symprfx"
15332   else
15333     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15334   fi
15335
15336   # Check to see that the pipe works correctly.
15337   pipe_works=no
15338
15339   rm -f conftest*
15340   cat > conftest.$ac_ext <<_LT_EOF
15341 #ifdef __cplusplus
15342 extern "C" {
15343 #endif
15344 char nm_test_var;
15345 void nm_test_func(void);
15346 void nm_test_func(void){}
15347 #ifdef __cplusplus
15348 }
15349 #endif
15350 int main(){nm_test_var='a';nm_test_func();return(0);}
15351 _LT_EOF
15352
15353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354   (eval $ac_compile) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; then
15358     # Now try to grab the symbols.
15359     nlist=conftest.nm
15360     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15361   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } && test -s "$nlist"; then
15365       # Try sorting and uniquifying the output.
15366       if sort "$nlist" | uniq > "$nlist"T; then
15367         mv -f "$nlist"T "$nlist"
15368       else
15369         rm -f "$nlist"T
15370       fi
15371
15372       # Make sure that we snagged all the symbols we need.
15373       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15374         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15375           cat <<_LT_EOF > conftest.$ac_ext
15376 #ifdef __cplusplus
15377 extern "C" {
15378 #endif
15379
15380 _LT_EOF
15381           # Now generate the symbol file.
15382           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15383
15384           cat <<_LT_EOF >> conftest.$ac_ext
15385
15386 /* The mapping between symbol names and symbols.  */
15387 const struct {
15388   const char *name;
15389   void       *address;
15390 }
15391 lt__PROGRAM__LTX_preloaded_symbols[] =
15392 {
15393   { "@PROGRAM@", (void *) 0 },
15394 _LT_EOF
15395           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15396           cat <<\_LT_EOF >> conftest.$ac_ext
15397   {0, (void *) 0}
15398 };
15399
15400 /* This works around a problem in FreeBSD linker */
15401 #ifdef FREEBSD_WORKAROUND
15402 static const void *lt_preloaded_setup() {
15403   return lt__PROGRAM__LTX_preloaded_symbols;
15404 }
15405 #endif
15406
15407 #ifdef __cplusplus
15408 }
15409 #endif
15410 _LT_EOF
15411           # Now try linking the two files.
15412           mv conftest.$ac_objext conftstm.$ac_objext
15413           lt_save_LIBS="$LIBS"
15414           lt_save_CFLAGS="$CFLAGS"
15415           LIBS="conftstm.$ac_objext"
15416           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15417           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418   (eval $ac_link) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15422             pipe_works=yes
15423           fi
15424           LIBS="$lt_save_LIBS"
15425           CFLAGS="$lt_save_CFLAGS"
15426         else
15427           echo "cannot find nm_test_func in $nlist" >&5
15428         fi
15429       else
15430         echo "cannot find nm_test_var in $nlist" >&5
15431       fi
15432     else
15433       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15434     fi
15435   else
15436     echo "$progname: failed program was:" >&5
15437     cat conftest.$ac_ext >&5
15438   fi
15439   rm -rf conftest* conftst*
15440
15441   # Do not use the global_symbol_pipe unless it works.
15442   if test "$pipe_works" = yes; then
15443     break
15444   else
15445     lt_cv_sys_global_symbol_pipe=
15446   fi
15447 done
15448
15449 fi
15450
15451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15452   lt_cv_sys_global_symbol_to_cdecl=
15453 fi
15454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15455   echo "$as_me:$LINENO: result: failed" >&5
15456 echo "${ECHO_T}failed" >&6
15457 else
15458   echo "$as_me:$LINENO: result: ok" >&5
15459 echo "${ECHO_T}ok" >&6
15460 fi
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15484 if test "${enable_libtool_lock+set}" = set; then
15485   enableval="$enable_libtool_lock"
15486
15487 fi;
15488 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15489
15490 # Some flags need to be propagated to the compiler or linker for good
15491 # libtool support.
15492 case $host in
15493 ia64-*-hpux*)
15494   # Find out which ABI we are using.
15495   echo 'int i;' > conftest.$ac_ext
15496   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497   (eval $ac_compile) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; then
15501     case `/usr/bin/file conftest.$ac_objext` in
15502       *ELF-32*)
15503         HPUX_IA64_MODE="32"
15504         ;;
15505       *ELF-64*)
15506         HPUX_IA64_MODE="64"
15507         ;;
15508     esac
15509   fi
15510   rm -rf conftest*
15511   ;;
15512 *-*-irix6*)
15513   # Find out which ABI we are using.
15514   echo '#line 15514 "configure"' > conftest.$ac_ext
15515   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15516   (eval $ac_compile) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; then
15520     if test "$lt_cv_prog_gnu_ld" = yes; then
15521       case `/usr/bin/file conftest.$ac_objext` in
15522         *32-bit*)
15523           LD="${LD-ld} -melf32bsmip"
15524           ;;
15525         *N32*)
15526           LD="${LD-ld} -melf32bmipn32"
15527           ;;
15528         *64-bit*)
15529           LD="${LD-ld} -melf64bmip"
15530         ;;
15531       esac
15532     else
15533       case `/usr/bin/file conftest.$ac_objext` in
15534         *32-bit*)
15535           LD="${LD-ld} -32"
15536           ;;
15537         *N32*)
15538           LD="${LD-ld} -n32"
15539           ;;
15540         *64-bit*)
15541           LD="${LD-ld} -64"
15542           ;;
15543       esac
15544     fi
15545   fi
15546   rm -rf conftest*
15547   ;;
15548
15549 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15550 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15551   # Find out which ABI we are using.
15552   echo 'int i;' > conftest.$ac_ext
15553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554   (eval $ac_compile) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; then
15558     case `/usr/bin/file conftest.o` in
15559       *32-bit*)
15560         case $host in
15561           x86_64-*kfreebsd*-gnu)
15562             LD="${LD-ld} -m elf_i386_fbsd"
15563             ;;
15564           x86_64-*linux*)
15565             LD="${LD-ld} -m elf_i386"
15566             ;;
15567           ppc64-*linux*|powerpc64-*linux*)
15568             LD="${LD-ld} -m elf32ppclinux"
15569             ;;
15570           s390x-*linux*)
15571             LD="${LD-ld} -m elf_s390"
15572             ;;
15573           sparc64-*linux*)
15574             LD="${LD-ld} -m elf32_sparc"
15575             ;;
15576         esac
15577         ;;
15578       *64-bit*)
15579         case $host in
15580           x86_64-*kfreebsd*-gnu)
15581             LD="${LD-ld} -m elf_x86_64_fbsd"
15582             ;;
15583           x86_64-*linux*)
15584             LD="${LD-ld} -m elf_x86_64"
15585             ;;
15586           ppc*-*linux*|powerpc*-*linux*)
15587             LD="${LD-ld} -m elf64ppc"
15588             ;;
15589           s390*-*linux*|s390*-*tpf*)
15590             LD="${LD-ld} -m elf64_s390"
15591             ;;
15592           sparc*-*linux*)
15593             LD="${LD-ld} -m elf64_sparc"
15594             ;;
15595         esac
15596         ;;
15597     esac
15598   fi
15599   rm -rf conftest*
15600   ;;
15601
15602 *-*-sco3.2v5*)
15603   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15604   SAVE_CFLAGS="$CFLAGS"
15605   CFLAGS="$CFLAGS -belf"
15606   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15608 if test "${lt_cv_cc_needs_belf+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617      cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623
15624 int
15625 main ()
15626 {
15627
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634   (eval $ac_link) 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } &&
15641          { ac_try='test -z "$ac_c_werror_flag"
15642                          || test ! -s conftest.err'
15643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644   (eval $ac_try) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; } &&
15648          { ac_try='test -s conftest$ac_exeext'
15649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650   (eval $ac_try) 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654   lt_cv_cc_needs_belf=yes
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 lt_cv_cc_needs_belf=no
15660 fi
15661 rm -f conftest.err conftest.$ac_objext \
15662       conftest$ac_exeext conftest.$ac_ext
15663      ac_ext=c
15664 ac_cpp='$CPP $CPPFLAGS'
15665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15668
15669 fi
15670 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15671 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15672   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15673     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15674     CFLAGS="$SAVE_CFLAGS"
15675   fi
15676   ;;
15677 sparc*-*solaris*)
15678   # Find out which ABI we are using.
15679   echo 'int i;' > conftest.$ac_ext
15680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15681   (eval $ac_compile) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; then
15685     case `/usr/bin/file conftest.o` in
15686     *64-bit*)
15687       case $lt_cv_prog_gnu_ld in
15688       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15689       *)
15690         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15691           LD="${LD-ld} -64"
15692         fi
15693         ;;
15694       esac
15695       ;;
15696     esac
15697   fi
15698   rm -rf conftest*
15699   ;;
15700 esac
15701
15702 need_locks="$enable_libtool_lock"
15703
15704
15705   case $host_os in
15706     rhapsody* | darwin*)
15707     if test -n "$ac_tool_prefix"; then
15708   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15710 echo "$as_me:$LINENO: checking for $ac_word" >&5
15711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15712 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715   if test -n "$DSYMUTIL"; then
15716   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15717 else
15718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in $PATH
15720 do
15721   IFS=$as_save_IFS
15722   test -z "$as_dir" && as_dir=.
15723   for ac_exec_ext in '' $ac_executable_extensions; do
15724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15725     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15727     break 2
15728   fi
15729 done
15730 done
15731
15732 fi
15733 fi
15734 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15735 if test -n "$DSYMUTIL"; then
15736   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15737 echo "${ECHO_T}$DSYMUTIL" >&6
15738 else
15739   echo "$as_me:$LINENO: result: no" >&5
15740 echo "${ECHO_T}no" >&6
15741 fi
15742
15743 fi
15744 if test -z "$ac_cv_prog_DSYMUTIL"; then
15745   ac_ct_DSYMUTIL=$DSYMUTIL
15746   # Extract the first word of "dsymutil", so it can be a program name with args.
15747 set dummy dsymutil; ac_word=$2
15748 echo "$as_me:$LINENO: checking for $ac_word" >&5
15749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15750 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753   if test -n "$ac_ct_DSYMUTIL"; then
15754   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15755 else
15756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15758 do
15759   IFS=$as_save_IFS
15760   test -z "$as_dir" && as_dir=.
15761   for ac_exec_ext in '' $ac_executable_extensions; do
15762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15763     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15765     break 2
15766   fi
15767 done
15768 done
15769
15770   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15771 fi
15772 fi
15773 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15774 if test -n "$ac_ct_DSYMUTIL"; then
15775   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15776 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15777 else
15778   echo "$as_me:$LINENO: result: no" >&5
15779 echo "${ECHO_T}no" >&6
15780 fi
15781
15782   DSYMUTIL=$ac_ct_DSYMUTIL
15783 else
15784   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15785 fi
15786
15787     if test -n "$ac_tool_prefix"; then
15788   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15789 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15790 echo "$as_me:$LINENO: checking for $ac_word" >&5
15791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15792 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   if test -n "$NMEDIT"; then
15796   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15797 else
15798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799 for as_dir in $PATH
15800 do
15801   IFS=$as_save_IFS
15802   test -z "$as_dir" && as_dir=.
15803   for ac_exec_ext in '' $ac_executable_extensions; do
15804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15807     break 2
15808   fi
15809 done
15810 done
15811
15812 fi
15813 fi
15814 NMEDIT=$ac_cv_prog_NMEDIT
15815 if test -n "$NMEDIT"; then
15816   echo "$as_me:$LINENO: result: $NMEDIT" >&5
15817 echo "${ECHO_T}$NMEDIT" >&6
15818 else
15819   echo "$as_me:$LINENO: result: no" >&5
15820 echo "${ECHO_T}no" >&6
15821 fi
15822
15823 fi
15824 if test -z "$ac_cv_prog_NMEDIT"; then
15825   ac_ct_NMEDIT=$NMEDIT
15826   # Extract the first word of "nmedit", so it can be a program name with args.
15827 set dummy nmedit; ac_word=$2
15828 echo "$as_me:$LINENO: checking for $ac_word" >&5
15829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15830 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15831   echo $ECHO_N "(cached) $ECHO_C" >&6
15832 else
15833   if test -n "$ac_ct_NMEDIT"; then
15834   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15835 else
15836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15837 for as_dir in $PATH
15838 do
15839   IFS=$as_save_IFS
15840   test -z "$as_dir" && as_dir=.
15841   for ac_exec_ext in '' $ac_executable_extensions; do
15842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15843     ac_cv_prog_ac_ct_NMEDIT="nmedit"
15844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15845     break 2
15846   fi
15847 done
15848 done
15849
15850   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15851 fi
15852 fi
15853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15854 if test -n "$ac_ct_NMEDIT"; then
15855   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15856 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15857 else
15858   echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6
15860 fi
15861
15862   NMEDIT=$ac_ct_NMEDIT
15863 else
15864   NMEDIT="$ac_cv_prog_NMEDIT"
15865 fi
15866
15867     if test -n "$ac_tool_prefix"; then
15868   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15869 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15870 echo "$as_me:$LINENO: checking for $ac_word" >&5
15871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15872 if test "${ac_cv_prog_LIPO+set}" = set; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875   if test -n "$LIPO"; then
15876   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15877 else
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15880 do
15881   IFS=$as_save_IFS
15882   test -z "$as_dir" && as_dir=.
15883   for ac_exec_ext in '' $ac_executable_extensions; do
15884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15887     break 2
15888   fi
15889 done
15890 done
15891
15892 fi
15893 fi
15894 LIPO=$ac_cv_prog_LIPO
15895 if test -n "$LIPO"; then
15896   echo "$as_me:$LINENO: result: $LIPO" >&5
15897 echo "${ECHO_T}$LIPO" >&6
15898 else
15899   echo "$as_me:$LINENO: result: no" >&5
15900 echo "${ECHO_T}no" >&6
15901 fi
15902
15903 fi
15904 if test -z "$ac_cv_prog_LIPO"; then
15905   ac_ct_LIPO=$LIPO
15906   # Extract the first word of "lipo", so it can be a program name with args.
15907 set dummy lipo; ac_word=$2
15908 echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15910 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   if test -n "$ac_ct_LIPO"; then
15914   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15915 else
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15918 do
15919   IFS=$as_save_IFS
15920   test -z "$as_dir" && as_dir=.
15921   for ac_exec_ext in '' $ac_executable_extensions; do
15922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15923     ac_cv_prog_ac_ct_LIPO="lipo"
15924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15925     break 2
15926   fi
15927 done
15928 done
15929
15930   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15931 fi
15932 fi
15933 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15934 if test -n "$ac_ct_LIPO"; then
15935   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
15936 echo "${ECHO_T}$ac_ct_LIPO" >&6
15937 else
15938   echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6
15940 fi
15941
15942   LIPO=$ac_ct_LIPO
15943 else
15944   LIPO="$ac_cv_prog_LIPO"
15945 fi
15946
15947     if test -n "$ac_tool_prefix"; then
15948   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15949 set dummy ${ac_tool_prefix}otool; ac_word=$2
15950 echo "$as_me:$LINENO: checking for $ac_word" >&5
15951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15952 if test "${ac_cv_prog_OTOOL+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   if test -n "$OTOOL"; then
15956   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15957 else
15958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959 for as_dir in $PATH
15960 do
15961   IFS=$as_save_IFS
15962   test -z "$as_dir" && as_dir=.
15963   for ac_exec_ext in '' $ac_executable_extensions; do
15964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15965     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15967     break 2
15968   fi
15969 done
15970 done
15971
15972 fi
15973 fi
15974 OTOOL=$ac_cv_prog_OTOOL
15975 if test -n "$OTOOL"; then
15976   echo "$as_me:$LINENO: result: $OTOOL" >&5
15977 echo "${ECHO_T}$OTOOL" >&6
15978 else
15979   echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6
15981 fi
15982
15983 fi
15984 if test -z "$ac_cv_prog_OTOOL"; then
15985   ac_ct_OTOOL=$OTOOL
15986   # Extract the first word of "otool", so it can be a program name with args.
15987 set dummy otool; ac_word=$2
15988 echo "$as_me:$LINENO: checking for $ac_word" >&5
15989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15990 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   if test -n "$ac_ct_OTOOL"; then
15994   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15995 else
15996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15997 for as_dir in $PATH
15998 do
15999   IFS=$as_save_IFS
16000   test -z "$as_dir" && as_dir=.
16001   for ac_exec_ext in '' $ac_executable_extensions; do
16002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16003     ac_cv_prog_ac_ct_OTOOL="otool"
16004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16005     break 2
16006   fi
16007 done
16008 done
16009
16010   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16011 fi
16012 fi
16013 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16014 if test -n "$ac_ct_OTOOL"; then
16015   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16016 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16017 else
16018   echo "$as_me:$LINENO: result: no" >&5
16019 echo "${ECHO_T}no" >&6
16020 fi
16021
16022   OTOOL=$ac_ct_OTOOL
16023 else
16024   OTOOL="$ac_cv_prog_OTOOL"
16025 fi
16026
16027     if test -n "$ac_tool_prefix"; then
16028   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16030 echo "$as_me:$LINENO: checking for $ac_word" >&5
16031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16032 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16033   echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035   if test -n "$OTOOL64"; then
16036   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16037 else
16038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16039 for as_dir in $PATH
16040 do
16041   IFS=$as_save_IFS
16042   test -z "$as_dir" && as_dir=.
16043   for ac_exec_ext in '' $ac_executable_extensions; do
16044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16045     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16047     break 2
16048   fi
16049 done
16050 done
16051
16052 fi
16053 fi
16054 OTOOL64=$ac_cv_prog_OTOOL64
16055 if test -n "$OTOOL64"; then
16056   echo "$as_me:$LINENO: result: $OTOOL64" >&5
16057 echo "${ECHO_T}$OTOOL64" >&6
16058 else
16059   echo "$as_me:$LINENO: result: no" >&5
16060 echo "${ECHO_T}no" >&6
16061 fi
16062
16063 fi
16064 if test -z "$ac_cv_prog_OTOOL64"; then
16065   ac_ct_OTOOL64=$OTOOL64
16066   # Extract the first word of "otool64", so it can be a program name with args.
16067 set dummy otool64; ac_word=$2
16068 echo "$as_me:$LINENO: checking for $ac_word" >&5
16069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16070 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   if test -n "$ac_ct_OTOOL64"; then
16074   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16075 else
16076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16077 for as_dir in $PATH
16078 do
16079   IFS=$as_save_IFS
16080   test -z "$as_dir" && as_dir=.
16081   for ac_exec_ext in '' $ac_executable_extensions; do
16082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16083     ac_cv_prog_ac_ct_OTOOL64="otool64"
16084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16085     break 2
16086   fi
16087 done
16088 done
16089
16090   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16091 fi
16092 fi
16093 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16094 if test -n "$ac_ct_OTOOL64"; then
16095   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16096 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16097 else
16098   echo "$as_me:$LINENO: result: no" >&5
16099 echo "${ECHO_T}no" >&6
16100 fi
16101
16102   OTOOL64=$ac_ct_OTOOL64
16103 else
16104   OTOOL64="$ac_cv_prog_OTOOL64"
16105 fi
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16134 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16135 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16136   echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138   lt_cv_apple_cc_single_mod=no
16139       if test -z "${LT_MULTI_MODULE}"; then
16140         # By default we will add the -single_module flag. You can override
16141         # by either setting the environment variable LT_MULTI_MODULE
16142         # non-empty at configure time, or by adding -multi_module to the
16143         # link flags.
16144         rm -rf libconftest.dylib*
16145         echo "int foo(void){return 1;}" > conftest.c
16146         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16147 -dynamiclib -Wl,-single_module conftest.c" >&5
16148         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16149           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16150         _lt_result=$?
16151         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16152           lt_cv_apple_cc_single_mod=yes
16153         else
16154           cat conftest.err >&5
16155         fi
16156         rm -rf libconftest.dylib*
16157         rm -f conftest.*
16158       fi
16159 fi
16160 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16161 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16162     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16163 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16164 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   lt_cv_ld_exported_symbols_list=no
16168       save_LDFLAGS=$LDFLAGS
16169       echo "_main" > conftest.sym
16170       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16171       cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177
16178 int
16179 main ()
16180 {
16181
16182   ;
16183   return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188   (eval $ac_link) 2>conftest.er1
16189   ac_status=$?
16190   grep -v '^ *+' conftest.er1 >conftest.err
16191   rm -f conftest.er1
16192   cat conftest.err >&5
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } &&
16195          { ac_try='test -z "$ac_c_werror_flag"
16196                          || test ! -s conftest.err'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; } &&
16202          { ac_try='test -s conftest$ac_exeext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   lt_cv_ld_exported_symbols_list=yes
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 lt_cv_ld_exported_symbols_list=no
16214 fi
16215 rm -f conftest.err conftest.$ac_objext \
16216       conftest$ac_exeext conftest.$ac_ext
16217         LDFLAGS="$save_LDFLAGS"
16218
16219 fi
16220 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16221 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16222     case $host_os in
16223     rhapsody* | darwin1.[012])
16224       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16225     darwin1.*)
16226       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16227     darwin*) # darwin 5.x on
16228       # if running on 10.5 or later, the deployment target defaults
16229       # to the OS version, if on x86, and 10.4, the deployment
16230       # target defaults to 10.4. Don't you love it?
16231       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16232         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16233           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16234         10.[012]*)
16235           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16236         10.*)
16237           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16238       esac
16239     ;;
16240   esac
16241     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16242       _lt_dar_single_mod='$single_module'
16243     fi
16244     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16245       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16246     else
16247       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16248     fi
16249     if test "$DSYMUTIL" != ":"; then
16250       _lt_dsymutil='~$DSYMUTIL $lib || :'
16251     else
16252       _lt_dsymutil=
16253     fi
16254     ;;
16255   esac
16256
16257
16258 for ac_header in dlfcn.h
16259 do
16260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16261 echo "$as_me:$LINENO: checking for $ac_header" >&5
16262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16264   echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266   cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 #include <$ac_header>
16273 _ACEOF
16274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } >/dev/null; then
16282   if test -s conftest.err; then
16283     ac_cpp_err=$ac_c_preproc_warn_flag
16284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16285   else
16286     ac_cpp_err=
16287   fi
16288 else
16289   ac_cpp_err=yes
16290 fi
16291 if test -z "$ac_cpp_err"; then
16292   eval "$as_ac_Header=yes"
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297   eval "$as_ac_Header=no"
16298 fi
16299 rm -f conftest.err conftest.$ac_ext
16300 fi
16301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304   cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16306 _ACEOF
16307
16308 fi
16309 done
16310
16311
16312
16313 # Set options
16314
16315
16316
16317         enable_dlopen=no
16318
16319
16320   enable_win32_dll=no
16321
16322
16323             # Check whether --enable-shared or --disable-shared was given.
16324 if test "${enable_shared+set}" = set; then
16325   enableval="$enable_shared"
16326   p=${PACKAGE-default}
16327     case $enableval in
16328     yes) enable_shared=yes ;;
16329     no) enable_shared=no ;;
16330     *)
16331       enable_shared=no
16332       # Look at the argument we got.  We use all the common list separators.
16333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16334       for pkg in $enableval; do
16335         IFS="$lt_save_ifs"
16336         if test "X$pkg" = "X$p"; then
16337           enable_shared=yes
16338         fi
16339       done
16340       IFS="$lt_save_ifs"
16341       ;;
16342     esac
16343 else
16344   enable_shared=yes
16345 fi;
16346
16347
16348
16349
16350
16351
16352
16353
16354   # Check whether --enable-static or --disable-static was given.
16355 if test "${enable_static+set}" = set; then
16356   enableval="$enable_static"
16357   p=${PACKAGE-default}
16358     case $enableval in
16359     yes) enable_static=yes ;;
16360     no) enable_static=no ;;
16361     *)
16362      enable_static=no
16363       # Look at the argument we got.  We use all the common list separators.
16364       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16365       for pkg in $enableval; do
16366         IFS="$lt_save_ifs"
16367         if test "X$pkg" = "X$p"; then
16368           enable_static=yes
16369         fi
16370       done
16371       IFS="$lt_save_ifs"
16372       ;;
16373     esac
16374 else
16375   enable_static=yes
16376 fi;
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386 # Check whether --with-pic or --without-pic was given.
16387 if test "${with_pic+set}" = set; then
16388   withval="$with_pic"
16389   pic_mode="$withval"
16390 else
16391   pic_mode=default
16392 fi;
16393
16394 test -z "$pic_mode" && pic_mode=default
16395
16396
16397
16398
16399
16400
16401
16402   # Check whether --enable-fast-install or --disable-fast-install was given.
16403 if test "${enable_fast_install+set}" = set; then
16404   enableval="$enable_fast_install"
16405   p=${PACKAGE-default}
16406     case $enableval in
16407     yes) enable_fast_install=yes ;;
16408     no) enable_fast_install=no ;;
16409     *)
16410       enable_fast_install=no
16411       # Look at the argument we got.  We use all the common list separators.
16412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16413       for pkg in $enableval; do
16414         IFS="$lt_save_ifs"
16415         if test "X$pkg" = "X$p"; then
16416           enable_fast_install=yes
16417         fi
16418       done
16419       IFS="$lt_save_ifs"
16420       ;;
16421     esac
16422 else
16423   enable_fast_install=yes
16424 fi;
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435 # This can be used to rebuild libtool when needed
16436 LIBTOOL_DEPS="$ltmain"
16437
16438 # Always use our own libtool.
16439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465 test -z "$LN_S" && LN_S="ln -s"
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480 if test -n "${ZSH_VERSION+set}" ; then
16481    setopt NO_GLOB_SUBST
16482 fi
16483
16484 echo "$as_me:$LINENO: checking for objdir" >&5
16485 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16486 if test "${lt_cv_objdir+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   rm -f .libs 2>/dev/null
16490 mkdir .libs 2>/dev/null
16491 if test -d .libs; then
16492   lt_cv_objdir=.libs
16493 else
16494   # MS-DOS does not allow filenames that begin with a dot.
16495   lt_cv_objdir=_libs
16496 fi
16497 rmdir .libs 2>/dev/null
16498 fi
16499 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16500 echo "${ECHO_T}$lt_cv_objdir" >&6
16501 objdir=$lt_cv_objdir
16502
16503
16504
16505
16506
16507 cat >>confdefs.h <<_ACEOF
16508 #define LT_OBJDIR "$lt_cv_objdir/"
16509 _ACEOF
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527 case $host_os in
16528 aix3*)
16529   # AIX sometimes has problems with the GCC collect2 program.  For some
16530   # reason, if we set the COLLECT_NAMES environment variable, the problems
16531   # vanish in a puff of smoke.
16532   if test "X${COLLECT_NAMES+set}" != Xset; then
16533     COLLECT_NAMES=
16534     export COLLECT_NAMES
16535   fi
16536   ;;
16537 esac
16538
16539 # Sed substitution that helps us do robust quoting.  It backslashifies
16540 # metacharacters that are still active within double-quoted strings.
16541 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16542
16543 # Same as above, but do not quote variable references.
16544 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16545
16546 # Sed substitution to delay expansion of an escaped shell variable in a
16547 # double_quote_subst'ed string.
16548 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16549
16550 # Sed substitution to delay expansion of an escaped single quote.
16551 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16552
16553 # Sed substitution to avoid accidental globbing in evaled expressions
16554 no_glob_subst='s/\*/\\\*/g'
16555
16556 # Global variables:
16557 ofile=libtool
16558 can_build_shared=yes
16559
16560 # All known linkers require a `.a' archive for static linking (except MSVC,
16561 # which needs '.lib').
16562 libext=a
16563
16564 with_gnu_ld="$lt_cv_prog_gnu_ld"
16565
16566 old_CC="$CC"
16567 old_CFLAGS="$CFLAGS"
16568
16569 # Set sane defaults for various variables
16570 test -z "$CC" && CC=cc
16571 test -z "$LTCC" && LTCC=$CC
16572 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16573 test -z "$LD" && LD=ld
16574 test -z "$ac_objext" && ac_objext=o
16575
16576 for cc_temp in $compiler""; do
16577   case $cc_temp in
16578     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16579     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16580     \-*) ;;
16581     *) break;;
16582   esac
16583 done
16584 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16585
16586
16587 # Only perform the check for file, if the check method requires it
16588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16589 case $deplibs_check_method in
16590 file_magic*)
16591   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16592     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16593 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16594 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   case $MAGIC_CMD in
16598 [\\/*] |  ?:[\\/]*)
16599   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16600   ;;
16601 *)
16602   lt_save_MAGIC_CMD="$MAGIC_CMD"
16603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16604   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16605   for ac_dir in $ac_dummy; do
16606     IFS="$lt_save_ifs"
16607     test -z "$ac_dir" && ac_dir=.
16608     if test -f $ac_dir/${ac_tool_prefix}file; then
16609       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16610       if test -n "$file_magic_test_file"; then
16611         case $deplibs_check_method in
16612         "file_magic "*)
16613           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16614           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16615           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16616             $EGREP "$file_magic_regex" > /dev/null; then
16617             :
16618           else
16619             cat <<_LT_EOF 1>&2
16620
16621 *** Warning: the command libtool uses to detect shared libraries,
16622 *** $file_magic_cmd, produces output that libtool cannot recognize.
16623 *** The result is that libtool may fail to recognize shared libraries
16624 *** as such.  This will affect the creation of libtool libraries that
16625 *** depend on shared libraries, but programs linked with such libtool
16626 *** libraries will work regardless of this problem.  Nevertheless, you
16627 *** may want to report the problem to your system manager and/or to
16628 *** bug-libtool@gnu.org
16629
16630 _LT_EOF
16631           fi ;;
16632         esac
16633       fi
16634       break
16635     fi
16636   done
16637   IFS="$lt_save_ifs"
16638   MAGIC_CMD="$lt_save_MAGIC_CMD"
16639   ;;
16640 esac
16641 fi
16642
16643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16644 if test -n "$MAGIC_CMD"; then
16645   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16646 echo "${ECHO_T}$MAGIC_CMD" >&6
16647 else
16648   echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6
16650 fi
16651
16652
16653
16654
16655
16656 if test -z "$lt_cv_path_MAGIC_CMD"; then
16657   if test -n "$ac_tool_prefix"; then
16658     echo "$as_me:$LINENO: checking for file" >&5
16659 echo $ECHO_N "checking for file... $ECHO_C" >&6
16660 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16661   echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663   case $MAGIC_CMD in
16664 [\\/*] |  ?:[\\/]*)
16665   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16666   ;;
16667 *)
16668   lt_save_MAGIC_CMD="$MAGIC_CMD"
16669   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16670   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16671   for ac_dir in $ac_dummy; do
16672     IFS="$lt_save_ifs"
16673     test -z "$ac_dir" && ac_dir=.
16674     if test -f $ac_dir/file; then
16675       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16676       if test -n "$file_magic_test_file"; then
16677         case $deplibs_check_method in
16678         "file_magic "*)
16679           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16680           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16681           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16682             $EGREP "$file_magic_regex" > /dev/null; then
16683             :
16684           else
16685             cat <<_LT_EOF 1>&2
16686
16687 *** Warning: the command libtool uses to detect shared libraries,
16688 *** $file_magic_cmd, produces output that libtool cannot recognize.
16689 *** The result is that libtool may fail to recognize shared libraries
16690 *** as such.  This will affect the creation of libtool libraries that
16691 *** depend on shared libraries, but programs linked with such libtool
16692 *** libraries will work regardless of this problem.  Nevertheless, you
16693 *** may want to report the problem to your system manager and/or to
16694 *** bug-libtool@gnu.org
16695
16696 _LT_EOF
16697           fi ;;
16698         esac
16699       fi
16700       break
16701     fi
16702   done
16703   IFS="$lt_save_ifs"
16704   MAGIC_CMD="$lt_save_MAGIC_CMD"
16705   ;;
16706 esac
16707 fi
16708
16709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16710 if test -n "$MAGIC_CMD"; then
16711   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16712 echo "${ECHO_T}$MAGIC_CMD" >&6
16713 else
16714   echo "$as_me:$LINENO: result: no" >&5
16715 echo "${ECHO_T}no" >&6
16716 fi
16717
16718
16719   else
16720     MAGIC_CMD=:
16721   fi
16722 fi
16723
16724   fi
16725   ;;
16726 esac
16727
16728 # Use C for the default configuration in the libtool script
16729
16730 lt_save_CC="$CC"
16731 ac_ext=c
16732 ac_cpp='$CPP $CPPFLAGS'
16733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736
16737
16738 # Source file extension for C test sources.
16739 ac_ext=c
16740
16741 # Object file extension for compiled C test sources.
16742 objext=o
16743 objext=$objext
16744
16745 # Code to be used in simple compile tests
16746 lt_simple_compile_test_code="int some_variable = 0;"
16747
16748 # Code to be used in simple link tests
16749 lt_simple_link_test_code='int main(){return(0);}'
16750
16751
16752
16753
16754
16755
16756
16757 # If no C compiler was specified, use CC.
16758 LTCC=${LTCC-"$CC"}
16759
16760 # If no C compiler flags were specified, use CFLAGS.
16761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16762
16763 # Allow CC to be a program name with arguments.
16764 compiler=$CC
16765
16766 # Save the default compiler, since it gets overwritten when the other
16767 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16768 compiler_DEFAULT=$CC
16769
16770 # save warnings/boilerplate of simple test code
16771 ac_outfile=conftest.$ac_objext
16772 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16773 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16774 _lt_compiler_boilerplate=`cat conftest.err`
16775 $RM conftest*
16776
16777 ac_outfile=conftest.$ac_objext
16778 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16779 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16780 _lt_linker_boilerplate=`cat conftest.err`
16781 $RM -r conftest*
16782
16783
16784 ## CAVEAT EMPTOR:
16785 ## There is no encapsulation within the following macros, do not change
16786 ## the running order or otherwise move them around unless you know exactly
16787 ## what you are doing...
16788 if test -n "$compiler"; then
16789
16790 lt_prog_compiler_no_builtin_flag=
16791
16792 if test "$GCC" = yes; then
16793   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16794
16795   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16796 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16797 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   lt_cv_prog_compiler_rtti_exceptions=no
16801    ac_outfile=conftest.$ac_objext
16802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16803    lt_compiler_flag="-fno-rtti -fno-exceptions"
16804    # Insert the option either (1) after the last *FLAGS variable, or
16805    # (2) before a word containing "conftest.", or (3) at the end.
16806    # Note that $ac_compile itself does not contain backslashes and begins
16807    # with a dollar sign (not a hyphen), so the echo should work correctly.
16808    # The option is referenced via a variable to avoid confusing sed.
16809    lt_compile=`echo "$ac_compile" | $SED \
16810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16812    -e 's:$: $lt_compiler_flag:'`
16813    (eval echo "\"\$as_me:16813: $lt_compile\"" >&5)
16814    (eval "$lt_compile" 2>conftest.err)
16815    ac_status=$?
16816    cat conftest.err >&5
16817    echo "$as_me:16817: \$? = $ac_status" >&5
16818    if (exit $ac_status) && test -s "$ac_outfile"; then
16819      # The compiler can only warn and ignore the option if not recognized
16820      # So say no if there are warnings other than the usual output.
16821      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16822      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16823      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16824        lt_cv_prog_compiler_rtti_exceptions=yes
16825      fi
16826    fi
16827    $RM conftest*
16828
16829 fi
16830 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16831 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16832
16833 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16834     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16835 else
16836     :
16837 fi
16838
16839 fi
16840
16841
16842
16843
16844
16845
16846   lt_prog_compiler_wl=
16847 lt_prog_compiler_pic=
16848 lt_prog_compiler_static=
16849
16850 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16851 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16852
16853   if test "$GCC" = yes; then
16854     lt_prog_compiler_wl='-Wl,'
16855     lt_prog_compiler_static='-static'
16856
16857     case $host_os in
16858       aix*)
16859       # All AIX code is PIC.
16860       if test "$host_cpu" = ia64; then
16861         # AIX 5 now supports IA64 processor
16862         lt_prog_compiler_static='-Bstatic'
16863       fi
16864       ;;
16865
16866     amigaos*)
16867       case $host_cpu in
16868       powerpc)
16869             # see comment about AmigaOS4 .so support
16870             lt_prog_compiler_pic='-fPIC'
16871         ;;
16872       m68k)
16873             # FIXME: we need at least 68020 code to build shared libraries, but
16874             # adding the `-m68020' flag to GCC prevents building anything better,
16875             # like `-m68040'.
16876             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16877         ;;
16878       esac
16879       ;;
16880
16881     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16882       # PIC is the default for these OSes.
16883       ;;
16884
16885     mingw* | cygwin* | pw32* | os2* | cegcc*)
16886       # This hack is so that the source file can tell whether it is being
16887       # built for inclusion in a dll (and should export symbols for example).
16888       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16889       # (--disable-auto-import) libraries
16890       lt_prog_compiler_pic='-DDLL_EXPORT'
16891       ;;
16892
16893     darwin* | rhapsody*)
16894       # PIC is the default on this platform
16895       # Common symbols not allowed in MH_DYLIB files
16896       lt_prog_compiler_pic='-fno-common'
16897       ;;
16898
16899     hpux*)
16900       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16901       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16902       # sets the default TLS model and affects inlining.
16903       case $host_cpu in
16904       hppa*64*)
16905         # +Z the default
16906         ;;
16907       *)
16908         lt_prog_compiler_pic='-fPIC'
16909         ;;
16910       esac
16911       ;;
16912
16913     interix[3-9]*)
16914       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16915       # Instead, we relocate shared libraries at runtime.
16916       ;;
16917
16918     msdosdjgpp*)
16919       # Just because we use GCC doesn't mean we suddenly get shared libraries
16920       # on systems that don't support them.
16921       lt_prog_compiler_can_build_shared=no
16922       enable_shared=no
16923       ;;
16924
16925     *nto* | *qnx*)
16926       # QNX uses GNU C++, but need to define -shared option too, otherwise
16927       # it will coredump.
16928       lt_prog_compiler_pic='-fPIC -shared'
16929       ;;
16930
16931     sysv4*MP*)
16932       if test -d /usr/nec; then
16933         lt_prog_compiler_pic=-Kconform_pic
16934       fi
16935       ;;
16936
16937     *)
16938       lt_prog_compiler_pic='-fPIC'
16939       ;;
16940     esac
16941   else
16942     # PORTME Check for flag to pass linker flags through the system compiler.
16943     case $host_os in
16944     aix*)
16945       lt_prog_compiler_wl='-Wl,'
16946       if test "$host_cpu" = ia64; then
16947         # AIX 5 now supports IA64 processor
16948         lt_prog_compiler_static='-Bstatic'
16949       else
16950         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16951       fi
16952       ;;
16953
16954     mingw* | cygwin* | pw32* | os2* | cegcc*)
16955       # This hack is so that the source file can tell whether it is being
16956       # built for inclusion in a dll (and should export symbols for example).
16957       lt_prog_compiler_pic='-DDLL_EXPORT'
16958       ;;
16959
16960     hpux9* | hpux10* | hpux11*)
16961       lt_prog_compiler_wl='-Wl,'
16962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16963       # not for PA HP-UX.
16964       case $host_cpu in
16965       hppa*64*|ia64*)
16966         # +Z the default
16967         ;;
16968       *)
16969         lt_prog_compiler_pic='+Z'
16970         ;;
16971       esac
16972       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16973       lt_prog_compiler_static='${wl}-a ${wl}archive'
16974       ;;
16975
16976     irix5* | irix6* | nonstopux*)
16977       lt_prog_compiler_wl='-Wl,'
16978       # PIC (with -KPIC) is the default.
16979       lt_prog_compiler_static='-non_shared'
16980       ;;
16981
16982     linux* | k*bsd*-gnu | kopensolaris*-gnu)
16983       case $cc_basename in
16984       # old Intel for x86_64 which still supported -KPIC.
16985       ecc*)
16986         lt_prog_compiler_wl='-Wl,'
16987         lt_prog_compiler_pic='-KPIC'
16988         lt_prog_compiler_static='-static'
16989         ;;
16990       # icc used to be incompatible with GCC.
16991       # ICC 10 doesn't accept -KPIC any more.
16992       icc* | ifort*)
16993         lt_prog_compiler_wl='-Wl,'
16994         lt_prog_compiler_pic='-fPIC'
16995         lt_prog_compiler_static='-static'
16996         ;;
16997       # Lahey Fortran 8.1.
16998       lf95*)
16999         lt_prog_compiler_wl='-Wl,'
17000         lt_prog_compiler_pic='--shared'
17001         lt_prog_compiler_static='--static'
17002         ;;
17003       pgcc* | pgf77* | pgf90* | pgf95*)
17004         # Portland Group compilers (*not* the Pentium gcc compiler,
17005         # which looks to be a dead project)
17006         lt_prog_compiler_wl='-Wl,'
17007         lt_prog_compiler_pic='-fpic'
17008         lt_prog_compiler_static='-Bstatic'
17009         ;;
17010       ccc*)
17011         lt_prog_compiler_wl='-Wl,'
17012         # All Alpha code is PIC.
17013         lt_prog_compiler_static='-non_shared'
17014         ;;
17015       xl*)
17016         # IBM XL C 8.0/Fortran 10.1 on PPC
17017         lt_prog_compiler_wl='-Wl,'
17018         lt_prog_compiler_pic='-qpic'
17019         lt_prog_compiler_static='-qstaticlink'
17020         ;;
17021       *)
17022         case `$CC -V 2>&1 | sed 5q` in
17023         *Sun\ C*)
17024           # Sun C 5.9
17025           lt_prog_compiler_pic='-KPIC'
17026           lt_prog_compiler_static='-Bstatic'
17027           lt_prog_compiler_wl='-Wl,'
17028           ;;
17029         *Sun\ F*)
17030           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17031           lt_prog_compiler_pic='-KPIC'
17032           lt_prog_compiler_static='-Bstatic'
17033           lt_prog_compiler_wl=''
17034           ;;
17035         esac
17036         ;;
17037       esac
17038       ;;
17039
17040     newsos6)
17041       lt_prog_compiler_pic='-KPIC'
17042       lt_prog_compiler_static='-Bstatic'
17043       ;;
17044
17045     *nto* | *qnx*)
17046       # QNX uses GNU C++, but need to define -shared option too, otherwise
17047       # it will coredump.
17048       lt_prog_compiler_pic='-fPIC -shared'
17049       ;;
17050
17051     osf3* | osf4* | osf5*)
17052       lt_prog_compiler_wl='-Wl,'
17053       # All OSF/1 code is PIC.
17054       lt_prog_compiler_static='-non_shared'
17055       ;;
17056
17057     rdos*)
17058       lt_prog_compiler_static='-non_shared'
17059       ;;
17060
17061     solaris*)
17062       lt_prog_compiler_pic='-KPIC'
17063       lt_prog_compiler_static='-Bstatic'
17064       case $cc_basename in
17065       f77* | f90* | f95*)
17066         lt_prog_compiler_wl='-Qoption ld ';;
17067       *)
17068         lt_prog_compiler_wl='-Wl,';;
17069       esac
17070       ;;
17071
17072     sunos4*)
17073       lt_prog_compiler_wl='-Qoption ld '
17074       lt_prog_compiler_pic='-PIC'
17075       lt_prog_compiler_static='-Bstatic'
17076       ;;
17077
17078     sysv4 | sysv4.2uw2* | sysv4.3*)
17079       lt_prog_compiler_wl='-Wl,'
17080       lt_prog_compiler_pic='-KPIC'
17081       lt_prog_compiler_static='-Bstatic'
17082       ;;
17083
17084     sysv4*MP*)
17085       if test -d /usr/nec ;then
17086         lt_prog_compiler_pic='-Kconform_pic'
17087         lt_prog_compiler_static='-Bstatic'
17088       fi
17089       ;;
17090
17091     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17092       lt_prog_compiler_wl='-Wl,'
17093       lt_prog_compiler_pic='-KPIC'
17094       lt_prog_compiler_static='-Bstatic'
17095       ;;
17096
17097     unicos*)
17098       lt_prog_compiler_wl='-Wl,'
17099       lt_prog_compiler_can_build_shared=no
17100       ;;
17101
17102     uts4*)
17103       lt_prog_compiler_pic='-pic'
17104       lt_prog_compiler_static='-Bstatic'
17105       ;;
17106
17107     *)
17108       lt_prog_compiler_can_build_shared=no
17109       ;;
17110     esac
17111   fi
17112
17113 case $host_os in
17114   # For platforms which do not support PIC, -DPIC is meaningless:
17115   *djgpp*)
17116     lt_prog_compiler_pic=
17117     ;;
17118   *)
17119     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17120     ;;
17121 esac
17122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17123 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17124
17125
17126
17127
17128
17129
17130 #
17131 # Check to make sure the PIC flag actually works.
17132 #
17133 if test -n "$lt_prog_compiler_pic"; then
17134   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17136 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139   lt_cv_prog_compiler_pic_works=no
17140    ac_outfile=conftest.$ac_objext
17141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17142    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17143    # Insert the option either (1) after the last *FLAGS variable, or
17144    # (2) before a word containing "conftest.", or (3) at the end.
17145    # Note that $ac_compile itself does not contain backslashes and begins
17146    # with a dollar sign (not a hyphen), so the echo should work correctly.
17147    # The option is referenced via a variable to avoid confusing sed.
17148    lt_compile=`echo "$ac_compile" | $SED \
17149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17151    -e 's:$: $lt_compiler_flag:'`
17152    (eval echo "\"\$as_me:17152: $lt_compile\"" >&5)
17153    (eval "$lt_compile" 2>conftest.err)
17154    ac_status=$?
17155    cat conftest.err >&5
17156    echo "$as_me:17156: \$? = $ac_status" >&5
17157    if (exit $ac_status) && test -s "$ac_outfile"; then
17158      # The compiler can only warn and ignore the option if not recognized
17159      # So say no if there are warnings other than the usual output.
17160      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17163        lt_cv_prog_compiler_pic_works=yes
17164      fi
17165    fi
17166    $RM conftest*
17167
17168 fi
17169 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17170 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17171
17172 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17173     case $lt_prog_compiler_pic in
17174      "" | " "*) ;;
17175      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17176      esac
17177 else
17178     lt_prog_compiler_pic=
17179      lt_prog_compiler_can_build_shared=no
17180 fi
17181
17182 fi
17183
17184
17185
17186
17187
17188
17189 #
17190 # Check to make sure the static flag actually works.
17191 #
17192 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17193 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17194 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17195 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   lt_cv_prog_compiler_static_works=no
17199    save_LDFLAGS="$LDFLAGS"
17200    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17201    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17202    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17203      # The linker can only warn and ignore the option if not recognized
17204      # So say no if there are warnings
17205      if test -s conftest.err; then
17206        # Append any errors to the config.log.
17207        cat conftest.err 1>&5
17208        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17209        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210        if diff conftest.exp conftest.er2 >/dev/null; then
17211          lt_cv_prog_compiler_static_works=yes
17212        fi
17213      else
17214        lt_cv_prog_compiler_static_works=yes
17215      fi
17216    fi
17217    $RM -r conftest*
17218    LDFLAGS="$save_LDFLAGS"
17219
17220 fi
17221 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17222 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17223
17224 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17225     :
17226 else
17227     lt_prog_compiler_static=
17228 fi
17229
17230
17231
17232
17233
17234
17235
17236   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17237 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17238 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   lt_cv_prog_compiler_c_o=no
17242    $RM -r conftest 2>/dev/null
17243    mkdir conftest
17244    cd conftest
17245    mkdir out
17246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17247
17248    lt_compiler_flag="-o out/conftest2.$ac_objext"
17249    # Insert the option either (1) after the last *FLAGS variable, or
17250    # (2) before a word containing "conftest.", or (3) at the end.
17251    # Note that $ac_compile itself does not contain backslashes and begins
17252    # with a dollar sign (not a hyphen), so the echo should work correctly.
17253    lt_compile=`echo "$ac_compile" | $SED \
17254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17256    -e 's:$: $lt_compiler_flag:'`
17257    (eval echo "\"\$as_me:17257: $lt_compile\"" >&5)
17258    (eval "$lt_compile" 2>out/conftest.err)
17259    ac_status=$?
17260    cat out/conftest.err >&5
17261    echo "$as_me:17261: \$? = $ac_status" >&5
17262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17263    then
17264      # The compiler can only warn and ignore the option if not recognized
17265      # So say no if there are warnings
17266      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17269        lt_cv_prog_compiler_c_o=yes
17270      fi
17271    fi
17272    chmod u+w . 2>&5
17273    $RM conftest*
17274    # SGI C++ compiler will create directory out/ii_files/ for
17275    # template instantiation
17276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17277    $RM out/* && rmdir out
17278    cd ..
17279    $RM -r conftest
17280    $RM conftest*
17281
17282 fi
17283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17285
17286
17287
17288
17289
17290
17291   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17293 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   lt_cv_prog_compiler_c_o=no
17297    $RM -r conftest 2>/dev/null
17298    mkdir conftest
17299    cd conftest
17300    mkdir out
17301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17302
17303    lt_compiler_flag="-o out/conftest2.$ac_objext"
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    lt_compile=`echo "$ac_compile" | $SED \
17309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17311    -e 's:$: $lt_compiler_flag:'`
17312    (eval echo "\"\$as_me:17312: $lt_compile\"" >&5)
17313    (eval "$lt_compile" 2>out/conftest.err)
17314    ac_status=$?
17315    cat out/conftest.err >&5
17316    echo "$as_me:17316: \$? = $ac_status" >&5
17317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17318    then
17319      # The compiler can only warn and ignore the option if not recognized
17320      # So say no if there are warnings
17321      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17322      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17323      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17324        lt_cv_prog_compiler_c_o=yes
17325      fi
17326    fi
17327    chmod u+w . 2>&5
17328    $RM conftest*
17329    # SGI C++ compiler will create directory out/ii_files/ for
17330    # template instantiation
17331    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17332    $RM out/* && rmdir out
17333    cd ..
17334    $RM -r conftest
17335    $RM conftest*
17336
17337 fi
17338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17339 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17340
17341
17342
17343
17344 hard_links="nottested"
17345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17346   # do not overwrite the value of need_locks provided by the user
17347   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17349   hard_links=yes
17350   $RM conftest*
17351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17352   touch conftest.a
17353   ln conftest.a conftest.b 2>&5 || hard_links=no
17354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17355   echo "$as_me:$LINENO: result: $hard_links" >&5
17356 echo "${ECHO_T}$hard_links" >&6
17357   if test "$hard_links" = no; then
17358     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17360     need_locks=warn
17361   fi
17362 else
17363   need_locks=no
17364 fi
17365
17366
17367
17368
17369
17370
17371   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17373
17374   runpath_var=
17375   allow_undefined_flag=
17376   always_export_symbols=no
17377   archive_cmds=
17378   archive_expsym_cmds=
17379   compiler_needs_object=no
17380   enable_shared_with_static_runtimes=no
17381   export_dynamic_flag_spec=
17382   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17383   hardcode_automatic=no
17384   hardcode_direct=no
17385   hardcode_direct_absolute=no
17386   hardcode_libdir_flag_spec=
17387   hardcode_libdir_flag_spec_ld=
17388   hardcode_libdir_separator=
17389   hardcode_minus_L=no
17390   hardcode_shlibpath_var=unsupported
17391   inherit_rpath=no
17392   link_all_deplibs=unknown
17393   module_cmds=
17394   module_expsym_cmds=
17395   old_archive_from_new_cmds=
17396   old_archive_from_expsyms_cmds=
17397   thread_safe_flag_spec=
17398   whole_archive_flag_spec=
17399   # include_expsyms should be a list of space-separated symbols to be *always*
17400   # included in the symbol list
17401   include_expsyms=
17402   # exclude_expsyms can be an extended regexp of symbols to exclude
17403   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17404   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17405   # as well as any symbol that contains `d'.
17406   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17407   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17408   # platforms (ab)use it in PIC code, but their linkers get confused if
17409   # the symbol is explicitly referenced.  Since portable code cannot
17410   # rely on this symbol name, it's probably fine to never include it in
17411   # preloaded symbol tables.
17412   # Exclude shared library initialization/finalization symbols.
17413   extract_expsyms_cmds=
17414
17415   case $host_os in
17416   cygwin* | mingw* | pw32* | cegcc*)
17417     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17418     # When not using gcc, we currently assume that we are using
17419     # Microsoft Visual C++.
17420     if test "$GCC" != yes; then
17421       with_gnu_ld=no
17422     fi
17423     ;;
17424   interix*)
17425     # we just hope/assume this is gcc and not c89 (= MSVC++)
17426     with_gnu_ld=yes
17427     ;;
17428   openbsd*)
17429     with_gnu_ld=no
17430     ;;
17431   esac
17432
17433   ld_shlibs=yes
17434   if test "$with_gnu_ld" = yes; then
17435     # If archive_cmds runs LD, not CC, wlarc should be empty
17436     wlarc='${wl}'
17437
17438     # Set some defaults for GNU ld with shared library support. These
17439     # are reset later if shared libraries are not supported. Putting them
17440     # here allows them to be overridden if necessary.
17441     runpath_var=LD_RUN_PATH
17442     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17443     export_dynamic_flag_spec='${wl}--export-dynamic'
17444     # ancient GNU ld didn't support --whole-archive et. al.
17445     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17446       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17447     else
17448       whole_archive_flag_spec=
17449     fi
17450     supports_anon_versioning=no
17451     case `$LD -v 2>&1` in
17452       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17453       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17454       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17455       *\ 2.11.*) ;; # other 2.11 versions
17456       *) supports_anon_versioning=yes ;;
17457     esac
17458
17459     # See if GNU ld supports shared libraries.
17460     case $host_os in
17461     aix[3-9]*)
17462       # On AIX/PPC, the GNU linker is very broken
17463       if test "$host_cpu" != ia64; then
17464         ld_shlibs=no
17465         cat <<_LT_EOF 1>&2
17466
17467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17468 *** to be unable to reliably create shared libraries on AIX.
17469 *** Therefore, libtool is disabling shared libraries support.  If you
17470 *** really care for shared libraries, you may want to modify your PATH
17471 *** so that a non-GNU linker is found, and then restart.
17472
17473 _LT_EOF
17474       fi
17475       ;;
17476
17477     amigaos*)
17478       case $host_cpu in
17479       powerpc)
17480             # see comment about AmigaOS4 .so support
17481             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17482             archive_expsym_cmds=''
17483         ;;
17484       m68k)
17485             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)'
17486             hardcode_libdir_flag_spec='-L$libdir'
17487             hardcode_minus_L=yes
17488         ;;
17489       esac
17490       ;;
17491
17492     beos*)
17493       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17494         allow_undefined_flag=unsupported
17495         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17496         # support --undefined.  This deserves some investigation.  FIXME
17497         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17498       else
17499         ld_shlibs=no
17500       fi
17501       ;;
17502
17503     cygwin* | mingw* | pw32* | cegcc*)
17504       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17505       # as there is no search path for DLLs.
17506       hardcode_libdir_flag_spec='-L$libdir'
17507       allow_undefined_flag=unsupported
17508       always_export_symbols=no
17509       enable_shared_with_static_runtimes=yes
17510       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17511
17512       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17513         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17514         # If the export-symbols file already is a .def file (1st line
17515         # is EXPORTS), use it as is; otherwise, prepend...
17516         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17517           cp $export_symbols $output_objdir/$soname.def;
17518         else
17519           echo EXPORTS > $output_objdir/$soname.def;
17520           cat $export_symbols >> $output_objdir/$soname.def;
17521         fi~
17522         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17523       else
17524         ld_shlibs=no
17525       fi
17526       ;;
17527
17528     interix[3-9]*)
17529       hardcode_direct=no
17530       hardcode_shlibpath_var=no
17531       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17532       export_dynamic_flag_spec='${wl}-E'
17533       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17534       # Instead, shared libraries are loaded at an image base (0x10000000 by
17535       # default) and relocated if they conflict, which is a slow very memory
17536       # consuming and fragmenting process.  To avoid this, we pick a random,
17537       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17538       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17539       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17540       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'
17541       ;;
17542
17543     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17544       tmp_diet=no
17545       if test "$host_os" = linux-dietlibc; then
17546         case $cc_basename in
17547           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17548         esac
17549       fi
17550       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17551          && test "$tmp_diet" = no
17552       then
17553         tmp_addflag=
17554         tmp_sharedflag='-shared'
17555         case $cc_basename,$host_cpu in
17556         pgcc*)                          # Portland Group C compiler
17557           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'
17558           tmp_addflag=' $pic_flag'
17559           ;;
17560         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17561           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'
17562           tmp_addflag=' $pic_flag -Mnomain' ;;
17563         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17564           tmp_addflag=' -i_dynamic' ;;
17565         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17566           tmp_addflag=' -i_dynamic -nofor_main' ;;
17567         ifc* | ifort*)                  # Intel Fortran compiler
17568           tmp_addflag=' -nofor_main' ;;
17569         lf95*)                          # Lahey Fortran 8.1
17570           whole_archive_flag_spec=
17571           tmp_sharedflag='--shared' ;;
17572         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17573           tmp_sharedflag='-qmkshrobj'
17574           tmp_addflag= ;;
17575         esac
17576         case `$CC -V 2>&1 | sed 5q` in
17577         *Sun\ C*)                       # Sun C 5.9
17578           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'
17579           compiler_needs_object=yes
17580           tmp_sharedflag='-G' ;;
17581         *Sun\ F*)                       # Sun Fortran 8.3
17582           tmp_sharedflag='-G' ;;
17583         esac
17584         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585
17586         if test "x$supports_anon_versioning" = xyes; then
17587           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17588             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17589             echo "local: *; };" >> $output_objdir/$libname.ver~
17590             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17591         fi
17592
17593         case $cc_basename in
17594         xlf*)
17595           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17596           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17597           hardcode_libdir_flag_spec=
17598           hardcode_libdir_flag_spec_ld='-rpath $libdir'
17599           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17600           if test "x$supports_anon_versioning" = xyes; then
17601             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17602               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17603               echo "local: *; };" >> $output_objdir/$libname.ver~
17604               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17605           fi
17606           ;;
17607         esac
17608       else
17609         ld_shlibs=no
17610       fi
17611       ;;
17612
17613     netbsd*)
17614       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17615         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17616         wlarc=
17617       else
17618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17619         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17620       fi
17621       ;;
17622
17623     solaris*)
17624       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17625         ld_shlibs=no
17626         cat <<_LT_EOF 1>&2
17627
17628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17629 *** create shared libraries on Solaris systems.  Therefore, libtool
17630 *** is disabling shared libraries support.  We urge you to upgrade GNU
17631 *** binutils to release 2.9.1 or newer.  Another option is to modify
17632 *** your PATH or compiler configuration so that the native linker is
17633 *** used, and then restart.
17634
17635 _LT_EOF
17636       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17637         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17638         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17639       else
17640         ld_shlibs=no
17641       fi
17642       ;;
17643
17644     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17645       case `$LD -v 2>&1` in
17646         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17647         ld_shlibs=no
17648         cat <<_LT_EOF 1>&2
17649
17650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17651 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17652 *** is disabling shared libraries support.  We urge you to upgrade GNU
17653 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17654 *** your PATH or compiler configuration so that the native linker is
17655 *** used, and then restart.
17656
17657 _LT_EOF
17658         ;;
17659         *)
17660           # For security reasons, it is highly recommended that you always
17661           # use absolute paths for naming shared libraries, and exclude the
17662           # DT_RUNPATH tag from executables and libraries.  But doing so
17663           # requires that you compile everything twice, which is a pain.
17664           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17665             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17666             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17668           else
17669             ld_shlibs=no
17670           fi
17671         ;;
17672       esac
17673       ;;
17674
17675     sunos4*)
17676       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17677       wlarc=
17678       hardcode_direct=yes
17679       hardcode_shlibpath_var=no
17680       ;;
17681
17682     *)
17683       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17684         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17685         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17686       else
17687         ld_shlibs=no
17688       fi
17689       ;;
17690     esac
17691
17692     if test "$ld_shlibs" = no; then
17693       runpath_var=
17694       hardcode_libdir_flag_spec=
17695       export_dynamic_flag_spec=
17696       whole_archive_flag_spec=
17697     fi
17698   else
17699     # PORTME fill in a description of your system's linker (not GNU ld)
17700     case $host_os in
17701     aix3*)
17702       allow_undefined_flag=unsupported
17703       always_export_symbols=yes
17704       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'
17705       # Note: this linker hardcodes the directories in LIBPATH if there
17706       # are no directories specified by -L.
17707       hardcode_minus_L=yes
17708       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17709         # Neither direct hardcoding nor static linking is supported with a
17710         # broken collect2.
17711         hardcode_direct=unsupported
17712       fi
17713       ;;
17714
17715     aix[4-9]*)
17716       if test "$host_cpu" = ia64; then
17717         # On IA64, the linker does run time linking by default, so we don't
17718         # have to do anything special.
17719         aix_use_runtimelinking=no
17720         exp_sym_flag='-Bexport'
17721         no_entry_flag=""
17722       else
17723         # If we're using GNU nm, then we don't want the "-C" option.
17724         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17725         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17726           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'
17727         else
17728           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'
17729         fi
17730         aix_use_runtimelinking=no
17731
17732         # Test if we are trying to use run time linking or normal
17733         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17734         # need to do runtime linking.
17735         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17736           for ld_flag in $LDFLAGS; do
17737           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17738             aix_use_runtimelinking=yes
17739             break
17740           fi
17741           done
17742           ;;
17743         esac
17744
17745         exp_sym_flag='-bexport'
17746         no_entry_flag='-bnoentry'
17747       fi
17748
17749       # When large executables or shared objects are built, AIX ld can
17750       # have problems creating the table of contents.  If linking a library
17751       # or program results in "error TOC overflow" add -mminimal-toc to
17752       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17753       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17754
17755       archive_cmds=''
17756       hardcode_direct=yes
17757       hardcode_direct_absolute=yes
17758       hardcode_libdir_separator=':'
17759       link_all_deplibs=yes
17760       file_list_spec='${wl}-f,'
17761
17762       if test "$GCC" = yes; then
17763         case $host_os in aix4.[012]|aix4.[012].*)
17764         # We only want to do this on AIX 4.2 and lower, the check
17765         # below for broken collect2 doesn't work under 4.3+
17766           collect2name=`${CC} -print-prog-name=collect2`
17767           if test -f "$collect2name" &&
17768            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17769           then
17770           # We have reworked collect2
17771           :
17772           else
17773           # We have old collect2
17774           hardcode_direct=unsupported
17775           # It fails to find uninstalled libraries when the uninstalled
17776           # path is not listed in the libpath.  Setting hardcode_minus_L
17777           # to unsupported forces relinking
17778           hardcode_minus_L=yes
17779           hardcode_libdir_flag_spec='-L$libdir'
17780           hardcode_libdir_separator=
17781           fi
17782           ;;
17783         esac
17784         shared_flag='-shared'
17785         if test "$aix_use_runtimelinking" = yes; then
17786           shared_flag="$shared_flag "'${wl}-G'
17787         fi
17788       else
17789         # not using gcc
17790         if test "$host_cpu" = ia64; then
17791         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17792         # chokes on -Wl,-G. The following line is correct:
17793           shared_flag='-G'
17794         else
17795           if test "$aix_use_runtimelinking" = yes; then
17796             shared_flag='${wl}-G'
17797           else
17798             shared_flag='${wl}-bM:SRE'
17799           fi
17800         fi
17801       fi
17802
17803       export_dynamic_flag_spec='${wl}-bexpall'
17804       # It seems that -bexpall does not export symbols beginning with
17805       # underscore (_), so it is better to generate a list of symbols to export.
17806       always_export_symbols=yes
17807       if test "$aix_use_runtimelinking" = yes; then
17808         # Warning - without using the other runtime loading flags (-brtl),
17809         # -berok will link without error, but may produce a broken library.
17810         allow_undefined_flag='-berok'
17811         # Determine the default libpath from the value encoded in an
17812         # empty executable.
17813         cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819
17820 int
17821 main ()
17822 {
17823
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830   (eval $ac_link) 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag"
17838                          || test ! -s conftest.err'
17839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840   (eval $ac_try) 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; } &&
17844          { ac_try='test -s conftest$ac_exeext'
17845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846   (eval $ac_try) 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; }; then
17850
17851 lt_aix_libpath_sed='
17852     /Import File Strings/,/^$/ {
17853         /^0/ {
17854             s/^0  *\(.*\)$/\1/
17855             p
17856         }
17857     }'
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862 fi
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 fi
17868 rm -f conftest.err conftest.$ac_objext \
17869       conftest$ac_exeext conftest.$ac_ext
17870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17871
17872         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17873         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"
17874       else
17875         if test "$host_cpu" = ia64; then
17876           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17877           allow_undefined_flag="-z nodefs"
17878           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"
17879         else
17880          # Determine the default libpath from the value encoded in an
17881          # empty executable.
17882          cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888
17889 int
17890 main ()
17891 {
17892
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899   (eval $ac_link) 2>conftest.er1
17900   ac_status=$?
17901   grep -v '^ *+' conftest.er1 >conftest.err
17902   rm -f conftest.er1
17903   cat conftest.err >&5
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } &&
17906          { ac_try='test -z "$ac_c_werror_flag"
17907                          || test ! -s conftest.err'
17908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909   (eval $ac_try) 2>&5
17910   ac_status=$?
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); }; } &&
17913          { ac_try='test -s conftest$ac_exeext'
17914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915   (eval $ac_try) 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; }; then
17919
17920 lt_aix_libpath_sed='
17921     /Import File Strings/,/^$/ {
17922         /^0/ {
17923             s/^0  *\(.*\)$/\1/
17924             p
17925         }
17926     }'
17927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17928 # Check for a 64-bit object if we didn't find anything.
17929 if test -z "$aix_libpath"; then
17930   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17931 fi
17932 else
17933   echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 fi
17937 rm -f conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17940
17941          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17942           # Warning - without using the other run time loading flags,
17943           # -berok will link without error, but may produce a broken library.
17944           no_undefined_flag=' ${wl}-bernotok'
17945           allow_undefined_flag=' ${wl}-berok'
17946           # Exported symbols can be pulled into shared objects from archives
17947           whole_archive_flag_spec='$convenience'
17948           archive_cmds_need_lc=yes
17949           # This is similar to how AIX traditionally builds its shared libraries.
17950           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'
17951         fi
17952       fi
17953       ;;
17954
17955     amigaos*)
17956       case $host_cpu in
17957       powerpc)
17958             # see comment about AmigaOS4 .so support
17959             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17960             archive_expsym_cmds=''
17961         ;;
17962       m68k)
17963             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)'
17964             hardcode_libdir_flag_spec='-L$libdir'
17965             hardcode_minus_L=yes
17966         ;;
17967       esac
17968       ;;
17969
17970     bsdi[45]*)
17971       export_dynamic_flag_spec=-rdynamic
17972       ;;
17973
17974     cygwin* | mingw* | pw32* | cegcc*)
17975       # When not using gcc, we currently assume that we are using
17976       # Microsoft Visual C++.
17977       # hardcode_libdir_flag_spec is actually meaningless, as there is
17978       # no search path for DLLs.
17979       hardcode_libdir_flag_spec=' '
17980       allow_undefined_flag=unsupported
17981       # Tell ltmain to make .lib files, not .a files.
17982       libext=lib
17983       # Tell ltmain to make .dll files, not .so files.
17984       shrext_cmds=".dll"
17985       # FIXME: Setting linknames here is a bad hack.
17986       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17987       # The linker will automatically build a .lib file if we build a DLL.
17988       old_archive_from_new_cmds='true'
17989       # FIXME: Should let the user specify the lib program.
17990       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17991       fix_srcfile_path='`cygpath -w "$srcfile"`'
17992       enable_shared_with_static_runtimes=yes
17993       ;;
17994
17995     darwin* | rhapsody*)
17996
17997
17998   archive_cmds_need_lc=no
17999   hardcode_direct=no
18000   hardcode_automatic=yes
18001   hardcode_shlibpath_var=unsupported
18002   whole_archive_flag_spec=''
18003   link_all_deplibs=yes
18004   allow_undefined_flag="$_lt_dar_allow_undefined"
18005   case $cc_basename in
18006      ifort*) _lt_dar_can_shared=yes ;;
18007      *) _lt_dar_can_shared=$GCC ;;
18008   esac
18009   if test "$_lt_dar_can_shared" = "yes"; then
18010     output_verbose_link_cmd=echo
18011     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18012     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18013     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}"
18014     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}"
18015
18016   else
18017   ld_shlibs=no
18018   fi
18019
18020       ;;
18021
18022     dgux*)
18023       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18024       hardcode_libdir_flag_spec='-L$libdir'
18025       hardcode_shlibpath_var=no
18026       ;;
18027
18028     freebsd1*)
18029       ld_shlibs=no
18030       ;;
18031
18032     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18033     # support.  Future versions do this automatically, but an explicit c++rt0.o
18034     # does not break anything, and helps significantly (at the cost of a little
18035     # extra space).
18036     freebsd2.2*)
18037       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18038       hardcode_libdir_flag_spec='-R$libdir'
18039       hardcode_direct=yes
18040       hardcode_shlibpath_var=no
18041       ;;
18042
18043     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18044     freebsd2*)
18045       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18046       hardcode_direct=yes
18047       hardcode_minus_L=yes
18048       hardcode_shlibpath_var=no
18049       ;;
18050
18051     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18052     freebsd* | dragonfly*)
18053       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18054       hardcode_libdir_flag_spec='-R$libdir'
18055       hardcode_direct=yes
18056       hardcode_shlibpath_var=no
18057       ;;
18058
18059     hpux9*)
18060       if test "$GCC" = yes; then
18061         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'
18062       else
18063         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'
18064       fi
18065       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18066       hardcode_libdir_separator=:
18067       hardcode_direct=yes
18068
18069       # hardcode_minus_L: Not really in the search PATH,
18070       # but as the default location of the library.
18071       hardcode_minus_L=yes
18072       export_dynamic_flag_spec='${wl}-E'
18073       ;;
18074
18075     hpux10*)
18076       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18077         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18078       else
18079         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18080       fi
18081       if test "$with_gnu_ld" = no; then
18082         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18083         hardcode_libdir_flag_spec_ld='+b $libdir'
18084         hardcode_libdir_separator=:
18085         hardcode_direct=yes
18086         hardcode_direct_absolute=yes
18087         export_dynamic_flag_spec='${wl}-E'
18088         # hardcode_minus_L: Not really in the search PATH,
18089         # but as the default location of the library.
18090         hardcode_minus_L=yes
18091       fi
18092       ;;
18093
18094     hpux11*)
18095       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18096         case $host_cpu in
18097         hppa*64*)
18098           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099           ;;
18100         ia64*)
18101           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18102           ;;
18103         *)
18104           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18105           ;;
18106         esac
18107       else
18108         case $host_cpu in
18109         hppa*64*)
18110           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18111           ;;
18112         ia64*)
18113           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18114           ;;
18115         *)
18116           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18117           ;;
18118         esac
18119       fi
18120       if test "$with_gnu_ld" = no; then
18121         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18122         hardcode_libdir_separator=:
18123
18124         case $host_cpu in
18125         hppa*64*|ia64*)
18126           hardcode_direct=no
18127           hardcode_shlibpath_var=no
18128           ;;
18129         *)
18130           hardcode_direct=yes
18131           hardcode_direct_absolute=yes
18132           export_dynamic_flag_spec='${wl}-E'
18133
18134           # hardcode_minus_L: Not really in the search PATH,
18135           # but as the default location of the library.
18136           hardcode_minus_L=yes
18137           ;;
18138         esac
18139       fi
18140       ;;
18141
18142     irix5* | irix6* | nonstopux*)
18143       if test "$GCC" = yes; then
18144         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'
18145         # Try to use the -exported_symbol ld option, if it does not
18146         # work, assume that -exports_file does not work either and
18147         # implicitly export all symbols.
18148         save_LDFLAGS="$LDFLAGS"
18149         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18150         cat >conftest.$ac_ext <<_ACEOF
18151 int foo(void) {}
18152 _ACEOF
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18155   (eval $ac_link) 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } &&
18162          { ac_try='test -z "$ac_c_werror_flag"
18163                          || test ! -s conftest.err'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest$ac_exeext'
18170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171   (eval $ac_try) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   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'
18176
18177 else
18178   echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181 fi
18182 rm -f conftest.err conftest.$ac_objext \
18183       conftest$ac_exeext conftest.$ac_ext
18184         LDFLAGS="$save_LDFLAGS"
18185       else
18186         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'
18187         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'
18188       fi
18189       archive_cmds_need_lc='no'
18190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18191       hardcode_libdir_separator=:
18192       inherit_rpath=yes
18193       link_all_deplibs=yes
18194       ;;
18195
18196     netbsd*)
18197       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18198         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18199       else
18200         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18201       fi
18202       hardcode_libdir_flag_spec='-R$libdir'
18203       hardcode_direct=yes
18204       hardcode_shlibpath_var=no
18205       ;;
18206
18207     newsos6)
18208       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18209       hardcode_direct=yes
18210       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18211       hardcode_libdir_separator=:
18212       hardcode_shlibpath_var=no
18213       ;;
18214
18215     *nto* | *qnx*)
18216       ;;
18217
18218     openbsd*)
18219       if test -f /usr/libexec/ld.so; then
18220         hardcode_direct=yes
18221         hardcode_shlibpath_var=no
18222         hardcode_direct_absolute=yes
18223         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18224           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18225           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18226           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18227           export_dynamic_flag_spec='${wl}-E'
18228         else
18229           case $host_os in
18230            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18231              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18232              hardcode_libdir_flag_spec='-R$libdir'
18233              ;;
18234            *)
18235              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18236              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18237              ;;
18238           esac
18239         fi
18240       else
18241         ld_shlibs=no
18242       fi
18243       ;;
18244
18245     os2*)
18246       hardcode_libdir_flag_spec='-L$libdir'
18247       hardcode_minus_L=yes
18248       allow_undefined_flag=unsupported
18249       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'
18250       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18251       ;;
18252
18253     osf3*)
18254       if test "$GCC" = yes; then
18255         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18256         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'
18257       else
18258         allow_undefined_flag=' -expect_unresolved \*'
18259         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'
18260       fi
18261       archive_cmds_need_lc='no'
18262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18263       hardcode_libdir_separator=:
18264       ;;
18265
18266     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18267       if test "$GCC" = yes; then
18268         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18269         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'
18270         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18271       else
18272         allow_undefined_flag=' -expect_unresolved \*'
18273         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'
18274         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~
18275         $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'
18276
18277         # Both c and cxx compiler support -rpath directly
18278         hardcode_libdir_flag_spec='-rpath $libdir'
18279       fi
18280       archive_cmds_need_lc='no'
18281       hardcode_libdir_separator=:
18282       ;;
18283
18284     solaris*)
18285       no_undefined_flag=' -z defs'
18286       if test "$GCC" = yes; then
18287         wlarc='${wl}'
18288         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18290           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18291       else
18292         case `$CC -V 2>&1` in
18293         *"Compilers 5.0"*)
18294           wlarc=''
18295           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18296           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18297           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18298           ;;
18299         *)
18300           wlarc='${wl}'
18301           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18302           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18303           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18304           ;;
18305         esac
18306       fi
18307       hardcode_libdir_flag_spec='-R$libdir'
18308       hardcode_shlibpath_var=no
18309       case $host_os in
18310       solaris2.[0-5] | solaris2.[0-5].*) ;;
18311       *)
18312         # The compiler driver will combine and reorder linker options,
18313         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18314         # but is careful enough not to reorder.
18315         # Supported since Solaris 2.6 (maybe 2.5.1?)
18316         if test "$GCC" = yes; then
18317           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18318         else
18319           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18320         fi
18321         ;;
18322       esac
18323       link_all_deplibs=yes
18324       ;;
18325
18326     sunos4*)
18327       if test "x$host_vendor" = xsequent; then
18328         # Use $CC to link under sequent, because it throws in some extra .o
18329         # files that make .init and .fini sections work.
18330         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18331       else
18332         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18333       fi
18334       hardcode_libdir_flag_spec='-L$libdir'
18335       hardcode_direct=yes
18336       hardcode_minus_L=yes
18337       hardcode_shlibpath_var=no
18338       ;;
18339
18340     sysv4)
18341       case $host_vendor in
18342         sni)
18343           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344           hardcode_direct=yes # is this really true???
18345         ;;
18346         siemens)
18347           ## LD is ld it makes a PLAMLIB
18348           ## CC just makes a GrossModule.
18349           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18350           reload_cmds='$CC -r -o $output$reload_objs'
18351           hardcode_direct=no
18352         ;;
18353         motorola)
18354           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18356         ;;
18357       esac
18358       runpath_var='LD_RUN_PATH'
18359       hardcode_shlibpath_var=no
18360       ;;
18361
18362     sysv4.3*)
18363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18364       hardcode_shlibpath_var=no
18365       export_dynamic_flag_spec='-Bexport'
18366       ;;
18367
18368     sysv4*MP*)
18369       if test -d /usr/nec; then
18370         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371         hardcode_shlibpath_var=no
18372         runpath_var=LD_RUN_PATH
18373         hardcode_runpath_var=yes
18374         ld_shlibs=yes
18375       fi
18376       ;;
18377
18378     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18379       no_undefined_flag='${wl}-z,text'
18380       archive_cmds_need_lc=no
18381       hardcode_shlibpath_var=no
18382       runpath_var='LD_RUN_PATH'
18383
18384       if test "$GCC" = yes; then
18385         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18386         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18387       else
18388         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18389         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18390       fi
18391       ;;
18392
18393     sysv5* | sco3.2v5* | sco5v6*)
18394       # Note: We can NOT use -z defs as we might desire, because we do not
18395       # link with -lc, and that would cause any symbols used from libc to
18396       # always be unresolved, which means just about no library would
18397       # ever link correctly.  If we're not using GNU ld we use -z text
18398       # though, which does catch some bad symbols but isn't as heavy-handed
18399       # as -z defs.
18400       no_undefined_flag='${wl}-z,text'
18401       allow_undefined_flag='${wl}-z,nodefs'
18402       archive_cmds_need_lc=no
18403       hardcode_shlibpath_var=no
18404       hardcode_libdir_flag_spec='${wl}-R,$libdir'
18405       hardcode_libdir_separator=':'
18406       link_all_deplibs=yes
18407       export_dynamic_flag_spec='${wl}-Bexport'
18408       runpath_var='LD_RUN_PATH'
18409
18410       if test "$GCC" = yes; then
18411         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18412         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18413       else
18414         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18415         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18416       fi
18417       ;;
18418
18419     uts4*)
18420       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18421       hardcode_libdir_flag_spec='-L$libdir'
18422       hardcode_shlibpath_var=no
18423       ;;
18424
18425     *)
18426       ld_shlibs=no
18427       ;;
18428     esac
18429
18430     if test x$host_vendor = xsni; then
18431       case $host in
18432       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18433         export_dynamic_flag_spec='${wl}-Blargedynsym'
18434         ;;
18435       esac
18436     fi
18437   fi
18438
18439 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18440 echo "${ECHO_T}$ld_shlibs" >&6
18441 test "$ld_shlibs" = no && can_build_shared=no
18442
18443 with_gnu_ld=$with_gnu_ld
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459 #
18460 # Do we need to explicitly link libc?
18461 #
18462 case "x$archive_cmds_need_lc" in
18463 x|xyes)
18464   # Assume -lc should be added
18465   archive_cmds_need_lc=yes
18466
18467   if test "$enable_shared" = yes && test "$GCC" = yes; then
18468     case $archive_cmds in
18469     *'~'*)
18470       # FIXME: we may have to deal with multi-command sequences.
18471       ;;
18472     '$CC '*)
18473       # Test whether the compiler implicitly links with -lc since on some
18474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18475       # to ld, don't add -lc before -lgcc.
18476       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18478 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   $RM conftest*
18482         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18483
18484         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18485   (eval $ac_compile) 2>&5
18486   ac_status=$?
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } 2>conftest.err; then
18489           soname=conftest
18490           lib=conftest
18491           libobjs=conftest.$ac_objext
18492           deplibs=
18493           wl=$lt_prog_compiler_wl
18494           pic_flag=$lt_prog_compiler_pic
18495           compiler_flags=-v
18496           linker_flags=-v
18497           verstring=
18498           output_objdir=.
18499           libname=conftest
18500           lt_save_allow_undefined_flag=$allow_undefined_flag
18501           allow_undefined_flag=
18502           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18503   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }
18507           then
18508             lt_cv_archive_cmds_need_lc=no
18509           else
18510             lt_cv_archive_cmds_need_lc=yes
18511           fi
18512           allow_undefined_flag=$lt_save_allow_undefined_flag
18513         else
18514           cat conftest.err 1>&5
18515         fi
18516         $RM conftest*
18517
18518 fi
18519 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18520 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18521       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18522       ;;
18523     esac
18524   fi
18525   ;;
18526 esac
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18686
18687 if test "$GCC" = yes; then
18688   case $host_os in
18689     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18690     *) lt_awk_arg="/^libraries:/" ;;
18691   esac
18692   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18693   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18694     # if the path contains ";" then we assume it to be the separator
18695     # otherwise default to the standard path separator (i.e. ":") - it is
18696     # assumed that no part of a normal pathname contains ";" but that should
18697     # okay in the real world where ";" in dirpaths is itself problematic.
18698     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18699   else
18700     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18701   fi
18702   # Ok, now we have the path, separated by spaces, we can step through it
18703   # and add multilib dir if necessary.
18704   lt_tmp_lt_search_path_spec=
18705   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18706   for lt_sys_path in $lt_search_path_spec; do
18707     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18708       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18709     else
18710       test -d "$lt_sys_path" && \
18711         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18712     fi
18713   done
18714   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18715 BEGIN {RS=" "; FS="/|\n";} {
18716   lt_foo="";
18717   lt_count=0;
18718   for (lt_i = NF; lt_i > 0; lt_i--) {
18719     if ($lt_i != "" && $lt_i != ".") {
18720       if ($lt_i == "..") {
18721         lt_count++;
18722       } else {
18723         if (lt_count == 0) {
18724           lt_foo="/" $lt_i lt_foo;
18725         } else {
18726           lt_count--;
18727         }
18728       }
18729     }
18730   }
18731   if (lt_foo != "") { lt_freq[lt_foo]++; }
18732   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18733 }'`
18734   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18735 else
18736   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18737 fi
18738 library_names_spec=
18739 libname_spec='lib$name'
18740 soname_spec=
18741 shrext_cmds=".so"
18742 postinstall_cmds=
18743 postuninstall_cmds=
18744 finish_cmds=
18745 finish_eval=
18746 shlibpath_var=
18747 shlibpath_overrides_runpath=unknown
18748 version_type=none
18749 dynamic_linker="$host_os ld.so"
18750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18751 need_lib_prefix=unknown
18752 hardcode_into_libs=no
18753
18754 # when you set need_version to no, make sure it does not cause -set_version
18755 # flags to be left without arguments
18756 need_version=unknown
18757
18758 case $host_os in
18759 aix3*)
18760   version_type=linux
18761   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18762   shlibpath_var=LIBPATH
18763
18764   # AIX 3 has no versioning support, so we append a major version to the name.
18765   soname_spec='${libname}${release}${shared_ext}$major'
18766   ;;
18767
18768 aix[4-9]*)
18769   version_type=linux
18770   need_lib_prefix=no
18771   need_version=no
18772   hardcode_into_libs=yes
18773   if test "$host_cpu" = ia64; then
18774     # AIX 5 supports IA64
18775     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18776     shlibpath_var=LD_LIBRARY_PATH
18777   else
18778     # With GCC up to 2.95.x, collect2 would create an import file
18779     # for dependence libraries.  The import file would start with
18780     # the line `#! .'.  This would cause the generated library to
18781     # depend on `.', always an invalid library.  This was fixed in
18782     # development snapshots of GCC prior to 3.0.
18783     case $host_os in
18784       aix4 | aix4.[01] | aix4.[01].*)
18785       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18786            echo ' yes '
18787            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18788         :
18789       else
18790         can_build_shared=no
18791       fi
18792       ;;
18793     esac
18794     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18795     # soname into executable. Probably we can add versioning support to
18796     # collect2, so additional links can be useful in future.
18797     if test "$aix_use_runtimelinking" = yes; then
18798       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18799       # instead of lib<name>.a to let people know that these are not
18800       # typical AIX shared libraries.
18801       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802     else
18803       # We preserve .a as extension for shared libraries through AIX4.2
18804       # and later when we are not doing run time linking.
18805       library_names_spec='${libname}${release}.a $libname.a'
18806       soname_spec='${libname}${release}${shared_ext}$major'
18807     fi
18808     shlibpath_var=LIBPATH
18809   fi
18810   ;;
18811
18812 amigaos*)
18813   case $host_cpu in
18814   powerpc)
18815     # Since July 2007 AmigaOS4 officially supports .so libraries.
18816     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818     ;;
18819   m68k)
18820     library_names_spec='$libname.ixlibrary $libname.a'
18821     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18822     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'
18823     ;;
18824   esac
18825   ;;
18826
18827 beos*)
18828   library_names_spec='${libname}${shared_ext}'
18829   dynamic_linker="$host_os ld.so"
18830   shlibpath_var=LIBRARY_PATH
18831   ;;
18832
18833 bsdi[45]*)
18834   version_type=linux
18835   need_version=no
18836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837   soname_spec='${libname}${release}${shared_ext}$major'
18838   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18839   shlibpath_var=LD_LIBRARY_PATH
18840   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18841   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18842   # the default ld.so.conf also contains /usr/contrib/lib and
18843   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18844   # libtool to hard-code these into programs
18845   ;;
18846
18847 cygwin* | mingw* | pw32* | cegcc*)
18848   version_type=windows
18849   shrext_cmds=".dll"
18850   need_version=no
18851   need_lib_prefix=no
18852
18853   case $GCC,$host_os in
18854   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18855     library_names_spec='$libname.dll.a'
18856     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18857     postinstall_cmds='base_file=`basename \${file}`~
18858       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18859       dldir=$destdir/`dirname \$dlpath`~
18860       test -d \$dldir || mkdir -p \$dldir~
18861       $install_prog $dir/$dlname \$dldir/$dlname~
18862       chmod a+x \$dldir/$dlname~
18863       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18864         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18865       fi'
18866     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18867       dlpath=$dir/\$dldll~
18868        $RM \$dlpath'
18869     shlibpath_overrides_runpath=yes
18870
18871     case $host_os in
18872     cygwin*)
18873       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18874       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18875       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18876       ;;
18877     mingw* | cegcc*)
18878       # MinGW DLLs use traditional 'lib' prefix
18879       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18880       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18881       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18882         # It is most probably a Windows format PATH printed by
18883         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18884         # path with ; separators, and with drive letters. We can handle the
18885         # drive letters (cygwin fileutils understands them), so leave them,
18886         # especially as we might pass files found there to a mingw objdump,
18887         # which wouldn't understand a cygwinified path. Ahh.
18888         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18889       else
18890         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18891       fi
18892       ;;
18893     pw32*)
18894       # pw32 DLLs use 'pw' prefix rather than 'lib'
18895       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18896       ;;
18897     esac
18898     ;;
18899
18900   *)
18901     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18902     ;;
18903   esac
18904   dynamic_linker='Win32 ld.exe'
18905   # FIXME: first we should search . and the directory the executable is in
18906   shlibpath_var=PATH
18907   ;;
18908
18909 darwin* | rhapsody*)
18910   dynamic_linker="$host_os dyld"
18911   version_type=darwin
18912   need_lib_prefix=no
18913   need_version=no
18914   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18915   soname_spec='${libname}${release}${major}$shared_ext'
18916   shlibpath_overrides_runpath=yes
18917   shlibpath_var=DYLD_LIBRARY_PATH
18918   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18919
18920   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18921   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18922   ;;
18923
18924 dgux*)
18925   version_type=linux
18926   need_lib_prefix=no
18927   need_version=no
18928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18929   soname_spec='${libname}${release}${shared_ext}$major'
18930   shlibpath_var=LD_LIBRARY_PATH
18931   ;;
18932
18933 freebsd1*)
18934   dynamic_linker=no
18935   ;;
18936
18937 freebsd* | dragonfly*)
18938   # DragonFly does not have aout.  When/if they implement a new
18939   # versioning mechanism, adjust this.
18940   if test -x /usr/bin/objformat; then
18941     objformat=`/usr/bin/objformat`
18942   else
18943     case $host_os in
18944     freebsd[123]*) objformat=aout ;;
18945     *) objformat=elf ;;
18946     esac
18947   fi
18948   version_type=freebsd-$objformat
18949   case $version_type in
18950     freebsd-elf*)
18951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18952       need_version=no
18953       need_lib_prefix=no
18954       ;;
18955     freebsd-*)
18956       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18957       need_version=yes
18958       ;;
18959   esac
18960   shlibpath_var=LD_LIBRARY_PATH
18961   case $host_os in
18962   freebsd2*)
18963     shlibpath_overrides_runpath=yes
18964     ;;
18965   freebsd3.[01]* | freebsdelf3.[01]*)
18966     shlibpath_overrides_runpath=yes
18967     hardcode_into_libs=yes
18968     ;;
18969   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18970   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18971     shlibpath_overrides_runpath=no
18972     hardcode_into_libs=yes
18973     ;;
18974   *) # from 4.6 on, and DragonFly
18975     shlibpath_overrides_runpath=yes
18976     hardcode_into_libs=yes
18977     ;;
18978   esac
18979   ;;
18980
18981 gnu*)
18982   version_type=linux
18983   need_lib_prefix=no
18984   need_version=no
18985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18986   soname_spec='${libname}${release}${shared_ext}$major'
18987   shlibpath_var=LD_LIBRARY_PATH
18988   hardcode_into_libs=yes
18989   ;;
18990
18991 hpux9* | hpux10* | hpux11*)
18992   # Give a soname corresponding to the major version so that dld.sl refuses to
18993   # link against other versions.
18994   version_type=sunos
18995   need_lib_prefix=no
18996   need_version=no
18997   case $host_cpu in
18998   ia64*)
18999     shrext_cmds='.so'
19000     hardcode_into_libs=yes
19001     dynamic_linker="$host_os dld.so"
19002     shlibpath_var=LD_LIBRARY_PATH
19003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19005     soname_spec='${libname}${release}${shared_ext}$major'
19006     if test "X$HPUX_IA64_MODE" = X32; then
19007       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19008     else
19009       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19010     fi
19011     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19012     ;;
19013   hppa*64*)
19014     shrext_cmds='.sl'
19015     hardcode_into_libs=yes
19016     dynamic_linker="$host_os dld.sl"
19017     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19018     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19020     soname_spec='${libname}${release}${shared_ext}$major'
19021     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19022     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19023     ;;
19024   *)
19025     shrext_cmds='.sl'
19026     dynamic_linker="$host_os dld.sl"
19027     shlibpath_var=SHLIB_PATH
19028     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19030     soname_spec='${libname}${release}${shared_ext}$major'
19031     ;;
19032   esac
19033   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19034   postinstall_cmds='chmod 555 $lib'
19035   ;;
19036
19037 interix[3-9]*)
19038   version_type=linux
19039   need_lib_prefix=no
19040   need_version=no
19041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19042   soname_spec='${libname}${release}${shared_ext}$major'
19043   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19044   shlibpath_var=LD_LIBRARY_PATH
19045   shlibpath_overrides_runpath=no
19046   hardcode_into_libs=yes
19047   ;;
19048
19049 irix5* | irix6* | nonstopux*)
19050   case $host_os in
19051     nonstopux*) version_type=nonstopux ;;
19052     *)
19053         if test "$lt_cv_prog_gnu_ld" = yes; then
19054                 version_type=linux
19055         else
19056                 version_type=irix
19057         fi ;;
19058   esac
19059   need_lib_prefix=no
19060   need_version=no
19061   soname_spec='${libname}${release}${shared_ext}$major'
19062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19063   case $host_os in
19064   irix5* | nonstopux*)
19065     libsuff= shlibsuff=
19066     ;;
19067   *)
19068     case $LD in # libtool.m4 will add one of these switches to LD
19069     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19070       libsuff= shlibsuff= libmagic=32-bit;;
19071     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19072       libsuff=32 shlibsuff=N32 libmagic=N32;;
19073     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19074       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19075     *) libsuff= shlibsuff= libmagic=never-match;;
19076     esac
19077     ;;
19078   esac
19079   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19080   shlibpath_overrides_runpath=no
19081   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19082   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19083   hardcode_into_libs=yes
19084   ;;
19085
19086 # No shared lib support for Linux oldld, aout, or coff.
19087 linux*oldld* | linux*aout* | linux*coff*)
19088   dynamic_linker=no
19089   ;;
19090
19091 # This must be Linux ELF.
19092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19093   version_type=linux
19094   need_lib_prefix=no
19095   need_version=no
19096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097   soname_spec='${libname}${release}${shared_ext}$major'
19098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19099   shlibpath_var=LD_LIBRARY_PATH
19100   shlibpath_overrides_runpath=no
19101
19102   # Some binutils ld are patched to set DT_RUNPATH
19103   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   lt_cv_shlibpath_overrides_runpath=no
19107     save_LDFLAGS=$LDFLAGS
19108     save_libdir=$libdir
19109     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19110          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19111     cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117
19118 int
19119 main ()
19120 {
19121
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128   (eval $ac_link) 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } &&
19135          { ac_try='test -z "$ac_c_werror_flag"
19136                          || test ! -s conftest.err'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest$ac_exeext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19149   lt_cv_shlibpath_overrides_runpath=yes
19150 fi
19151
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 fi
19157 rm -f conftest.err conftest.$ac_objext \
19158       conftest$ac_exeext conftest.$ac_ext
19159     LDFLAGS=$save_LDFLAGS
19160     libdir=$save_libdir
19161
19162 fi
19163
19164   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19165
19166   # This implies no fast_install, which is unacceptable.
19167   # Some rework will be needed to allow for fast_install
19168   # before this can be enabled.
19169   hardcode_into_libs=yes
19170
19171   # Append ld.so.conf contents to the search path
19172   if test -f /etc/ld.so.conf; then
19173     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' ' '`
19174     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19175   fi
19176
19177   # We used to test for /lib/ld.so.1 and disable shared libraries on
19178   # powerpc, because MkLinux only supported shared libraries with the
19179   # GNU dynamic linker.  Since this was broken with cross compilers,
19180   # most powerpc-linux boxes support dynamic linking these days and
19181   # people can always --disable-shared, the test was removed, and we
19182   # assume the GNU/Linux dynamic linker is in use.
19183   dynamic_linker='GNU/Linux ld.so'
19184   ;;
19185
19186 netbsd*)
19187   version_type=sunos
19188   need_lib_prefix=no
19189   need_version=no
19190   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19193     dynamic_linker='NetBSD (a.out) ld.so'
19194   else
19195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19196     soname_spec='${libname}${release}${shared_ext}$major'
19197     dynamic_linker='NetBSD ld.elf_so'
19198   fi
19199   shlibpath_var=LD_LIBRARY_PATH
19200   shlibpath_overrides_runpath=yes
19201   hardcode_into_libs=yes
19202   ;;
19203
19204 newsos6)
19205   version_type=linux
19206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19207   shlibpath_var=LD_LIBRARY_PATH
19208   shlibpath_overrides_runpath=yes
19209   ;;
19210
19211 *nto* | *qnx*)
19212   version_type=qnx
19213   need_lib_prefix=no
19214   need_version=no
19215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216   soname_spec='${libname}${release}${shared_ext}$major'
19217   shlibpath_var=LD_LIBRARY_PATH
19218   shlibpath_overrides_runpath=no
19219   hardcode_into_libs=yes
19220   dynamic_linker='ldqnx.so'
19221   ;;
19222
19223 openbsd*)
19224   version_type=sunos
19225   sys_lib_dlsearch_path_spec="/usr/lib"
19226   need_lib_prefix=no
19227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19228   case $host_os in
19229     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19230     *)                          need_version=no  ;;
19231   esac
19232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19234   shlibpath_var=LD_LIBRARY_PATH
19235   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19236     case $host_os in
19237       openbsd2.[89] | openbsd2.[89].*)
19238         shlibpath_overrides_runpath=no
19239         ;;
19240       *)
19241         shlibpath_overrides_runpath=yes
19242         ;;
19243       esac
19244   else
19245     shlibpath_overrides_runpath=yes
19246   fi
19247   ;;
19248
19249 os2*)
19250   libname_spec='$name'
19251   shrext_cmds=".dll"
19252   need_lib_prefix=no
19253   library_names_spec='$libname${shared_ext} $libname.a'
19254   dynamic_linker='OS/2 ld.exe'
19255   shlibpath_var=LIBPATH
19256   ;;
19257
19258 osf3* | osf4* | osf5*)
19259   version_type=osf
19260   need_lib_prefix=no
19261   need_version=no
19262   soname_spec='${libname}${release}${shared_ext}$major'
19263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19264   shlibpath_var=LD_LIBRARY_PATH
19265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19267   ;;
19268
19269 rdos*)
19270   dynamic_linker=no
19271   ;;
19272
19273 solaris*)
19274   version_type=linux
19275   need_lib_prefix=no
19276   need_version=no
19277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278   soname_spec='${libname}${release}${shared_ext}$major'
19279   shlibpath_var=LD_LIBRARY_PATH
19280   shlibpath_overrides_runpath=yes
19281   hardcode_into_libs=yes
19282   # ldd complains unless libraries are executable
19283   postinstall_cmds='chmod +x $lib'
19284   ;;
19285
19286 sunos4*)
19287   version_type=sunos
19288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19290   shlibpath_var=LD_LIBRARY_PATH
19291   shlibpath_overrides_runpath=yes
19292   if test "$with_gnu_ld" = yes; then
19293     need_lib_prefix=no
19294   fi
19295   need_version=yes
19296   ;;
19297
19298 sysv4 | sysv4.3*)
19299   version_type=linux
19300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301   soname_spec='${libname}${release}${shared_ext}$major'
19302   shlibpath_var=LD_LIBRARY_PATH
19303   case $host_vendor in
19304     sni)
19305       shlibpath_overrides_runpath=no
19306       need_lib_prefix=no
19307       runpath_var=LD_RUN_PATH
19308       ;;
19309     siemens)
19310       need_lib_prefix=no
19311       ;;
19312     motorola)
19313       need_lib_prefix=no
19314       need_version=no
19315       shlibpath_overrides_runpath=no
19316       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19317       ;;
19318   esac
19319   ;;
19320
19321 sysv4*MP*)
19322   if test -d /usr/nec ;then
19323     version_type=linux
19324     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19325     soname_spec='$libname${shared_ext}.$major'
19326     shlibpath_var=LD_LIBRARY_PATH
19327   fi
19328   ;;
19329
19330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19331   version_type=freebsd-elf
19332   need_lib_prefix=no
19333   need_version=no
19334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19335   soname_spec='${libname}${release}${shared_ext}$major'
19336   shlibpath_var=LD_LIBRARY_PATH
19337   shlibpath_overrides_runpath=yes
19338   hardcode_into_libs=yes
19339   if test "$with_gnu_ld" = yes; then
19340     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19341   else
19342     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19343     case $host_os in
19344       sco3.2v5*)
19345         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19346         ;;
19347     esac
19348   fi
19349   sys_lib_dlsearch_path_spec='/usr/lib'
19350   ;;
19351
19352 tpf*)
19353   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19354   version_type=linux
19355   need_lib_prefix=no
19356   need_version=no
19357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19358   shlibpath_var=LD_LIBRARY_PATH
19359   shlibpath_overrides_runpath=no
19360   hardcode_into_libs=yes
19361   ;;
19362
19363 uts4*)
19364   version_type=linux
19365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19366   soname_spec='${libname}${release}${shared_ext}$major'
19367   shlibpath_var=LD_LIBRARY_PATH
19368   ;;
19369
19370 *)
19371   dynamic_linker=no
19372   ;;
19373 esac
19374 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19375 echo "${ECHO_T}$dynamic_linker" >&6
19376 test "$dynamic_linker" = no && can_build_shared=no
19377
19378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19379 if test "$GCC" = yes; then
19380   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19381 fi
19382
19383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19384   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19385 fi
19386 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19387   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19388 fi
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19477 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19478 hardcode_action=
19479 if test -n "$hardcode_libdir_flag_spec" ||
19480    test -n "$runpath_var" ||
19481    test "X$hardcode_automatic" = "Xyes" ; then
19482
19483   # We can hardcode non-existent directories.
19484   if test "$hardcode_direct" != no &&
19485      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19486      # have to relink, otherwise we might link with an installed library
19487      # when we should be linking with a yet-to-be-installed one
19488      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19489      test "$hardcode_minus_L" != no; then
19490     # Linking always hardcodes the temporary library directory.
19491     hardcode_action=relink
19492   else
19493     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19494     hardcode_action=immediate
19495   fi
19496 else
19497   # We cannot hardcode anything, or else we can only hardcode existing
19498   # directories.
19499   hardcode_action=unsupported
19500 fi
19501 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19502 echo "${ECHO_T}$hardcode_action" >&6
19503
19504 if test "$hardcode_action" = relink ||
19505    test "$inherit_rpath" = yes; then
19506   # Fast installation is not supported
19507   enable_fast_install=no
19508 elif test "$shlibpath_overrides_runpath" = yes ||
19509      test "$enable_shared" = no; then
19510   # Fast installation is not necessary
19511   enable_fast_install=needless
19512 fi
19513
19514
19515
19516
19517
19518
19519   if test "x$enable_dlopen" != xyes; then
19520   enable_dlopen=unknown
19521   enable_dlopen_self=unknown
19522   enable_dlopen_self_static=unknown
19523 else
19524   lt_cv_dlopen=no
19525   lt_cv_dlopen_libs=
19526
19527   case $host_os in
19528   beos*)
19529     lt_cv_dlopen="load_add_on"
19530     lt_cv_dlopen_libs=
19531     lt_cv_dlopen_self=yes
19532     ;;
19533
19534   mingw* | pw32* | cegcc*)
19535     lt_cv_dlopen="LoadLibrary"
19536     lt_cv_dlopen_libs=
19537     ;;
19538
19539   cygwin*)
19540     lt_cv_dlopen="dlopen"
19541     lt_cv_dlopen_libs=
19542     ;;
19543
19544   darwin*)
19545   # if libdl is installed we need to link against it
19546     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19547 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19548 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   ac_check_lib_save_LIBS=$LIBS
19552 LIBS="-ldl  $LIBS"
19553 cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559
19560 /* Override any gcc2 internal prototype to avoid an error.  */
19561 #ifdef __cplusplus
19562 extern "C"
19563 #endif
19564 /* We use char because int might match the return type of a gcc2
19565    builtin and then its argument prototype would still apply.  */
19566 char dlopen ();
19567 int
19568 main ()
19569 {
19570 dlopen ();
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577   (eval $ac_link) 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_c_werror_flag"
19585                          || test ! -s conftest.err'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; } &&
19591          { ac_try='test -s conftest$ac_exeext'
19592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593   (eval $ac_try) 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   ac_cv_lib_dl_dlopen=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 ac_cv_lib_dl_dlopen=no
19603 fi
19604 rm -f conftest.err conftest.$ac_objext \
19605       conftest$ac_exeext conftest.$ac_ext
19606 LIBS=$ac_check_lib_save_LIBS
19607 fi
19608 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19610 if test $ac_cv_lib_dl_dlopen = yes; then
19611   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19612 else
19613
19614     lt_cv_dlopen="dyld"
19615     lt_cv_dlopen_libs=
19616     lt_cv_dlopen_self=yes
19617
19618 fi
19619
19620     ;;
19621
19622   *)
19623     echo "$as_me:$LINENO: checking for shl_load" >&5
19624 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19625 if test "${ac_cv_func_shl_load+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19636 #define shl_load innocuous_shl_load
19637
19638 /* System header to define __stub macros and hopefully few prototypes,
19639     which can conflict with char shl_load (); below.
19640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19641     <limits.h> exists even on freestanding compilers.  */
19642
19643 #ifdef __STDC__
19644 # include <limits.h>
19645 #else
19646 # include <assert.h>
19647 #endif
19648
19649 #undef shl_load
19650
19651 /* Override any gcc2 internal prototype to avoid an error.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 {
19655 #endif
19656 /* We use char because int might match the return type of a gcc2
19657    builtin and then its argument prototype would still apply.  */
19658 char shl_load ();
19659 /* The GNU C library defines this for functions which it implements
19660     to always fail with ENOSYS.  Some functions are actually named
19661     something starting with __ and the normal name is an alias.  */
19662 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19663 choke me
19664 #else
19665 char (*f) () = shl_load;
19666 #endif
19667 #ifdef __cplusplus
19668 }
19669 #endif
19670
19671 int
19672 main ()
19673 {
19674 return f != shl_load;
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681   (eval $ac_link) 2>conftest.er1
19682   ac_status=$?
19683   grep -v '^ *+' conftest.er1 >conftest.err
19684   rm -f conftest.er1
19685   cat conftest.err >&5
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } &&
19688          { ac_try='test -z "$ac_c_werror_flag"
19689                          || test ! -s conftest.err'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; } &&
19695          { ac_try='test -s conftest$ac_exeext'
19696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697   (eval $ac_try) 2>&5
19698   ac_status=$?
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); }; }; then
19701   ac_cv_func_shl_load=yes
19702 else
19703   echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 ac_cv_func_shl_load=no
19707 fi
19708 rm -f conftest.err conftest.$ac_objext \
19709       conftest$ac_exeext conftest.$ac_ext
19710 fi
19711 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19712 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19713 if test $ac_cv_func_shl_load = yes; then
19714   lt_cv_dlopen="shl_load"
19715 else
19716   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19717 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19718 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   ac_check_lib_save_LIBS=$LIBS
19722 LIBS="-ldld  $LIBS"
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729
19730 /* Override any gcc2 internal prototype to avoid an error.  */
19731 #ifdef __cplusplus
19732 extern "C"
19733 #endif
19734 /* We use char because int might match the return type of a gcc2
19735    builtin and then its argument prototype would still apply.  */
19736 char shl_load ();
19737 int
19738 main ()
19739 {
19740 shl_load ();
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19747   (eval $ac_link) 2>conftest.er1
19748   ac_status=$?
19749   grep -v '^ *+' conftest.er1 >conftest.err
19750   rm -f conftest.er1
19751   cat conftest.err >&5
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } &&
19754          { ac_try='test -z "$ac_c_werror_flag"
19755                          || test ! -s conftest.err'
19756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757   (eval $ac_try) 2>&5
19758   ac_status=$?
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); }; } &&
19761          { ac_try='test -s conftest$ac_exeext'
19762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763   (eval $ac_try) 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; }; then
19767   ac_cv_lib_dld_shl_load=yes
19768 else
19769   echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772 ac_cv_lib_dld_shl_load=no
19773 fi
19774 rm -f conftest.err conftest.$ac_objext \
19775       conftest$ac_exeext conftest.$ac_ext
19776 LIBS=$ac_check_lib_save_LIBS
19777 fi
19778 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19780 if test $ac_cv_lib_dld_shl_load = yes; then
19781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19782 else
19783   echo "$as_me:$LINENO: checking for dlopen" >&5
19784 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19785 if test "${ac_cv_func_dlopen+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19796 #define dlopen innocuous_dlopen
19797
19798 /* System header to define __stub macros and hopefully few prototypes,
19799     which can conflict with char dlopen (); below.
19800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801     <limits.h> exists even on freestanding compilers.  */
19802
19803 #ifdef __STDC__
19804 # include <limits.h>
19805 #else
19806 # include <assert.h>
19807 #endif
19808
19809 #undef dlopen
19810
19811 /* Override any gcc2 internal prototype to avoid an error.  */
19812 #ifdef __cplusplus
19813 extern "C"
19814 {
19815 #endif
19816 /* We use char because int might match the return type of a gcc2
19817    builtin and then its argument prototype would still apply.  */
19818 char dlopen ();
19819 /* The GNU C library defines this for functions which it implements
19820     to always fail with ENOSYS.  Some functions are actually named
19821     something starting with __ and the normal name is an alias.  */
19822 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19823 choke me
19824 #else
19825 char (*f) () = dlopen;
19826 #endif
19827 #ifdef __cplusplus
19828 }
19829 #endif
19830
19831 int
19832 main ()
19833 {
19834 return f != dlopen;
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841   (eval $ac_link) 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } &&
19848          { ac_try='test -z "$ac_c_werror_flag"
19849                          || test ! -s conftest.err'
19850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851   (eval $ac_try) 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; } &&
19855          { ac_try='test -s conftest$ac_exeext'
19856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857   (eval $ac_try) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_func_dlopen=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866 ac_cv_func_dlopen=no
19867 fi
19868 rm -f conftest.err conftest.$ac_objext \
19869       conftest$ac_exeext conftest.$ac_ext
19870 fi
19871 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19872 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19873 if test $ac_cv_func_dlopen = yes; then
19874   lt_cv_dlopen="dlopen"
19875 else
19876   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881   ac_check_lib_save_LIBS=$LIBS
19882 LIBS="-ldl  $LIBS"
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889
19890 /* Override any gcc2 internal prototype to avoid an error.  */
19891 #ifdef __cplusplus
19892 extern "C"
19893 #endif
19894 /* We use char because int might match the return type of a gcc2
19895    builtin and then its argument prototype would still apply.  */
19896 char dlopen ();
19897 int
19898 main ()
19899 {
19900 dlopen ();
19901   ;
19902   return 0;
19903 }
19904 _ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907   (eval $ac_link) 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } &&
19914          { ac_try='test -z "$ac_c_werror_flag"
19915                          || test ! -s conftest.err'
19916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917   (eval $ac_try) 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; } &&
19921          { ac_try='test -s conftest$ac_exeext'
19922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923   (eval $ac_try) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; }; then
19927   ac_cv_lib_dl_dlopen=yes
19928 else
19929   echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ac_cv_lib_dl_dlopen=no
19933 fi
19934 rm -f conftest.err conftest.$ac_objext \
19935       conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19937 fi
19938 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19940 if test $ac_cv_lib_dl_dlopen = yes; then
19941   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19942 else
19943   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19944 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19945 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19946   echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948   ac_check_lib_save_LIBS=$LIBS
19949 LIBS="-lsvld  $LIBS"
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956
19957 /* Override any gcc2 internal prototype to avoid an error.  */
19958 #ifdef __cplusplus
19959 extern "C"
19960 #endif
19961 /* We use char because int might match the return type of a gcc2
19962    builtin and then its argument prototype would still apply.  */
19963 char dlopen ();
19964 int
19965 main ()
19966 {
19967 dlopen ();
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974   (eval $ac_link) 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag"
19982                          || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest$ac_exeext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_lib_svld_dlopen=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_lib_svld_dlopen=no
20000 fi
20001 rm -f conftest.err conftest.$ac_objext \
20002       conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20006 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20007 if test $ac_cv_lib_svld_dlopen = yes; then
20008   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20009 else
20010   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-ldld  $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029    builtin and then its argument prototype would still apply.  */
20030 char dld_link ();
20031 int
20032 main ()
20033 {
20034 dld_link ();
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041   (eval $ac_link) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"
20049                          || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest$ac_exeext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_lib_dld_dld_link=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_lib_dld_dld_link=no
20067 fi
20068 rm -f conftest.err conftest.$ac_objext \
20069       conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20071 fi
20072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20074 if test $ac_cv_lib_dld_dld_link = yes; then
20075   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20076 fi
20077
20078
20079 fi
20080
20081
20082 fi
20083
20084
20085 fi
20086
20087
20088 fi
20089
20090
20091 fi
20092
20093     ;;
20094   esac
20095
20096   if test "x$lt_cv_dlopen" != xno; then
20097     enable_dlopen=yes
20098   else
20099     enable_dlopen=no
20100   fi
20101
20102   case $lt_cv_dlopen in
20103   dlopen)
20104     save_CPPFLAGS="$CPPFLAGS"
20105     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20106
20107     save_LDFLAGS="$LDFLAGS"
20108     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20109
20110     save_LIBS="$LIBS"
20111     LIBS="$lt_cv_dlopen_libs $LIBS"
20112
20113     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20114 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20115 if test "${lt_cv_dlopen_self+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118           if test "$cross_compiling" = yes; then :
20119   lt_cv_dlopen_self=cross
20120 else
20121   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20122   lt_status=$lt_dlunknown
20123   cat > conftest.$ac_ext <<_LT_EOF
20124 #line 20124 "configure"
20125 #include "confdefs.h"
20126
20127 #if HAVE_DLFCN_H
20128 #include <dlfcn.h>
20129 #endif
20130
20131 #include <stdio.h>
20132
20133 #ifdef RTLD_GLOBAL
20134 #  define LT_DLGLOBAL           RTLD_GLOBAL
20135 #else
20136 #  ifdef DL_GLOBAL
20137 #    define LT_DLGLOBAL         DL_GLOBAL
20138 #  else
20139 #    define LT_DLGLOBAL         0
20140 #  endif
20141 #endif
20142
20143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20144    find out it does not work in some platform. */
20145 #ifndef LT_DLLAZY_OR_NOW
20146 #  ifdef RTLD_LAZY
20147 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20148 #  else
20149 #    ifdef DL_LAZY
20150 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20151 #    else
20152 #      ifdef RTLD_NOW
20153 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20154 #      else
20155 #        ifdef DL_NOW
20156 #          define LT_DLLAZY_OR_NOW      DL_NOW
20157 #        else
20158 #          define LT_DLLAZY_OR_NOW      0
20159 #        endif
20160 #      endif
20161 #    endif
20162 #  endif
20163 #endif
20164
20165 void fnord() { int i=42;}
20166 int main ()
20167 {
20168   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20169   int status = $lt_dlunknown;
20170
20171   if (self)
20172     {
20173       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20174       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20175       /* dlclose (self); */
20176     }
20177   else
20178     puts (dlerror ());
20179
20180   return status;
20181 }
20182 _LT_EOF
20183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20184   (eval $ac_link) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20188     (./conftest; exit; ) >&5 2>/dev/null
20189     lt_status=$?
20190     case x$lt_status in
20191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20193       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20194     esac
20195   else :
20196     # compilation failed
20197     lt_cv_dlopen_self=no
20198   fi
20199 fi
20200 rm -fr conftest*
20201
20202
20203 fi
20204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20205 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20206
20207     if test "x$lt_cv_dlopen_self" = xyes; then
20208       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20209       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20210 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20211 if test "${lt_cv_dlopen_self_static+set}" = set; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214           if test "$cross_compiling" = yes; then :
20215   lt_cv_dlopen_self_static=cross
20216 else
20217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20218   lt_status=$lt_dlunknown
20219   cat > conftest.$ac_ext <<_LT_EOF
20220 #line 20220 "configure"
20221 #include "confdefs.h"
20222
20223 #if HAVE_DLFCN_H
20224 #include <dlfcn.h>
20225 #endif
20226
20227 #include <stdio.h>
20228
20229 #ifdef RTLD_GLOBAL
20230 #  define LT_DLGLOBAL           RTLD_GLOBAL
20231 #else
20232 #  ifdef DL_GLOBAL
20233 #    define LT_DLGLOBAL         DL_GLOBAL
20234 #  else
20235 #    define LT_DLGLOBAL         0
20236 #  endif
20237 #endif
20238
20239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20240    find out it does not work in some platform. */
20241 #ifndef LT_DLLAZY_OR_NOW
20242 #  ifdef RTLD_LAZY
20243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20244 #  else
20245 #    ifdef DL_LAZY
20246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20247 #    else
20248 #      ifdef RTLD_NOW
20249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20250 #      else
20251 #        ifdef DL_NOW
20252 #          define LT_DLLAZY_OR_NOW      DL_NOW
20253 #        else
20254 #          define LT_DLLAZY_OR_NOW      0
20255 #        endif
20256 #      endif
20257 #    endif
20258 #  endif
20259 #endif
20260
20261 void fnord() { int i=42;}
20262 int main ()
20263 {
20264   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20265   int status = $lt_dlunknown;
20266
20267   if (self)
20268     {
20269       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20270       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20271       /* dlclose (self); */
20272     }
20273   else
20274     puts (dlerror ());
20275
20276   return status;
20277 }
20278 _LT_EOF
20279   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280   (eval $ac_link) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20284     (./conftest; exit; ) >&5 2>/dev/null
20285     lt_status=$?
20286     case x$lt_status in
20287       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20288       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20289       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20290     esac
20291   else :
20292     # compilation failed
20293     lt_cv_dlopen_self_static=no
20294   fi
20295 fi
20296 rm -fr conftest*
20297
20298
20299 fi
20300 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20301 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20302     fi
20303
20304     CPPFLAGS="$save_CPPFLAGS"
20305     LDFLAGS="$save_LDFLAGS"
20306     LIBS="$save_LIBS"
20307     ;;
20308   esac
20309
20310   case $lt_cv_dlopen_self in
20311   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20312   *) enable_dlopen_self=unknown ;;
20313   esac
20314
20315   case $lt_cv_dlopen_self_static in
20316   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20317   *) enable_dlopen_self_static=unknown ;;
20318   esac
20319 fi
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337 striplib=
20338 old_striplib=
20339 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20342   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20343   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20344   echo "$as_me:$LINENO: result: yes" >&5
20345 echo "${ECHO_T}yes" >&6
20346 else
20347 # FIXME - insert some real tests, host_os isn't really good enough
20348   case $host_os in
20349   darwin*)
20350     if test -n "$STRIP" ; then
20351       striplib="$STRIP -x"
20352       old_striplib="$STRIP -S"
20353       echo "$as_me:$LINENO: result: yes" >&5
20354 echo "${ECHO_T}yes" >&6
20355     else
20356       echo "$as_me:$LINENO: result: no" >&5
20357 echo "${ECHO_T}no" >&6
20358     fi
20359     ;;
20360   *)
20361     echo "$as_me:$LINENO: result: no" >&5
20362 echo "${ECHO_T}no" >&6
20363     ;;
20364   esac
20365 fi
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378   # Report which library types will actually be built
20379   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20380 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20381   echo "$as_me:$LINENO: result: $can_build_shared" >&5
20382 echo "${ECHO_T}$can_build_shared" >&6
20383
20384   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20385 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20386   test "$can_build_shared" = "no" && enable_shared=no
20387
20388   # On AIX, shared libraries and static libraries use the same namespace, and
20389   # are all built from PIC.
20390   case $host_os in
20391   aix3*)
20392     test "$enable_shared" = yes && enable_static=no
20393     if test -n "$RANLIB"; then
20394       archive_cmds="$archive_cmds~\$RANLIB \$lib"
20395       postinstall_cmds='$RANLIB $lib'
20396     fi
20397     ;;
20398
20399   aix[4-9]*)
20400     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20401       test "$enable_shared" = yes && enable_static=no
20402     fi
20403     ;;
20404   esac
20405   echo "$as_me:$LINENO: result: $enable_shared" >&5
20406 echo "${ECHO_T}$enable_shared" >&6
20407
20408   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20409 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20410   # Make sure either enable_shared or enable_static is yes.
20411   test "$enable_shared" = yes || enable_static=yes
20412   echo "$as_me:$LINENO: result: $enable_static" >&5
20413 echo "${ECHO_T}$enable_static" >&6
20414
20415
20416
20417
20418 fi
20419 ac_ext=c
20420 ac_cpp='$CPP $CPPFLAGS'
20421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20424
20425 CC="$lt_save_CC"
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442 # Only expand once:
20443
20444
20445
20446
20447
20448 # Identify the assembler which will work hand-in-glove with the newly
20449 # built GCC, so that we can examine its features.  This is the assembler
20450 # which will be driven by the driver program.
20451 #
20452 # If build != host, and we aren't building gas in-tree, we identify a
20453 # build->target assembler and hope that it will have the same features
20454 # as the host->target assembler we'll be using.
20455 gcc_cv_gas_major_version=
20456 gcc_cv_gas_minor_version=
20457 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20458
20459 if test "${gcc_cv_as+set}" = set; then
20460   :
20461 else
20462
20463 if test -x "$DEFAULT_ASSEMBLER"; then
20464         gcc_cv_as="$DEFAULT_ASSEMBLER"
20465 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20466      && test -f ../gas/Makefile \
20467      && test x$build = x$host; then
20468         gcc_cv_as=../gas/as-new$build_exeext
20469 elif test -x as$build_exeext; then
20470         # Build using assembler in the current directory.
20471         gcc_cv_as=./as$build_exeext
20472 elif test -x $AS_FOR_TARGET; then
20473         gcc_cv_as="$AS_FOR_TARGET"
20474 else
20475         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20476 set dummy $AS_FOR_TARGET; ac_word=$2
20477 echo "$as_me:$LINENO: checking for $ac_word" >&5
20478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20479 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   case $gcc_cv_as in
20483   [\\/]* | ?:[\\/]*)
20484   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20485   ;;
20486   *)
20487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20488 for as_dir in $PATH
20489 do
20490   IFS=$as_save_IFS
20491   test -z "$as_dir" && as_dir=.
20492   for ac_exec_ext in '' $ac_executable_extensions; do
20493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20494     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20496     break 2
20497   fi
20498 done
20499 done
20500
20501   ;;
20502 esac
20503 fi
20504 gcc_cv_as=$ac_cv_path_gcc_cv_as
20505
20506 if test -n "$gcc_cv_as"; then
20507   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20508 echo "${ECHO_T}$gcc_cv_as" >&6
20509 else
20510   echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20512 fi
20513
20514 fi
20515 fi
20516
20517
20518 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20519
20520 case "$ORIGINAL_AS_FOR_TARGET" in
20521   ./as | ./as$build_exeext) ;;
20522   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20523  ;;
20524 esac
20525
20526 echo "$as_me:$LINENO: checking what assembler to use" >&5
20527 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20528 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20529   # Single tree build which includes gas.  We want to prefer it
20530   # over whatever linker top-level may have detected, since
20531   # we'll use what we're building after installation anyway.
20532   echo "$as_me:$LINENO: result: newly built gas" >&5
20533 echo "${ECHO_T}newly built gas" >&6
20534   in_tree_gas=yes
20535   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20536 for f in $gcc_cv_as_bfd_srcdir/configure \
20537          $gcc_cv_as_gas_srcdir/configure \
20538          $gcc_cv_as_gas_srcdir/configure.in \
20539          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20540   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20541   if test x$gcc_cv_gas_version != x; then
20542     break
20543   fi
20544 done
20545 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20546 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20547 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20548 case $gcc_cv_gas_patch_version in
20549   "") gcc_cv_gas_patch_version="0" ;;
20550 esac
20551 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20552                             + $gcc_cv_gas_minor_version \) \* 1000 \
20553                             + $gcc_cv_gas_patch_version`
20554
20555   in_tree_gas_is_elf=no
20556   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20557      || (grep 'obj_format = multi' ../gas/Makefile \
20558          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20559   then
20560     in_tree_gas_is_elf=yes
20561   fi
20562 else
20563   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20564 echo "${ECHO_T}$gcc_cv_as" >&6
20565   in_tree_gas=no
20566 fi
20567
20568 # Identify the linker which will work hand-in-glove with the newly
20569 # built GCC, so that we can examine its features.  This is the linker
20570 # which will be driven by the driver program.
20571 #
20572 # If build != host, and we aren't building gas in-tree, we identify a
20573 # build->target linker and hope that it will have the same features
20574 # as the host->target linker we'll be using.
20575 gcc_cv_gld_major_version=
20576 gcc_cv_gld_minor_version=
20577 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20578 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20579
20580 if test "${gcc_cv_ld+set}" = set; then
20581   :
20582 else
20583
20584 if test -x "$DEFAULT_LINKER"; then
20585         gcc_cv_ld="$DEFAULT_LINKER"
20586 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20587      && test -f ../ld/Makefile \
20588      && test x$build = x$host; then
20589         gcc_cv_ld=../ld/ld-new$build_exeext
20590 elif test -x collect-ld$build_exeext; then
20591         # Build using linker in the current directory.
20592         gcc_cv_ld=./collect-ld$build_exeext
20593 elif test -x $LD_FOR_TARGET; then
20594         gcc_cv_ld="$LD_FOR_TARGET"
20595 else
20596         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20597 set dummy $LD_FOR_TARGET; ac_word=$2
20598 echo "$as_me:$LINENO: checking for $ac_word" >&5
20599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20600 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   case $gcc_cv_ld in
20604   [\\/]* | ?:[\\/]*)
20605   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20606   ;;
20607   *)
20608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20609 for as_dir in $PATH
20610 do
20611   IFS=$as_save_IFS
20612   test -z "$as_dir" && as_dir=.
20613   for ac_exec_ext in '' $ac_executable_extensions; do
20614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20615     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20617     break 2
20618   fi
20619 done
20620 done
20621
20622   ;;
20623 esac
20624 fi
20625 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20626
20627 if test -n "$gcc_cv_ld"; then
20628   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20629 echo "${ECHO_T}$gcc_cv_ld" >&6
20630 else
20631   echo "$as_me:$LINENO: result: no" >&5
20632 echo "${ECHO_T}no" >&6
20633 fi
20634
20635 fi
20636 fi
20637
20638
20639 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20640
20641 case "$ORIGINAL_LD_FOR_TARGET" in
20642   ./collect-ld | ./collect-ld$build_exeext) ;;
20643   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20644  ;;
20645 esac
20646
20647 echo "$as_me:$LINENO: checking what linker to use" >&5
20648 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20649 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20650         # Single tree build which includes ld.  We want to prefer it
20651         # over whatever linker top-level may have detected, since
20652         # we'll use what we're building after installation anyway.
20653         echo "$as_me:$LINENO: result: newly built ld" >&5
20654 echo "${ECHO_T}newly built ld" >&6
20655         in_tree_ld=yes
20656         in_tree_ld_is_elf=no
20657         if (grep 'EMUL = .*elf' ../ld/Makefile \
20658             || grep 'EMUL = .*linux' ../ld/Makefile \
20659             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20660           in_tree_ld_is_elf=yes
20661         fi
20662         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
20663         do
20664                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20665                 if test x$gcc_cv_gld_version != x; then
20666                         break
20667                 fi
20668         done
20669         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20670         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20671 else
20672         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20673 echo "${ECHO_T}$gcc_cv_ld" >&6
20674         in_tree_ld=no
20675 fi
20676
20677 # Figure out what nm we will be using.
20678 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20679 if test "${gcc_cv_nm+set}" = set; then
20680   :
20681 else
20682
20683 if test -f $gcc_cv_binutils_srcdir/configure.in \
20684      && test -f ../binutils/Makefile \
20685      && test x$build = x$host; then
20686         gcc_cv_nm=../binutils/nm-new$build_exeext
20687 elif test -x nm$build_exeext; then
20688         gcc_cv_nm=./nm$build_exeext
20689 elif test -x $NM_FOR_TARGET; then
20690         gcc_cv_nm="$NM_FOR_TARGET"
20691 else
20692         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20693 set dummy $NM_FOR_TARGET; ac_word=$2
20694 echo "$as_me:$LINENO: checking for $ac_word" >&5
20695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20696 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   case $gcc_cv_nm in
20700   [\\/]* | ?:[\\/]*)
20701   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20702   ;;
20703   *)
20704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20705 for as_dir in $PATH
20706 do
20707   IFS=$as_save_IFS
20708   test -z "$as_dir" && as_dir=.
20709   for ac_exec_ext in '' $ac_executable_extensions; do
20710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20711     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20713     break 2
20714   fi
20715 done
20716 done
20717
20718   ;;
20719 esac
20720 fi
20721 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20722
20723 if test -n "$gcc_cv_nm"; then
20724   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20725 echo "${ECHO_T}$gcc_cv_nm" >&6
20726 else
20727   echo "$as_me:$LINENO: result: no" >&5
20728 echo "${ECHO_T}no" >&6
20729 fi
20730
20731 fi
20732 fi
20733
20734
20735 echo "$as_me:$LINENO: checking what nm to use" >&5
20736 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20737 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20738         # Single tree build which includes binutils.
20739         echo "$as_me:$LINENO: result: newly built nm" >&5
20740 echo "${ECHO_T}newly built nm" >&6
20741         in_tree_nm=yes
20742 else
20743         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20744 echo "${ECHO_T}$gcc_cv_nm" >&6
20745         in_tree_nm=no
20746 fi
20747
20748 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20749
20750 case "$ORIGINAL_NM_FOR_TARGET" in
20751   ./nm | ./nm$build_exeext) ;;
20752   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20753  ;;
20754 esac
20755
20756
20757 # Figure out what objdump we will be using.
20758 if test "${gcc_cv_objdump+set}" = set; then
20759   :
20760 else
20761
20762 if test -f $gcc_cv_binutils_srcdir/configure.in \
20763      && test -f ../binutils/Makefile \
20764      && test x$build = x$host; then
20765         # Single tree build which includes binutils.
20766         gcc_cv_objdump=../binutils/objdump$build_exeext
20767 elif test -x objdump$build_exeext; then
20768         gcc_cv_objdump=./objdump$build_exeext
20769 elif test -x $OBJDUMP_FOR_TARGET; then
20770         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20771 else
20772         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20773 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20774 echo "$as_me:$LINENO: checking for $ac_word" >&5
20775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20776 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779   case $gcc_cv_objdump in
20780   [\\/]* | ?:[\\/]*)
20781   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20782   ;;
20783   *)
20784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785 for as_dir in $PATH
20786 do
20787   IFS=$as_save_IFS
20788   test -z "$as_dir" && as_dir=.
20789   for ac_exec_ext in '' $ac_executable_extensions; do
20790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20791     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20793     break 2
20794   fi
20795 done
20796 done
20797
20798   ;;
20799 esac
20800 fi
20801 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20802
20803 if test -n "$gcc_cv_objdump"; then
20804   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20805 echo "${ECHO_T}$gcc_cv_objdump" >&6
20806 else
20807   echo "$as_me:$LINENO: result: no" >&5
20808 echo "${ECHO_T}no" >&6
20809 fi
20810
20811 fi
20812 fi
20813
20814
20815 echo "$as_me:$LINENO: checking what objdump to use" >&5
20816 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20817 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20818         # Single tree build which includes binutils.
20819         echo "$as_me:$LINENO: result: newly built objdump" >&5
20820 echo "${ECHO_T}newly built objdump" >&6
20821 elif test x$gcc_cv_objdump = x; then
20822         echo "$as_me:$LINENO: result: not found" >&5
20823 echo "${ECHO_T}not found" >&6
20824 else
20825         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20826 echo "${ECHO_T}$gcc_cv_objdump" >&6
20827 fi
20828
20829 # Figure out what readelf we will be using.
20830 if test "${gcc_cv_readelf+set}" = set; then
20831   :
20832 else
20833
20834 if test -f $gcc_cv_binutils_srcdir/configure.in \
20835      && test -f ../binutils/Makefile \
20836      && test x$build = x$host; then
20837         # Single tree build which includes binutils.
20838         gcc_cv_readelf=../binutils/readelf$build_exeext
20839 elif test -x readelf$build_exeext; then
20840         gcc_cv_readelf=./readelf$build_exeext
20841 else
20842         # Extract the first word of "readelf", so it can be a program name with args.
20843 set dummy readelf; ac_word=$2
20844 echo "$as_me:$LINENO: checking for $ac_word" >&5
20845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20846 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   case $gcc_cv_readelf in
20850   [\\/]* | ?:[\\/]*)
20851   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20852   ;;
20853   *)
20854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20855 for as_dir in $PATH
20856 do
20857   IFS=$as_save_IFS
20858   test -z "$as_dir" && as_dir=.
20859   for ac_exec_ext in '' $ac_executable_extensions; do
20860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20861     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20863     break 2
20864   fi
20865 done
20866 done
20867
20868   ;;
20869 esac
20870 fi
20871 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20872
20873 if test -n "$gcc_cv_readelf"; then
20874   echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20875 echo "${ECHO_T}$gcc_cv_readelf" >&6
20876 else
20877   echo "$as_me:$LINENO: result: no" >&5
20878 echo "${ECHO_T}no" >&6
20879 fi
20880
20881 fi
20882 fi
20883
20884
20885 echo "$as_me:$LINENO: checking what readelf to use" >&5
20886 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20887 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20888         # Single tree build which includes binutils.
20889         echo "$as_me:$LINENO: result: newly built readelf" >&5
20890 echo "${ECHO_T}newly built readelf" >&6
20891 elif test x$gcc_cv_readelf = x; then
20892         echo "$as_me:$LINENO: result: not found" >&5
20893 echo "${ECHO_T}not found" >&6
20894 else
20895         echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20896 echo "${ECHO_T}$gcc_cv_readelf" >&6
20897 fi
20898
20899 # Figure out what assembler alignment features are present.
20900 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20901 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20902 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   gcc_cv_as_balign_and_p2align=no
20906     if test $in_tree_gas = yes; then
20907     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20908   then gcc_cv_as_balign_and_p2align=yes
20909 fi
20910   elif test x$gcc_cv_as != x; then
20911     echo '.balign 4
20912 .p2align 2' > conftest.s
20913     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915   (eval $ac_try) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; }
20919     then
20920         gcc_cv_as_balign_and_p2align=yes
20921     else
20922       echo "configure: failed program was" >&5
20923       cat conftest.s >&5
20924     fi
20925     rm -f conftest.o conftest.s
20926   fi
20927 fi
20928 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20929 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20930 if test $gcc_cv_as_balign_and_p2align = yes; then
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20934 _ACEOF
20935
20936 fi
20937
20938 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20939 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20940 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   gcc_cv_as_max_skip_p2align=no
20944     if test $in_tree_gas = yes; then
20945     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20946   then gcc_cv_as_max_skip_p2align=yes
20947 fi
20948   elif test x$gcc_cv_as != x; then
20949     echo '.p2align 4,,7' > conftest.s
20950     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952   (eval $ac_try) 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; }
20956     then
20957         gcc_cv_as_max_skip_p2align=yes
20958     else
20959       echo "configure: failed program was" >&5
20960       cat conftest.s >&5
20961     fi
20962     rm -f conftest.o conftest.s
20963   fi
20964 fi
20965 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20966 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20967 if test $gcc_cv_as_max_skip_p2align = yes; then
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20971 _ACEOF
20972
20973 fi
20974
20975 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20976 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20977 if test "${gcc_cv_as_literal16+set}" = set; then
20978   echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980   gcc_cv_as_literal16=no
20981     if test $in_tree_gas = yes; then
20982     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20983   then gcc_cv_as_literal16=yes
20984 fi
20985   elif test x$gcc_cv_as != x; then
20986     echo '.literal16' > conftest.s
20987     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }
20993     then
20994         gcc_cv_as_literal16=yes
20995     else
20996       echo "configure: failed program was" >&5
20997       cat conftest.s >&5
20998     fi
20999     rm -f conftest.o conftest.s
21000   fi
21001 fi
21002 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21003 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21004 if test $gcc_cv_as_literal16 = yes; then
21005
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_GAS_LITERAL16 1
21008 _ACEOF
21009
21010 fi
21011
21012 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21013 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21014 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   gcc_cv_as_subsection_m1=no
21018     if test $in_tree_gas = yes; then
21019     if test $in_tree_gas_is_elf = yes \
21020   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21021   then gcc_cv_as_subsection_m1=yes
21022 fi
21023   elif test x$gcc_cv_as != x; then
21024     echo 'conftest_label1: .word 0
21025 .subsection -1
21026 conftest_label2: .word 0
21027 .previous' > conftest.s
21028     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030   (eval $ac_try) 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; }
21034     then
21035         if test x$gcc_cv_nm != x; then
21036     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21037     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21038     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21039     then :
21040     else gcc_cv_as_subsection_m1=yes
21041     fi
21042     rm -f conftest.nm1 conftest.nm2
21043   fi
21044     else
21045       echo "configure: failed program was" >&5
21046       cat conftest.s >&5
21047     fi
21048     rm -f conftest.o conftest.s
21049   fi
21050 fi
21051 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21052 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21053 if test $gcc_cv_as_subsection_m1 = yes; then
21054
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_GAS_SUBSECTION_ORDERING 1
21057 _ACEOF
21058
21059 fi
21060
21061 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21062 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21063 if test "${gcc_cv_as_weak+set}" = set; then
21064   echo $ECHO_N "(cached) $ECHO_C" >&6
21065 else
21066   gcc_cv_as_weak=no
21067     if test $in_tree_gas = yes; then
21068     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21069   then gcc_cv_as_weak=yes
21070 fi
21071   elif test x$gcc_cv_as != x; then
21072     echo '      .weak foobar' > conftest.s
21073     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }
21079     then
21080         gcc_cv_as_weak=yes
21081     else
21082       echo "configure: failed program was" >&5
21083       cat conftest.s >&5
21084     fi
21085     rm -f conftest.o conftest.s
21086   fi
21087 fi
21088 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21089 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21090 if test $gcc_cv_as_weak = yes; then
21091
21092 cat >>confdefs.h <<\_ACEOF
21093 #define HAVE_GAS_WEAK 1
21094 _ACEOF
21095
21096 fi
21097
21098 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21099 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21100 if test "${gcc_cv_as_weakref+set}" = set; then
21101   echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103   gcc_cv_as_weakref=no
21104     if test $in_tree_gas = yes; then
21105     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21106   then gcc_cv_as_weakref=yes
21107 fi
21108   elif test x$gcc_cv_as != x; then
21109     echo '      .weakref foobar, barfnot' > conftest.s
21110     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }
21116     then
21117         gcc_cv_as_weakref=yes
21118     else
21119       echo "configure: failed program was" >&5
21120       cat conftest.s >&5
21121     fi
21122     rm -f conftest.o conftest.s
21123   fi
21124 fi
21125 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21126 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21127 if test $gcc_cv_as_weakref = yes; then
21128
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_GAS_WEAKREF 1
21131 _ACEOF
21132
21133 fi
21134
21135 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21136 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21137 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140   gcc_cv_as_nsubspa_comdat=no
21141     if test $in_tree_gas = yes; then
21142     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21143   then gcc_cv_as_nsubspa_comdat=yes
21144 fi
21145   elif test x$gcc_cv_as != x; then
21146     echo '      .SPACE $TEXT$
21147         .NSUBSPA $CODE$,COMDAT' > 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_nsubspa_comdat=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_nsubspa_comdat" >&5
21164 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21165 if test $gcc_cv_as_nsubspa_comdat = yes; then
21166
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_GAS_NSUBSPA_COMDAT 1
21169 _ACEOF
21170
21171 fi
21172
21173 # .hidden needs to be supported in both the assembler and the linker,
21174 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21175 # This is irritatingly difficult to feature test for; we have to check the
21176 # date string after the version number.  If we've got an in-tree
21177 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21178 # to be safe.
21179 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21180 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21181 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21182 if test "${gcc_cv_as_hidden+set}" = set; then
21183   echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185   gcc_cv_as_hidden=no
21186     if test $in_tree_gas = yes; then
21187     if test $in_tree_gas_is_elf = yes \
21188   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21189   then gcc_cv_as_hidden=yes
21190 fi
21191   elif test x$gcc_cv_as != x; then
21192     echo '      .hidden foobar
21193 foobar:' > conftest.s
21194     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196   (eval $ac_try) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; }
21200     then
21201         gcc_cv_as_hidden=yes
21202     else
21203       echo "configure: failed program was" >&5
21204       cat conftest.s >&5
21205     fi
21206     rm -f conftest.o conftest.s
21207   fi
21208 fi
21209 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21210 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21211
21212
21213 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21214 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21215 if test "${gcc_cv_ld_hidden+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   if test $in_tree_ld = yes ; then
21219   gcc_cv_ld_hidden=no
21220   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 \
21221      && test $in_tree_ld_is_elf = yes; then
21222      gcc_cv_ld_hidden=yes
21223   fi
21224 else
21225   gcc_cv_ld_hidden=yes
21226   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21227   if echo "$ld_ver" | grep GNU > /dev/null; then
21228     ld_vers=`echo $ld_ver | sed -n \
21229         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21230     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'`
21231     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21232     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21233     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21234     if test 0"$ld_date" -lt 20020404; then
21235       if test -n "$ld_date"; then
21236         # If there was date string, but was earlier than 2002-04-04, fail
21237         gcc_cv_ld_hidden=no
21238       elif test -z "$ld_vers"; then
21239         # If there was no date string nor ld version number, something is wrong
21240         gcc_cv_ld_hidden=no
21241       else
21242         test -z "$ld_vers_patch" && ld_vers_patch=0
21243         if test "$ld_vers_major" -lt 2; then
21244           gcc_cv_ld_hidden=no
21245         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21246           gcc_cv_ld_hidden="no"
21247         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21248           gcc_cv_ld_hidden=no
21249         fi
21250       fi
21251     fi
21252   else
21253     case "${target}" in
21254       hppa64*-*-hpux* | ia64*-*-hpux*)
21255         gcc_cv_ld_hidden=yes
21256         ;;
21257       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21258         gcc_cv_ld_hidden=yes
21259         ;;
21260       *)
21261         gcc_cv_ld_hidden=no
21262         ;;
21263     esac
21264   fi
21265 fi
21266 fi
21267 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21268 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21269 libgcc_visibility=no
21270
21271
21272 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21273   libgcc_visibility=yes
21274
21275 cat >>confdefs.h <<\_ACEOF
21276 #define HAVE_GAS_HIDDEN 1
21277 _ACEOF
21278
21279 fi
21280
21281 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21282 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21283 gcc_cv_ld_ro_rw_mix=unknown
21284 if test $in_tree_ld = yes ; then
21285   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 \
21286      && test $in_tree_ld_is_elf = yes; then
21287     gcc_cv_ld_ro_rw_mix=read-write
21288   fi
21289 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21290   echo '.section myfoosect, "a"' > conftest1.s
21291   echo '.section myfoosect, "aw"' > conftest2.s
21292   echo '.byte 1' >> conftest2.s
21293   echo '.section myfoosect, "a"' > conftest3.s
21294   echo '.byte 0' >> conftest3.s
21295   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21296      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21297      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21298      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21299         conftest2.o conftest3.o > /dev/null 2>&1; then
21300     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21301                          | sed -e '/myfoosect/!d' -e N`
21302     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21303       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21304         gcc_cv_ld_ro_rw_mix=read-only
21305       else
21306         gcc_cv_ld_ro_rw_mix=read-write
21307       fi
21308     fi
21309   fi
21310   rm -f conftest.* conftest[123].*
21311 fi
21312 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21313
21314 cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21316 _ACEOF
21317
21318 fi
21319 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21320 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21321
21322 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21323 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21324 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21325 if test "${gcc_cv_as_leb128+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   gcc_cv_as_leb128=no
21329     if test $in_tree_gas = yes; then
21330     if test $in_tree_gas_is_elf = yes \
21331   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21332   then gcc_cv_as_leb128=yes
21333 fi
21334   elif test x$gcc_cv_as != x; then
21335     echo '      .data
21336         .uleb128 L2 - L1
21337 L1:
21338         .uleb128 1280
21339         .sleb128 -1010
21340 L2:' > conftest.s
21341     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }
21347     then
21348         # GAS versions before 2.11 do not support uleb128,
21349   # despite appearing to.
21350   # ??? There exists an elf-specific test that will crash
21351   # the assembler.  Perhaps it's better to figure out whether
21352   # arbitrary sections are supported and try the test.
21353   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21354   if echo "$as_ver" | grep GNU > /dev/null; then
21355     as_vers=`echo $as_ver | sed -n \
21356         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21357     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21358     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21359     if test $as_major -eq 2 && test $as_minor -lt 11
21360     then :
21361     else gcc_cv_as_leb128=yes
21362     fi
21363   fi
21364     else
21365       echo "configure: failed program was" >&5
21366       cat conftest.s >&5
21367     fi
21368     rm -f conftest.o conftest.s
21369   fi
21370 fi
21371 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21372 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21373 if test $gcc_cv_as_leb128 = yes; then
21374
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_AS_LEB128 1
21377 _ACEOF
21378
21379 fi
21380
21381 # Check if we have assembler support for unwind directives.
21382 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21383 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21384 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21385   echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387   gcc_cv_as_cfi_directive=no
21388   if test x$gcc_cv_as != x; then
21389     echo '      .text
21390         .cfi_startproc
21391         .cfi_offset 0, 0
21392         .cfi_same_value 1
21393         .cfi_def_cfa 1, 2
21394         .cfi_escape 1, 2, 3, 4, 5
21395         .cfi_endproc' > conftest.s
21396     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398   (eval $ac_try) 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }; }
21402     then
21403         case "$target" in
21404   *-*-solaris*)
21405     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21406     # read-only and read-write sections, we need to make sure that the
21407     # assembler used emits read-write .eh_frame sections.
21408     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21409       if test "x$gcc_cv_objdump" != x; then
21410         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21411                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21412           gcc_cv_as_cfi_directive=no
21413         else
21414           gcc_cv_as_cfi_directive=yes
21415         fi
21416       else
21417         # no objdump, err on the side of caution
21418         gcc_cv_as_cfi_directive=no
21419       fi
21420     else
21421       gcc_cv_as_cfi_directive=yes
21422     fi
21423     ;;
21424   *-*-*)
21425     gcc_cv_as_cfi_directive=yes
21426     ;;
21427 esac
21428     else
21429       echo "configure: failed program was" >&5
21430       cat conftest.s >&5
21431     fi
21432     rm -f conftest.o conftest.s
21433   fi
21434 fi
21435 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21436 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21437
21438 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21439 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21440 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21441 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   gcc_cv_as_cfi_advance_working=no
21445   if test x$gcc_cv_as != x; then
21446     echo '      .text
21447         .cfi_startproc
21448         .cfi_adjust_cfa_offset 64
21449         .skip 512, 0
21450         .cfi_adjust_cfa_offset 128
21451         .cfi_endproc' > conftest.s
21452     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454   (eval $ac_try) 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); }; }
21458     then
21459
21460 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21461     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21462    gcc_cv_as_cfi_advance_working=yes
21463 fi
21464
21465     else
21466       echo "configure: failed program was" >&5
21467       cat conftest.s >&5
21468     fi
21469     rm -f conftest.o conftest.s
21470   fi
21471 fi
21472 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21473 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21474
21475 else
21476   # no readelf, err on the side of caution
21477   gcc_cv_as_cfi_advance_working=no
21478 fi
21479
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21482        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21483 _ACEOF
21484
21485
21486 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21487 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21488 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21489   echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491   gcc_cv_as_cfi_personality_directive=no
21492   if test x$gcc_cv_as != x; then
21493     echo '      .text
21494         .cfi_startproc
21495         .cfi_personality 0, symbol
21496         .cfi_endproc' > conftest.s
21497     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }
21503     then
21504         gcc_cv_as_cfi_personality_directive=yes
21505     else
21506       echo "configure: failed program was" >&5
21507       cat conftest.s >&5
21508     fi
21509     rm -f conftest.o conftest.s
21510   fi
21511 fi
21512 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21513 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21514
21515
21516 cat >>confdefs.h <<_ACEOF
21517 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21518     then echo 1; else echo 0; fi`
21519 _ACEOF
21520
21521
21522 # GAS versions up to and including 2.11.0 may mis-optimize
21523 # .eh_frame data.
21524 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21525 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21526 if test "${gcc_cv_as_eh_frame+set}" = set; then
21527   echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529   gcc_cv_as_eh_frame=no
21530     if test $in_tree_gas = yes; then
21531     if test $in_tree_gas_is_elf = yes \
21532   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21533   then gcc_cv_as_eh_frame=yes
21534 fi
21535   elif test x$gcc_cv_as != x; then
21536     echo '      .text
21537 .LFB1:
21538         .4byte  0
21539 .L1:
21540         .4byte  0
21541 .LFE1:
21542         .section        .eh_frame,"aw",@progbits
21543 __FRAME_BEGIN__:
21544         .4byte  .LECIE1-.LSCIE1
21545 .LSCIE1:
21546         .4byte  0x0
21547         .byte   0x1
21548         .ascii "z\0"
21549         .byte   0x1
21550         .byte   0x78
21551         .byte   0x1a
21552         .byte   0x0
21553         .byte   0x4
21554         .4byte  1
21555         .p2align 1
21556 .LECIE1:
21557 .LSFDE1:
21558         .4byte  .LEFDE1-.LASFDE1
21559 .LASFDE1:
21560         .4byte  .LASFDE1-__FRAME_BEGIN__
21561         .4byte  .LFB1
21562         .4byte  .LFE1-.LFB1
21563         .byte   0x4
21564         .4byte  .LFE1-.LFB1
21565         .byte   0x4
21566         .4byte  .L1-.LFB1
21567 .LEFDE1:' > conftest.s
21568     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; }
21574     then
21575           cat > conftest.lit <<EOF
21576  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21577  0010 01000000 12000000 18000000 00000000  ................
21578  0020 08000000 04080000 0044               .........D      
21579 EOF
21580 cat > conftest.big <<EOF
21581  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21582  0010 00000001 00000012 00000018 00000000  ................
21583  0020 00000008 04000000 0844               .........D      
21584 EOF
21585   # If the assembler didn't choke, and we can objdump,
21586   # and we got the correct data, then succeed.
21587   # The text in the here-document typically retains its unix-style line
21588   # endings, while the output of objdump will use host line endings.
21589   # Therefore, use diff -b for the comparisons.
21590   if test x$gcc_cv_objdump != x \
21591   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21592      | tail -3 > conftest.got \
21593   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21594     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21595   then
21596     gcc_cv_as_eh_frame=yes
21597   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; }; then
21603     gcc_cv_as_eh_frame=buggy
21604   else
21605     # Uh oh, what do we do now?
21606     gcc_cv_as_eh_frame=no
21607   fi
21608     else
21609       echo "configure: failed program was" >&5
21610       cat conftest.s >&5
21611     fi
21612     rm -f conftest.o conftest.s
21613   fi
21614 fi
21615 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21616 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21617
21618
21619 if test $gcc_cv_as_eh_frame = buggy; then
21620
21621 cat >>confdefs.h <<\_ACEOF
21622 #define USE_AS_TRADITIONAL_FORMAT 1
21623 _ACEOF
21624
21625 fi
21626
21627 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21628 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21629 if test "${gcc_cv_as_shf_merge+set}" = set; then
21630   echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632   gcc_cv_as_shf_merge=no
21633     if test $in_tree_gas = yes; then
21634     if test $in_tree_gas_is_elf = yes \
21635   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21636   then gcc_cv_as_shf_merge=yes
21637 fi
21638   elif test x$gcc_cv_as != x; then
21639     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21640     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642   (eval $ac_try) 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }
21646     then
21647         gcc_cv_as_shf_merge=yes
21648     else
21649       echo "configure: failed program was" >&5
21650       cat conftest.s >&5
21651     fi
21652     rm -f conftest.o conftest.s
21653   fi
21654 fi
21655 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21656 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21657
21658 if test $gcc_cv_as_shf_merge = no; then
21659   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21660 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21661 if test "${gcc_cv_as_shf_merge+set}" = set; then
21662   echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664   gcc_cv_as_shf_merge=no
21665     if test $in_tree_gas = yes; then
21666     if test $in_tree_gas_is_elf = yes \
21667   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21668   then gcc_cv_as_shf_merge=yes
21669 fi
21670   elif test x$gcc_cv_as != x; then
21671     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21672     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674   (eval $ac_try) 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; }
21678     then
21679         gcc_cv_as_shf_merge=yes
21680     else
21681       echo "configure: failed program was" >&5
21682       cat conftest.s >&5
21683     fi
21684     rm -f conftest.o conftest.s
21685   fi
21686 fi
21687 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21688 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21689
21690 fi
21691
21692 cat >>confdefs.h <<_ACEOF
21693 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21694 _ACEOF
21695
21696
21697 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21698 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21699 if test "${gcc_cv_as_comdat_group+set}" = set; then
21700   echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21702   gcc_cv_as_comdat_group=no
21703     if test $in_tree_gas = yes; then
21704     if test $in_tree_gas_is_elf = yes \
21705   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21706   then gcc_cv_as_comdat_group=yes
21707 fi
21708   elif test x$gcc_cv_as != x; then
21709     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21710     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712   (eval $ac_try) 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; }
21716     then
21717         gcc_cv_as_comdat_group=yes
21718     else
21719       echo "configure: failed program was" >&5
21720       cat conftest.s >&5
21721     fi
21722     rm -f conftest.o conftest.s
21723   fi
21724 fi
21725 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21726 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21727
21728 if test $gcc_cv_as_comdat_group = yes; then
21729   gcc_cv_as_comdat_group_percent=no
21730 else
21731  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21732 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21733 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736   gcc_cv_as_comdat_group_percent=no
21737     if test $in_tree_gas = yes; then
21738     if test $in_tree_gas_is_elf = yes \
21739   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21740   then gcc_cv_as_comdat_group_percent=yes
21741 fi
21742   elif test x$gcc_cv_as != x; then
21743     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21744     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }
21750     then
21751         gcc_cv_as_comdat_group_percent=yes
21752     else
21753       echo "configure: failed program was" >&5
21754       cat conftest.s >&5
21755     fi
21756     rm -f conftest.o conftest.s
21757   fi
21758 fi
21759 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21760 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21761
21762 fi
21763 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21764   comdat_group=yes
21765   if test 0"$ld_date" -lt 20050308; then
21766     if test -n "$ld_date"; then
21767       # If there was date string, but was earlier than 2005-03-08, fail
21768       comdat_group=no
21769     elif test "$ld_vers_major" -lt 2; then
21770       comdat_group=no
21771     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21772       comdat_group=no
21773     fi
21774   fi
21775 else
21776   # assume linkers other than GNU ld don't support COMDAT group
21777   comdat_group=no
21778 fi
21779 if test $comdat_group = no; then
21780   gcc_cv_as_comdat_group=no
21781   gcc_cv_as_comdat_group_percent=no
21782 fi
21783
21784 cat >>confdefs.h <<_ACEOF
21785 #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`
21786 _ACEOF
21787
21788
21789 # Thread-local storage - the check is heavily parameterized.
21790 conftest_s=
21791 tls_first_major=
21792 tls_first_minor=
21793 tls_as_opt=
21794 case "$target" in
21795   alpha*-*-*)
21796     conftest_s='
21797         .section ".tdata","awT",@progbits
21798 foo:    .long   25
21799         .text
21800         ldq     $27,__tls_get_addr($29)         !literal!1
21801         lda     $16,foo($29)                    !tlsgd!1
21802         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21803         ldq     $27,__tls_get_addr($29)         !literal!2
21804         lda     $16,foo($29)                    !tlsldm!2
21805         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21806         ldq     $1,foo($29)                     !gotdtprel
21807         ldah    $2,foo($29)                     !dtprelhi
21808         lda     $3,foo($2)                      !dtprello
21809         lda     $4,foo($29)                     !dtprel
21810         ldq     $1,foo($29)                     !gottprel
21811         ldah    $2,foo($29)                     !tprelhi
21812         lda     $3,foo($2)                      !tprello
21813         lda     $4,foo($29)                     !tprel'
21814         tls_first_major=2
21815         tls_first_minor=13
21816         tls_as_opt=--fatal-warnings
21817         ;;
21818   cris-*-*|crisv32-*-*)
21819     conftest_s='
21820         .section ".tdata","awT",@progbits
21821 x:      .long   25
21822         .text
21823         move.d x:IE,$r10
21824         nop'
21825         tls_first_major=2
21826         tls_first_minor=20
21827         tls_as_opt=--fatal-warnings
21828         ;;
21829   frv*-*-*)
21830     conftest_s='
21831         .section ".tdata","awT",@progbits
21832 x:      .long   25
21833         .text
21834         call    #gettlsoff(x)'
21835         tls_first_major=2
21836         tls_first_minor=14
21837         ;;
21838   hppa*-*-linux*)
21839     conftest_s='
21840 t1:     .reg    %r20
21841 t2:     .reg    %r21
21842 gp:     .reg    %r19
21843         .section ".tdata","awT",@progbits
21844 foo:    .long   25
21845         .text
21846         .align  4
21847         addil LT%foo-$tls_gdidx$,gp
21848         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21849         b __tls_get_addr
21850         nop
21851         addil LT%foo-$tls_ldidx$,gp
21852         b __tls_get_addr
21853         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21854         addil LR%foo-$tls_dtpoff$,%ret0
21855         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21856         mfctl %cr27,%t1
21857         addil LT%foo-$tls_ieoff$,gp
21858         ldw RT%foo-$tls_ieoff$(%r1),%t2
21859         add %t1,%t2,%t3
21860         mfctl %cr27,%t1
21861         addil LR%foo-$tls_leoff$,%t1
21862         ldo RR%foo-$tls_leoff$(%r1),%t2'
21863         tls_first_major=2
21864         tls_first_minor=15
21865         tls_as_opt=--fatal-warnings
21866         ;;
21867   arm*-*-*)
21868     conftest_s='
21869         .section ".tdata","awT",%progbits
21870 foo:    .long   25
21871         .text
21872 .word foo(gottpoff)
21873 .word foo(tpoff)
21874 .word foo(tlsgd)
21875 .word foo(tlsldm)
21876 .word foo(tlsldo)'
21877         tls_first_major=2
21878         tls_first_minor=17
21879         ;;
21880   i[34567]86-*-*)
21881     conftest_s='
21882         .section ".tdata","awT",@progbits
21883 foo:    .long   25
21884         .text
21885         movl    %gs:0, %eax
21886         leal    foo@TLSGD(,%ebx,1), %eax
21887         leal    foo@TLSLDM(%ebx), %eax
21888         leal    foo@DTPOFF(%eax), %edx
21889         movl    foo@GOTTPOFF(%ebx), %eax
21890         subl    foo@GOTTPOFF(%ebx), %eax
21891         addl    foo@GOTNTPOFF(%ebx), %eax
21892         movl    foo@INDNTPOFF, %eax
21893         movl    $foo@TPOFF, %eax
21894         subl    $foo@TPOFF, %eax
21895         leal    foo@NTPOFF(%ecx), %eax'
21896         tls_first_major=2
21897         tls_first_minor=14
21898         tls_as_opt=--fatal-warnings
21899         ;;
21900   x86_64-*-*)
21901     conftest_s='
21902         .section ".tdata","awT",@progbits
21903 foo:    .long   25
21904         .text
21905         movq    %fs:0, %rax
21906         leaq    foo@TLSGD(%rip), %rdi
21907         leaq    foo@TLSLD(%rip), %rdi
21908         leaq    foo@DTPOFF(%rax), %rdx
21909         movq    foo@GOTTPOFF(%rip), %rax
21910         movq    $foo@TPOFF, %rax'
21911         tls_first_major=2
21912         tls_first_minor=14
21913         tls_as_opt=--fatal-warnings
21914         ;;
21915   ia64-*-*)
21916     conftest_s='
21917         .section ".tdata","awT",@progbits
21918 foo:    data8   25
21919         .text
21920         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21921         addl    r17 = @ltoff(@dtprel(foo#)), gp
21922         addl    r18 = @ltoff(@tprel(foo#)), gp
21923         addl    r19 = @dtprel(foo#), gp
21924         adds    r21 = @dtprel(foo#), r13
21925         movl    r23 = @dtprel(foo#)
21926         addl    r20 = @tprel(foo#), gp
21927         adds    r22 = @tprel(foo#), r13
21928         movl    r24 = @tprel(foo#)'
21929         tls_first_major=2
21930         tls_first_minor=13
21931         tls_as_opt=--fatal-warnings
21932         ;;
21933   mips*-*-*)
21934     conftest_s='
21935         .section .tdata,"awT",@progbits
21936 x:
21937         .word 2
21938         .text
21939         addiu $4, $28, %tlsgd(x)
21940         addiu $4, $28, %tlsldm(x)
21941         lui $4, %dtprel_hi(x)
21942         addiu $4, $4, %dtprel_lo(x)
21943         lw $4, %gottprel(x)($28)
21944         lui $4, %tprel_hi(x)
21945         addiu $4, $4, %tprel_lo(x)'
21946         tls_first_major=2
21947         tls_first_minor=16
21948         tls_as_opt='-32 --fatal-warnings'
21949         ;;
21950   powerpc-*-*)
21951     conftest_s='
21952         .section ".tdata","awT",@progbits
21953         .align 2
21954 ld0:    .space 4
21955 ld1:    .space 4
21956 x1:     .space 4
21957 x2:     .space 4
21958 x3:     .space 4
21959         .text
21960         addi 3,31,ld0@got@tlsgd
21961         bl __tls_get_addr
21962         addi 3,31,x1@got@tlsld
21963         bl __tls_get_addr
21964         addi 9,3,x1@dtprel
21965         addis 9,3,x2@dtprel@ha
21966         addi 9,9,x2@dtprel@l
21967         lwz 9,x3@got@tprel(31)
21968         add 9,9,x@tls
21969         addi 9,2,x1@tprel
21970         addis 9,2,x2@tprel@ha
21971         addi 9,9,x2@tprel@l'
21972         tls_first_major=2
21973         tls_first_minor=14
21974         tls_as_opt="-a32 --fatal-warnings"
21975         ;;
21976   powerpc64-*-*)
21977     conftest_s='
21978         .section ".tdata","awT",@progbits
21979         .align 3
21980 ld0:    .space 8
21981 ld1:    .space 8
21982 x1:     .space 8
21983 x2:     .space 8
21984 x3:     .space 8
21985         .text
21986         addi 3,2,ld0@got@tlsgd
21987         bl .__tls_get_addr
21988         nop
21989         addi 3,2,ld1@toc
21990         bl .__tls_get_addr
21991         nop
21992         addi 3,2,x1@got@tlsld
21993         bl .__tls_get_addr
21994         nop
21995         addi 9,3,x1@dtprel
21996         bl .__tls_get_addr
21997         nop
21998         addis 9,3,x2@dtprel@ha
21999         addi 9,9,x2@dtprel@l
22000         bl .__tls_get_addr
22001         nop
22002         ld 9,x3@got@dtprel(2)
22003         add 9,9,3
22004         bl .__tls_get_addr
22005         nop'
22006         tls_first_major=2
22007         tls_first_minor=14
22008         tls_as_opt="-a64 --fatal-warnings"
22009         ;;
22010   s390-*-*)
22011     conftest_s='
22012         .section ".tdata","awT",@progbits
22013 foo:    .long   25
22014         .text
22015         .long   foo@TLSGD
22016         .long   foo@TLSLDM
22017         .long   foo@DTPOFF
22018         .long   foo@NTPOFF
22019         .long   foo@GOTNTPOFF
22020         .long   foo@INDNTPOFF
22021         l       %r1,foo@GOTNTPOFF(%r12)
22022         l       %r1,0(%r1):tls_load:foo
22023         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22024         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22025         tls_first_major=2
22026         tls_first_minor=14
22027         tls_as_opt="-m31 --fatal-warnings"
22028         ;;
22029   s390x-*-*)
22030     conftest_s='
22031         .section ".tdata","awT",@progbits
22032 foo:    .long   25
22033         .text
22034         .quad   foo@TLSGD
22035         .quad   foo@TLSLDM
22036         .quad   foo@DTPOFF
22037         .quad   foo@NTPOFF
22038         .quad   foo@GOTNTPOFF
22039         lg      %r1,foo@GOTNTPOFF(%r12)
22040         larl    %r1,foo@INDNTPOFF
22041         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22042         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22043         tls_first_major=2
22044         tls_first_minor=14
22045         tls_as_opt="-m64 -Aesame --fatal-warnings"
22046         ;;
22047   sh-*-* | sh[34]-*-*)
22048     conftest_s='
22049         .section ".tdata","awT",@progbits
22050 foo:    .long   25
22051         .text
22052         .long   foo@TLSGD
22053         .long   foo@TLSLDM
22054         .long   foo@DTPOFF
22055         .long   foo@GOTTPOFF
22056         .long   foo@TPOFF'
22057         tls_first_major=2
22058         tls_first_minor=13
22059         tls_as_opt=--fatal-warnings
22060         ;;
22061   sparc*-*-*)
22062     case "$target" in
22063       sparc*-sun-solaris2.[56789]*)
22064         # TLS was introduced in the Solaris 9 4/04 release but
22065         # we do not enable it by default on Solaris 9 either.
22066         if test "x$enable_tls" = xyes ; then
22067           on_solaris=yes
22068         else
22069           enable_tls=no;
22070         fi
22071         ;;
22072       sparc*-sun-solaris2.*)
22073         on_solaris=yes
22074         ;;
22075       *)
22076         on_solaris=no
22077         ;;
22078     esac
22079     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22080       conftest_s='
22081         .section ".tdata",#alloc,#write,#tls
22082 foo:    .long   25
22083         .text
22084         sethi   %tgd_hi22(foo), %o0
22085         add     %o0, %tgd_lo10(foo), %o1
22086         add     %l7, %o1, %o0, %tgd_add(foo)
22087         call    __tls_get_addr, %tgd_call(foo)
22088         sethi   %tldm_hi22(foo), %l1
22089         add     %l1, %tldm_lo10(foo), %l2
22090         add     %l7, %l2, %o0, %tldm_add(foo)
22091         call    __tls_get_addr, %tldm_call(foo)
22092         sethi   %tldo_hix22(foo), %l3
22093         xor     %l3, %tldo_lox10(foo), %l4
22094         add     %o0, %l4, %l5, %tldo_add(foo)
22095         sethi   %tie_hi22(foo), %o3
22096         add     %o3, %tie_lo10(foo), %o3
22097         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22098         add     %g7, %o2, %o4, %tie_add(foo)
22099         sethi   %tle_hix22(foo), %l1
22100         xor     %l1, %tle_lox10(foo), %o5
22101         ld      [%g7 + %o5], %o1'
22102         tls_first_major=0
22103         tls_first_minor=0
22104     else
22105       conftest_s='
22106         .section ".tdata","awT",@progbits
22107 foo:    .long   25
22108         .text
22109         sethi   %tgd_hi22(foo), %o0
22110         add     %o0, %tgd_lo10(foo), %o1
22111         add     %l7, %o1, %o0, %tgd_add(foo)
22112         call    __tls_get_addr, %tgd_call(foo)
22113         sethi   %tldm_hi22(foo), %l1
22114         add     %l1, %tldm_lo10(foo), %l2
22115         add     %l7, %l2, %o0, %tldm_add(foo)
22116         call    __tls_get_addr, %tldm_call(foo)
22117         sethi   %tldo_hix22(foo), %l3
22118         xor     %l3, %tldo_lox10(foo), %l4
22119         add     %o0, %l4, %l5, %tldo_add(foo)
22120         sethi   %tie_hi22(foo), %o3
22121         add     %o3, %tie_lo10(foo), %o3
22122         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22123         add     %g7, %o2, %o4, %tie_add(foo)
22124         sethi   %tle_hix22(foo), %l1
22125         xor     %l1, %tle_lox10(foo), %o5
22126         ld      [%g7 + %o5], %o1'
22127         tls_first_major=2
22128         tls_first_minor=14
22129         tls_as_opt="-32 --fatal-warnings"
22130       fi
22131         ;;
22132   xtensa*-*-*)
22133     conftest_s='
22134         .section ".tdata","awT",@progbits
22135 foo:    .long   25
22136         .text
22137         movi    a8, foo@TLSFUNC
22138         movi    a10, foo@TLSARG
22139         callx8.tls a8, foo@TLSCALL'
22140         tls_first_major=2
22141         tls_first_minor=19
22142         ;;
22143 esac
22144 set_have_as_tls=no
22145 if test "x$enable_tls" = xno ; then
22146   : # TLS explicitly disabled.
22147 elif test "x$enable_tls" = xyes ; then
22148   set_have_as_tls=yes # TLS explicitly enabled.
22149 elif test -z "$tls_first_major"; then
22150   : # If we don't have a check, assume no support.
22151 else
22152   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22153 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22154 if test "${gcc_cv_as_tls+set}" = set; then
22155   echo $ECHO_N "(cached) $ECHO_C" >&6
22156 else
22157   gcc_cv_as_tls=no
22158     if test $in_tree_gas = yes; then
22159     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22160   then gcc_cv_as_tls=yes
22161 fi
22162   elif test x$gcc_cv_as != x; then
22163     echo "$conftest_s" > conftest.s
22164     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166   (eval $ac_try) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); }; }
22170     then
22171         gcc_cv_as_tls=yes
22172     else
22173       echo "configure: failed program was" >&5
22174       cat conftest.s >&5
22175     fi
22176     rm -f conftest.o conftest.s
22177   fi
22178 fi
22179 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22180 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22181 if test $gcc_cv_as_tls = yes; then
22182   set_have_as_tls=yes
22183 fi
22184 fi
22185 if test $set_have_as_tls = yes ; then
22186
22187 cat >>confdefs.h <<\_ACEOF
22188 #define HAVE_AS_TLS 1
22189 _ACEOF
22190
22191 fi
22192
22193 # Target-specific assembler checks.
22194
22195 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22196 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22197 gcc_cv_ld_static_dynamic=no
22198 if test $in_tree_ld = yes ; then
22199   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
22200     gcc_cv_ld_static_dynamic=yes
22201   fi
22202 elif test x$gcc_cv_ld != x; then
22203         # Check if linker supports -Bstatic/-Bdynamic option
22204         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22205           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22206                 gcc_cv_ld_static_dynamic=yes
22207         fi
22208 fi
22209 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22210
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_LD_STATIC_DYNAMIC 1
22213 _ACEOF
22214
22215 fi
22216 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22217 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22218
22219 if test x"$demangler_in_ld" = xyes; then
22220   echo "$as_me:$LINENO: checking linker --demangle support" >&5
22221 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22222   gcc_cv_ld_demangle=no
22223   if test $in_tree_ld = yes; then
22224     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 \
22225       gcc_cv_ld_demangle=yes
22226     fi
22227   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22228     # Check if the GNU linker supports --demangle option
22229     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22230       gcc_cv_ld_demangle=yes
22231     fi
22232   fi
22233   if test x"$gcc_cv_ld_demangle" = xyes; then
22234
22235 cat >>confdefs.h <<\_ACEOF
22236 #define HAVE_LD_DEMANGLE 1
22237 _ACEOF
22238
22239   fi
22240   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22241 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22242 fi
22243
22244 case "$target" in
22245   # All TARGET_ABI_OSF targets.
22246   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22247     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22248 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22249 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22250   echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252   gcc_cv_as_alpha_explicit_relocs=no
22253     if test $in_tree_gas = yes; then
22254     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22255   then gcc_cv_as_alpha_explicit_relocs=yes
22256 fi
22257   elif test x$gcc_cv_as != x; then
22258     echo '      .set nomacro
22259         .text
22260         extbl   $3, $2, $3      !lituse_bytoff!1
22261         ldq     $2, a($29)      !literal!1
22262         ldq     $4, b($29)      !literal!2
22263         ldq_u   $3, 0($2)       !lituse_base!1
22264         ldq     $27, f($29)     !literal!5
22265         jsr     $26, ($27), f   !lituse_jsr!5
22266         ldah    $29, 0($26)     !gpdisp!3
22267         lda     $0, c($29)      !gprel
22268         ldah    $1, d($29)      !gprelhigh
22269         lda     $1, d($1)       !gprellow
22270         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22271     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273   (eval $ac_try) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; }
22277     then
22278         gcc_cv_as_alpha_explicit_relocs=yes
22279     else
22280       echo "configure: failed program was" >&5
22281       cat conftest.s >&5
22282     fi
22283     rm -f conftest.o conftest.s
22284   fi
22285 fi
22286 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22287 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22288 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22289
22290 cat >>confdefs.h <<\_ACEOF
22291 #define HAVE_AS_EXPLICIT_RELOCS 1
22292 _ACEOF
22293
22294 fi
22295     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22296 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22297 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300   gcc_cv_as_alpha_jsrdirect_relocs=no
22301     if test $in_tree_gas = yes; then
22302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22303   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22304 fi
22305   elif test x$gcc_cv_as != x; then
22306     echo '      .set nomacro
22307         .text
22308         ldq     $27, a($29)     !literal!1
22309         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22310     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); }; }
22316     then
22317         gcc_cv_as_alpha_jsrdirect_relocs=yes
22318     else
22319       echo "configure: failed program was" >&5
22320       cat conftest.s >&5
22321     fi
22322     rm -f conftest.o conftest.s
22323   fi
22324 fi
22325 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22326 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22327 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22328
22329 cat >>confdefs.h <<\_ACEOF
22330 #define HAVE_AS_JSRDIRECT_RELOCS 1
22331 _ACEOF
22332
22333 fi
22334     ;;
22335
22336   cris-*-*)
22337     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22338 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22339 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22340   echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342   gcc_cv_as_cris_no_mul_bug=no
22343     if test $in_tree_gas = yes; then
22344     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22345   then gcc_cv_as_cris_no_mul_bug=yes
22346 fi
22347   elif test x$gcc_cv_as != x; then
22348     echo '.text' > conftest.s
22349     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351   (eval $ac_try) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); }; }
22355     then
22356         gcc_cv_as_cris_no_mul_bug=yes
22357     else
22358       echo "configure: failed program was" >&5
22359       cat conftest.s >&5
22360     fi
22361     rm -f conftest.o conftest.s
22362   fi
22363 fi
22364 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22365 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22366 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22367
22368 cat >>confdefs.h <<\_ACEOF
22369 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22370 _ACEOF
22371
22372 fi
22373     ;;
22374
22375   sparc*-*-*)
22376     echo "$as_me:$LINENO: checking assembler for .register" >&5
22377 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22378 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381   gcc_cv_as_sparc_register_op=no
22382   if test x$gcc_cv_as != x; then
22383     echo '.register %g2, #scratch' > conftest.s
22384     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }
22390     then
22391         gcc_cv_as_sparc_register_op=yes
22392     else
22393       echo "configure: failed program was" >&5
22394       cat conftest.s >&5
22395     fi
22396     rm -f conftest.o conftest.s
22397   fi
22398 fi
22399 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22400 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22401 if test $gcc_cv_as_sparc_register_op = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22405 _ACEOF
22406
22407 fi
22408
22409     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22410 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22411 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414   gcc_cv_as_sparc_relax=no
22415   if test x$gcc_cv_as != x; then
22416     echo '.text' > conftest.s
22417     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419   (eval $ac_try) 2>&5
22420   ac_status=$?
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); }; }
22423     then
22424         gcc_cv_as_sparc_relax=yes
22425     else
22426       echo "configure: failed program was" >&5
22427       cat conftest.s >&5
22428     fi
22429     rm -f conftest.o conftest.s
22430   fi
22431 fi
22432 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22433 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22434 if test $gcc_cv_as_sparc_relax = yes; then
22435
22436 cat >>confdefs.h <<\_ACEOF
22437 #define HAVE_AS_RELAX_OPTION 1
22438 _ACEOF
22439
22440 fi
22441
22442     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22443 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22444 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22445   echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447   gcc_cv_as_sparc_ua_pcrel=no
22448   if test x$gcc_cv_as != x; then
22449     echo '.text
22450 foo:
22451         nop
22452 .data
22453 .align 4
22454 .byte 0
22455 .uaword %r_disp32(foo)' > conftest.s
22456     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }
22462     then
22463         if test x$gcc_cv_ld != x \
22464        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22465          gcc_cv_as_sparc_ua_pcrel=yes
22466        fi
22467        rm -f conftest
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_sparc_ua_pcrel" >&5
22476 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22477 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22478
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_AS_SPARC_UA_PCREL 1
22481 _ACEOF
22482
22483
22484       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22485 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22486 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22487   echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489   gcc_cv_as_sparc_ua_pcrel_hidden=no
22490   if test x$gcc_cv_as != x; then
22491     echo '.data
22492 .align 4
22493 .byte 0x31
22494 .uaword %r_disp32(foo)
22495 .byte 0x32, 0x33, 0x34
22496 .global foo
22497 .hidden foo
22498 foo:
22499 .skip 4' > conftest.s
22500     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502   (eval $ac_try) 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; }
22506     then
22507         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22508          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22509          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22510             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22511             if $gcc_cv_objdump -R conftest 2> /dev/null \
22512                | grep 'DISP32' > /dev/null 2>&1; then
22513                 :
22514             else
22515                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22516             fi
22517          fi
22518          rm -f conftest
22519     else
22520       echo "configure: failed program was" >&5
22521       cat conftest.s >&5
22522     fi
22523     rm -f conftest.o conftest.s
22524   fi
22525 fi
22526 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22527 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22528 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22529
22530 cat >>confdefs.h <<\_ACEOF
22531 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22532 _ACEOF
22533
22534 fi
22535
22536 fi # unaligned pcrel relocs
22537
22538     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22539 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22540 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   gcc_cv_as_sparc_offsetable_lo10=no
22544   if test x$gcc_cv_as != x; then
22545     echo '.text
22546         or %g1, %lo(ab) + 12, %g1
22547         or %g1, %lo(ab + 12), %g1' > conftest.s
22548     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550   (eval $ac_try) 2>&5
22551   ac_status=$?
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); }; }
22554     then
22555         if test x$gcc_cv_objdump != x \
22556        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22557           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22558          gcc_cv_as_sparc_offsetable_lo10=yes
22559        fi
22560     else
22561       echo "configure: failed program was" >&5
22562       cat conftest.s >&5
22563     fi
22564     rm -f conftest.o conftest.s
22565   fi
22566 fi
22567 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22568 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22569 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22570
22571 cat >>confdefs.h <<\_ACEOF
22572 #define HAVE_AS_OFFSETABLE_LO10 1
22573 _ACEOF
22574
22575 fi
22576     ;;
22577
22578   i[34567]86-*-* | x86_64-*-*)
22579     case $target_os in
22580       cygwin* | pe | mingw32*)
22581         # Used for DWARF 2 in PE
22582         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22583 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22584 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   gcc_cv_as_ix86_pe_secrel32=no
22588     if test $in_tree_gas = yes; then
22589     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22590   then gcc_cv_as_ix86_pe_secrel32=yes
22591 fi
22592   elif test x$gcc_cv_as != x; then
22593     echo '.text
22594 foo:    nop
22595 .data
22596         .secrel32 foo' > conftest.s
22597     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }
22603     then
22604         if test x$gcc_cv_ld != x \
22605            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22606              gcc_cv_as_ix86_pe_secrel32=yes
22607            fi
22608            rm -f conftest
22609     else
22610       echo "configure: failed program was" >&5
22611       cat conftest.s >&5
22612     fi
22613     rm -f conftest.o conftest.s
22614   fi
22615 fi
22616 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22617 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22618 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22619
22620 cat >>confdefs.h <<\_ACEOF
22621 #define HAVE_GAS_PE_SECREL32_RELOC 1
22622 _ACEOF
22623
22624 fi
22625         ;;
22626     esac
22627
22628     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22629 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22630 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
22631   echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633   gcc_cv_as_ix86_filds_fists=no
22634     if test $in_tree_gas = yes; then
22635     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22636   then gcc_cv_as_ix86_filds_fists=yes
22637 fi
22638   elif test x$gcc_cv_as != x; then
22639     echo 'filds mem; fists mem' > conftest.s
22640     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642   (eval $ac_try) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; }
22646     then
22647         gcc_cv_as_ix86_filds_fists=yes
22648     else
22649       echo "configure: failed program was" >&5
22650       cat conftest.s >&5
22651     fi
22652     rm -f conftest.o conftest.s
22653   fi
22654 fi
22655 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
22656 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
22657 if test $gcc_cv_as_ix86_filds_fists = yes; then
22658
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_GAS_FILDS_FISTS 1
22661 _ACEOF
22662
22663 fi
22664
22665     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22666 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22667 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22668   echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670   gcc_cv_as_ix86_cmov_sun_syntax=no
22671   if test x$gcc_cv_as != x; then
22672     echo 'cmovl.l %edx, %eax' > conftest.s
22673     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; }
22679     then
22680         gcc_cv_as_ix86_cmov_sun_syntax=yes
22681     else
22682       echo "configure: failed program was" >&5
22683       cat conftest.s >&5
22684     fi
22685     rm -f conftest.o conftest.s
22686   fi
22687 fi
22688 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22689 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22690 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22694 _ACEOF
22695
22696 fi
22697
22698     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22699 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22700 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703   gcc_cv_as_ix86_ffreep=no
22704   if test x$gcc_cv_as != x; then
22705     echo 'ffreep %st(1)' > conftest.s
22706     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; }
22712     then
22713         gcc_cv_as_ix86_ffreep=yes
22714     else
22715       echo "configure: failed program was" >&5
22716       cat conftest.s >&5
22717     fi
22718     rm -f conftest.o conftest.s
22719   fi
22720 fi
22721 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22722 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22723 if test $gcc_cv_as_ix86_ffreep = yes; then
22724
22725 cat >>confdefs.h <<\_ACEOF
22726 #define HAVE_AS_IX86_FFREEP 1
22727 _ACEOF
22728
22729 fi
22730
22731     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22732 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22733 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736   gcc_cv_as_ix86_sahf=no
22737   if test x$gcc_cv_as != x; then
22738     echo 'sahf' > conftest.s
22739     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741   (eval $ac_try) 2>&5
22742   ac_status=$?
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); }; }
22745     then
22746         gcc_cv_as_ix86_sahf=yes
22747     else
22748       echo "configure: failed program was" >&5
22749       cat conftest.s >&5
22750     fi
22751     rm -f conftest.o conftest.s
22752   fi
22753 fi
22754 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22755 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22756 if test $gcc_cv_as_ix86_sahf = yes; then
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_AS_IX86_SAHF 1
22760 _ACEOF
22761
22762 fi
22763
22764     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22765 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22766 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22767   echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769   gcc_cv_as_ix86_diff_sect_delta=no
22770   if test x$gcc_cv_as != x; then
22771     echo '.section .rodata
22772 .L1:
22773         .long .L2-.L1
22774         .long .L3-.L1
22775         .text
22776 .L3:    nop
22777 .L2:    nop' > conftest.s
22778     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780   (eval $ac_try) 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; }
22784     then
22785         gcc_cv_as_ix86_diff_sect_delta=yes
22786     else
22787       echo "configure: failed program was" >&5
22788       cat conftest.s >&5
22789     fi
22790     rm -f conftest.o conftest.s
22791   fi
22792 fi
22793 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22794 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22795 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22796
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22799 _ACEOF
22800
22801 fi
22802
22803     # This one is used unconditionally by i386.[ch]; it is to be defined
22804     # to 1 if the feature is present, 0 otherwise.
22805     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22806 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22807 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22808   echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810   gcc_cv_as_ix86_gotoff_in_data=no
22811     if test $in_tree_gas = yes; then
22812     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22813   then gcc_cv_as_ix86_gotoff_in_data=yes
22814 fi
22815   elif test x$gcc_cv_as != x; then
22816     echo '      .text
22817 .L0:
22818         nop
22819         .data
22820         .long .L0@GOTOFF' > conftest.s
22821     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823   (eval $ac_try) 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); }; }
22827     then
22828         gcc_cv_as_ix86_gotoff_in_data=yes
22829     else
22830       echo "configure: failed program was" >&5
22831       cat conftest.s >&5
22832     fi
22833     rm -f conftest.o conftest.s
22834   fi
22835 fi
22836 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22837 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22838
22839
22840 cat >>confdefs.h <<_ACEOF
22841 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22842 _ACEOF
22843
22844     ;;
22845
22846   ia64*-*-*)
22847     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22848 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22849 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22853     if test $in_tree_gas = yes; then
22854     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22855   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22856 fi
22857   elif test x$gcc_cv_as != x; then
22858     echo '      .text
22859         addl r15 = @ltoffx(x#), gp
22860         ;;
22861         ld8.mov r16 = [r15], x#' > conftest.s
22862     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864   (eval $ac_try) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }
22868     then
22869         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22870     else
22871       echo "configure: failed program was" >&5
22872       cat conftest.s >&5
22873     fi
22874     rm -f conftest.o conftest.s
22875   fi
22876 fi
22877 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22878 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22883 _ACEOF
22884
22885 fi
22886
22887     ;;
22888
22889   powerpc*-*-*)
22890     case $target in
22891       *-*-aix*) conftest_s='    .machine "pwr5"
22892         .csect .text[PR]
22893         mfcr 3,128';;
22894       *-*-darwin*)
22895         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22896 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22897 if test "${gcc_cv_as_machine_directive+set}" = set; then
22898   echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900   gcc_cv_as_machine_directive=no
22901   if test x$gcc_cv_as != x; then
22902     echo '      .machine ppc7400' > conftest.s
22903     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905   (eval $ac_try) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }; }
22909     then
22910         gcc_cv_as_machine_directive=yes
22911     else
22912       echo "configure: failed program was" >&5
22913       cat conftest.s >&5
22914     fi
22915     rm -f conftest.o conftest.s
22916   fi
22917 fi
22918 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22919 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22920
22921         if test x$gcc_cv_as_machine_directive != xyes; then
22922           echo "*** This target requires an assembler supporting \".machine\"" >&2
22923           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22924           test x$build = x$target && exit 1
22925         fi
22926         conftest_s='    .text
22927         mfcr r3,128';;
22928       *) conftest_s='   .machine power4
22929         .text
22930         mfcr 3,128';;
22931     esac
22932
22933     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22934 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22935 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938   gcc_cv_as_powerpc_mfcrf=no
22939     if test $in_tree_gas = yes; then
22940     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22941   then gcc_cv_as_powerpc_mfcrf=yes
22942 fi
22943   elif test x$gcc_cv_as != x; then
22944     echo "$conftest_s" > conftest.s
22945     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; }
22951     then
22952         gcc_cv_as_powerpc_mfcrf=yes
22953     else
22954       echo "configure: failed program was" >&5
22955       cat conftest.s >&5
22956     fi
22957     rm -f conftest.o conftest.s
22958   fi
22959 fi
22960 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22961 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22962 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22963
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_AS_MFCRF 1
22966 _ACEOF
22967
22968 fi
22969
22970     case $target in
22971       *-*-aix*) conftest_s='    .machine "pwr5"
22972         .csect .text[PR]
22973         popcntb 3,3';;
22974       *) conftest_s='   .machine power5
22975         .text
22976         popcntb 3,3';;
22977     esac
22978
22979     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22980 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22981 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22982   echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22984   gcc_cv_as_powerpc_popcntb=no
22985     if test $in_tree_gas = yes; then
22986     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22987   then gcc_cv_as_powerpc_popcntb=yes
22988 fi
22989   elif test x$gcc_cv_as != x; then
22990     echo "$conftest_s" > conftest.s
22991     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993   (eval $ac_try) 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }
22997     then
22998         gcc_cv_as_powerpc_popcntb=yes
22999     else
23000       echo "configure: failed program was" >&5
23001       cat conftest.s >&5
23002     fi
23003     rm -f conftest.o conftest.s
23004   fi
23005 fi
23006 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23007 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23008 if test $gcc_cv_as_powerpc_popcntb = yes; then
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_AS_POPCNTB 1
23012 _ACEOF
23013
23014 fi
23015
23016     case $target in
23017       *-*-aix*) conftest_s='    .machine "pwr5x"
23018         .csect .text[PR]
23019         frin 1,1';;
23020       *) conftest_s='   .machine power5
23021         .text
23022         frin 1,1';;
23023     esac
23024
23025     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23026 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23027 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23028   echo $ECHO_N "(cached) $ECHO_C" >&6
23029 else
23030   gcc_cv_as_powerpc_fprnd=no
23031     if test $in_tree_gas = yes; then
23032     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23033   then gcc_cv_as_powerpc_fprnd=yes
23034 fi
23035   elif test x$gcc_cv_as != x; then
23036     echo "$conftest_s" > conftest.s
23037     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039   (eval $ac_try) 2>&5
23040   ac_status=$?
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); }; }
23043     then
23044         gcc_cv_as_powerpc_fprnd=yes
23045     else
23046       echo "configure: failed program was" >&5
23047       cat conftest.s >&5
23048     fi
23049     rm -f conftest.o conftest.s
23050   fi
23051 fi
23052 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23053 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23054 if test $gcc_cv_as_powerpc_fprnd = yes; then
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_AS_FPRND 1
23058 _ACEOF
23059
23060 fi
23061
23062     case $target in
23063       *-*-aix*) conftest_s='    .machine "pwr6"
23064         .csect .text[PR]
23065         mffgpr 1,3';;
23066       *) conftest_s='   .machine power6
23067         .text
23068         mffgpr 1,3';;
23069     esac
23070
23071     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23072 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23073 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23074   echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076   gcc_cv_as_powerpc_mfpgpr=no
23077     if test $in_tree_gas = yes; then
23078     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23079   then gcc_cv_as_powerpc_mfpgpr=yes
23080 fi
23081   elif test x$gcc_cv_as != x; then
23082     echo "$conftest_s" > conftest.s
23083     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085   (eval $ac_try) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; }
23089     then
23090         gcc_cv_as_powerpc_mfpgpr=yes
23091     else
23092       echo "configure: failed program was" >&5
23093       cat conftest.s >&5
23094     fi
23095     rm -f conftest.o conftest.s
23096   fi
23097 fi
23098 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23099 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23100 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23101
23102 cat >>confdefs.h <<\_ACEOF
23103 #define HAVE_AS_MFPGPR 1
23104 _ACEOF
23105
23106 fi
23107
23108     case $target in
23109       *-*-aix*) conftest_s='    .csect .text[PR]
23110 LCF..0:
23111         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23112       *-*-darwin*)
23113         conftest_s='    .text
23114 LCF0:
23115         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23116       *) conftest_s='   .text
23117 .LCF0:
23118         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23119     esac
23120
23121     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23122 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23123 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23124   echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126   gcc_cv_as_powerpc_rel16=no
23127     if test $in_tree_gas = yes; then
23128     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23129   then gcc_cv_as_powerpc_rel16=yes
23130 fi
23131   elif test x$gcc_cv_as != x; then
23132     echo "$conftest_s" > conftest.s
23133     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135   (eval $ac_try) 2>&5
23136   ac_status=$?
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); }; }
23139     then
23140         gcc_cv_as_powerpc_rel16=yes
23141     else
23142       echo "configure: failed program was" >&5
23143       cat conftest.s >&5
23144     fi
23145     rm -f conftest.o conftest.s
23146   fi
23147 fi
23148 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23149 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23150 if test $gcc_cv_as_powerpc_rel16 = yes; then
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define HAVE_AS_REL16 1
23154 _ACEOF
23155
23156 fi
23157
23158     case $target in
23159       *-*-aix*) conftest_s='    .machine "pwr6"
23160         .csect .text[PR]
23161         cmpb 3,4,5';;
23162       *) conftest_s='   .machine power6
23163         .text
23164         cmpb 3,4,5';;
23165     esac
23166
23167     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23168 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23169 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23170   echo $ECHO_N "(cached) $ECHO_C" >&6
23171 else
23172   gcc_cv_as_powerpc_cmpb=no
23173     if test $in_tree_gas = yes; then
23174     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23175   then gcc_cv_as_powerpc_cmpb=yes
23176 fi
23177   elif test x$gcc_cv_as != x; then
23178     echo "$conftest_s" > conftest.s
23179     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; }
23185     then
23186         gcc_cv_as_powerpc_cmpb=yes
23187     else
23188       echo "configure: failed program was" >&5
23189       cat conftest.s >&5
23190     fi
23191     rm -f conftest.o conftest.s
23192   fi
23193 fi
23194 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23195 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23196 if test $gcc_cv_as_powerpc_cmpb = yes; then
23197
23198 cat >>confdefs.h <<\_ACEOF
23199 #define HAVE_AS_CMPB 1
23200 _ACEOF
23201
23202 fi
23203
23204     case $target in
23205       *-*-aix*) conftest_s='    .machine "pwr6"
23206         .csect .text[PR]
23207         dadd 1,2,3';;
23208       *) conftest_s='   .machine power6
23209         .text
23210         dadd 1,2,3';;
23211     esac
23212
23213     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23214 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23215 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23216   echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218   gcc_cv_as_powerpc_dfp=no
23219     if test $in_tree_gas = yes; then
23220     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23221   then gcc_cv_as_powerpc_dfp=yes
23222 fi
23223   elif test x$gcc_cv_as != x; then
23224     echo "$conftest_s" > conftest.s
23225     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227   (eval $ac_try) 2>&5
23228   ac_status=$?
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); }; }
23231     then
23232         gcc_cv_as_powerpc_dfp=yes
23233     else
23234       echo "configure: failed program was" >&5
23235       cat conftest.s >&5
23236     fi
23237     rm -f conftest.o conftest.s
23238   fi
23239 fi
23240 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23241 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23242 if test $gcc_cv_as_powerpc_dfp = yes; then
23243
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_AS_DFP 1
23246 _ACEOF
23247
23248 fi
23249
23250     case $target in
23251       *-*-aix*) conftest_s='    .machine "pwr7"
23252         .csect .text[PR]
23253         lxvd2x 1,2,3';;
23254       *) conftest_s='   .machine power7
23255         .text
23256         lxvd2x 1,2,3';;
23257     esac
23258
23259     echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23260 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23261 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23262   echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264   gcc_cv_as_powerpc_vsx=no
23265     if test $in_tree_gas = yes; then
23266     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23267   then gcc_cv_as_powerpc_vsx=yes
23268 fi
23269   elif test x$gcc_cv_as != x; then
23270     echo "$conftest_s" > conftest.s
23271     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; }
23277     then
23278         gcc_cv_as_powerpc_vsx=yes
23279     else
23280       echo "configure: failed program was" >&5
23281       cat conftest.s >&5
23282     fi
23283     rm -f conftest.o conftest.s
23284   fi
23285 fi
23286 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23287 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23288 if test $gcc_cv_as_powerpc_vsx = yes; then
23289
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_AS_VSX 1
23292 _ACEOF
23293
23294 fi
23295
23296     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23297 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23298 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   gcc_cv_as_powerpc_gnu_attribute=no
23302     if test $in_tree_gas = yes; then
23303     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23304   then gcc_cv_as_powerpc_gnu_attribute=yes
23305 fi
23306   elif test x$gcc_cv_as != x; then
23307     echo '.gnu_attribute 4,1' > conftest.s
23308     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310   (eval $ac_try) 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); }; }
23314     then
23315         gcc_cv_as_powerpc_gnu_attribute=yes
23316     else
23317       echo "configure: failed program was" >&5
23318       cat conftest.s >&5
23319     fi
23320     rm -f conftest.o conftest.s
23321   fi
23322 fi
23323 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23324 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23325 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_AS_GNU_ATTRIBUTE 1
23329 _ACEOF
23330
23331 fi
23332
23333     echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23334 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23335 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23336   echo $ECHO_N "(cached) $ECHO_C" >&6
23337 else
23338   gcc_cv_as_powerpc_tls_markers=no
23339     if test $in_tree_gas = yes; then
23340     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23341   then gcc_cv_as_powerpc_tls_markers=yes
23342 fi
23343   elif test x$gcc_cv_as != x; then
23344     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23345     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }
23351     then
23352         gcc_cv_as_powerpc_tls_markers=yes
23353     else
23354       echo "configure: failed program was" >&5
23355       cat conftest.s >&5
23356     fi
23357     rm -f conftest.o conftest.s
23358   fi
23359 fi
23360 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23361 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23362 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23363
23364 cat >>confdefs.h <<\_ACEOF
23365 #define HAVE_AS_TLS_MARKERS 1
23366 _ACEOF
23367
23368 fi
23369     ;;
23370
23371   mips*-*-*)
23372     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23373 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23374 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23375   echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377   gcc_cv_as_mips_explicit_relocs=no
23378     if test $in_tree_gas = yes; then
23379     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23380   then gcc_cv_as_mips_explicit_relocs=yes
23381 fi
23382   elif test x$gcc_cv_as != x; then
23383     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23384     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }
23390     then
23391         gcc_cv_as_mips_explicit_relocs=yes
23392     else
23393       echo "configure: failed program was" >&5
23394       cat conftest.s >&5
23395     fi
23396     rm -f conftest.o conftest.s
23397   fi
23398 fi
23399 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23400 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23401 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23402   if test x$target_cpu_default = x
23403        then target_cpu_default=MASK_EXPLICIT_RELOCS
23404        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23405        fi
23406 fi
23407     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23408 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23409 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23410   echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412   gcc_cv_as_mips_no_shared=no
23413     if test $in_tree_gas = yes; then
23414     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23415   then gcc_cv_as_mips_no_shared=yes
23416 fi
23417   elif test x$gcc_cv_as != x; then
23418     echo 'nop' > conftest.s
23419     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421   (eval $ac_try) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; }
23425     then
23426         gcc_cv_as_mips_no_shared=yes
23427     else
23428       echo "configure: failed program was" >&5
23429       cat conftest.s >&5
23430     fi
23431     rm -f conftest.o conftest.s
23432   fi
23433 fi
23434 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23435 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23436 if test $gcc_cv_as_mips_no_shared = yes; then
23437
23438 cat >>confdefs.h <<\_ACEOF
23439 #define HAVE_AS_NO_SHARED 1
23440 _ACEOF
23441
23442 fi
23443
23444     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23445 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23446 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   gcc_cv_as_mips_gnu_attribute=no
23450     if test $in_tree_gas = yes; then
23451     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23452   then gcc_cv_as_mips_gnu_attribute=yes
23453 fi
23454   elif test x$gcc_cv_as != x; then
23455     echo '.gnu_attribute 4,1' > conftest.s
23456     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458   (eval $ac_try) 2>&5
23459   ac_status=$?
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); }; }
23462     then
23463         gcc_cv_as_mips_gnu_attribute=yes
23464     else
23465       echo "configure: failed program was" >&5
23466       cat conftest.s >&5
23467     fi
23468     rm -f conftest.o conftest.s
23469   fi
23470 fi
23471 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23472 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23473 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23474
23475 cat >>confdefs.h <<\_ACEOF
23476 #define HAVE_AS_GNU_ATTRIBUTE 1
23477 _ACEOF
23478
23479 fi
23480
23481     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23482 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23483 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23484   echo $ECHO_N "(cached) $ECHO_C" >&6
23485 else
23486   gcc_cv_as_mips_dtprelword=no
23487     if test $in_tree_gas = yes; then
23488     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23489   then gcc_cv_as_mips_dtprelword=yes
23490 fi
23491   elif test x$gcc_cv_as != x; then
23492     echo '.section .tdata,"awT",@progbits
23493 x:
23494         .word 2
23495         .text
23496         .dtprelword x+0x8000' > 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_dtprelword=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_dtprelword" >&5
23513 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23514 if test $gcc_cv_as_mips_dtprelword = yes; then
23515
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_AS_DTPRELWORD 1
23518 _ACEOF
23519
23520 fi
23521     ;;
23522 esac
23523
23524 # Mips and HP-UX need the GNU assembler.
23525 # Linux on IA64 might be able to use the Intel assembler.
23526
23527 case "$target" in
23528   mips*-*-* | *-*-hpux* )
23529     if test x$gas_flag = xyes \
23530        || test x"$host" != x"$build" \
23531        || test ! -x "$gcc_cv_as" \
23532        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23533       :
23534     else
23535       echo "*** This configuration requires the GNU assembler" >&2
23536       exit 1
23537     fi
23538     ;;
23539 esac
23540
23541 # ??? Not all targets support dwarf2 debug_line, even within a version
23542 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23543 # info to the output file.  So, as supported targets are added to gas 2.11,
23544 # add some instruction here to (also) show we expect this might work.
23545 # ??? Once 2.11 is released, probably need to add first known working
23546 # version to the per-target configury.
23547 case "$target" in
23548   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23549   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23550   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23551   | spu-*-* | fido*-*-* | m32c-*-*)
23552     insn="nop"
23553     ;;
23554   ia64*-*-* | s390*-*-*)
23555     insn="nop 0"
23556     ;;
23557   mmix-*-*)
23558     insn="swym 0"
23559     ;;
23560 esac
23561 if test x"$insn" != x; then
23562  conftest_s="\
23563         .file 1 \"conftest.s\"
23564         .loc 1 3 0
23565         $insn"
23566  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23567 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23568 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23569   echo $ECHO_N "(cached) $ECHO_C" >&6
23570 else
23571   gcc_cv_as_dwarf2_debug_line=no
23572     if test $in_tree_gas = yes; then
23573     if test $in_tree_gas_is_elf = yes \
23574   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23575   then gcc_cv_as_dwarf2_debug_line=yes
23576 fi
23577   elif test x$gcc_cv_as != x; then
23578     echo "$conftest_s" > conftest.s
23579     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }
23585     then
23586         if test x$gcc_cv_objdump != x \
23587    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23588       | grep debug_line > /dev/null 2>&1; then
23589      gcc_cv_as_dwarf2_debug_line=yes
23590    fi
23591     else
23592       echo "configure: failed program was" >&5
23593       cat conftest.s >&5
23594     fi
23595     rm -f conftest.o conftest.s
23596   fi
23597 fi
23598 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23599 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23600
23601
23602 # The .debug_line file table must be in the exact order that
23603 # we specified the files, since these indices are also used
23604 # by DW_AT_decl_file.  Approximate this test by testing if
23605 # the assembler bitches if the same index is assigned twice.
23606  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23607 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23608 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611   gcc_cv_as_dwarf2_file_buggy=no
23612   if test x$gcc_cv_as != x; then
23613     echo '      .file 1 "foo.s"
23614         .file 1 "bar.s"' > conftest.s
23615     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; }
23621     then
23622         gcc_cv_as_dwarf2_file_buggy=yes
23623     else
23624       echo "configure: failed program was" >&5
23625       cat conftest.s >&5
23626     fi
23627     rm -f conftest.o conftest.s
23628   fi
23629 fi
23630 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23631 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23632
23633
23634  if test $gcc_cv_as_dwarf2_debug_line = yes \
23635  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23636
23637 cat >>confdefs.h <<\_ACEOF
23638 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23639 _ACEOF
23640
23641  fi
23642
23643  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23644 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23645 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23646   echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648   gcc_cv_as_gdwarf2_flag=no
23649     if test $in_tree_gas = yes; then
23650     if test $in_tree_gas_is_elf = yes \
23651   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23652   then gcc_cv_as_gdwarf2_flag=yes
23653 fi
23654   elif test x$gcc_cv_as != x; then
23655     echo "$insn" > conftest.s
23656     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); }; }
23662     then
23663         gcc_cv_as_gdwarf2_flag=yes
23664     else
23665       echo "configure: failed program was" >&5
23666       cat conftest.s >&5
23667     fi
23668     rm -f conftest.o conftest.s
23669   fi
23670 fi
23671 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23672 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23673 if test $gcc_cv_as_gdwarf2_flag = yes; then
23674
23675 cat >>confdefs.h <<\_ACEOF
23676 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23677 _ACEOF
23678
23679 fi
23680
23681  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23682 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23683 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23684   echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686   gcc_cv_as_gstabs_flag=no
23687     if test $in_tree_gas = yes; then
23688     if test $in_tree_gas_is_elf = yes \
23689   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23690   then gcc_cv_as_gstabs_flag=yes
23691 fi
23692   elif test x$gcc_cv_as != x; then
23693     echo "$insn" > conftest.s
23694     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696   (eval $ac_try) 2>&5
23697   ac_status=$?
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); }; }
23700     then
23701         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23702    # and warns about it, but still exits successfully.  So check for
23703    # this.
23704    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); }; }
23710    then :
23711    else gcc_cv_as_gstabs_flag=yes
23712    fi
23713     else
23714       echo "configure: failed program was" >&5
23715       cat conftest.s >&5
23716     fi
23717     rm -f conftest.o conftest.s
23718   fi
23719 fi
23720 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23721 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23722 if test $gcc_cv_as_gstabs_flag = yes; then
23723
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23726 _ACEOF
23727
23728 fi
23729
23730  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23731 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23732 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23733   echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23735   gcc_cv_as_debug_prefix_map_flag=no
23736     if test $in_tree_gas = yes; then
23737     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23738   then gcc_cv_as_debug_prefix_map_flag=yes
23739 fi
23740   elif test x$gcc_cv_as != x; then
23741     echo "$insn" > conftest.s
23742     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744   (eval $ac_try) 2>&5
23745   ac_status=$?
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); }; }
23748     then
23749         gcc_cv_as_debug_prefix_map_flag=yes
23750     else
23751       echo "configure: failed program was" >&5
23752       cat conftest.s >&5
23753     fi
23754     rm -f conftest.o conftest.s
23755   fi
23756 fi
23757 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23758 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23759 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23760
23761 cat >>confdefs.h <<\_ACEOF
23762 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23763 _ACEOF
23764
23765 fi
23766 fi
23767
23768 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23769 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23770 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   gcc_cv_as_lcomm_with_alignment=no
23774   if test x$gcc_cv_as != x; then
23775     echo '.lcomm bar,4,16' > conftest.s
23776     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; }
23782     then
23783         gcc_cv_as_lcomm_with_alignment=yes
23784     else
23785       echo "configure: failed program was" >&5
23786       cat conftest.s >&5
23787     fi
23788     rm -f conftest.o conftest.s
23789   fi
23790 fi
23791 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23792 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23793 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23794
23795 cat >>confdefs.h <<\_ACEOF
23796 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23797 _ACEOF
23798
23799 fi
23800
23801 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23802 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23803 if test "${gcc_cv_as_line_zero+set}" = set; then
23804   echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806   gcc_cv_as_line_zero=no
23807   if test $in_tree_gas = yes; then
23808     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23809   then gcc_cv_as_line_zero=yes
23810 fi
23811   elif test "x$gcc_cv_as" != x; then
23812     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23813     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815   (eval $ac_try) 2>&5
23816   ac_status=$?
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); }; } &&
23819        test "x`cat conftest.out`" = x
23820     then
23821       gcc_cv_as_line_zero=yes
23822     else
23823       echo "configure: failed program was" >&5
23824       cat conftest.s >&5
23825       echo "configure: error output was" >&5
23826       cat conftest.out >&5
23827     fi
23828     rm -f conftest.o conftest.s conftest.out
23829   fi
23830 fi
23831 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23832 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23833 if test "x$gcc_cv_as_line_zero" = xyes; then
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define HAVE_AS_LINE_ZERO 1
23837 _ACEOF
23838
23839 fi
23840
23841 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23842 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23843 gcc_cv_ld_eh_frame_hdr=no
23844 if test $in_tree_ld = yes ; then
23845   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 \
23846      && test $in_tree_ld_is_elf = yes; then
23847     gcc_cv_ld_eh_frame_hdr=yes
23848   fi
23849 elif test x$gcc_cv_ld != x; then
23850         # Check if linker supports --eh-frame-hdr option
23851         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23852                 gcc_cv_ld_eh_frame_hdr=yes
23853         fi
23854 fi
23855
23856 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23857
23858 cat >>confdefs.h <<\_ACEOF
23859 #define HAVE_LD_EH_FRAME_HDR 1
23860 _ACEOF
23861
23862 fi
23863 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23864 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23865
23866 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23867 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23868 gcc_cv_ld_pie=no
23869 if test $in_tree_ld = yes ; then
23870   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 \
23871      && test $in_tree_ld_is_elf = yes; then
23872     gcc_cv_ld_pie=yes
23873   fi
23874 elif test x$gcc_cv_ld != x; then
23875         # Check if linker supports -pie option
23876         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23877                 gcc_cv_ld_pie=yes
23878         fi
23879 fi
23880 if test x"$gcc_cv_ld_pie" = xyes; then
23881
23882 cat >>confdefs.h <<\_ACEOF
23883 #define HAVE_LD_PIE 1
23884 _ACEOF
23885
23886 fi
23887 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23888 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23889
23890 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23891 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23892 gcc_cv_ld_eh_gc_sections=no
23893 if test $in_tree_ld = yes ; then
23894   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 \
23895      && test $in_tree_ld_is_elf = yes; then
23896     gcc_cv_ld_eh_gc_sections=yes
23897   fi
23898 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23899   cat > conftest.s <<EOF
23900         .section        .text
23901 .globl _start
23902         .type _start, @function
23903 _start:
23904         .long foo
23905         .size _start, .-_start
23906         .section        .text.foo,"ax",@progbits
23907         .type foo, @function
23908 foo:
23909         .long 0
23910         .size foo, .-foo
23911         .section        .gcc_except_table.foo,"a",@progbits
23912 .L0:
23913         .long 0
23914         .section        .eh_frame,"a",@progbits
23915         .long .L0
23916 EOF
23917   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23918     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23919          | grep "gc-sections option ignored" > /dev/null; then
23920       gcc_cv_ld_eh_gc_sections=no
23921     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23922       gcc_cv_ld_eh_gc_sections=yes
23923       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23924       if test x$gcc_cv_as_comdat_group != xyes; then
23925         gcc_cv_ld_eh_gc_sections=no
23926         cat > conftest.s <<EOF
23927         .section        .text
23928 .globl _start
23929         .type _start, @function
23930 _start:
23931         .long foo
23932         .size _start, .-_start
23933         .section        .gnu.linkonce.t.foo,"ax",@progbits
23934         .type foo, @function
23935 foo:
23936         .long 0
23937         .size foo, .-foo
23938         .section        .gcc_except_table.foo,"a",@progbits
23939 .L0:
23940         .long 0
23941         .section        .eh_frame,"a",@progbits
23942         .long .L0
23943 EOF
23944         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23945           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23946                | grep "gc-sections option ignored" > /dev/null; then
23947             gcc_cv_ld_eh_gc_sections=no
23948           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23949             gcc_cv_ld_eh_gc_sections=yes
23950           fi
23951         fi
23952       fi
23953     fi
23954   fi
23955   rm -f conftest.s conftest.o conftest
23956 fi
23957 case "$target" in
23958   hppa*-*-linux*)
23959     # ??? This apparently exposes a binutils bug with PC-relative relocations.
23960     gcc_cv_ld_eh_gc_sections=no
23961     ;;
23962 esac
23963 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23964
23965 cat >>confdefs.h <<\_ACEOF
23966 #define HAVE_LD_EH_GC_SECTIONS 1
23967 _ACEOF
23968
23969 fi
23970 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23971 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23972
23973 # --------
23974 # UNSORTED
23975 # --------
23976
23977 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23978 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23979 if test "${gcc_cv_ld_as_needed+set}" = set; then
23980   echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982   gcc_cv_ld_as_needed=no
23983 if test $in_tree_ld = yes ; then
23984   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 \
23985      && test $in_tree_ld_is_elf = yes; then
23986     gcc_cv_ld_as_needed=yes
23987   fi
23988 elif test x$gcc_cv_ld != x; then
23989         # Check if linker supports --as-needed and --no-as-needed options
23990         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23991                 gcc_cv_ld_as_needed=yes
23992         fi
23993 fi
23994
23995 fi
23996 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23997 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23998 if test x"$gcc_cv_ld_as_needed" = xyes; then
23999
24000 cat >>confdefs.h <<\_ACEOF
24001 #define HAVE_LD_AS_NEEDED 1
24002 _ACEOF
24003
24004 fi
24005
24006 case "$target:$tm_file" in
24007   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24008     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24009 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24010 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   gcc_cv_ld_no_dot_syms=no
24014     if test $in_tree_ld = yes ; then
24015       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
24016         gcc_cv_ld_no_dot_syms=yes
24017       fi
24018     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24019       cat > conftest1.s <<EOF
24020         .text
24021         bl .foo
24022 EOF
24023       cat > conftest2.s <<EOF
24024         .section ".opd","aw"
24025         .align 3
24026         .globl foo
24027         .type foo,@function
24028 foo:
24029         .quad .LEfoo,.TOC.@tocbase,0
24030         .text
24031 .LEfoo:
24032         blr
24033         .size foo,.-.LEfoo
24034 EOF
24035       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24036          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24037          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24038         gcc_cv_ld_no_dot_syms=yes
24039       fi
24040       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24041     fi
24042
24043 fi
24044 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24045 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24046     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24047
24048 cat >>confdefs.h <<\_ACEOF
24049 #define HAVE_LD_NO_DOT_SYMS 1
24050 _ACEOF
24051
24052     fi
24053     ;;
24054 esac
24055
24056 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24057 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24058 if test "${gcc_cv_ld_sysroot+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061   gcc_cv_ld_sysroot=no
24062   if test $in_tree_ld = yes ; then
24063       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
24064         gcc_cv_ld_sysroot=yes
24065       fi
24066   elif test x$gcc_cv_ld != x; then
24067     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24068       gcc_cv_ld_sysroot=yes
24069     fi
24070   fi
24071 fi
24072 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24073 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24074 if test x"$gcc_cv_ld_sysroot" = xyes; then
24075
24076 cat >>confdefs.h <<\_ACEOF
24077 #define HAVE_LD_SYSROOT 1
24078 _ACEOF
24079
24080 fi
24081
24082 if test x$with_sysroot = x && test x$host = x$target \
24083    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24084    && test "$prefix" != "NONE"; then
24085
24086 cat >>confdefs.h <<_ACEOF
24087 #define PREFIX_INCLUDE_DIR "$prefix/include"
24088 _ACEOF
24089
24090 fi
24091
24092 # Test for stack protector support in target C library.
24093 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24094 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24095 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098   gcc_cv_libc_provides_ssp=no
24099     case "$target" in
24100        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24101       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24102         if test "x$with_sysroot" = x; then
24103           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24104         elif test "x$with_build_sysroot" != "x"; then
24105           glibc_header_dir="${with_build_sysroot}/usr/include"
24106         elif test "x$with_sysroot" = xyes; then
24107           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24108         else
24109           glibc_header_dir="${with_sysroot}/usr/include"
24110         fi
24111       else
24112         glibc_header_dir=/usr/include
24113       fi
24114       # glibc 2.4 and later provides __stack_chk_fail and
24115       # either __stack_chk_guard, or TLS access to stack guard canary.
24116       if test -f $glibc_header_dir/features.h \
24117          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24118             $glibc_header_dir/features.h > /dev/null; then
24119         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24120            $glibc_header_dir/features.h > /dev/null; then
24121           gcc_cv_libc_provides_ssp=yes
24122         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24123              $glibc_header_dir/features.h > /dev/null \
24124              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24125              $glibc_header_dir/features.h > /dev/null; then
24126           gcc_cv_libc_provides_ssp=yes
24127         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24128              $glibc_header_dir/features.h > /dev/null && \
24129              test -f $glibc_header_dir/bits/uClibc_config.h && \
24130              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24131              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24132           gcc_cv_libc_provides_ssp=yes
24133         fi
24134       fi
24135         ;;
24136        *-*-gnu*)
24137          # Avoid complicated tests (see
24138          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24139          # simply assert that glibc does provide this, which is true for all
24140          # realistically usable GNU/Hurd configurations.
24141          gcc_cv_libc_provides_ssp=yes;;
24142        *-*-darwin*)
24143          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24144 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24145 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24146   echo $ECHO_N "(cached) $ECHO_C" >&6
24147 else
24148   cat >conftest.$ac_ext <<_ACEOF
24149 /* confdefs.h.  */
24150 _ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h.  */
24154 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24156 #define __stack_chk_fail innocuous___stack_chk_fail
24157
24158 /* System header to define __stub macros and hopefully few prototypes,
24159     which can conflict with char __stack_chk_fail (); below.
24160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24161     <limits.h> exists even on freestanding compilers.  */
24162
24163 #ifdef __STDC__
24164 # include <limits.h>
24165 #else
24166 # include <assert.h>
24167 #endif
24168
24169 #undef __stack_chk_fail
24170
24171 /* Override any gcc2 internal prototype to avoid an error.  */
24172 #ifdef __cplusplus
24173 extern "C"
24174 {
24175 #endif
24176 /* We use char because int might match the return type of a gcc2
24177    builtin and then its argument prototype would still apply.  */
24178 char __stack_chk_fail ();
24179 /* The GNU C library defines this for functions which it implements
24180     to always fail with ENOSYS.  Some functions are actually named
24181     something starting with __ and the normal name is an alias.  */
24182 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24183 choke me
24184 #else
24185 char (*f) () = __stack_chk_fail;
24186 #endif
24187 #ifdef __cplusplus
24188 }
24189 #endif
24190
24191 int
24192 main ()
24193 {
24194 return f != __stack_chk_fail;
24195   ;
24196   return 0;
24197 }
24198 _ACEOF
24199 rm -f conftest.$ac_objext conftest$ac_exeext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24201   (eval $ac_link) 2>conftest.er1
24202   ac_status=$?
24203   grep -v '^ *+' conftest.er1 >conftest.err
24204   rm -f conftest.er1
24205   cat conftest.err >&5
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); } &&
24208          { ac_try='test -z "$ac_c_werror_flag"
24209                          || test ! -s conftest.err'
24210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211   (eval $ac_try) 2>&5
24212   ac_status=$?
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); }; } &&
24215          { ac_try='test -s conftest$ac_exeext'
24216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217   (eval $ac_try) 2>&5
24218   ac_status=$?
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); }; }; then
24221   ac_cv_func___stack_chk_fail=yes
24222 else
24223   echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24225
24226 ac_cv_func___stack_chk_fail=no
24227 fi
24228 rm -f conftest.err conftest.$ac_objext \
24229       conftest$ac_exeext conftest.$ac_ext
24230 fi
24231 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24232 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24233 if test $ac_cv_func___stack_chk_fail = yes; then
24234   gcc_cv_libc_provides_ssp=yes
24235 else
24236   echo "no __stack_chk_fail on this target"
24237 fi
24238
24239         ;;
24240   *) gcc_cv_libc_provides_ssp=no ;;
24241     esac
24242 fi
24243 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24244 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24245
24246 if test x$gcc_cv_libc_provides_ssp = xyes; then
24247
24248 cat >>confdefs.h <<\_ACEOF
24249 #define TARGET_LIBC_PROVIDES_SSP 1
24250 _ACEOF
24251
24252 fi
24253
24254 # Check if TFmode long double should be used by default or not.
24255 # Some glibc targets used DFmode long double, but with glibc 2.4
24256 # and later they can use TFmode.
24257 case "$target" in
24258   powerpc*-*-linux* | \
24259   powerpc*-*-gnu* | \
24260   sparc*-*-linux* | \
24261   s390*-*-linux* | \
24262   alpha*-*-linux*)
24263
24264 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24265 if test "${with_long_double_128+set}" = set; then
24266   withval="$with_long_double_128"
24267   gcc_cv_target_ldbl128="$with_long_double_128"
24268 else
24269   gcc_cv_target_ldbl128=no
24270       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24271         if test "x$with_sysroot" = x; then
24272           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24273         elif test "x$with_build_sysroot" != "x"; then
24274           glibc_header_dir="${with_build_sysroot}/usr/include"
24275         elif test "x$with_sysroot" = xyes; then
24276           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24277         else
24278           glibc_header_dir="${with_sysroot}/usr/include"
24279         fi
24280       else
24281         glibc_header_dir=/usr/include
24282       fi
24283       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24284         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24285       && gcc_cv_target_ldbl128=yes
24286
24287 fi;
24288     ;;
24289 esac
24290 if test x$gcc_cv_target_ldbl128 = xyes; then
24291
24292 cat >>confdefs.h <<\_ACEOF
24293 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24294 _ACEOF
24295
24296 fi
24297
24298 # Find out what GC implementation we want, or may, use.
24299
24300 # Check whether --with-gc or --without-gc was given.
24301 if test "${with_gc+set}" = set; then
24302   withval="$with_gc"
24303   case "$withval" in
24304   page)
24305     GGC=ggc-$withval
24306     ;;
24307   zone)
24308     GGC=ggc-$withval
24309
24310 cat >>confdefs.h <<\_ACEOF
24311 #define GGC_ZONE 1
24312 _ACEOF
24313
24314     ;;
24315   *)
24316     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24317 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24318    { (exit 1); exit 1; }; }
24319     ;;
24320 esac
24321 else
24322   GGC=ggc-page
24323 fi;
24324
24325 echo "Using $GGC for garbage collection."
24326
24327 # Use the system's zlib library.
24328 zlibdir=-L../zlib
24329 zlibinc="-I\$(srcdir)/../zlib"
24330
24331 # Check whether --with-system-zlib or --without-system-zlib was given.
24332 if test "${with_system_zlib+set}" = set; then
24333   withval="$with_system_zlib"
24334   zlibdir=
24335 zlibinc=
24336
24337 fi;
24338
24339
24340
24341
24342 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24343 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24344     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24345 if test "${enable_maintainer_mode+set}" = set; then
24346   enableval="$enable_maintainer_mode"
24347   maintainer_mode=$enableval
24348 else
24349   maintainer_mode=no
24350 fi;
24351
24352 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24353 echo "${ECHO_T}$maintainer_mode" >&6
24354
24355 if test "$maintainer_mode" = "yes"; then
24356   MAINT=''
24357 else
24358   MAINT='#'
24359 fi
24360
24361 # --------------
24362 # Language hooks
24363 # --------------
24364
24365 # Make empty files to contain the specs and options for each language.
24366 # Then add #include lines to for a compiler that has specs and/or options.
24367
24368 subdirs=
24369 lang_opt_files=
24370 lang_specs_files=
24371 lang_tree_files=
24372 # These (without "all_") are set in each config-lang.in.
24373 # `language' must be a single word so is spelled singularly.
24374 all_languages=
24375 all_compilers=
24376 all_outputs='Makefile gccbug'
24377 # List of language makefile fragments.
24378 all_lang_makefrags=
24379 # List of language subdirectory makefiles.  Deprecated.
24380 all_lang_makefiles=
24381 # Additional files for gengtype
24382 all_gtfiles="$target_gtfiles"
24383
24384 # These are the languages that are set in --enable-languages,
24385 # and are available in the GCC tree.
24386 all_selected_languages=
24387
24388 # Add the language fragments.
24389 # Languages are added via two mechanisms.  Some information must be
24390 # recorded in makefile variables, these are defined in config-lang.in.
24391 # We accumulate them and plug them into the main Makefile.
24392 # The other mechanism is a set of hooks for each of the main targets
24393 # like `clean', `install', etc.
24394
24395 language_hooks="Make-hooks"
24396
24397 for lang in ${srcdir}/*/config-lang.in
24398 do
24399         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24400
24401         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24402         if test "x$lang_alias" = x
24403         then
24404               echo "$lang doesn't set \$language." 1>&2
24405               exit 1
24406         fi
24407         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24408         subdirs="$subdirs $subdir"
24409
24410         # $gcc_subdir is where the gcc integration files are to be found
24411         # for a language, both for internal compiler purposes (compiler
24412         # sources implementing front-end to GCC tree converters), and for
24413         # build infrastructure purposes (Make-lang.in, etc.)
24414         #
24415         # This will be <subdir> (relative to $srcdir) if a line like
24416         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24417         # is found in <langdir>/config-lang.in, and will remain <langdir>
24418         # otherwise.
24419         #
24420         # Except for the language alias (fetched above), the regular
24421         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24422         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24423         # only this and the language alias.
24424
24425         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24426         if [ "$gcc_subdir" = "" ]; then
24427            gcc_subdir="$subdir"
24428         fi
24429
24430         case ",$enable_languages," in
24431         *,$lang_alias,*)
24432             all_selected_languages="$all_selected_languages $lang_alias"
24433             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24434                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24435             fi
24436             ;;
24437         esac
24438
24439         language=
24440         boot_language=
24441         compilers=
24442         outputs=
24443         gtfiles=
24444         subdir_requires=
24445         . ${srcdir}/$gcc_subdir/config-lang.in
24446         if test "x$language" = x
24447         then
24448                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24449                 exit 1
24450         fi
24451
24452         ok=:
24453         case ",$enable_languages," in
24454                 *,$lang_alias,*) ;;
24455                 *)
24456                         for i in $subdir_requires; do
24457                                 test -f "${srcdir}/$i/config-lang.in" && continue
24458                                 ok=false
24459                                 break
24460                         done
24461                 ;;
24462         esac
24463         $ok || continue
24464
24465         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24466         if test -f $srcdir/$gcc_subdir/lang.opt; then
24467             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24468         fi
24469         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24470             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24471         fi
24472         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24473                 then all_lang_makefiles="$gcc_subdir/Makefile"
24474         fi
24475         all_languages="$all_languages $language"
24476         all_compilers="$all_compilers $compilers"
24477         all_outputs="$all_outputs $outputs"
24478         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24479 done
24480
24481 # Pick up gtfiles for c
24482 gtfiles=
24483 . ${srcdir}/c-config-lang.in
24484 all_gtfiles="$all_gtfiles [c] $gtfiles"
24485
24486 check_languages=
24487 for language in $all_selected_languages
24488 do
24489         check_languages="$check_languages check-$language"
24490 done
24491
24492 # We link each language in with a set of hooks, reached indirectly via
24493 # lang.${target}.  Only do so for selected languages.
24494
24495 rm -f Make-hooks
24496 touch Make-hooks
24497 target_list="all.cross start.encap rest.encap tags \
24498         install-common install-man install-info install-pdf dvi pdf \
24499         html uninstall info man srcextra srcman srcinfo \
24500         mostlyclean clean distclean maintainer-clean"
24501
24502 for t in $target_list
24503 do
24504         x=
24505         for lang in $all_selected_languages
24506         do
24507                 x="$x $lang.$t"
24508         done
24509         echo "lang.$t: $x" >> Make-hooks
24510 done
24511
24512 # --------
24513 # UNSORTED
24514 # --------
24515
24516 # Create .gdbinit.
24517
24518 echo "dir ." > .gdbinit
24519 echo "dir ${srcdir}" >> .gdbinit
24520 if test x$gdb_needs_out_file_path = xyes
24521 then
24522         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24523 fi
24524 if test "x$subdirs" != x; then
24525         for s in $subdirs
24526         do
24527                 echo "dir ${srcdir}/$s" >> .gdbinit
24528         done
24529 fi
24530 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24531
24532 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24533
24534
24535
24536 # Find a directory in which to install a shared libgcc.
24537
24538 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24539 if test "${enable_version_specific_runtime_libs+set}" = set; then
24540   enableval="$enable_version_specific_runtime_libs"
24541
24542 fi;
24543
24544
24545 # Check whether --with-slibdir or --without-slibdir was given.
24546 if test "${with_slibdir+set}" = set; then
24547   withval="$with_slibdir"
24548   slibdir="$with_slibdir"
24549 else
24550   if test "${enable_version_specific_runtime_libs+set}" = set; then
24551   slibdir='$(libsubdir)'
24552 elif test "$host" != "$target"; then
24553   slibdir='$(build_tooldir)/lib'
24554 else
24555   slibdir='$(libdir)'
24556 fi
24557 fi;
24558
24559
24560
24561 # Check whether --with-datarootdir or --without-datarootdir was given.
24562 if test "${with_datarootdir+set}" = set; then
24563   withval="$with_datarootdir"
24564   datarootdir="\${prefix}/$with_datarootdir"
24565 else
24566   datarootdir='$(prefix)/share'
24567 fi;
24568
24569
24570
24571 # Check whether --with-docdir or --without-docdir was given.
24572 if test "${with_docdir+set}" = set; then
24573   withval="$with_docdir"
24574   docdir="\${prefix}/$with_docdir"
24575 else
24576   docdir='$(datarootdir)'
24577 fi;
24578
24579
24580
24581 # Check whether --with-htmldir or --without-htmldir was given.
24582 if test "${with_htmldir+set}" = set; then
24583   withval="$with_htmldir"
24584   htmldir="\${prefix}/$with_htmldir"
24585 else
24586   htmldir='$(docdir)'
24587 fi;
24588
24589
24590 # Substitute configuration variables
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649 # Echo link setup.
24650 if test x${build} = x${host} ; then
24651   if test x${host} = x${target} ; then
24652     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24653   else
24654     echo "Links are now set up to build a cross-compiler" 1>&2
24655     echo " from ${host} to ${target}." 1>&2
24656   fi
24657 else
24658   if test x${host} = x${target} ; then
24659     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24660     echo " for ${target}." 1>&2
24661   else
24662     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24663     echo " from ${host} to ${target}." 1>&2
24664   fi
24665 fi
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675 if test "x${CLOOGLIBS}" != "x" ; then
24676
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_cloog 1
24679 _ACEOF
24680
24681 fi
24682
24683 # Configure the subdirectories
24684 # AC_CONFIG_SUBDIRS($subdirs)
24685
24686 # Create the Makefile
24687 # and configure language subdirectories
24688           ac_config_files="$ac_config_files $all_outputs"
24689
24690
24691           ac_config_commands="$ac_config_commands default"
24692
24693 cat >confcache <<\_ACEOF
24694 # This file is a shell script that caches the results of configure
24695 # tests run on this system so they can be shared between configure
24696 # scripts and configure runs, see configure's option --config-cache.
24697 # It is not useful on other systems.  If it contains results you don't
24698 # want to keep, you may remove or edit it.
24699 #
24700 # config.status only pays attention to the cache file if you give it
24701 # the --recheck option to rerun configure.
24702 #
24703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24705 # following values.
24706
24707 _ACEOF
24708
24709 # The following way of writing the cache mishandles newlines in values,
24710 # but we know of no workaround that is simple, portable, and efficient.
24711 # So, don't put newlines in cache variables' values.
24712 # Ultrix sh set writes to stderr and can't be redirected directly,
24713 # and sets the high bit in the cache file unless we assign to the vars.
24714 {
24715   (set) 2>&1 |
24716     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24717     *ac_space=\ *)
24718       # `set' does not quote correctly, so add quotes (double-quote
24719       # substitution turns \\\\ into \\, and sed turns \\ into \).
24720       sed -n \
24721         "s/'/'\\\\''/g;
24722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24723       ;;
24724     *)
24725       # `set' quotes correctly as required by POSIX, so do not add quotes.
24726       sed -n \
24727         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24728       ;;
24729     esac;
24730 } |
24731   sed '
24732      t clear
24733      : clear
24734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24735      t end
24736      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24737      : end' >>confcache
24738 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24739   if test -w $cache_file; then
24740     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24741     cat confcache >$cache_file
24742   else
24743     echo "not updating unwritable cache $cache_file"
24744   fi
24745 fi
24746 rm -f confcache
24747
24748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24749 # Let make expand exec_prefix.
24750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24751
24752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24754 # trailing colons and then remove the whole line if VPATH becomes empty
24755 # (actually we leave an empty line to preserve line numbers).
24756 if test "x$srcdir" = x.; then
24757   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24758 s/:*\$(srcdir):*/:/;
24759 s/:*\${srcdir}:*/:/;
24760 s/:*@srcdir@:*/:/;
24761 s/^\([^=]*=[     ]*\):*/\1/;
24762 s/:*$//;
24763 s/^[^=]*=[       ]*$//;
24764 }'
24765 fi
24766
24767 DEFS=-DHAVE_CONFIG_H
24768
24769 ac_libobjs=
24770 ac_ltlibobjs=
24771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24772   # 1. Remove the extension, and $U if already installed.
24773   ac_i=`echo "$ac_i" |
24774          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24775   # 2. Add them.
24776   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24777   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24778 done
24779 LIBOBJS=$ac_libobjs
24780
24781 LTLIBOBJS=$ac_ltlibobjs
24782
24783
24784
24785 : ${CONFIG_STATUS=./config.status}
24786 ac_clean_files_save=$ac_clean_files
24787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24788 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24789 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24790 cat >$CONFIG_STATUS <<_ACEOF
24791 #! $SHELL
24792 # Generated by $as_me.
24793 # Run this file to recreate the current configuration.
24794 # Compiler output produced by configure, useful for debugging
24795 # configure, is in config.log if it exists.
24796
24797 debug=false
24798 ac_cs_recheck=false
24799 ac_cs_silent=false
24800 SHELL=\${CONFIG_SHELL-$SHELL}
24801 _ACEOF
24802
24803 cat >>$CONFIG_STATUS <<\_ACEOF
24804 ## --------------------- ##
24805 ## M4sh Initialization.  ##
24806 ## --------------------- ##
24807
24808 # Be Bourne compatible
24809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24810   emulate sh
24811   NULLCMD=:
24812   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24813   # is contrary to our usage.  Disable this feature.
24814   alias -g '${1+"$@"}'='"$@"'
24815 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24816   set -o posix
24817 fi
24818 DUALCASE=1; export DUALCASE # for MKS sh
24819
24820 # Support unset when possible.
24821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24822   as_unset=unset
24823 else
24824   as_unset=false
24825 fi
24826
24827
24828 # Work around bugs in pre-3.0 UWIN ksh.
24829 $as_unset ENV MAIL MAILPATH
24830 PS1='$ '
24831 PS2='> '
24832 PS4='+ '
24833
24834 # NLS nuisances.
24835 for as_var in \
24836   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24837   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24838   LC_TELEPHONE LC_TIME
24839 do
24840   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24841     eval $as_var=C; export $as_var
24842   else
24843     $as_unset $as_var
24844   fi
24845 done
24846
24847 # Required to use basename.
24848 if expr a : '\(a\)' >/dev/null 2>&1; then
24849   as_expr=expr
24850 else
24851   as_expr=false
24852 fi
24853
24854 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24855   as_basename=basename
24856 else
24857   as_basename=false
24858 fi
24859
24860
24861 # Name of the executable.
24862 as_me=`$as_basename "$0" ||
24863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24864          X"$0" : 'X\(//\)$' \| \
24865          X"$0" : 'X\(/\)$' \| \
24866          .     : '\(.\)' 2>/dev/null ||
24867 echo X/"$0" |
24868     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24869           /^X\/\(\/\/\)$/{ s//\1/; q; }
24870           /^X\/\(\/\).*/{ s//\1/; q; }
24871           s/.*/./; q'`
24872
24873
24874 # PATH needs CR, and LINENO needs CR and PATH.
24875 # Avoid depending upon Character Ranges.
24876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24879 as_cr_digits='0123456789'
24880 as_cr_alnum=$as_cr_Letters$as_cr_digits
24881
24882 # The user is always right.
24883 if test "${PATH_SEPARATOR+set}" != set; then
24884   echo "#! /bin/sh" >conf$$.sh
24885   echo  "exit 0"   >>conf$$.sh
24886   chmod +x conf$$.sh
24887   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24888     PATH_SEPARATOR=';'
24889   else
24890     PATH_SEPARATOR=:
24891   fi
24892   rm -f conf$$.sh
24893 fi
24894
24895
24896   as_lineno_1=$LINENO
24897   as_lineno_2=$LINENO
24898   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24899   test "x$as_lineno_1" != "x$as_lineno_2" &&
24900   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24901   # Find who we are.  Look in the path if we contain no path at all
24902   # relative or not.
24903   case $0 in
24904     *[\\/]* ) as_myself=$0 ;;
24905     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24906 for as_dir in $PATH
24907 do
24908   IFS=$as_save_IFS
24909   test -z "$as_dir" && as_dir=.
24910   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24911 done
24912
24913        ;;
24914   esac
24915   # We did not find ourselves, most probably we were run as `sh COMMAND'
24916   # in which case we are not to be found in the path.
24917   if test "x$as_myself" = x; then
24918     as_myself=$0
24919   fi
24920   if test ! -f "$as_myself"; then
24921     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24922 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24923    { (exit 1); exit 1; }; }
24924   fi
24925   case $CONFIG_SHELL in
24926   '')
24927     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24928 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24929 do
24930   IFS=$as_save_IFS
24931   test -z "$as_dir" && as_dir=.
24932   for as_base in sh bash ksh sh5; do
24933          case $as_dir in
24934          /*)
24935            if ("$as_dir/$as_base" -c '
24936   as_lineno_1=$LINENO
24937   as_lineno_2=$LINENO
24938   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24939   test "x$as_lineno_1" != "x$as_lineno_2" &&
24940   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24941              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24942              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24943              CONFIG_SHELL=$as_dir/$as_base
24944              export CONFIG_SHELL
24945              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24946            fi;;
24947          esac
24948        done
24949 done
24950 ;;
24951   esac
24952
24953   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24954   # uniformly replaced by the line number.  The first 'sed' inserts a
24955   # line-number line before each line; the second 'sed' does the real
24956   # work.  The second script uses 'N' to pair each line-number line
24957   # with the numbered line, and appends trailing '-' during
24958   # substitution so that $LINENO is not a special case at line end.
24959   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24960   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24961   sed '=' <$as_myself |
24962     sed '
24963       N
24964       s,$,-,
24965       : loop
24966       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24967       t loop
24968       s,-$,,
24969       s,^['$as_cr_digits']*\n,,
24970     ' >$as_me.lineno &&
24971   chmod +x $as_me.lineno ||
24972     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24973 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24974    { (exit 1); exit 1; }; }
24975
24976   # Don't try to exec as it changes $[0], causing all sort of problems
24977   # (the dirname of $[0] is not the place where we might find the
24978   # original and so on.  Autoconf is especially sensible to this).
24979   . ./$as_me.lineno
24980   # Exit status is that of the last command.
24981   exit
24982 }
24983
24984
24985 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24986   *c*,-n*) ECHO_N= ECHO_C='
24987 ' ECHO_T='      ' ;;
24988   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24989   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24990 esac
24991
24992 if expr a : '\(a\)' >/dev/null 2>&1; then
24993   as_expr=expr
24994 else
24995   as_expr=false
24996 fi
24997
24998 rm -f conf$$ conf$$.exe conf$$.file
24999 echo >conf$$.file
25000 if ln -s conf$$.file conf$$ 2>/dev/null; then
25001   # We could just check for DJGPP; but this test a) works b) is more generic
25002   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25003   if test -f conf$$.exe; then
25004     # Don't use ln at all; we don't have any links
25005     as_ln_s='cp -p'
25006   else
25007     as_ln_s='ln -s'
25008   fi
25009 elif ln conf$$.file conf$$ 2>/dev/null; then
25010   as_ln_s=ln
25011 else
25012   as_ln_s='cp -p'
25013 fi
25014 rm -f conf$$ conf$$.exe conf$$.file
25015
25016 if mkdir -p . 2>/dev/null; then
25017   as_mkdir_p=:
25018 else
25019   test -d ./-p && rmdir ./-p
25020   as_mkdir_p=false
25021 fi
25022
25023 as_executable_p="test -f"
25024
25025 # Sed expression to map a string onto a valid CPP name.
25026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25027
25028 # Sed expression to map a string onto a valid variable name.
25029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25030
25031
25032 # IFS
25033 # We need space, tab and new line, in precisely that order.
25034 as_nl='
25035 '
25036 IFS="   $as_nl"
25037
25038 # CDPATH.
25039 $as_unset CDPATH
25040
25041 exec 6>&1
25042
25043 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25044 # report actual input values of CONFIG_FILES etc. instead of their
25045 # values after options handling.  Logging --version etc. is OK.
25046 exec 5>>config.log
25047 {
25048   echo
25049   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25050 ## Running $as_me. ##
25051 _ASBOX
25052 } >&5
25053 cat >&5 <<_CSEOF
25054
25055 This file was extended by $as_me, which was
25056 generated by GNU Autoconf 2.59.  Invocation command line was
25057
25058   CONFIG_FILES    = $CONFIG_FILES
25059   CONFIG_HEADERS  = $CONFIG_HEADERS
25060   CONFIG_LINKS    = $CONFIG_LINKS
25061   CONFIG_COMMANDS = $CONFIG_COMMANDS
25062   $ $0 $@
25063
25064 _CSEOF
25065 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25066 echo >&5
25067 _ACEOF
25068
25069 # Files that config.status was made for.
25070 if test -n "$ac_config_files"; then
25071   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25072 fi
25073
25074 if test -n "$ac_config_headers"; then
25075   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25076 fi
25077
25078 if test -n "$ac_config_links"; then
25079   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25080 fi
25081
25082 if test -n "$ac_config_commands"; then
25083   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25084 fi
25085
25086 cat >>$CONFIG_STATUS <<\_ACEOF
25087
25088 ac_cs_usage="\
25089 \`$as_me' instantiates files from templates according to the
25090 current configuration.
25091
25092 Usage: $0 [OPTIONS] [FILE]...
25093
25094   -h, --help       print this help, then exit
25095   -V, --version    print version number, then exit
25096   -q, --quiet      do not print progress messages
25097   -d, --debug      don't remove temporary files
25098       --recheck    update $as_me by reconfiguring in the same conditions
25099   --file=FILE[:TEMPLATE]
25100                    instantiate the configuration file FILE
25101   --header=FILE[:TEMPLATE]
25102                    instantiate the configuration header FILE
25103
25104 Configuration files:
25105 $config_files
25106
25107 Configuration headers:
25108 $config_headers
25109
25110 Configuration commands:
25111 $config_commands
25112
25113 Report bugs to <bug-autoconf@gnu.org>."
25114 _ACEOF
25115
25116 cat >>$CONFIG_STATUS <<_ACEOF
25117 ac_cs_version="\\
25118 config.status
25119 configured by $0, generated by GNU Autoconf 2.59,
25120   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25121
25122 Copyright (C) 2003 Free Software Foundation, Inc.
25123 This config.status script is free software; the Free Software Foundation
25124 gives unlimited permission to copy, distribute and modify it."
25125 srcdir=$srcdir
25126 _ACEOF
25127
25128 cat >>$CONFIG_STATUS <<\_ACEOF
25129 # If no file are specified by the user, then we need to provide default
25130 # value.  By we need to know if files were specified by the user.
25131 ac_need_defaults=:
25132 while test $# != 0
25133 do
25134   case $1 in
25135   --*=*)
25136     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25137     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25138     ac_shift=:
25139     ;;
25140   -*)
25141     ac_option=$1
25142     ac_optarg=$2
25143     ac_shift=shift
25144     ;;
25145   *) # This is not an option, so the user has probably given explicit
25146      # arguments.
25147      ac_option=$1
25148      ac_need_defaults=false;;
25149   esac
25150
25151   case $ac_option in
25152   # Handling of the options.
25153 _ACEOF
25154 cat >>$CONFIG_STATUS <<\_ACEOF
25155   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25156     ac_cs_recheck=: ;;
25157   --version | --vers* | -V )
25158     echo "$ac_cs_version"; exit 0 ;;
25159   --he | --h)
25160     # Conflict between --help and --header
25161     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25162 Try \`$0 --help' for more information." >&5
25163 echo "$as_me: error: ambiguous option: $1
25164 Try \`$0 --help' for more information." >&2;}
25165    { (exit 1); exit 1; }; };;
25166   --help | --hel | -h )
25167     echo "$ac_cs_usage"; exit 0 ;;
25168   --debug | --d* | -d )
25169     debug=: ;;
25170   --file | --fil | --fi | --f )
25171     $ac_shift
25172     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25173     ac_need_defaults=false;;
25174   --header | --heade | --head | --hea )
25175     $ac_shift
25176     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25177     ac_need_defaults=false;;
25178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25179   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25180     ac_cs_silent=: ;;
25181
25182   # This is an error.
25183   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25184 Try \`$0 --help' for more information." >&5
25185 echo "$as_me: error: unrecognized option: $1
25186 Try \`$0 --help' for more information." >&2;}
25187    { (exit 1); exit 1; }; } ;;
25188
25189   *) ac_config_targets="$ac_config_targets $1" ;;
25190
25191   esac
25192   shift
25193 done
25194
25195 ac_configure_extra_args=
25196
25197 if $ac_cs_silent; then
25198   exec 6>/dev/null
25199   ac_configure_extra_args="$ac_configure_extra_args --silent"
25200 fi
25201
25202 _ACEOF
25203 cat >>$CONFIG_STATUS <<_ACEOF
25204 if \$ac_cs_recheck; then
25205   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25206   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25207 fi
25208
25209 _ACEOF
25210
25211 cat >>$CONFIG_STATUS <<_ACEOF
25212 #
25213 # INIT-COMMANDS section.
25214 #
25215
25216 subdirs='$subdirs'
25217
25218 _ACEOF
25219
25220
25221
25222 cat >>$CONFIG_STATUS <<\_ACEOF
25223 for ac_config_target in $ac_config_targets
25224 do
25225   case "$ac_config_target" in
25226   # Handling of arguments.
25227   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25228   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25229   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25230   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25231   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25232   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25233   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25235    { (exit 1); exit 1; }; };;
25236   esac
25237 done
25238
25239 # If the user did not use the arguments to specify the items to instantiate,
25240 # then the envvar interface is used.  Set only those that are not.
25241 # We use the long form for the default assignment because of an extremely
25242 # bizarre bug on SunOS 4.1.3.
25243 if $ac_need_defaults; then
25244   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25245   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25246   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25247 fi
25248
25249 # Have a temporary directory for convenience.  Make it in the build tree
25250 # simply because there is no reason to put it here, and in addition,
25251 # creating and moving files from /tmp can sometimes cause problems.
25252 # Create a temporary directory, and hook for its removal unless debugging.
25253 $debug ||
25254 {
25255   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25256   trap '{ (exit 1); exit 1; }' 1 2 13 15
25257 }
25258
25259 # Create a (secure) tmp directory for tmp files.
25260
25261 {
25262   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25263   test -n "$tmp" && test -d "$tmp"
25264 }  ||
25265 {
25266   tmp=./confstat$$-$RANDOM
25267   (umask 077 && mkdir $tmp)
25268 } ||
25269 {
25270    echo "$me: cannot create a temporary directory in ." >&2
25271    { (exit 1); exit 1; }
25272 }
25273
25274 _ACEOF
25275
25276 cat >>$CONFIG_STATUS <<_ACEOF
25277
25278 #
25279 # CONFIG_FILES section.
25280 #
25281
25282 # No need to generate the scripts if there are no CONFIG_FILES.
25283 # This happens for instance when ./config.status config.h
25284 if test -n "\$CONFIG_FILES"; then
25285   # Protect against being on the right side of a sed subst in config.status.
25286   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25287    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25288 s,@SHELL@,$SHELL,;t t
25289 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25290 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25291 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25292 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25293 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25294 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25295 s,@exec_prefix@,$exec_prefix,;t t
25296 s,@prefix@,$prefix,;t t
25297 s,@program_transform_name@,$program_transform_name,;t t
25298 s,@bindir@,$bindir,;t t
25299 s,@sbindir@,$sbindir,;t t
25300 s,@libexecdir@,$libexecdir,;t t
25301 s,@datadir@,$datadir,;t t
25302 s,@sysconfdir@,$sysconfdir,;t t
25303 s,@sharedstatedir@,$sharedstatedir,;t t
25304 s,@localstatedir@,$localstatedir,;t t
25305 s,@libdir@,$libdir,;t t
25306 s,@includedir@,$includedir,;t t
25307 s,@oldincludedir@,$oldincludedir,;t t
25308 s,@infodir@,$infodir,;t t
25309 s,@mandir@,$mandir,;t t
25310 s,@build_alias@,$build_alias,;t t
25311 s,@host_alias@,$host_alias,;t t
25312 s,@target_alias@,$target_alias,;t t
25313 s,@DEFS@,$DEFS,;t t
25314 s,@ECHO_C@,$ECHO_C,;t t
25315 s,@ECHO_N@,$ECHO_N,;t t
25316 s,@ECHO_T@,$ECHO_T,;t t
25317 s,@LIBS@,$LIBS,;t t
25318 s,@build@,$build,;t t
25319 s,@build_cpu@,$build_cpu,;t t
25320 s,@build_vendor@,$build_vendor,;t t
25321 s,@build_os@,$build_os,;t t
25322 s,@host@,$host,;t t
25323 s,@host_cpu@,$host_cpu,;t t
25324 s,@host_vendor@,$host_vendor,;t t
25325 s,@host_os@,$host_os,;t t
25326 s,@target@,$target,;t t
25327 s,@target_cpu@,$target_cpu,;t t
25328 s,@target_vendor@,$target_vendor,;t t
25329 s,@target_os@,$target_os,;t t
25330 s,@target_noncanonical@,$target_noncanonical,;t t
25331 s,@build_libsubdir@,$build_libsubdir,;t t
25332 s,@build_subdir@,$build_subdir,;t t
25333 s,@host_subdir@,$host_subdir,;t t
25334 s,@target_subdir@,$target_subdir,;t t
25335 s,@GENINSRC@,$GENINSRC,;t t
25336 s,@CC@,$CC,;t t
25337 s,@CFLAGS@,$CFLAGS,;t t
25338 s,@LDFLAGS@,$LDFLAGS,;t t
25339 s,@CPPFLAGS@,$CPPFLAGS,;t t
25340 s,@ac_ct_CC@,$ac_ct_CC,;t t
25341 s,@EXEEXT@,$EXEEXT,;t t
25342 s,@OBJEXT@,$OBJEXT,;t t
25343 s,@GNATBIND@,$GNATBIND,;t t
25344 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25345 s,@GNATMAKE@,$GNATMAKE,;t t
25346 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25347 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25348 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25349 s,@CPP@,$CPP,;t t
25350 s,@EGREP@,$EGREP,;t t
25351 s,@loose_warn@,$loose_warn,;t t
25352 s,@strict_warn@,$strict_warn,;t t
25353 s,@warn_cflags@,$warn_cflags,;t t
25354 s,@nocommon_flag@,$nocommon_flag,;t t
25355 s,@TREEBROWSER@,$TREEBROWSER,;t t
25356 s,@valgrind_path@,$valgrind_path,;t t
25357 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25358 s,@valgrind_command@,$valgrind_command,;t t
25359 s,@coverage_flags@,$coverage_flags,;t t
25360 s,@enable_multilib@,$enable_multilib,;t t
25361 s,@enable_decimal_float@,$enable_decimal_float,;t t
25362 s,@enable_fixed_point@,$enable_fixed_point,;t t
25363 s,@enable_shared@,$enable_shared,;t t
25364 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25365 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25366 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25367 s,@onestep@,$onestep,;t t
25368 s,@PKGVERSION@,$PKGVERSION,;t t
25369 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25370 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25371 s,@datarootdir@,$datarootdir,;t t
25372 s,@docdir@,$docdir,;t t
25373 s,@htmldir@,$htmldir,;t t
25374 s,@SET_MAKE@,$SET_MAKE,;t t
25375 s,@AWK@,$AWK,;t t
25376 s,@LN_S@,$LN_S,;t t
25377 s,@LN@,$LN,;t t
25378 s,@RANLIB@,$RANLIB,;t t
25379 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25380 s,@ranlib_flags@,$ranlib_flags,;t t
25381 s,@INSTALL@,$INSTALL,;t t
25382 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25383 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25384 s,@make_compare_target@,$make_compare_target,;t t
25385 s,@have_mktemp_command@,$have_mktemp_command,;t t
25386 s,@MAKEINFO@,$MAKEINFO,;t t
25387 s,@BUILD_INFO@,$BUILD_INFO,;t t
25388 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25389 s,@FLEX@,$FLEX,;t t
25390 s,@BISON@,$BISON,;t t
25391 s,@NM@,$NM,;t t
25392 s,@AR@,$AR,;t t
25393 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25394 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25395 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25396 s,@LIBICONV@,$LIBICONV,;t t
25397 s,@LTLIBICONV@,$LTLIBICONV,;t t
25398 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25399 s,@manext@,$manext,;t t
25400 s,@objext@,$objext,;t t
25401 s,@gthread_flags@,$gthread_flags,;t t
25402 s,@extra_modes_file@,$extra_modes_file,;t t
25403 s,@extra_opt_files@,$extra_opt_files,;t t
25404 s,@USE_NLS@,$USE_NLS,;t t
25405 s,@LIBINTL@,$LIBINTL,;t t
25406 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25407 s,@INCINTL@,$INCINTL,;t t
25408 s,@XGETTEXT@,$XGETTEXT,;t t
25409 s,@GMSGFMT@,$GMSGFMT,;t t
25410 s,@POSUB@,$POSUB,;t t
25411 s,@CATALOGS@,$CATALOGS,;t t
25412 s,@DATADIRNAME@,$DATADIRNAME,;t t
25413 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25414 s,@GENCAT@,$GENCAT,;t t
25415 s,@CATOBJEXT@,$CATOBJEXT,;t t
25416 s,@CROSS@,$CROSS,;t t
25417 s,@ALL@,$ALL,;t t
25418 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25419 s,@inhibit_libc@,$inhibit_libc,;t t
25420 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25421 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25422 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25423 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25424 s,@collect2@,$collect2,;t t
25425 s,@LIBTOOL@,$LIBTOOL,;t t
25426 s,@SED@,$SED,;t t
25427 s,@FGREP@,$FGREP,;t t
25428 s,@GREP@,$GREP,;t t
25429 s,@LD@,$LD,;t t
25430 s,@DUMPBIN@,$DUMPBIN,;t t
25431 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25432 s,@OBJDUMP@,$OBJDUMP,;t t
25433 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25434 s,@ac_ct_AR@,$ac_ct_AR,;t t
25435 s,@STRIP@,$STRIP,;t t
25436 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25437 s,@lt_ECHO@,$lt_ECHO,;t t
25438 s,@DSYMUTIL@,$DSYMUTIL,;t t
25439 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25440 s,@NMEDIT@,$NMEDIT,;t t
25441 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25442 s,@LIPO@,$LIPO,;t t
25443 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25444 s,@OTOOL@,$OTOOL,;t t
25445 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25446 s,@OTOOL64@,$OTOOL64,;t t
25447 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25448 s,@objdir@,$objdir,;t t
25449 s,@enable_fast_install@,$enable_fast_install,;t t
25450 s,@gcc_cv_as@,$gcc_cv_as,;t t
25451 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25452 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25453 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25454 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25455 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25456 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25457 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25458 s,@libgcc_visibility@,$libgcc_visibility,;t t
25459 s,@GGC@,$GGC,;t t
25460 s,@zlibdir@,$zlibdir,;t t
25461 s,@zlibinc@,$zlibinc,;t t
25462 s,@MAINT@,$MAINT,;t t
25463 s,@gcc_tooldir@,$gcc_tooldir,;t t
25464 s,@dollar@,$dollar,;t t
25465 s,@slibdir@,$slibdir,;t t
25466 s,@subdirs@,$subdirs,;t t
25467 s,@srcdir@,$srcdir,;t t
25468 s,@all_compilers@,$all_compilers,;t t
25469 s,@all_gtfiles@,$all_gtfiles,;t t
25470 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25471 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25472 s,@all_languages@,$all_languages,;t t
25473 s,@all_selected_languages@,$all_selected_languages,;t t
25474 s,@build_exeext@,$build_exeext,;t t
25475 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25476 s,@build_xm_file_list@,$build_xm_file_list,;t t
25477 s,@build_xm_include_list@,$build_xm_include_list,;t t
25478 s,@build_xm_defines@,$build_xm_defines,;t t
25479 s,@build_file_translate@,$build_file_translate,;t t
25480 s,@check_languages@,$check_languages,;t t
25481 s,@cpp_install_dir@,$cpp_install_dir,;t t
25482 s,@xmake_file@,$xmake_file,;t t
25483 s,@tmake_file@,$tmake_file,;t t
25484 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25485 s,@extra_headers_list@,$extra_headers_list,;t t
25486 s,@extra_objs@,$extra_objs,;t t
25487 s,@extra_parts@,$extra_parts,;t t
25488 s,@extra_passes@,$extra_passes,;t t
25489 s,@extra_programs@,$extra_programs,;t t
25490 s,@float_h_file@,$float_h_file,;t t
25491 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25492 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25493 s,@host_exeext@,$host_exeext,;t t
25494 s,@host_xm_file_list@,$host_xm_file_list,;t t
25495 s,@host_xm_include_list@,$host_xm_include_list,;t t
25496 s,@host_xm_defines@,$host_xm_defines,;t t
25497 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25498 s,@install@,$install,;t t
25499 s,@lang_opt_files@,$lang_opt_files,;t t
25500 s,@lang_specs_files@,$lang_specs_files,;t t
25501 s,@lang_tree_files@,$lang_tree_files,;t t
25502 s,@local_prefix@,$local_prefix,;t t
25503 s,@md_file@,$md_file,;t t
25504 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25505 s,@out_file@,$out_file,;t t
25506 s,@out_object_file@,$out_object_file,;t t
25507 s,@thread_file@,$thread_file,;t t
25508 s,@tm_file_list@,$tm_file_list,;t t
25509 s,@tm_include_list@,$tm_include_list,;t t
25510 s,@tm_defines@,$tm_defines,;t t
25511 s,@tm_p_file_list@,$tm_p_file_list,;t t
25512 s,@tm_p_include_list@,$tm_p_include_list,;t t
25513 s,@xm_file_list@,$xm_file_list,;t t
25514 s,@xm_include_list@,$xm_include_list,;t t
25515 s,@xm_defines@,$xm_defines,;t t
25516 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25517 s,@c_target_objs@,$c_target_objs,;t t
25518 s,@cxx_target_objs@,$cxx_target_objs,;t t
25519 s,@fortran_target_objs@,$fortran_target_objs,;t t
25520 s,@target_cpu_default@,$target_cpu_default,;t t
25521 s,@GMPLIBS@,$GMPLIBS,;t t
25522 s,@GMPINC@,$GMPINC,;t t
25523 s,@PPLLIBS@,$PPLLIBS,;t t
25524 s,@PPLINC@,$PPLINC,;t t
25525 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25526 s,@CLOOGINC@,$CLOOGINC,;t t
25527 s,@LIBOBJS@,$LIBOBJS,;t t
25528 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25529 /@language_hooks@/r $language_hooks
25530 s,@language_hooks@,,;t t
25531 CEOF
25532
25533 _ACEOF
25534
25535   cat >>$CONFIG_STATUS <<\_ACEOF
25536   # Split the substitutions into bite-sized pieces for seds with
25537   # small command number limits, like on Digital OSF/1 and HP-UX.
25538   ac_max_sed_lines=48
25539   ac_sed_frag=1 # Number of current file.
25540   ac_beg=1 # First line for current file.
25541   ac_end=$ac_max_sed_lines # Line after last line for current file.
25542   ac_more_lines=:
25543   ac_sed_cmds=
25544   while $ac_more_lines; do
25545     if test $ac_beg -gt 1; then
25546       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25547     else
25548       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25549     fi
25550     if test ! -s $tmp/subs.frag; then
25551       ac_more_lines=false
25552     else
25553       # The purpose of the label and of the branching condition is to
25554       # speed up the sed processing (if there are no `@' at all, there
25555       # is no need to browse any of the substitutions).
25556       # These are the two extra sed commands mentioned above.
25557       (echo ':t
25558   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25559       if test -z "$ac_sed_cmds"; then
25560         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25561       else
25562         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25563       fi
25564       ac_sed_frag=`expr $ac_sed_frag + 1`
25565       ac_beg=$ac_end
25566       ac_end=`expr $ac_end + $ac_max_sed_lines`
25567     fi
25568   done
25569   if test -z "$ac_sed_cmds"; then
25570     ac_sed_cmds=cat
25571   fi
25572 fi # test -n "$CONFIG_FILES"
25573
25574 _ACEOF
25575 cat >>$CONFIG_STATUS <<\_ACEOF
25576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25577   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25578   case $ac_file in
25579   - | *:- | *:-:* ) # input from stdin
25580         cat >$tmp/stdin
25581         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25582         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25583   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25585   * )   ac_file_in=$ac_file.in ;;
25586   esac
25587
25588   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25589   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25591          X"$ac_file" : 'X\(//\)[^/]' \| \
25592          X"$ac_file" : 'X\(//\)$' \| \
25593          X"$ac_file" : 'X\(/\)' \| \
25594          .     : '\(.\)' 2>/dev/null ||
25595 echo X"$ac_file" |
25596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25597           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25598           /^X\(\/\/\)$/{ s//\1/; q; }
25599           /^X\(\/\).*/{ s//\1/; q; }
25600           s/.*/./; q'`
25601   { if $as_mkdir_p; then
25602     mkdir -p "$ac_dir"
25603   else
25604     as_dir="$ac_dir"
25605     as_dirs=
25606     while test ! -d "$as_dir"; do
25607       as_dirs="$as_dir $as_dirs"
25608       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25610          X"$as_dir" : 'X\(//\)[^/]' \| \
25611          X"$as_dir" : 'X\(//\)$' \| \
25612          X"$as_dir" : 'X\(/\)' \| \
25613          .     : '\(.\)' 2>/dev/null ||
25614 echo X"$as_dir" |
25615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25617           /^X\(\/\/\)$/{ s//\1/; q; }
25618           /^X\(\/\).*/{ s//\1/; q; }
25619           s/.*/./; q'`
25620     done
25621     test ! -n "$as_dirs" || mkdir $as_dirs
25622   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25624    { (exit 1); exit 1; }; }; }
25625
25626   ac_builddir=.
25627
25628 if test "$ac_dir" != .; then
25629   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25630   # A "../" for each directory in $ac_dir_suffix.
25631   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25632 else
25633   ac_dir_suffix= ac_top_builddir=
25634 fi
25635
25636 case $srcdir in
25637   .)  # No --srcdir option.  We are building in place.
25638     ac_srcdir=.
25639     if test -z "$ac_top_builddir"; then
25640        ac_top_srcdir=.
25641     else
25642        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25643     fi ;;
25644   [\\/]* | ?:[\\/]* )  # Absolute path.
25645     ac_srcdir=$srcdir$ac_dir_suffix;
25646     ac_top_srcdir=$srcdir ;;
25647   *) # Relative path.
25648     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25649     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25650 esac
25651
25652 # Do not use `cd foo && pwd` to compute absolute paths, because
25653 # the directories may not exist.
25654 case `pwd` in
25655 .) ac_abs_builddir="$ac_dir";;
25656 *)
25657   case "$ac_dir" in
25658   .) ac_abs_builddir=`pwd`;;
25659   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25660   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25661   esac;;
25662 esac
25663 case $ac_abs_builddir in
25664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25665 *)
25666   case ${ac_top_builddir}. in
25667   .) ac_abs_top_builddir=$ac_abs_builddir;;
25668   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25669   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25670   esac;;
25671 esac
25672 case $ac_abs_builddir in
25673 .) ac_abs_srcdir=$ac_srcdir;;
25674 *)
25675   case $ac_srcdir in
25676   .) ac_abs_srcdir=$ac_abs_builddir;;
25677   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25678   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25679   esac;;
25680 esac
25681 case $ac_abs_builddir in
25682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25683 *)
25684   case $ac_top_srcdir in
25685   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25686   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25687   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25688   esac;;
25689 esac
25690
25691
25692
25693   if test x"$ac_file" != x-; then
25694     { echo "$as_me:$LINENO: creating $ac_file" >&5
25695 echo "$as_me: creating $ac_file" >&6;}
25696     rm -f "$ac_file"
25697   fi
25698   # Let's still pretend it is `configure' which instantiates (i.e., don't
25699   # use $as_me), people would be surprised to read:
25700   #    /* config.h.  Generated by config.status.  */
25701   if test x"$ac_file" = x-; then
25702     configure_input=
25703   else
25704     configure_input="$ac_file.  "
25705   fi
25706   configure_input=$configure_input"Generated from `echo $ac_file_in |
25707                                      sed 's,.*/,,'` by configure."
25708
25709   # First look for the input files in the build tree, otherwise in the
25710   # src tree.
25711   ac_file_inputs=`IFS=:
25712     for f in $ac_file_in; do
25713       case $f in
25714       -) echo $tmp/stdin ;;
25715       [\\/$]*)
25716          # Absolute (can't be DOS-style, as IFS=:)
25717          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25718 echo "$as_me: error: cannot find input file: $f" >&2;}
25719    { (exit 1); exit 1; }; }
25720          echo "$f";;
25721       *) # Relative
25722          if test -f "$f"; then
25723            # Build tree
25724            echo "$f"
25725          elif test -f "$srcdir/$f"; then
25726            # Source tree
25727            echo "$srcdir/$f"
25728          else
25729            # /dev/null tree
25730            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25731 echo "$as_me: error: cannot find input file: $f" >&2;}
25732    { (exit 1); exit 1; }; }
25733          fi;;
25734       esac
25735     done` || { (exit 1); exit 1; }
25736 _ACEOF
25737 cat >>$CONFIG_STATUS <<_ACEOF
25738   sed "$ac_vpsub
25739 $extrasub
25740 _ACEOF
25741 cat >>$CONFIG_STATUS <<\_ACEOF
25742 :t
25743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25744 s,@configure_input@,$configure_input,;t t
25745 s,@srcdir@,$ac_srcdir,;t t
25746 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25747 s,@top_srcdir@,$ac_top_srcdir,;t t
25748 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25749 s,@builddir@,$ac_builddir,;t t
25750 s,@abs_builddir@,$ac_abs_builddir,;t t
25751 s,@top_builddir@,$ac_top_builddir,;t t
25752 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25754   rm -f $tmp/stdin
25755   if test x"$ac_file" != x-; then
25756     mv $tmp/out $ac_file
25757   else
25758     cat $tmp/out
25759     rm -f $tmp/out
25760   fi
25761
25762   # Run the commands associated with the file.
25763   case $ac_file in
25764     as ) chmod +x as ;;
25765     collect-ld ) chmod +x collect-ld ;;
25766     nm ) chmod +x nm ;;
25767   esac
25768 done
25769 _ACEOF
25770 cat >>$CONFIG_STATUS <<\_ACEOF
25771
25772 #
25773 # CONFIG_HEADER section.
25774 #
25775
25776 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25777 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25778 #
25779 # ac_d sets the value in "#define NAME VALUE" lines.
25780 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25781 ac_dB='[         ].*$,\1#\2'
25782 ac_dC=' '
25783 ac_dD=',;t'
25784 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25785 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25786 ac_uB='$,\1#\2define\3'
25787 ac_uC=' '
25788 ac_uD=',;t'
25789
25790 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25791   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25792   case $ac_file in
25793   - | *:- | *:-:* ) # input from stdin
25794         cat >$tmp/stdin
25795         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25796         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25797   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25798         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25799   * )   ac_file_in=$ac_file.in ;;
25800   esac
25801
25802   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25803 echo "$as_me: creating $ac_file" >&6;}
25804
25805   # First look for the input files in the build tree, otherwise in the
25806   # src tree.
25807   ac_file_inputs=`IFS=:
25808     for f in $ac_file_in; do
25809       case $f in
25810       -) echo $tmp/stdin ;;
25811       [\\/$]*)
25812          # Absolute (can't be DOS-style, as IFS=:)
25813          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25814 echo "$as_me: error: cannot find input file: $f" >&2;}
25815    { (exit 1); exit 1; }; }
25816          # Do quote $f, to prevent DOS paths from being IFS'd.
25817          echo "$f";;
25818       *) # Relative
25819          if test -f "$f"; then
25820            # Build tree
25821            echo "$f"
25822          elif test -f "$srcdir/$f"; then
25823            # Source tree
25824            echo "$srcdir/$f"
25825          else
25826            # /dev/null tree
25827            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25828 echo "$as_me: error: cannot find input file: $f" >&2;}
25829    { (exit 1); exit 1; }; }
25830          fi;;
25831       esac
25832     done` || { (exit 1); exit 1; }
25833   # Remove the trailing spaces.
25834   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25835
25836 _ACEOF
25837
25838 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25839 # `conftest.undefs', that substitutes the proper values into
25840 # config.h.in to produce config.h.  The first handles `#define'
25841 # templates, and the second `#undef' templates.
25842 # And first: Protect against being on the right side of a sed subst in
25843 # config.status.  Protect against being in an unquoted here document
25844 # in config.status.
25845 rm -f conftest.defines conftest.undefs
25846 # Using a here document instead of a string reduces the quoting nightmare.
25847 # Putting comments in sed scripts is not portable.
25848 #
25849 # `end' is used to avoid that the second main sed command (meant for
25850 # 0-ary CPP macros) applies to n-ary macro definitions.
25851 # See the Autoconf documentation for `clear'.
25852 cat >confdef2sed.sed <<\_ACEOF
25853 s/[\\&,]/\\&/g
25854 s,[\\$`],\\&,g
25855 t clear
25856 : clear
25857 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25858 t end
25859 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25860 : end
25861 _ACEOF
25862 # If some macros were called several times there might be several times
25863 # the same #defines, which is useless.  Nevertheless, we may not want to
25864 # sort them, since we want the *last* AC-DEFINE to be honored.
25865 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25866 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25867 rm -f confdef2sed.sed
25868
25869 # This sed command replaces #undef with comments.  This is necessary, for
25870 # example, in the case of _POSIX_SOURCE, which is predefined and required
25871 # on some systems where configure will not decide to define it.
25872 cat >>conftest.undefs <<\_ACEOF
25873 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25874 _ACEOF
25875
25876 # Break up conftest.defines because some shells have a limit on the size
25877 # of here documents, and old seds have small limits too (100 cmds).
25878 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25879 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25880 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25881 echo '  :' >>$CONFIG_STATUS
25882 rm -f conftest.tail
25883 while grep . conftest.defines >/dev/null
25884 do
25885   # Write a limited-size here document to $tmp/defines.sed.
25886   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25887   # Speed up: don't consider the non `#define' lines.
25888   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25889   # Work around the forget-to-reset-the-flag bug.
25890   echo 't clr' >>$CONFIG_STATUS
25891   echo ': clr' >>$CONFIG_STATUS
25892   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25893   echo 'CEOF
25894   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25895   rm -f $tmp/in
25896   mv $tmp/out $tmp/in
25897 ' >>$CONFIG_STATUS
25898   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25899   rm -f conftest.defines
25900   mv conftest.tail conftest.defines
25901 done
25902 rm -f conftest.defines
25903 echo '  fi # grep' >>$CONFIG_STATUS
25904 echo >>$CONFIG_STATUS
25905
25906 # Break up conftest.undefs because some shells have a limit on the size
25907 # of here documents, and old seds have small limits too (100 cmds).
25908 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25909 rm -f conftest.tail
25910 while grep . conftest.undefs >/dev/null
25911 do
25912   # Write a limited-size here document to $tmp/undefs.sed.
25913   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25914   # Speed up: don't consider the non `#undef'
25915   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25916   # Work around the forget-to-reset-the-flag bug.
25917   echo 't clr' >>$CONFIG_STATUS
25918   echo ': clr' >>$CONFIG_STATUS
25919   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25920   echo 'CEOF
25921   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25922   rm -f $tmp/in
25923   mv $tmp/out $tmp/in
25924 ' >>$CONFIG_STATUS
25925   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25926   rm -f conftest.undefs
25927   mv conftest.tail conftest.undefs
25928 done
25929 rm -f conftest.undefs
25930
25931 cat >>$CONFIG_STATUS <<\_ACEOF
25932   # Let's still pretend it is `configure' which instantiates (i.e., don't
25933   # use $as_me), people would be surprised to read:
25934   #    /* config.h.  Generated by config.status.  */
25935   if test x"$ac_file" = x-; then
25936     echo "/* Generated by configure.  */" >$tmp/config.h
25937   else
25938     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25939   fi
25940   cat $tmp/in >>$tmp/config.h
25941   rm -f $tmp/in
25942   if test x"$ac_file" != x-; then
25943     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25944       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25945 echo "$as_me: $ac_file is unchanged" >&6;}
25946     else
25947       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25949          X"$ac_file" : 'X\(//\)[^/]' \| \
25950          X"$ac_file" : 'X\(//\)$' \| \
25951          X"$ac_file" : 'X\(/\)' \| \
25952          .     : '\(.\)' 2>/dev/null ||
25953 echo X"$ac_file" |
25954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25956           /^X\(\/\/\)$/{ s//\1/; q; }
25957           /^X\(\/\).*/{ s//\1/; q; }
25958           s/.*/./; q'`
25959       { if $as_mkdir_p; then
25960     mkdir -p "$ac_dir"
25961   else
25962     as_dir="$ac_dir"
25963     as_dirs=
25964     while test ! -d "$as_dir"; do
25965       as_dirs="$as_dir $as_dirs"
25966       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25968          X"$as_dir" : 'X\(//\)[^/]' \| \
25969          X"$as_dir" : 'X\(//\)$' \| \
25970          X"$as_dir" : 'X\(/\)' \| \
25971          .     : '\(.\)' 2>/dev/null ||
25972 echo X"$as_dir" |
25973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25975           /^X\(\/\/\)$/{ s//\1/; q; }
25976           /^X\(\/\).*/{ s//\1/; q; }
25977           s/.*/./; q'`
25978     done
25979     test ! -n "$as_dirs" || mkdir $as_dirs
25980   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25982    { (exit 1); exit 1; }; }; }
25983
25984       rm -f $ac_file
25985       mv $tmp/config.h $ac_file
25986     fi
25987   else
25988     cat $tmp/config.h
25989     rm -f $tmp/config.h
25990   fi
25991 done
25992 _ACEOF
25993 cat >>$CONFIG_STATUS <<\_ACEOF
25994
25995 #
25996 # CONFIG_COMMANDS section.
25997 #
25998 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25999   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26000   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26001   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26002 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26003          X"$ac_dest" : 'X\(//\)[^/]' \| \
26004          X"$ac_dest" : 'X\(//\)$' \| \
26005          X"$ac_dest" : 'X\(/\)' \| \
26006          .     : '\(.\)' 2>/dev/null ||
26007 echo X"$ac_dest" |
26008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26010           /^X\(\/\/\)$/{ s//\1/; q; }
26011           /^X\(\/\).*/{ s//\1/; q; }
26012           s/.*/./; q'`
26013   { if $as_mkdir_p; then
26014     mkdir -p "$ac_dir"
26015   else
26016     as_dir="$ac_dir"
26017     as_dirs=
26018     while test ! -d "$as_dir"; do
26019       as_dirs="$as_dir $as_dirs"
26020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26022          X"$as_dir" : 'X\(//\)[^/]' \| \
26023          X"$as_dir" : 'X\(//\)$' \| \
26024          X"$as_dir" : 'X\(/\)' \| \
26025          .     : '\(.\)' 2>/dev/null ||
26026 echo X"$as_dir" |
26027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26029           /^X\(\/\/\)$/{ s//\1/; q; }
26030           /^X\(\/\).*/{ s//\1/; q; }
26031           s/.*/./; q'`
26032     done
26033     test ! -n "$as_dirs" || mkdir $as_dirs
26034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26036    { (exit 1); exit 1; }; }; }
26037
26038   ac_builddir=.
26039
26040 if test "$ac_dir" != .; then
26041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26042   # A "../" for each directory in $ac_dir_suffix.
26043   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26044 else
26045   ac_dir_suffix= ac_top_builddir=
26046 fi
26047
26048 case $srcdir in
26049   .)  # No --srcdir option.  We are building in place.
26050     ac_srcdir=.
26051     if test -z "$ac_top_builddir"; then
26052        ac_top_srcdir=.
26053     else
26054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26055     fi ;;
26056   [\\/]* | ?:[\\/]* )  # Absolute path.
26057     ac_srcdir=$srcdir$ac_dir_suffix;
26058     ac_top_srcdir=$srcdir ;;
26059   *) # Relative path.
26060     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26061     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26062 esac
26063
26064 # Do not use `cd foo && pwd` to compute absolute paths, because
26065 # the directories may not exist.
26066 case `pwd` in
26067 .) ac_abs_builddir="$ac_dir";;
26068 *)
26069   case "$ac_dir" in
26070   .) ac_abs_builddir=`pwd`;;
26071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26073   esac;;
26074 esac
26075 case $ac_abs_builddir in
26076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26077 *)
26078   case ${ac_top_builddir}. in
26079   .) ac_abs_top_builddir=$ac_abs_builddir;;
26080   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26081   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26082   esac;;
26083 esac
26084 case $ac_abs_builddir in
26085 .) ac_abs_srcdir=$ac_srcdir;;
26086 *)
26087   case $ac_srcdir in
26088   .) ac_abs_srcdir=$ac_abs_builddir;;
26089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26091   esac;;
26092 esac
26093 case $ac_abs_builddir in
26094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26095 *)
26096   case $ac_top_srcdir in
26097   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26098   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26099   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26100   esac;;
26101 esac
26102
26103
26104   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26105 echo "$as_me: executing $ac_dest commands" >&6;}
26106   case $ac_dest in
26107     default )
26108 case ${CONFIG_HEADERS} in
26109   *auto-host.h:config.in*)
26110   echo > cstamp-h ;;
26111 esac
26112 # Make sure all the subdirs exist.
26113 for d in $subdirs doc build
26114 do
26115     test -d $d || mkdir $d
26116 done
26117  ;;
26118   esac
26119 done
26120 _ACEOF
26121
26122 cat >>$CONFIG_STATUS <<\_ACEOF
26123
26124 { (exit 0); exit 0; }
26125 _ACEOF
26126 chmod +x $CONFIG_STATUS
26127 ac_clean_files=$ac_clean_files_save
26128
26129
26130 # configure is writing to config.log, and then calls config.status.
26131 # config.status does its own redirection, appending to config.log.
26132 # Unfortunately, on DOS this fails, as config.log is still kept open
26133 # by configure, so config.status won't be able to write to it; its
26134 # output is simply discarded.  So we exec the FD to /dev/null,
26135 # effectively closing config.log, so it can be properly (re)opened and
26136 # appended to by config.status.  When coming back to configure, we
26137 # need to make the FD available again.
26138 if test "$no_create" != yes; then
26139   ac_cs_success=:
26140   ac_config_status_args=
26141   test "$silent" = yes &&
26142     ac_config_status_args="$ac_config_status_args --quiet"
26143   exec 5>/dev/null
26144   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26145   exec 5>>config.log
26146   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26147   # would make configure fail if this is the last instruction.
26148   $ac_cs_success || { (exit 1); exit 1; }
26149 fi
26150