OSDN Git Service

2009-04-29 Rafael Avila de Espindola <espindola@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG 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 pluginlibs enable_plugin 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   --enable-plugin         enable plugin support
1088
1089 Optional Packages:
1090   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1093   --with-local-prefix=DIR specifies directory to put local include
1094   --with-gxx-include-dir=DIR
1095                           specifies directory to put g++ header files
1096   --with-cpp-install-dir=DIR
1097                           install the user visible C preprocessor in DIR
1098                           (relative to PREFIX) as well as PREFIX/bin
1099   --with-gnu-ld           arrange to work with GNU ld.
1100   --with-ld               arrange to use the specified ld (full pathname)
1101   --with-demangler-in-ld  try to use demangler in GNU ld.
1102   --with-gnu-as           arrange to work with GNU as
1103   --with-as               arrange to use the specified as (full pathname)
1104   --with-stabs            arrange to use stabs instead of host debug format
1105   --with-dwarf2           force the default debug format to be DWARF 2
1106   --with-build-sysroot=sysroot
1107                           use sysroot as the system root during the build
1108   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1109   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1110   --with-bugurl=URL       Direct users to URL to report a bug
1111   --with-multilib-list    Select multilibs (SH only)
1112   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1113   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1114   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1115   --with-system-libunwind use installed libunwind
1116   --with-pic              try to use only PIC/non-PIC objects [default=use
1117                           both]
1118   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1119   --with-long-double-128  Use 128-bit long double by default.
1120   --with-gc={page,zone}   choose the garbage collection mechanism to use
1121                           with the compiler
1122   --with-system-zlib      use installed libz
1123   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1124   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1125   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1126   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1127
1128 Some influential environment variables:
1129   CC          C compiler command
1130   CFLAGS      C compiler flags
1131   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1132               nonstandard directory <lib dir>
1133   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1134               headers in a nonstandard directory <include dir>
1135   CPP         C preprocessor
1136   GMPLIBS     How to link GMP
1137   GMPINC      How to find GMP include files
1138   PPLLIBS     How to link PPL
1139   PPLINC      How to find PPL include files
1140   CLOOGLIBS   How to link CLOOG
1141   CLOOGINC    How to find CLOOG include files
1142
1143 Use these variables to override the choices made by `configure' or to help
1144 it to find libraries and programs with nonstandard names/locations.
1145
1146 _ACEOF
1147 fi
1148
1149 if test "$ac_init_help" = "recursive"; then
1150   # If there are subdirs, report their specific --help.
1151   ac_popdir=`pwd`
1152   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153     test -d $ac_dir || continue
1154     ac_builddir=.
1155
1156 if test "$ac_dir" != .; then
1157   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1158   # A "../" for each directory in $ac_dir_suffix.
1159   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1160 else
1161   ac_dir_suffix= ac_top_builddir=
1162 fi
1163
1164 case $srcdir in
1165   .)  # No --srcdir option.  We are building in place.
1166     ac_srcdir=.
1167     if test -z "$ac_top_builddir"; then
1168        ac_top_srcdir=.
1169     else
1170        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1171     fi ;;
1172   [\\/]* | ?:[\\/]* )  # Absolute path.
1173     ac_srcdir=$srcdir$ac_dir_suffix;
1174     ac_top_srcdir=$srcdir ;;
1175   *) # Relative path.
1176     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1178 esac
1179
1180 # Do not use `cd foo && pwd` to compute absolute paths, because
1181 # the directories may not exist.
1182 case `pwd` in
1183 .) ac_abs_builddir="$ac_dir";;
1184 *)
1185   case "$ac_dir" in
1186   .) ac_abs_builddir=`pwd`;;
1187   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1189   esac;;
1190 esac
1191 case $ac_abs_builddir in
1192 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1193 *)
1194   case ${ac_top_builddir}. in
1195   .) ac_abs_top_builddir=$ac_abs_builddir;;
1196   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1198   esac;;
1199 esac
1200 case $ac_abs_builddir in
1201 .) ac_abs_srcdir=$ac_srcdir;;
1202 *)
1203   case $ac_srcdir in
1204   .) ac_abs_srcdir=$ac_abs_builddir;;
1205   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1207   esac;;
1208 esac
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1211 *)
1212   case $ac_top_srcdir in
1213   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1216   esac;;
1217 esac
1218
1219     cd $ac_dir
1220     # Check for guested configure; otherwise get Cygnus style configure.
1221     if test -f $ac_srcdir/configure.gnu; then
1222       echo
1223       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1224     elif test -f $ac_srcdir/configure; then
1225       echo
1226       $SHELL $ac_srcdir/configure  --help=recursive
1227     elif test -f $ac_srcdir/configure.ac ||
1228            test -f $ac_srcdir/configure.in; then
1229       echo
1230       $ac_configure --help
1231     else
1232       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1233     fi
1234     cd $ac_popdir
1235   done
1236 fi
1237
1238 test -n "$ac_init_help" && exit 0
1239 if $ac_init_version; then
1240   cat <<\_ACEOF
1241
1242 Copyright (C) 2003 Free Software Foundation, Inc.
1243 This configure script is free software; the Free Software Foundation
1244 gives unlimited permission to copy, distribute and modify it.
1245 _ACEOF
1246   exit 0
1247 fi
1248 exec 5>config.log
1249 cat >&5 <<_ACEOF
1250 This file contains any messages produced by compilers while
1251 running configure, to aid debugging if configure makes a mistake.
1252
1253 It was created by $as_me, which was
1254 generated by GNU Autoconf 2.59.  Invocation command line was
1255
1256   $ $0 $@
1257
1258 _ACEOF
1259 {
1260 cat <<_ASUNAME
1261 ## --------- ##
1262 ## Platform. ##
1263 ## --------- ##
1264
1265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270
1271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1272 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1273
1274 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1275 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1277 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1278 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1279 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1280 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1281
1282 _ASUNAME
1283
1284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285 for as_dir in $PATH
1286 do
1287   IFS=$as_save_IFS
1288   test -z "$as_dir" && as_dir=.
1289   echo "PATH: $as_dir"
1290 done
1291
1292 } >&5
1293
1294 cat >&5 <<_ACEOF
1295
1296
1297 ## ----------- ##
1298 ## Core tests. ##
1299 ## ----------- ##
1300
1301 _ACEOF
1302
1303
1304 # Keep a trace of the command line.
1305 # Strip out --no-create and --no-recursion so they do not pile up.
1306 # Strip out --silent because we don't want to record it for future runs.
1307 # Also quote any args containing shell meta-characters.
1308 # Make two passes to allow for proper duplicate-argument suppression.
1309 ac_configure_args=
1310 ac_configure_args0=
1311 ac_configure_args1=
1312 ac_sep=
1313 ac_must_keep_next=false
1314 for ac_pass in 1 2
1315 do
1316   for ac_arg
1317   do
1318     case $ac_arg in
1319     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321     | -silent | --silent | --silen | --sile | --sil)
1322       continue ;;
1323     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1325     esac
1326     case $ac_pass in
1327     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328     2)
1329       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330       if test $ac_must_keep_next = true; then
1331         ac_must_keep_next=false # Got value, back to normal.
1332       else
1333         case $ac_arg in
1334           *=* | --config-cache | -C | -disable-* | --disable-* \
1335           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337           | -with-* | --with-* | -without-* | --without-* | --x)
1338             case "$ac_configure_args0 " in
1339               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340             esac
1341             ;;
1342           -* ) ac_must_keep_next=true ;;
1343         esac
1344       fi
1345       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346       # Get rid of the leading space.
1347       ac_sep=" "
1348       ;;
1349     esac
1350   done
1351 done
1352 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354
1355 # When interrupted or exit'd, cleanup temporary files, and complete
1356 # config.log.  We remove comments because anyway the quotes in there
1357 # would cause problems or look ugly.
1358 # WARNING: Be sure not to use single quotes in there, as some shells,
1359 # such as our DU 5.0 friend, will then `close' the trap.
1360 trap 'exit_status=$?
1361   # Save into config.log some information that might help in debugging.
1362   {
1363     echo
1364
1365     cat <<\_ASBOX
1366 ## ---------------- ##
1367 ## Cache variables. ##
1368 ## ---------------- ##
1369 _ASBOX
1370     echo
1371     # The following way of writing the cache mishandles newlines in values,
1372 {
1373   (set) 2>&1 |
1374     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375     *ac_space=\ *)
1376       sed -n \
1377         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379       ;;
1380     *)
1381       sed -n \
1382         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383       ;;
1384     esac;
1385 }
1386     echo
1387
1388     cat <<\_ASBOX
1389 ## ----------------- ##
1390 ## Output variables. ##
1391 ## ----------------- ##
1392 _ASBOX
1393     echo
1394     for ac_var in $ac_subst_vars
1395     do
1396       eval ac_val=$`echo $ac_var`
1397       echo "$ac_var='"'"'$ac_val'"'"'"
1398     done | sort
1399     echo
1400
1401     if test -n "$ac_subst_files"; then
1402       cat <<\_ASBOX
1403 ## ------------- ##
1404 ## Output files. ##
1405 ## ------------- ##
1406 _ASBOX
1407       echo
1408       for ac_var in $ac_subst_files
1409       do
1410         eval ac_val=$`echo $ac_var`
1411         echo "$ac_var='"'"'$ac_val'"'"'"
1412       done | sort
1413       echo
1414     fi
1415
1416     if test -s confdefs.h; then
1417       cat <<\_ASBOX
1418 ## ----------- ##
1419 ## confdefs.h. ##
1420 ## ----------- ##
1421 _ASBOX
1422       echo
1423       sed "/^$/d" confdefs.h | sort
1424       echo
1425     fi
1426     test "$ac_signal" != 0 &&
1427       echo "$as_me: caught signal $ac_signal"
1428     echo "$as_me: exit $exit_status"
1429   } >&5
1430   rm -f core *.core &&
1431   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1432     exit $exit_status
1433      ' 0
1434 for ac_signal in 1 2 13 15; do
1435   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436 done
1437 ac_signal=0
1438
1439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1440 rm -rf conftest* confdefs.h
1441 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442 echo >confdefs.h
1443
1444 # Predefined preprocessor variables.
1445
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_NAME "$PACKAGE_NAME"
1448 _ACEOF
1449
1450
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453 _ACEOF
1454
1455
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1458 _ACEOF
1459
1460
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_STRING "$PACKAGE_STRING"
1463 _ACEOF
1464
1465
1466 cat >>confdefs.h <<_ACEOF
1467 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468 _ACEOF
1469
1470
1471 # Let the site file select an alternate cache file if it wants to.
1472 # Prefer explicitly selected file to automatically selected ones.
1473 if test -z "$CONFIG_SITE"; then
1474   if test "x$prefix" != xNONE; then
1475     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1476   else
1477     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478   fi
1479 fi
1480 for ac_site_file in $CONFIG_SITE; do
1481   if test -r "$ac_site_file"; then
1482     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483 echo "$as_me: loading site script $ac_site_file" >&6;}
1484     sed 's/^/| /' "$ac_site_file" >&5
1485     . "$ac_site_file"
1486   fi
1487 done
1488
1489 if test -r "$cache_file"; then
1490   # Some versions of bash will fail to source /dev/null (special
1491   # files actually), so we avoid doing that.
1492   if test -f "$cache_file"; then
1493     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494 echo "$as_me: loading cache $cache_file" >&6;}
1495     case $cache_file in
1496       [\\/]* | ?:[\\/]* ) . $cache_file;;
1497       *)                      . ./$cache_file;;
1498     esac
1499   fi
1500 else
1501   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502 echo "$as_me: creating cache $cache_file" >&6;}
1503   >$cache_file
1504 fi
1505
1506 # Check that the precious variables saved in the cache have kept the same
1507 # value.
1508 ac_cache_corrupted=false
1509 for ac_var in `(set) 2>&1 |
1510                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1511   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512   eval ac_new_set=\$ac_env_${ac_var}_set
1513   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514   eval ac_new_val="\$ac_env_${ac_var}_value"
1515   case $ac_old_set,$ac_new_set in
1516     set,)
1517       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1518 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1519       ac_cache_corrupted=: ;;
1520     ,set)
1521       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1522 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523       ac_cache_corrupted=: ;;
1524     ,);;
1525     *)
1526       if test "x$ac_old_val" != "x$ac_new_val"; then
1527         # differences in whitespace do not lead to failure.
1528         ac_old_val_w=`echo x $ac_old_val`
1529         ac_new_val_w=`echo x $ac_new_val`
1530         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1531           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533           ac_cache_corrupted=:
1534         else
1535           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1536 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1537           eval $ac_var=\$ac_old_val
1538         fi
1539         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1540 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1541         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1542 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1543       fi;;
1544   esac
1545   # Pass precious variables to config.status.
1546   if test "$ac_new_set" = set; then
1547     case $ac_new_val in
1548     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550     *) ac_arg=$ac_var=$ac_new_val ;;
1551     esac
1552     case " $ac_configure_args " in
1553       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1554       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1555     esac
1556   fi
1557 done
1558 if $ac_cache_corrupted; then
1559   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1561   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1562 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1563   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1564 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1565    { (exit 1); exit 1; }; }
1566 fi
1567
1568 ac_ext=c
1569 ac_cpp='$CPP $CPPFLAGS'
1570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1597
1598
1599 gcc_version=`cat $srcdir/BASE-VER`
1600
1601 # Determine the host, build, and target systems
1602 ac_aux_dir=
1603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1604   if test -f $ac_dir/install-sh; then
1605     ac_aux_dir=$ac_dir
1606     ac_install_sh="$ac_aux_dir/install-sh -c"
1607     break
1608   elif test -f $ac_dir/install.sh; then
1609     ac_aux_dir=$ac_dir
1610     ac_install_sh="$ac_aux_dir/install.sh -c"
1611     break
1612   elif test -f $ac_dir/shtool; then
1613     ac_aux_dir=$ac_dir
1614     ac_install_sh="$ac_aux_dir/shtool install -c"
1615     break
1616   fi
1617 done
1618 if test -z "$ac_aux_dir"; then
1619   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1620 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1621    { (exit 1); exit 1; }; }
1622 fi
1623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1625 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1626
1627 # Make sure we can run config.sub.
1628 $ac_config_sub sun4 >/dev/null 2>&1 ||
1629   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1630 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1631    { (exit 1); exit 1; }; }
1632
1633 echo "$as_me:$LINENO: checking build system type" >&5
1634 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1635 if test "${ac_cv_build+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   ac_cv_build_alias=$build_alias
1639 test -z "$ac_cv_build_alias" &&
1640   ac_cv_build_alias=`$ac_config_guess`
1641 test -z "$ac_cv_build_alias" &&
1642   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1643 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1644    { (exit 1); exit 1; }; }
1645 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1646   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1648    { (exit 1); exit 1; }; }
1649
1650 fi
1651 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1652 echo "${ECHO_T}$ac_cv_build" >&6
1653 build=$ac_cv_build
1654 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659 echo "$as_me:$LINENO: checking host system type" >&5
1660 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1661 if test "${ac_cv_host+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   ac_cv_host_alias=$host_alias
1665 test -z "$ac_cv_host_alias" &&
1666   ac_cv_host_alias=$ac_cv_build_alias
1667 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1668   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1670    { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1674 echo "${ECHO_T}$ac_cv_host" >&6
1675 host=$ac_cv_host
1676 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681 echo "$as_me:$LINENO: checking target system type" >&5
1682 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1683 if test "${ac_cv_target+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   ac_cv_target_alias=$target_alias
1687 test "x$ac_cv_target_alias" = "x" &&
1688   ac_cv_target_alias=$ac_cv_host_alias
1689 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1690   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1692    { (exit 1); exit 1; }; }
1693
1694 fi
1695 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1696 echo "${ECHO_T}$ac_cv_target" >&6
1697 target=$ac_cv_target
1698 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701
1702
1703 # The aliases save the names the user supplied, while $host etc.
1704 # will get canonicalized.
1705 test -n "$target_alias" &&
1706   test "$program_prefix$program_suffix$program_transform_name" = \
1707     NONENONEs,x,x, &&
1708   program_prefix=${target_alias}-
1709
1710 # Determine the noncanonical target name, for directory use.
1711  case ${build_alias} in
1712   "") build_noncanonical=${build} ;;
1713   *) build_noncanonical=${build_alias} ;;
1714 esac
1715
1716  case ${host_alias} in
1717   "") host_noncanonical=${build_noncanonical} ;;
1718   *) host_noncanonical=${host_alias} ;;
1719 esac
1720
1721  case ${target_alias} in
1722   "") target_noncanonical=${host_noncanonical} ;;
1723   *) target_noncanonical=${target_alias} ;;
1724 esac
1725
1726
1727
1728
1729 # Determine the target- and build-specific subdirectories
1730
1731 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1732 # have matching libraries, they should use host libraries: Makefile.tpl
1733 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1734 # However, they still use the build modules, because the corresponding
1735 # host modules (e.g. bison) are only built for the host when bootstrap
1736 # finishes. So:
1737 # - build_subdir is where we find build modules, and never changes.
1738 # - build_libsubdir is where we find build libraries, and can be overridden.
1739
1740 # Prefix 'build-' so this never conflicts with target_subdir.
1741 build_subdir="build-${build_noncanonical}"
1742
1743 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1744 if test "${with_build_libsubdir+set}" = set; then
1745   withval="$with_build_libsubdir"
1746   build_libsubdir="$withval"
1747 else
1748   build_libsubdir="$build_subdir"
1749 fi;
1750 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1751 if ( test $srcdir = . && test -d gcc ) \
1752    || test -d $srcdir/../host-${host_noncanonical}; then
1753   host_subdir="host-${host_noncanonical}"
1754 else
1755   host_subdir=.
1756 fi
1757 # No prefix.
1758 target_subdir=${target_noncanonical}
1759
1760
1761 # Set program_transform_name
1762 test "$program_prefix" != NONE &&
1763   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1764 # Use a double $ so make ignores it.
1765 test "$program_suffix" != NONE &&
1766   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1767 # Double any \ or $.  echo might interpret backslashes.
1768 # By default was `s,x,x', remove it if useless.
1769 cat <<\_ACEOF >conftest.sed
1770 s/[\\$]/&&/g;s/;s,x,x,$//
1771 _ACEOF
1772 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1773 rm conftest.sed
1774
1775
1776 # Check for bogus environment variables.
1777 # Test if LIBRARY_PATH contains the notation for the current directory
1778 # since this would lead to problems installing/building glibc.
1779 # LIBRARY_PATH contains the current directory if one of the following
1780 # is true:
1781 # - one of the terminals (":" and ";") is the first or last sign
1782 # - two terminals occur directly after each other
1783 # - the path contains an element with a dot in it
1784 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1785 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1786 case ${LIBRARY_PATH} in
1787   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1788     library_path_setting="contains current directory"
1789     ;;
1790   *)
1791     library_path_setting="ok"
1792     ;;
1793 esac
1794 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1795 echo "${ECHO_T}$library_path_setting" >&6
1796 if test "$library_path_setting" != "ok"; then
1797 { { echo "$as_me:$LINENO: error:
1798 *** LIBRARY_PATH shouldn't contain the current directory when
1799 *** building gcc. Please change the environment variable
1800 *** and run configure again." >&5
1801 echo "$as_me: error:
1802 *** LIBRARY_PATH shouldn't contain the current directory when
1803 *** building gcc. Please change the environment variable
1804 *** and run configure again." >&2;}
1805    { (exit 1); exit 1; }; }
1806 fi
1807
1808 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1809 # since this would lead to problems installing/building glibc.
1810 # GCC_EXEC_PREFIX contains the current directory if one of the following
1811 # is true:
1812 # - one of the terminals (":" and ";") is the first or last sign
1813 # - two terminals occur directly after each other
1814 # - the path contains an element with a dot in it
1815 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1816 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1817 case ${GCC_EXEC_PREFIX} in
1818   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1819     gcc_exec_prefix_setting="contains current directory"
1820     ;;
1821   *)
1822     gcc_exec_prefix_setting="ok"
1823     ;;
1824 esac
1825 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1826 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1827 if test "$gcc_exec_prefix_setting" != "ok"; then
1828 { { echo "$as_me:$LINENO: error:
1829 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1830 *** building gcc. Please change the environment variable
1831 *** and run configure again." >&5
1832 echo "$as_me: error:
1833 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1834 *** building gcc. Please change the environment variable
1835 *** and run configure again." >&2;}
1836    { (exit 1); exit 1; }; }
1837 fi
1838
1839 # -----------
1840 # Directories
1841 # -----------
1842
1843 # Specify the local prefix
1844 local_prefix=
1845
1846 # Check whether --with-local-prefix or --without-local-prefix was given.
1847 if test "${with_local_prefix+set}" = set; then
1848   withval="$with_local_prefix"
1849   case "${withval}" in
1850 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1851 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1852    { (exit 1); exit 1; }; } ;;
1853 no)     ;;
1854 *)      local_prefix=$with_local_prefix ;;
1855 esac
1856 fi;
1857
1858 # Default local prefix if it is empty
1859 if test x$local_prefix = x; then
1860         local_prefix=/usr/local
1861 fi
1862
1863 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1864 # passed in by the toplevel make and thus we'd get different behavior
1865 # depending on where we built the sources.
1866 gcc_gxx_include_dir=
1867 # Specify the g++ header file directory
1868
1869 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1870 if test "${with_gxx_include_dir+set}" = set; then
1871   withval="$with_gxx_include_dir"
1872   case "${withval}" in
1873 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1874 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1875    { (exit 1); exit 1; }; } ;;
1876 no)     ;;
1877 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1878 esac
1879 fi;
1880
1881 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1882 if test x${gcc_gxx_include_dir} = x; then
1883   if test x${enable_version_specific_runtime_libs} = xyes; then
1884     gcc_gxx_include_dir='${libsubdir}/include/c++'
1885   else
1886     libstdcxx_incdir='include/c++/$(version)'
1887     if test x$host != x$target; then
1888        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1889     fi
1890     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1891   fi
1892 fi
1893
1894
1895 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1896 if test "${with_cpp_install_dir+set}" = set; then
1897   withval="$with_cpp_install_dir"
1898   if test x$withval = xyes; then
1899   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1900 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1901    { (exit 1); exit 1; }; }
1902 elif test x$withval != xno; then
1903   cpp_install_dir=$withval
1904 fi
1905 fi;
1906
1907 # We would like to our source tree to be readonly.  However when releases or
1908 # pre-releases are generated, the flex/bison generated files as well as the
1909 # various formats of manuals need to be included along with the rest of the
1910 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1911 # just that.
1912
1913 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1914 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1915     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1916 if test "${enable_generated_files_in_srcdir+set}" = set; then
1917   enableval="$enable_generated_files_in_srcdir"
1918   generated_files_in_srcdir=$enableval
1919 else
1920   generated_files_in_srcdir=no
1921 fi;
1922
1923 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1924 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1925
1926 if test "$generated_files_in_srcdir" = "yes"; then
1927   GENINSRC=''
1928 else
1929   GENINSRC='#'
1930 fi
1931
1932
1933 # -------------------
1934 # Find default linker
1935 # -------------------
1936
1937 # With GNU ld
1938
1939 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1940 if test "${with_gnu_ld+set}" = set; then
1941   withval="$with_gnu_ld"
1942   gnu_ld_flag="$with_gnu_ld"
1943 else
1944   gnu_ld_flag=no
1945 fi;
1946
1947 # With pre-defined ld
1948
1949 # Check whether --with-ld or --without-ld was given.
1950 if test "${with_ld+set}" = set; then
1951   withval="$with_ld"
1952   DEFAULT_LINKER="$with_ld"
1953 fi;
1954 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1955   if test ! -x "$DEFAULT_LINKER"; then
1956     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1957 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1958    { (exit 1); exit 1; }; }
1959   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1960     gnu_ld_flag=yes
1961   fi
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1965 _ACEOF
1966
1967 fi
1968
1969 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define HAVE_GNU_LD $gnu_ld
1973 _ACEOF
1974
1975
1976 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1977 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1978 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1979   if test x"$gnu_ld_flag" = x"no"; then
1980     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1981 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1982   else
1983     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1984 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1985   fi
1986 else
1987   echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991 # With demangler in GNU ld
1992
1993 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1994 if test "${with_demangler_in_ld+set}" = set; then
1995   withval="$with_demangler_in_ld"
1996   demangler_in_ld="$with_demangler_in_ld"
1997 else
1998   demangler_in_ld=no
1999 fi;
2000
2001 # ----------------------
2002 # Find default assembler
2003 # ----------------------
2004
2005 # With GNU as
2006
2007 # Check whether --with-gnu-as or --without-gnu-as was given.
2008 if test "${with_gnu_as+set}" = set; then
2009   withval="$with_gnu_as"
2010   gas_flag="$with_gnu_as"
2011 else
2012   gas_flag=no
2013 fi;
2014
2015
2016 # Check whether --with-as or --without-as was given.
2017 if test "${with_as+set}" = set; then
2018   withval="$with_as"
2019   DEFAULT_ASSEMBLER="$with_as"
2020 fi;
2021 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2022   if test ! -x "$DEFAULT_ASSEMBLER"; then
2023     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2024 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2025    { (exit 1); exit 1; }; }
2026   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2027     gas_flag=yes
2028   fi
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2032 _ACEOF
2033
2034 fi
2035
2036 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define HAVE_GNU_AS $gnu_as
2040 _ACEOF
2041
2042
2043 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2044 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2045 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2046   if test x"$gas_flag" = x"no"; then
2047     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2048 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2049   else
2050     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2051 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2052   fi
2053 else
2054   echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058 # ---------------
2059 # Find C compiler
2060 # ---------------
2061
2062 # If a non-executable a.out is present (e.g. created by GNU as above even if
2063 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2064 # file, even when creating an executable, so an execution test fails.
2065 # Remove possible default executable files to avoid this.
2066 #
2067 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2068 # Autoconf includes it.
2069 rm -f a.out a.exe b.out
2070
2071 # Find the native compiler
2072 ac_ext=c
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077 if test -n "$ac_tool_prefix"; then
2078   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$CC"; then
2086   ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106   echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2108 else
2109   echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113 fi
2114 if test -z "$ac_cv_prog_CC"; then
2115   ac_ct_CC=$CC
2116   # Extract the first word of "gcc", so it can be a program name with args.
2117 set dummy gcc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$ac_ct_CC"; then
2124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_ac_ct_CC="gcc"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151   CC=$ac_ct_CC
2152 else
2153   CC="$ac_cv_prog_CC"
2154 fi
2155
2156 if test -z "$CC"; then
2157   if test -n "$ac_tool_prefix"; then
2158   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   if test -n "$CC"; then
2166   ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173   for ac_exec_ext in '' $ac_executable_extensions; do
2174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175     ac_cv_prog_CC="${ac_tool_prefix}cc"
2176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177     break 2
2178   fi
2179 done
2180 done
2181
2182 fi
2183 fi
2184 CC=$ac_cv_prog_CC
2185 if test -n "$CC"; then
2186   echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6
2188 else
2189   echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193 fi
2194 if test -z "$ac_cv_prog_CC"; then
2195   ac_ct_CC=$CC
2196   # Extract the first word of "cc", so it can be a program name with args.
2197 set dummy cc; ac_word=$2
2198 echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   if test -n "$ac_ct_CC"; then
2204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211   for ac_exec_ext in '' $ac_executable_extensions; do
2212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213     ac_cv_prog_ac_ct_CC="cc"
2214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215     break 2
2216   fi
2217 done
2218 done
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6
2226 else
2227   echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2229 fi
2230
2231   CC=$ac_ct_CC
2232 else
2233   CC="$ac_cv_prog_CC"
2234 fi
2235
2236 fi
2237 if test -z "$CC"; then
2238   # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   if test -n "$CC"; then
2246   ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248   ac_prog_rejected=no
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254   for ac_exec_ext in '' $ac_executable_extensions; do
2255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257        ac_prog_rejected=yes
2258        continue
2259      fi
2260     ac_cv_prog_CC="cc"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266
2267 if test $ac_prog_rejected = yes; then
2268   # We found a bogon in the path, so make sure we never use it.
2269   set dummy $ac_cv_prog_CC
2270   shift
2271   if test $# != 0; then
2272     # We chose a different compiler from the bogus one.
2273     # However, it has the same basename, so the bogon will be chosen
2274     # first if we set CC to just the basename; use the full file name.
2275     shift
2276     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2277   fi
2278 fi
2279 fi
2280 fi
2281 CC=$ac_cv_prog_CC
2282 if test -n "$CC"; then
2283   echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6
2285 else
2286   echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2288 fi
2289
2290 fi
2291 if test -z "$CC"; then
2292   if test -n "$ac_tool_prefix"; then
2293   for ac_prog in cl
2294   do
2295     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   if test -n "$CC"; then
2303   ac_cv_prog_CC="$CC" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318
2319 fi
2320 fi
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323   echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2325 else
2326   echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2328 fi
2329
2330     test -n "$CC" && break
2331   done
2332 fi
2333 if test -z "$CC"; then
2334   ac_ct_CC=$CC
2335   for ac_prog in cl
2336 do
2337   # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$ac_ct_CC"; then
2345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354     ac_cv_prog_ac_ct_CC="$ac_prog"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360
2361 fi
2362 fi
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2367 else
2368   echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372   test -n "$ac_ct_CC" && break
2373 done
2374
2375   CC=$ac_ct_CC
2376 fi
2377
2378 fi
2379
2380
2381 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2382 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&2;}
2387    { (exit 1); exit 1; }; }; }
2388
2389 # Provide some information about the compiler.
2390 echo "$as_me:$LINENO:" \
2391      "checking for C compiler version" >&5
2392 ac_compiler=`set X $ac_compile; echo $2`
2393 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2394   (eval $ac_compiler --version </dev/null >&5) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }
2398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2399   (eval $ac_compiler -v </dev/null >&5) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }
2403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2404   (eval $ac_compiler -V </dev/null >&5) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }
2408
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415
2416 int
2417 main ()
2418 {
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 ac_clean_files_save=$ac_clean_files
2425 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2426 # Try to create an executable without -o first, disregard a.out.
2427 # It will help us diagnose broken compilers, and finding out an intuition
2428 # of exeext.
2429 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2430 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2431 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2433   (eval $ac_link_default) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; then
2437   # Find the output, starting from the most likely.  This scheme is
2438 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2439 # resort.
2440
2441 # Be careful to initialize this variable, since it used to be cached.
2442 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2443 ac_cv_exeext=
2444 # b.out is created by i960 compilers.
2445 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2446 do
2447   test -f "$ac_file" || continue
2448   case $ac_file in
2449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2450         ;;
2451     conftest.$ac_ext )
2452         # This is the source file.
2453         ;;
2454     [ab].out )
2455         # We found the default executable, but exeext='' is most
2456         # certainly right.
2457         break;;
2458     *.* )
2459         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460         # FIXME: I believe we export ac_cv_exeext for Libtool,
2461         # but it would be cool to find out if it's true.  Does anybody
2462         # maintain Libtool? --akim.
2463         export ac_cv_exeext
2464         break;;
2465     * )
2466         break;;
2467   esac
2468 done
2469 else
2470   echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2474 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&2;}
2479    { (exit 77); exit 77; }; }; }
2480 fi
2481
2482 ac_exeext=$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_file" >&5
2484 echo "${ECHO_T}$ac_file" >&6
2485
2486 # Check the compiler produces executables we can run.  If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2491 # If not cross compiling, check that we can run a simple program.
2492 if test "$cross_compiling" != yes; then
2493   if { ac_try='./$ac_file'
2494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495   (eval $ac_try) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; }; then
2499     cross_compiling=no
2500   else
2501     if test "$cross_compiling" = maybe; then
2502         cross_compiling=yes
2503     else
2504         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&2;}
2512    { (exit 1); exit 1; }; }; }
2513     fi
2514   fi
2515 fi
2516 echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6
2518
2519 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520 ac_clean_files=$ac_clean_files_save
2521 # Check the compiler produces executables we can run.  If not, either
2522 # the compiler is broken, or we cross compile.
2523 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2525 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6
2527
2528 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531   (eval $ac_link) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; then
2535   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2538 # `rm'.
2539 for ac_file in conftest.exe conftest conftest.*; do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2543     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544           export ac_cv_exeext
2545           break;;
2546     * ) break;;
2547   esac
2548 done
2549 else
2550   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&2;}
2556    { (exit 1); exit 1; }; }; }
2557 fi
2558
2559 rm -f conftest$ac_cv_exeext
2560 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561 echo "${ECHO_T}$ac_cv_exeext" >&6
2562
2563 rm -f conftest.$ac_ext
2564 EXEEXT=$ac_cv_exeext
2565 ac_exeext=$EXEEXT
2566 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2568 if test "${ac_cv_objext+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.o conftest.obj
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; then
2592   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2593   case $ac_file in
2594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2595     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596        break;;
2597   esac
2598 done
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2604 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609    { (exit 1); exit 1; }; }; }
2610 fi
2611
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 fi
2614 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6
2616 OBJEXT=$ac_cv_objext
2617 ac_objext=$OBJEXT
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633 #ifndef __GNUC__
2634        choke me
2635 #endif
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag"
2651                          || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_compiler_gnu=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_compiler_gnu=no
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2672
2673 fi
2674 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2676 GCC=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CFLAGS=${CFLAGS+set}
2678 ac_save_CFLAGS=$CFLAGS
2679 CFLAGS="-g"
2680 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag"
2710                          || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_g=yes
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_cv_prog_cc_g=no
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 fi
2731 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2733 if test "$ac_test_CFLAGS" = set; then
2734   CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736   if test "$GCC" = yes; then
2737     CFLAGS="-g -O2"
2738   else
2739     CFLAGS="-g"
2740   fi
2741 else
2742   if test "$GCC" = yes; then
2743     CFLAGS="-O2"
2744   else
2745     CFLAGS=
2746   fi
2747 fi
2748 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2749 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   ac_cv_prog_cc_stdc=no
2754 ac_save_CC=$CC
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 #include <stdarg.h>
2762 #include <stdio.h>
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2769      char **p;
2770      int i;
2771 {
2772   return p[i];
2773 }
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2775 {
2776   char *s;
2777   va_list v;
2778   va_start (v,p);
2779   s = g (p, va_arg (v,int));
2780   va_end (v);
2781   return s;
2782 }
2783
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2785    function prototypes and stuff, but not '\xHH' hex character constants.
2786    These don't provoke an error unfortunately, instead are silently treated
2787    as 'x'.  The following induces an error, until -std1 is added to get
2788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2789    array size at least.  It's necessary to write '\x00'==0 to get something
2790    that's true only with -std1.  */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797 int argc;
2798 char **argv;
2799 int
2800 main ()
2801 {
2802 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 # Don't try gcc -ansi; that turns off useful extensions and
2808 # breaks some systems' header files.
2809 # AIX                   -qlanglvl=ansi
2810 # Ultrix and OSF/1      -std1
2811 # HP-UX 10.20 and later -Ae
2812 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2813 # SVR4                  -Xc -D__EXTENSIONS__
2814 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 do
2816   CC="$ac_save_CC $ac_arg"
2817   rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819   (eval $ac_compile) 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } &&
2826          { ac_try='test -z "$ac_c_werror_flag"
2827                          || test ! -s conftest.err'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   ac_cv_prog_cc_stdc=$ac_arg
2840 break
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.err conftest.$ac_objext
2847 done
2848 rm -f conftest.$ac_ext conftest.$ac_objext
2849 CC=$ac_save_CC
2850
2851 fi
2852
2853 case "x$ac_cv_prog_cc_stdc" in
2854   x|xno)
2855     echo "$as_me:$LINENO: result: none needed" >&5
2856 echo "${ECHO_T}none needed" >&6 ;;
2857   *)
2858     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2860     CC="$CC $ac_cv_prog_cc_stdc" ;;
2861 esac
2862
2863 # Some people use a C++ compiler to compile C.  Since we use `exit',
2864 # in C++ we need to declare it.  In case someone uses the same compiler
2865 # for both compiling C and C++ we need to have the C++ compiler decide
2866 # the declaration of exit, since it's the most demanding environment.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #ifndef __cplusplus
2869   choke me
2870 #endif
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   for ac_declaration in \
2895    '' \
2896    'extern "C" void std::exit (int) throw (); using std::exit;' \
2897    'extern "C" void std::exit (int); using std::exit;' \
2898    'extern "C" void exit (int) throw ();' \
2899    'extern "C" void exit (int);' \
2900    'void exit (int);'
2901 do
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 $ac_declaration
2909 #include <stdlib.h>
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   :
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 continue
2946 fi
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954 $ac_declaration
2955 int
2956 main ()
2957 {
2958 exit (42);
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965   (eval $ac_compile) 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } &&
2972          { ac_try='test -z "$ac_c_werror_flag"
2973                          || test ! -s conftest.err'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; } &&
2979          { ac_try='test -s conftest.$ac_objext'
2980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981   (eval $ac_try) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; }; then
2985   break
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 fi
2991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2992 done
2993 rm -f conftest*
2994 if test -n "$ac_declaration"; then
2995   echo '#ifdef __cplusplus' >>confdefs.h
2996   echo $ac_declaration      >>confdefs.h
2997   echo '#endif'             >>confdefs.h
2998 fi
2999
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 fi
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011
3012 if test "x$CC" != xcc; then
3013   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3014 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3015 else
3016   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3017 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3018 fi
3019 set dummy $CC; ac_cc=`echo $2 |
3020                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3021 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 # Make sure it works both with $CC and with simple cc.
3040 # We do the test twice because some compilers refuse to overwrite an
3041 # existing .o file with -o, though they will create one.
3042 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3043 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044   (eval $ac_try) 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); };
3053 then
3054   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3055   if test "x$CC" != xcc; then
3056     # Test first that cc exists at all.
3057     if { ac_try='cc -c conftest.$ac_ext >&5'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3064       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065   (eval $ac_try) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } &&
3069          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); };
3074       then
3075         # cc works too.
3076         :
3077       else
3078         # cc exists but doesn't like -o.
3079         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3080       fi
3081     fi
3082   fi
3083 else
3084   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3085 fi
3086 rm -f conftest*
3087
3088 fi
3089 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3090   echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3092 else
3093   echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095
3096 cat >>confdefs.h <<\_ACEOF
3097 #define NO_MINUS_C_MINUS_O 1
3098 _ACEOF
3099
3100 fi
3101
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir=`cd $ac_aux_dir && pwd`
3104
3105 # FIXME: we rely on the cache variable name because
3106 # there is no other way.
3107 set dummy $CC
3108 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3109 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3110    # Losing compiler, so override with the script.
3111    # FIXME: It is wrong to rewrite CC.
3112    # But if we don't then we get into trouble of one sort or another.
3113    # A longer-term fix would be to have automake use am__CC in this case,
3114    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3115    CC="$am_aux_dir/compile $CC"
3116 fi
3117
3118
3119
3120
3121 if test -n "$ac_tool_prefix"; then
3122   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   if test -n "$GNATBIND"; then
3130   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137   for ac_exec_ext in '' $ac_executable_extensions; do
3138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144 done
3145
3146 fi
3147 fi
3148 GNATBIND=$ac_cv_prog_GNATBIND
3149 if test -n "$GNATBIND"; then
3150   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3151 echo "${ECHO_T}$GNATBIND" >&6
3152 else
3153   echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3155 fi
3156
3157 fi
3158 if test -z "$ac_cv_prog_GNATBIND"; then
3159   ac_ct_GNATBIND=$GNATBIND
3160   # Extract the first word of "gnatbind", so it can be a program name with args.
3161 set dummy gnatbind; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   if test -n "$ac_ct_GNATBIND"; then
3168   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175   for ac_exec_ext in '' $ac_executable_extensions; do
3176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182 done
3183
3184   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3185 fi
3186 fi
3187 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3188 if test -n "$ac_ct_GNATBIND"; then
3189   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3190 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3191 else
3192   echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196   GNATBIND=$ac_ct_GNATBIND
3197 else
3198   GNATBIND="$ac_cv_prog_GNATBIND"
3199 fi
3200
3201 if test -n "$ac_tool_prefix"; then
3202   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   if test -n "$GNATMAKE"; then
3210   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224 done
3225
3226 fi
3227 fi
3228 GNATMAKE=$ac_cv_prog_GNATMAKE
3229 if test -n "$GNATMAKE"; then
3230   echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3231 echo "${ECHO_T}$GNATMAKE" >&6
3232 else
3233   echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi
3236
3237 fi
3238 if test -z "$ac_cv_prog_GNATMAKE"; then
3239   ac_ct_GNATMAKE=$GNATMAKE
3240   # Extract the first word of "gnatmake", so it can be a program name with args.
3241 set dummy gnatmake; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if test -n "$ac_ct_GNATMAKE"; then
3248   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255   for ac_exec_ext in '' $ac_executable_extensions; do
3256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262 done
3263
3264   test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3265 fi
3266 fi
3267 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3268 if test -n "$ac_ct_GNATMAKE"; then
3269   echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3270 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3271 else
3272   echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3274 fi
3275
3276   GNATMAKE=$ac_ct_GNATMAKE
3277 else
3278   GNATMAKE="$ac_cv_prog_GNATMAKE"
3279 fi
3280
3281 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3282 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3283 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   cat >conftest.adb <<EOF
3287 procedure conftest is begin null; end conftest;
3288 EOF
3289 acx_cv_cc_gcc_supports_ada=no
3290 # There is a bug in old released versions of GCC which causes the
3291 # driver to exit successfully when the appropriate language module
3292 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3293 # Therefore we must check for the error message as well as an
3294 # unsuccessful exit.
3295 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3296 # given a .adb file, but produce no object file.  So we must check
3297 # if an object file was really produced to guard against this.
3298 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3299 if test x"$errors" = x && test -f conftest.$ac_objext; then
3300   acx_cv_cc_gcc_supports_ada=yes
3301 fi
3302 rm -f conftest.*
3303 fi
3304 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3305 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3306
3307 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3308   have_gnat=yes
3309 else
3310   have_gnat=no
3311 fi
3312
3313
3314 # autoconf is lame and doesn't give us any substitution variable for this.
3315 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3316   NO_MINUS_C_MINUS_O=yes
3317 else
3318   OUTPUT_OPTION='-o $@'
3319 fi
3320
3321
3322
3323 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3324 # optimizations to be activated explicitly by the toplevel.
3325 case "$CC" in
3326   */prev-gcc/xgcc*) ;;
3327   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3328 esac
3329
3330
3331 # -------------------------
3332 # Check C compiler features
3333 # -------------------------
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3342 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3343 # On Suns, sometimes $CPP names a directory.
3344 if test -n "$CPP" && test -d "$CPP"; then
3345   CPP=
3346 fi
3347 if test -z "$CPP"; then
3348   if test "${ac_cv_prog_CPP+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351       # Double quotes because CPP needs to be expanded
3352     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353     do
3354       ac_preproc_ok=false
3355 for ac_c_preproc_warn_flag in '' yes
3356 do
3357   # Use a header file that comes with gcc, so configuring glibc
3358   # with a fresh cross-compiler works.
3359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360   # <limits.h> exists even on freestanding compilers.
3361   # On the NeXT, cc -E runs the code through the compiler's parser,
3362   # not just through cpp. "Syntax error" is here to catch this case.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #ifdef __STDC__
3370 # include <limits.h>
3371 #else
3372 # include <assert.h>
3373 #endif
3374                      Syntax error
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402 rm -f conftest.err conftest.$ac_ext
3403
3404   # OK, works on sane cases.  Now check whether non-existent headers
3405   # can be detected and how.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   break
3449 fi
3450
3451     done
3452     ac_cv_prog_CPP=$CPP
3453
3454 fi
3455   CPP=$ac_cv_prog_CPP
3456 else
3457   ac_cv_prog_CPP=$CPP
3458 fi
3459 echo "$as_me:$LINENO: result: $CPP" >&5
3460 echo "${ECHO_T}$CPP" >&6
3461 ac_preproc_ok=false
3462 for ac_c_preproc_warn_flag in '' yes
3463 do
3464   # Use a header file that comes with gcc, so configuring glibc
3465   # with a fresh cross-compiler works.
3466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467   # <limits.h> exists even on freestanding compilers.
3468   # On the NeXT, cc -E runs the code through the compiler's parser,
3469   # not just through cpp. "Syntax error" is here to catch this case.
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481                      Syntax error
3482 _ACEOF
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } >/dev/null; then
3491   if test -s conftest.err; then
3492     ac_cpp_err=$ac_c_preproc_warn_flag
3493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494   else
3495     ac_cpp_err=
3496   fi
3497 else
3498   ac_cpp_err=yes
3499 fi
3500 if test -z "$ac_cpp_err"; then
3501   :
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506   # Broken: fails on valid input.
3507 continue
3508 fi
3509 rm -f conftest.err conftest.$ac_ext
3510
3511   # OK, works on sane cases.  Now check whether non-existent headers
3512   # can be detected and how.
3513   cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } >/dev/null; then
3529   if test -s conftest.err; then
3530     ac_cpp_err=$ac_c_preproc_warn_flag
3531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532   else
3533     ac_cpp_err=
3534   fi
3535 else
3536   ac_cpp_err=yes
3537 fi
3538 if test -z "$ac_cpp_err"; then
3539   # Broken: success on invalid input.
3540 continue
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545   # Passes both tests.
3546 ac_preproc_ok=:
3547 break
3548 fi
3549 rm -f conftest.err conftest.$ac_ext
3550
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555   :
3556 else
3557   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&5
3561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&2;}
3563    { (exit 1); exit 1; }; }; }
3564 fi
3565
3566 ac_ext=c
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572
3573 echo "$as_me:$LINENO: checking for egrep" >&5
3574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3575 if test "${ac_cv_prog_egrep+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3579     then ac_cv_prog_egrep='grep -E'
3580     else ac_cv_prog_egrep='egrep'
3581     fi
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3585  EGREP=$ac_cv_prog_egrep
3586
3587
3588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3590 if test "${ac_cv_header_stdc+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <stdlib.h>
3600 #include <stdarg.h>
3601 #include <string.h>
3602 #include <float.h>
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614   (eval $ac_compile) 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -z "$ac_c_werror_flag"
3622                          || test ! -s conftest.err'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; } &&
3628          { ac_try='test -s conftest.$ac_objext'
3629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630   (eval $ac_try) 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   ac_cv_header_stdc=yes
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 ac_cv_header_stdc=no
3640 fi
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642
3643 if test $ac_cv_header_stdc = yes; then
3644   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 #include <string.h>
3652
3653 _ACEOF
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655   $EGREP "memchr" >/dev/null 2>&1; then
3656   :
3657 else
3658   ac_cv_header_stdc=no
3659 fi
3660 rm -f conftest*
3661
3662 fi
3663
3664 if test $ac_cv_header_stdc = yes; then
3665   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3666   cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672 #include <stdlib.h>
3673
3674 _ACEOF
3675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3676   $EGREP "free" >/dev/null 2>&1; then
3677   :
3678 else
3679   ac_cv_header_stdc=no
3680 fi
3681 rm -f conftest*
3682
3683 fi
3684
3685 if test $ac_cv_header_stdc = yes; then
3686   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3687   if test "$cross_compiling" = yes; then
3688   :
3689 else
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #include <ctype.h>
3697 #if ((' ' & 0x0FF) == 0x020)
3698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3700 #else
3701 # define ISLOWER(c) \
3702                    (('a' <= (c) && (c) <= 'i') \
3703                      || ('j' <= (c) && (c) <= 'r') \
3704                      || ('s' <= (c) && (c) <= 'z'))
3705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3706 #endif
3707
3708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3709 int
3710 main ()
3711 {
3712   int i;
3713   for (i = 0; i < 256; i++)
3714     if (XOR (islower (i), ISLOWER (i))
3715         || toupper (i) != TOUPPER (i))
3716       exit(2);
3717   exit (0);
3718 }
3719 _ACEOF
3720 rm -f conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722   (eval $ac_link) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   :
3732 else
3733   echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ( exit $ac_status )
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 fi
3743 fi
3744 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3745 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3746 if test $ac_cv_header_stdc = yes; then
3747
3748 cat >>confdefs.h <<\_ACEOF
3749 #define STDC_HEADERS 1
3750 _ACEOF
3751
3752 fi
3753
3754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3765                   inttypes.h stdint.h unistd.h
3766 do
3767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 echo "$as_me:$LINENO: checking for $ac_header" >&5
3769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 $ac_includes_default
3780
3781 #include <$ac_header>
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785   (eval $ac_compile) 2>conftest.er1
3786   ac_status=$?
3787   grep -v '^ *+' conftest.er1 >conftest.err
3788   rm -f conftest.er1
3789   cat conftest.err >&5
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); } &&
3792          { ac_try='test -z "$ac_c_werror_flag"
3793                          || test ! -s conftest.err'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; } &&
3799          { ac_try='test -s conftest.$ac_objext'
3800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801   (eval $ac_try) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; }; then
3805   eval "$as_ac_Header=yes"
3806 else
3807   echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 eval "$as_ac_Header=no"
3811 fi
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817   cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819 _ACEOF
3820
3821 fi
3822
3823 done
3824
3825
3826
3827   if test "${ac_cv_header_minix_config_h+set}" = set; then
3828   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3829 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3830 if test "${ac_cv_header_minix_config_h+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3834 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3835 else
3836   # Is the header compilable?
3837 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3838 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 $ac_includes_default
3846 #include <minix/config.h>
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850   (eval $ac_compile) 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } &&
3857          { ac_try='test -z "$ac_c_werror_flag"
3858                          || test ! -s conftest.err'
3859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860   (eval $ac_try) 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); }; } &&
3864          { ac_try='test -s conftest.$ac_objext'
3865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866   (eval $ac_try) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   ac_header_compiler=yes
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 ac_header_compiler=no
3876 fi
3877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3879 echo "${ECHO_T}$ac_header_compiler" >&6
3880
3881 # Is the header present?
3882 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3883 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <minix/config.h>
3891 _ACEOF
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } >/dev/null; then
3900   if test -s conftest.err; then
3901     ac_cpp_err=$ac_c_preproc_warn_flag
3902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3903   else
3904     ac_cpp_err=
3905   fi
3906 else
3907   ac_cpp_err=yes
3908 fi
3909 if test -z "$ac_cpp_err"; then
3910   ac_header_preproc=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915   ac_header_preproc=no
3916 fi
3917 rm -f conftest.err conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3919 echo "${ECHO_T}$ac_header_preproc" >&6
3920
3921 # So?  What about this header?
3922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3923   yes:no: )
3924     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3925 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3926     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3927 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3928     ac_header_preproc=yes
3929     ;;
3930   no:yes:* )
3931     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3932 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3933     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3934 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3935     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3936 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3937     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3938 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3939     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3940 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3941     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3942 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3943     (
3944       cat <<\_ASBOX
3945 ## ------------------------------------------ ##
3946 ## Report this to the AC_PACKAGE_NAME lists.  ##
3947 ## ------------------------------------------ ##
3948 _ASBOX
3949     ) |
3950       sed "s/^/$as_me: WARNING:     /" >&2
3951     ;;
3952 esac
3953 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3954 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3955 if test "${ac_cv_header_minix_config_h+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   ac_cv_header_minix_config_h=$ac_header_preproc
3959 fi
3960 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3961 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3962
3963 fi
3964 if test $ac_cv_header_minix_config_h = yes; then
3965   MINIX=yes
3966 else
3967   MINIX=
3968 fi
3969
3970
3971   if test "$MINIX" = yes; then
3972
3973 cat >>confdefs.h <<\_ACEOF
3974 #define _POSIX_SOURCE 1
3975 _ACEOF
3976
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define _POSIX_1_SOURCE 2
3980 _ACEOF
3981
3982
3983 cat >>confdefs.h <<\_ACEOF
3984 #define _MINIX 1
3985 _ACEOF
3986
3987   fi
3988
3989
3990
3991   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3992 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3993 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002
4003 #         define __EXTENSIONS__ 1
4004           $ac_includes_default
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015   (eval $ac_compile) 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } &&
4022          { ac_try='test -z "$ac_c_werror_flag"
4023                          || test ! -s conftest.err'
4024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025   (eval $ac_try) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); }; } &&
4029          { ac_try='test -s conftest.$ac_objext'
4030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031   (eval $ac_try) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; }; then
4035   ac_cv_safe_to_define___extensions__=yes
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 ac_cv_safe_to_define___extensions__=no
4041 fi
4042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4045 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4046   test $ac_cv_safe_to_define___extensions__ = yes &&
4047     cat >>confdefs.h <<\_ACEOF
4048 #define __EXTENSIONS__ 1
4049 _ACEOF
4050
4051   cat >>confdefs.h <<\_ACEOF
4052 #define _ALL_SOURCE 1
4053 _ACEOF
4054
4055   cat >>confdefs.h <<\_ACEOF
4056 #define _GNU_SOURCE 1
4057 _ACEOF
4058
4059   cat >>confdefs.h <<\_ACEOF
4060 #define _POSIX_PTHREAD_SEMANTICS 1
4061 _ACEOF
4062
4063   cat >>confdefs.h <<\_ACEOF
4064 #define _TANDEM_SOURCE 1
4065 _ACEOF
4066
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4077   CPP=
4078 fi
4079 if test -z "$CPP"; then
4080   if test "${ac_cv_prog_CPP+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083       # Double quotes because CPP needs to be expanded
4084     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085     do
4086       ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4088 do
4089   # Use a header file that comes with gcc, so configuring glibc
4090   # with a fresh cross-compiler works.
4091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092   # <limits.h> exists even on freestanding compilers.
4093   # On the NeXT, cc -E runs the code through the compiler's parser,
4094   # not just through cpp. "Syntax error" is here to catch this case.
4095   cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106                      Syntax error
4107 _ACEOF
4108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } >/dev/null; then
4116   if test -s conftest.err; then
4117     ac_cpp_err=$ac_c_preproc_warn_flag
4118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4119   else
4120     ac_cpp_err=
4121   fi
4122 else
4123   ac_cpp_err=yes
4124 fi
4125 if test -z "$ac_cpp_err"; then
4126   :
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131   # Broken: fails on valid input.
4132 continue
4133 fi
4134 rm -f conftest.err conftest.$ac_ext
4135
4136   # OK, works on sane cases.  Now check whether non-existent headers
4137   # can be detected and how.
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } >/dev/null; then
4154   if test -s conftest.err; then
4155     ac_cpp_err=$ac_c_preproc_warn_flag
4156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4157   else
4158     ac_cpp_err=
4159   fi
4160 else
4161   ac_cpp_err=yes
4162 fi
4163 if test -z "$ac_cpp_err"; then
4164   # Broken: success on invalid input.
4165 continue
4166 else
4167   echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170   # Passes both tests.
4171 ac_preproc_ok=:
4172 break
4173 fi
4174 rm -f conftest.err conftest.$ac_ext
4175
4176 done
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4180   break
4181 fi
4182
4183     done
4184     ac_cv_prog_CPP=$CPP
4185
4186 fi
4187   CPP=$ac_cv_prog_CPP
4188 else
4189   ac_cv_prog_CPP=$CPP
4190 fi
4191 echo "$as_me:$LINENO: result: $CPP" >&5
4192 echo "${ECHO_T}$CPP" >&6
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4195 do
4196   # Use a header file that comes with gcc, so configuring glibc
4197   # with a fresh cross-compiler works.
4198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199   # <limits.h> exists even on freestanding compilers.
4200   # On the NeXT, cc -E runs the code through the compiler's parser,
4201   # not just through cpp. "Syntax error" is here to catch this case.
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213                      Syntax error
4214 _ACEOF
4215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4217   ac_status=$?
4218   grep -v '^ *+' conftest.er1 >conftest.err
4219   rm -f conftest.er1
4220   cat conftest.err >&5
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } >/dev/null; then
4223   if test -s conftest.err; then
4224     ac_cpp_err=$ac_c_preproc_warn_flag
4225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4226   else
4227     ac_cpp_err=
4228   fi
4229 else
4230   ac_cpp_err=yes
4231 fi
4232 if test -z "$ac_cpp_err"; then
4233   :
4234 else
4235   echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238   # Broken: fails on valid input.
4239 continue
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243   # OK, works on sane cases.  Now check whether non-existent headers
4244   # can be detected and how.
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #include <ac_nonexistent.h>
4252 _ACEOF
4253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } >/dev/null; then
4261   if test -s conftest.err; then
4262     ac_cpp_err=$ac_c_preproc_warn_flag
4263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4264   else
4265     ac_cpp_err=
4266   fi
4267 else
4268   ac_cpp_err=yes
4269 fi
4270 if test -z "$ac_cpp_err"; then
4271   # Broken: success on invalid input.
4272 continue
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277   # Passes both tests.
4278 ac_preproc_ok=:
4279 break
4280 fi
4281 rm -f conftest.err conftest.$ac_ext
4282
4283 done
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4287   :
4288 else
4289   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4290 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&2;}
4295    { (exit 1); exit 1; }; }; }
4296 fi
4297
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304 echo "$as_me:$LINENO: checking for inline" >&5
4305 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4306 if test "${ac_cv_c_inline+set}" = set; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   ac_cv_c_inline=no
4310 for ac_kw in inline __inline__ __inline; do
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #ifndef __cplusplus
4318 typedef int foo_t;
4319 static $ac_kw foo_t static_foo () {return 0; }
4320 $ac_kw foo_t foo () {return 0; }
4321 #endif
4322
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326   (eval $ac_compile) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_c_inline=$ac_kw; break
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 fi
4352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353 done
4354
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4357 echo "${ECHO_T}$ac_cv_c_inline" >&6
4358
4359
4360 case $ac_cv_c_inline in
4361   inline | yes) ;;
4362   *)
4363     case $ac_cv_c_inline in
4364       no) ac_val=;;
4365       *) ac_val=$ac_cv_c_inline;;
4366     esac
4367     cat >>confdefs.h <<_ACEOF
4368 #ifndef __cplusplus
4369 #define inline $ac_val
4370 #endif
4371 _ACEOF
4372     ;;
4373 esac
4374
4375
4376 # sizeof(char) is 1 by definition.
4377 echo "$as_me:$LINENO: checking for void *" >&5
4378 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4379 if test "${ac_cv_type_void_p+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 $ac_includes_default
4389 int
4390 main ()
4391 {
4392 if ((void * *) 0)
4393   return 0;
4394 if (sizeof (void *))
4395   return 0;
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402   (eval $ac_compile) 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -z "$ac_c_werror_flag"
4410                          || test ! -s conftest.err'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   ac_cv_type_void_p=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 ac_cv_type_void_p=no
4428 fi
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4432 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4433
4434 echo "$as_me:$LINENO: checking size of void *" >&5
4435 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4436 if test "${ac_cv_sizeof_void_p+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test "$ac_cv_type_void_p" = yes; then
4440   # The cast to unsigned long works around a bug in the HP C Compiler
4441   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4442   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4443   # This bug is HP SR number 8606223364.
4444   if test "$cross_compiling" = yes; then
4445   # Depending upon the size, compute the lo and hi bounds.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452 $ac_includes_default
4453 int
4454 main ()
4455 {
4456 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4457 test_array [0] = 0
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"
4473                          || test ! -s conftest.err'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   ac_lo=0 ac_mid=0
4486   while :; do
4487     cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494 int
4495 main ()
4496 {
4497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4498 test_array [0] = 0
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag"
4514                          || test ! -s conftest.err'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; } &&
4520          { ac_try='test -s conftest.$ac_objext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   ac_hi=$ac_mid; break
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_lo=`expr $ac_mid + 1`
4532                     if test $ac_lo -le $ac_mid; then
4533                       ac_lo= ac_hi=
4534                       break
4535                     fi
4536                     ac_mid=`expr 2 '*' $ac_mid + 1`
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539   done
4540 else
4541   echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_includes_default
4551 int
4552 main ()
4553 {
4554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4555 test_array [0] = 0
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563   (eval $ac_compile) 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag"
4571                          || test ! -s conftest.err'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   ac_hi=-1 ac_mid=-1
4584   while :; do
4585     cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 $ac_includes_default
4592 int
4593 main ()
4594 {
4595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4596 test_array [0] = 0
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_lo=$ac_mid; break
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_hi=`expr '(' $ac_mid ')' - 1`
4630                        if test $ac_mid -le $ac_hi; then
4631                          ac_lo= ac_hi=
4632                          break
4633                        fi
4634                        ac_mid=`expr 2 '*' $ac_mid`
4635 fi
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637   done
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_lo= ac_hi=
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 # Binary search between lo and hi bounds.
4648 while test "x$ac_lo" != "x$ac_hi"; do
4649   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 $ac_includes_default
4657 int
4658 main ()
4659 {
4660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4661 test_array [0] = 0
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669   (eval $ac_compile) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_c_werror_flag"
4677                          || test ! -s conftest.err'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; } &&
4683          { ac_try='test -s conftest.$ac_objext'
4684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685   (eval $ac_try) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); }; }; then
4689   ac_hi=$ac_mid
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4695 fi
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 done
4698 case $ac_lo in
4699 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4701 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4703 See \`config.log' for more details." >&5
4704 echo "$as_me: error: cannot compute sizeof (void *), 77
4705 See \`config.log' for more details." >&2;}
4706    { (exit 1); exit 1; }; }; } ;;
4707 esac
4708 else
4709   if test "$cross_compiling" = yes; then
4710   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4711 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4713 See \`config.log' for more details." >&5
4714 echo "$as_me: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&2;}
4716    { (exit 1); exit 1; }; }; }
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 $ac_includes_default
4725 long longval () { return (long) (sizeof (void *)); }
4726 unsigned long ulongval () { return (long) (sizeof (void *)); }
4727 #include <stdio.h>
4728 #include <stdlib.h>
4729 int
4730 main ()
4731 {
4732
4733   FILE *f = fopen ("conftest.val", "w");
4734   if (! f)
4735     exit (1);
4736   if (((long) (sizeof (void *))) < 0)
4737     {
4738       long i = longval ();
4739       if (i != ((long) (sizeof (void *))))
4740         exit (1);
4741       fprintf (f, "%ld\n", i);
4742     }
4743   else
4744     {
4745       unsigned long i = ulongval ();
4746       if (i != ((long) (sizeof (void *))))
4747         exit (1);
4748       fprintf (f, "%lu\n", i);
4749     }
4750   exit (ferror (f) || fclose (f) != 0);
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758   (eval $ac_link) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_cv_sizeof_void_p=`cat conftest.val`
4768 else
4769   echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ( exit $ac_status )
4774 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4775 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot compute sizeof (void *), 77
4779 See \`config.log' for more details." >&2;}
4780    { (exit 1); exit 1; }; }; }
4781 fi
4782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 fi
4785 rm -f conftest.val
4786 else
4787   ac_cv_sizeof_void_p=0
4788 fi
4789 fi
4790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4791 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4792 cat >>confdefs.h <<_ACEOF
4793 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4794 _ACEOF
4795
4796
4797 echo "$as_me:$LINENO: checking for short" >&5
4798 echo $ECHO_N "checking for short... $ECHO_C" >&6
4799 if test "${ac_cv_type_short+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 $ac_includes_default
4809 int
4810 main ()
4811 {
4812 if ((short *) 0)
4813   return 0;
4814 if (sizeof (short))
4815   return 0;
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -z "$ac_c_werror_flag"
4830                          || test ! -s conftest.err'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; } &&
4836          { ac_try='test -s conftest.$ac_objext'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; }; then
4842   ac_cv_type_short=yes
4843 else
4844   echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_cv_type_short=no
4848 fi
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4852 echo "${ECHO_T}$ac_cv_type_short" >&6
4853
4854 echo "$as_me:$LINENO: checking size of short" >&5
4855 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4856 if test "${ac_cv_sizeof_short+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test "$ac_cv_type_short" = yes; then
4860   # The cast to unsigned long works around a bug in the HP C Compiler
4861   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4862   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4863   # This bug is HP SR number 8606223364.
4864   if test "$cross_compiling" = yes; then
4865   # Depending upon the size, compute the lo and hi bounds.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 $ac_includes_default
4873 int
4874 main ()
4875 {
4876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4877 test_array [0] = 0
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885   (eval $ac_compile) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } &&
4892          { ac_try='test -z "$ac_c_werror_flag"
4893                          || test ! -s conftest.err'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; } &&
4899          { ac_try='test -s conftest.$ac_objext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905   ac_lo=0 ac_mid=0
4906   while :; do
4907     cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 $ac_includes_default
4914 int
4915 main ()
4916 {
4917 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4918 test_array [0] = 0
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926   (eval $ac_compile) 2>conftest.er1
4927   ac_status=$?
4928   grep -v '^ *+' conftest.er1 >conftest.err
4929   rm -f conftest.er1
4930   cat conftest.err >&5
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } &&
4933          { ac_try='test -z "$ac_c_werror_flag"
4934                          || test ! -s conftest.err'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   ac_hi=$ac_mid; break
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_lo=`expr $ac_mid + 1`
4952                     if test $ac_lo -le $ac_mid; then
4953                       ac_lo= ac_hi=
4954                       break
4955                     fi
4956                     ac_mid=`expr 2 '*' $ac_mid + 1`
4957 fi
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959   done
4960 else
4961   echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h.  */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h.  */
4970 $ac_includes_default
4971 int
4972 main ()
4973 {
4974 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4975 test_array [0] = 0
4976
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983   (eval $ac_compile) 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } &&
4990          { ac_try='test -z "$ac_c_werror_flag"
4991                          || test ! -s conftest.err'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; } &&
4997          { ac_try='test -s conftest.$ac_objext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_hi=-1 ac_mid=-1
5004   while :; do
5005     cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h.  */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h.  */
5011 $ac_includes_default
5012 int
5013 main ()
5014 {
5015 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5016 test_array [0] = 0
5017
5018   ;
5019   return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024   (eval $ac_compile) 2>conftest.er1
5025   ac_status=$?
5026   grep -v '^ *+' conftest.er1 >conftest.err
5027   rm -f conftest.er1
5028   cat conftest.err >&5
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); } &&
5031          { ac_try='test -z "$ac_c_werror_flag"
5032                          || test ! -s conftest.err'
5033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034   (eval $ac_try) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; } &&
5038          { ac_try='test -s conftest.$ac_objext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   ac_lo=$ac_mid; break
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_hi=`expr '(' $ac_mid ')' - 1`
5050                        if test $ac_mid -le $ac_hi; then
5051                          ac_lo= ac_hi=
5052                          break
5053                        fi
5054                        ac_mid=`expr 2 '*' $ac_mid`
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057   done
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 ac_lo= ac_hi=
5063 fi
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5065 fi
5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 # Binary search between lo and hi bounds.
5068 while test "x$ac_lo" != "x$ac_hi"; do
5069   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077 int
5078 main ()
5079 {
5080 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5081 test_array [0] = 0
5082
5083   ;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089   (eval $ac_compile) 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -z "$ac_c_werror_flag"
5097                          || test ! -s conftest.err'
5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099   (eval $ac_try) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }; } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_hi=$ac_mid
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_lo=`expr '(' $ac_mid ')' + 1`
5115 fi
5116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117 done
5118 case $ac_lo in
5119 ?*) ac_cv_sizeof_short=$ac_lo;;
5120 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5121 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: cannot compute sizeof (short), 77
5125 See \`config.log' for more details." >&2;}
5126    { (exit 1); exit 1; }; }; } ;;
5127 esac
5128 else
5129   if test "$cross_compiling" = yes; then
5130   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5131 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot run test program while cross compiling
5135 See \`config.log' for more details." >&2;}
5136    { (exit 1); exit 1; }; }; }
5137 else
5138   cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144 $ac_includes_default
5145 long longval () { return (long) (sizeof (short)); }
5146 unsigned long ulongval () { return (long) (sizeof (short)); }
5147 #include <stdio.h>
5148 #include <stdlib.h>
5149 int
5150 main ()
5151 {
5152
5153   FILE *f = fopen ("conftest.val", "w");
5154   if (! f)
5155     exit (1);
5156   if (((long) (sizeof (short))) < 0)
5157     {
5158       long i = longval ();
5159       if (i != ((long) (sizeof (short))))
5160         exit (1);
5161       fprintf (f, "%ld\n", i);
5162     }
5163   else
5164     {
5165       unsigned long i = ulongval ();
5166       if (i != ((long) (sizeof (short))))
5167         exit (1);
5168       fprintf (f, "%lu\n", i);
5169     }
5170   exit (ferror (f) || fclose (f) != 0);
5171
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178   (eval $ac_link) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183   (eval $ac_try) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; }; then
5187   ac_cv_sizeof_short=`cat conftest.val`
5188 else
5189   echo "$as_me: program exited with status $ac_status" >&5
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ( exit $ac_status )
5194 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: cannot compute sizeof (short), 77
5199 See \`config.log' for more details." >&2;}
5200    { (exit 1); exit 1; }; }; }
5201 fi
5202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 fi
5205 rm -f conftest.val
5206 else
5207   ac_cv_sizeof_short=0
5208 fi
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5211 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5212 cat >>confdefs.h <<_ACEOF
5213 #define SIZEOF_SHORT $ac_cv_sizeof_short
5214 _ACEOF
5215
5216
5217 echo "$as_me:$LINENO: checking for int" >&5
5218 echo $ECHO_N "checking for int... $ECHO_C" >&6
5219 if test "${ac_cv_type_int+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 $ac_includes_default
5229 int
5230 main ()
5231 {
5232 if ((int *) 0)
5233   return 0;
5234 if (sizeof (int))
5235   return 0;
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242   (eval $ac_compile) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -z "$ac_c_werror_flag"
5250                          || test ! -s conftest.err'
5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }; } &&
5256          { ac_try='test -s conftest.$ac_objext'
5257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258   (eval $ac_try) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_cv_type_int=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_cv_type_int=no
5268 fi
5269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5272 echo "${ECHO_T}$ac_cv_type_int" >&6
5273
5274 echo "$as_me:$LINENO: checking size of int" >&5
5275 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5276 if test "${ac_cv_sizeof_int+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   if test "$ac_cv_type_int" = yes; then
5280   # The cast to unsigned long works around a bug in the HP C Compiler
5281   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283   # This bug is HP SR number 8606223364.
5284   if test "$cross_compiling" = yes; then
5285   # Depending upon the size, compute the lo and hi bounds.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292 $ac_includes_default
5293 int
5294 main ()
5295 {
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5297 test_array [0] = 0
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305   (eval $ac_compile) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } &&
5312          { ac_try='test -z "$ac_c_werror_flag"
5313                          || test ! -s conftest.err'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; } &&
5319          { ac_try='test -s conftest.$ac_objext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_lo=0 ac_mid=0
5326   while :; do
5327     cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 $ac_includes_default
5334 int
5335 main ()
5336 {
5337 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5338 test_array [0] = 0
5339
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346   (eval $ac_compile) 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -z "$ac_c_werror_flag"
5354                          || test ! -s conftest.err'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; } &&
5360          { ac_try='test -s conftest.$ac_objext'
5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362   (eval $ac_try) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; }; then
5366   ac_hi=$ac_mid; break
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 ac_lo=`expr $ac_mid + 1`
5372                     if test $ac_lo -le $ac_mid; then
5373                       ac_lo= ac_hi=
5374                       break
5375                     fi
5376                     ac_mid=`expr 2 '*' $ac_mid + 1`
5377 fi
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379   done
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 $ac_includes_default
5391 int
5392 main ()
5393 {
5394 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5395 test_array [0] = 0
5396
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403   (eval $ac_compile) 2>conftest.er1
5404   ac_status=$?
5405   grep -v '^ *+' conftest.er1 >conftest.err
5406   rm -f conftest.er1
5407   cat conftest.err >&5
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } &&
5410          { ac_try='test -z "$ac_c_werror_flag"
5411                          || test ! -s conftest.err'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; } &&
5417          { ac_try='test -s conftest.$ac_objext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_hi=-1 ac_mid=-1
5424   while :; do
5425     cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 $ac_includes_default
5432 int
5433 main ()
5434 {
5435 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5436 test_array [0] = 0
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444   (eval $ac_compile) 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag"
5452                          || test ! -s conftest.err'
5453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454   (eval $ac_try) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; } &&
5458          { ac_try='test -s conftest.$ac_objext'
5459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460   (eval $ac_try) 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); }; }; then
5464   ac_lo=$ac_mid; break
5465 else
5466   echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_hi=`expr '(' $ac_mid ')' - 1`
5470                        if test $ac_mid -le $ac_hi; then
5471                          ac_lo= ac_hi=
5472                          break
5473                        fi
5474                        ac_mid=`expr 2 '*' $ac_mid`
5475 fi
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477   done
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ac_lo= ac_hi=
5483 fi
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 # Binary search between lo and hi bounds.
5488 while test "x$ac_lo" != "x$ac_hi"; do
5489   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5490   cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 $ac_includes_default
5497 int
5498 main ()
5499 {
5500 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5501 test_array [0] = 0
5502
5503   ;
5504   return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509   (eval $ac_compile) 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } &&
5516          { ac_try='test -z "$ac_c_werror_flag"
5517                          || test ! -s conftest.err'
5518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519   (eval $ac_try) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); }; } &&
5523          { ac_try='test -s conftest.$ac_objext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_hi=$ac_mid
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 ac_lo=`expr '(' $ac_mid ')' + 1`
5535 fi
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537 done
5538 case $ac_lo in
5539 ?*) ac_cv_sizeof_int=$ac_lo;;
5540 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5541 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot compute sizeof (int), 77
5545 See \`config.log' for more details." >&2;}
5546    { (exit 1); exit 1; }; }; } ;;
5547 esac
5548 else
5549   if test "$cross_compiling" = yes; then
5550   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot run test program while cross compiling
5555 See \`config.log' for more details." >&2;}
5556    { (exit 1); exit 1; }; }; }
5557 else
5558   cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564 $ac_includes_default
5565 long longval () { return (long) (sizeof (int)); }
5566 unsigned long ulongval () { return (long) (sizeof (int)); }
5567 #include <stdio.h>
5568 #include <stdlib.h>
5569 int
5570 main ()
5571 {
5572
5573   FILE *f = fopen ("conftest.val", "w");
5574   if (! f)
5575     exit (1);
5576   if (((long) (sizeof (int))) < 0)
5577     {
5578       long i = longval ();
5579       if (i != ((long) (sizeof (int))))
5580         exit (1);
5581       fprintf (f, "%ld\n", i);
5582     }
5583   else
5584     {
5585       unsigned long i = ulongval ();
5586       if (i != ((long) (sizeof (int))))
5587         exit (1);
5588       fprintf (f, "%lu\n", i);
5589     }
5590   exit (ferror (f) || fclose (f) != 0);
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   ac_cv_sizeof_int=`cat conftest.val`
5608 else
5609   echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ( exit $ac_status )
5614 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5615 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: cannot compute sizeof (int), 77
5619 See \`config.log' for more details." >&2;}
5620    { (exit 1); exit 1; }; }; }
5621 fi
5622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 fi
5625 rm -f conftest.val
5626 else
5627   ac_cv_sizeof_int=0
5628 fi
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5632 cat >>confdefs.h <<_ACEOF
5633 #define SIZEOF_INT $ac_cv_sizeof_int
5634 _ACEOF
5635
5636
5637 echo "$as_me:$LINENO: checking for long" >&5
5638 echo $ECHO_N "checking for long... $ECHO_C" >&6
5639 if test "${ac_cv_type_long+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((long *) 0)
5653   return 0;
5654 if (sizeof (long))
5655   return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"
5670                          || test ! -s conftest.err'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; } &&
5676          { ac_try='test -s conftest.$ac_objext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_type_long=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_type_long=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5692 echo "${ECHO_T}$ac_cv_type_long" >&6
5693
5694 echo "$as_me:$LINENO: checking size of long" >&5
5695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof_long+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test "$ac_cv_type_long" = yes; then
5700   # The cast to unsigned long works around a bug in the HP C Compiler
5701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703   # This bug is HP SR number 8606223364.
5704   if test "$cross_compiling" = yes; then
5705   # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 $ac_includes_default
5713 int
5714 main ()
5715 {
5716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5717 test_array [0] = 0
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -z "$ac_c_werror_flag"
5733                          || test ! -s conftest.err'
5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735   (eval $ac_try) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; } &&
5739          { ac_try='test -s conftest.$ac_objext'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; }; then
5745   ac_lo=0 ac_mid=0
5746   while :; do
5747     cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5758 test_array [0] = 0
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag"
5774                          || test ! -s conftest.err'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_hi=$ac_mid; break
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_lo=`expr $ac_mid + 1`
5792                     if test $ac_lo -le $ac_mid; then
5793                       ac_lo= ac_hi=
5794                       break
5795                     fi
5796                     ac_mid=`expr 2 '*' $ac_mid + 1`
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799   done
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 $ac_includes_default
5811 int
5812 main ()
5813 {
5814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5815 test_array [0] = 0
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823   (eval $ac_compile) 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -z "$ac_c_werror_flag"
5831                          || test ! -s conftest.err'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; }; then
5843   ac_hi=-1 ac_mid=-1
5844   while :; do
5845     cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5856 test_array [0] = 0
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -z "$ac_c_werror_flag"
5872                          || test ! -s conftest.err'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_lo=$ac_mid; break
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890                        if test $ac_mid -le $ac_hi; then
5891                          ac_lo= ac_hi=
5892                          break
5893                        fi
5894                        ac_mid=`expr 2 '*' $ac_mid`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897   done
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 ac_lo= ac_hi=
5903 fi
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5921 test_array [0] = 0
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929   (eval $ac_compile) 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -z "$ac_c_werror_flag"
5937                          || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_hi=$ac_mid
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 fi
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof_long=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (long), 77
5965 See \`config.log' for more details." >&2;}
5966    { (exit 1); exit 1; }; }; } ;;
5967 esac
5968 else
5969   if test "$cross_compiling" = yes; then
5970   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5971 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&2;}
5976    { (exit 1); exit 1; }; }; }
5977 else
5978   cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984 $ac_includes_default
5985 long longval () { return (long) (sizeof (long)); }
5986 unsigned long ulongval () { return (long) (sizeof (long)); }
5987 #include <stdio.h>
5988 #include <stdlib.h>
5989 int
5990 main ()
5991 {
5992
5993   FILE *f = fopen ("conftest.val", "w");
5994   if (! f)
5995     exit (1);
5996   if (((long) (sizeof (long))) < 0)
5997     {
5998       long i = longval ();
5999       if (i != ((long) (sizeof (long))))
6000         exit (1);
6001       fprintf (f, "%ld\n", i);
6002     }
6003   else
6004     {
6005       unsigned long i = ulongval ();
6006       if (i != ((long) (sizeof (long))))
6007         exit (1);
6008       fprintf (f, "%lu\n", i);
6009     }
6010   exit (ferror (f) || fclose (f) != 0);
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_sizeof_long=`cat conftest.val`
6028 else
6029   echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ( exit $ac_status )
6034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6037 See \`config.log' for more details." >&5
6038 echo "$as_me: error: cannot compute sizeof (long), 77
6039 See \`config.log' for more details." >&2;}
6040    { (exit 1); exit 1; }; }; }
6041 fi
6042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 fi
6045 rm -f conftest.val
6046 else
6047   ac_cv_sizeof_long=0
6048 fi
6049 fi
6050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6051 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6052 cat >>confdefs.h <<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6054 _ACEOF
6055
6056
6057 echo "$as_me:$LINENO: checking for long long" >&5
6058 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6059 if test "${ac_cv_type_long_long+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 $ac_includes_default
6069 int
6070 main ()
6071 {
6072 if ((long long *) 0)
6073   return 0;
6074 if (sizeof (long long))
6075   return 0;
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082   (eval $ac_compile) 2>conftest.er1
6083   ac_status=$?
6084   grep -v '^ *+' conftest.er1 >conftest.err
6085   rm -f conftest.er1
6086   cat conftest.err >&5
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -z "$ac_c_werror_flag"
6090                          || test ! -s conftest.err'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; } &&
6096          { ac_try='test -s conftest.$ac_objext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   ac_cv_type_long_long=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 ac_cv_type_long_long=no
6108 fi
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6112 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6113 if test $ac_cv_type_long_long = yes; then
6114
6115 cat >>confdefs.h <<_ACEOF
6116 #define HAVE_LONG_LONG 1
6117 _ACEOF
6118
6119 echo "$as_me:$LINENO: checking for long long" >&5
6120 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6121 if test "${ac_cv_type_long_long+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130 $ac_includes_default
6131 int
6132 main ()
6133 {
6134 if ((long long *) 0)
6135   return 0;
6136 if (sizeof (long long))
6137   return 0;
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -z "$ac_c_werror_flag"
6152                          || test ! -s conftest.err'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; } &&
6158          { ac_try='test -s conftest.$ac_objext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_type_long_long=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ac_cv_type_long_long=no
6170 fi
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6174 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6175
6176 echo "$as_me:$LINENO: checking size of long long" >&5
6177 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6178 if test "${ac_cv_sizeof_long_long+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test "$ac_cv_type_long_long" = yes; then
6182   # The cast to unsigned long works around a bug in the HP C Compiler
6183   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6184   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6185   # This bug is HP SR number 8606223364.
6186   if test "$cross_compiling" = yes; then
6187   # Depending upon the size, compute the lo and hi bounds.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 $ac_includes_default
6195 int
6196 main ()
6197 {
6198 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6199 test_array [0] = 0
6200
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207   (eval $ac_compile) 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } &&
6214          { ac_try='test -z "$ac_c_werror_flag"
6215                          || test ! -s conftest.err'
6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217   (eval $ac_try) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); }; } &&
6221          { ac_try='test -s conftest.$ac_objext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_lo=0 ac_mid=0
6228   while :; do
6229     cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 $ac_includes_default
6236 int
6237 main ()
6238 {
6239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6240 test_array [0] = 0
6241
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248   (eval $ac_compile) 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_c_werror_flag"
6256                          || test ! -s conftest.err'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; } &&
6262          { ac_try='test -s conftest.$ac_objext'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   ac_hi=$ac_mid; break
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ac_lo=`expr $ac_mid + 1`
6274                     if test $ac_lo -le $ac_mid; then
6275                       ac_lo= ac_hi=
6276                       break
6277                     fi
6278                     ac_mid=`expr 2 '*' $ac_mid + 1`
6279 fi
6280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6281   done
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 $ac_includes_default
6293 int
6294 main ()
6295 {
6296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6297 test_array [0] = 0
6298
6299   ;
6300   return 0;
6301 }
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305   (eval $ac_compile) 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } &&
6312          { ac_try='test -z "$ac_c_werror_flag"
6313                          || test ! -s conftest.err'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; } &&
6319          { ac_try='test -s conftest.$ac_objext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_hi=-1 ac_mid=-1
6326   while :; do
6327     cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 $ac_includes_default
6334 int
6335 main ()
6336 {
6337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6338 test_array [0] = 0
6339
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -z "$ac_c_werror_flag"
6354                          || test ! -s conftest.err'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; } &&
6360          { ac_try='test -s conftest.$ac_objext'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; }; then
6366   ac_lo=$ac_mid; break
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_hi=`expr '(' $ac_mid ')' - 1`
6372                        if test $ac_mid -le $ac_hi; then
6373                          ac_lo= ac_hi=
6374                          break
6375                        fi
6376                        ac_mid=`expr 2 '*' $ac_mid`
6377 fi
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379   done
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 ac_lo= ac_hi=
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 # Binary search between lo and hi bounds.
6390 while test "x$ac_lo" != "x$ac_hi"; do
6391   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 $ac_includes_default
6399 int
6400 main ()
6401 {
6402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6403 test_array [0] = 0
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"
6419                          || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest.$ac_objext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_hi=$ac_mid
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_lo=`expr '(' $ac_mid ')' + 1`
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 done
6440 case $ac_lo in
6441 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6442 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6445 See \`config.log' for more details." >&5
6446 echo "$as_me: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&2;}
6448    { (exit 1); exit 1; }; }; } ;;
6449 esac
6450 else
6451   if test "$cross_compiling" = yes; then
6452   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6453 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6455 See \`config.log' for more details." >&5
6456 echo "$as_me: error: cannot run test program while cross compiling
6457 See \`config.log' for more details." >&2;}
6458    { (exit 1); exit 1; }; }; }
6459 else
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 $ac_includes_default
6467 long longval () { return (long) (sizeof (long long)); }
6468 unsigned long ulongval () { return (long) (sizeof (long long)); }
6469 #include <stdio.h>
6470 #include <stdlib.h>
6471 int
6472 main ()
6473 {
6474
6475   FILE *f = fopen ("conftest.val", "w");
6476   if (! f)
6477     exit (1);
6478   if (((long) (sizeof (long long))) < 0)
6479     {
6480       long i = longval ();
6481       if (i != ((long) (sizeof (long long))))
6482         exit (1);
6483       fprintf (f, "%ld\n", i);
6484     }
6485   else
6486     {
6487       unsigned long i = ulongval ();
6488       if (i != ((long) (sizeof (long long))))
6489         exit (1);
6490       fprintf (f, "%lu\n", i);
6491     }
6492   exit (ferror (f) || fclose (f) != 0);
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500   (eval $ac_link) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505   (eval $ac_try) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   ac_cv_sizeof_long_long=`cat conftest.val`
6510 else
6511   echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ( exit $ac_status )
6516 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6517 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: cannot compute sizeof (long long), 77
6521 See \`config.log' for more details." >&2;}
6522    { (exit 1); exit 1; }; }; }
6523 fi
6524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6525 fi
6526 fi
6527 rm -f conftest.val
6528 else
6529   ac_cv_sizeof_long_long=0
6530 fi
6531 fi
6532 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6533 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6534 cat >>confdefs.h <<_ACEOF
6535 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6536 _ACEOF
6537
6538
6539 fi
6540
6541 echo "$as_me:$LINENO: checking for __int64" >&5
6542 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6543 if test "${ac_cv_type___int64+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553 int
6554 main ()
6555 {
6556 if ((__int64 *) 0)
6557   return 0;
6558 if (sizeof (__int64))
6559   return 0;
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566   (eval $ac_compile) 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -z "$ac_c_werror_flag"
6574                          || test ! -s conftest.err'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; } &&
6580          { ac_try='test -s conftest.$ac_objext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   ac_cv_type___int64=yes
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_cv_type___int64=no
6592 fi
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6596 echo "${ECHO_T}$ac_cv_type___int64" >&6
6597 if test $ac_cv_type___int64 = yes; then
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define HAVE___INT64 1
6601 _ACEOF
6602
6603 echo "$as_me:$LINENO: checking for __int64" >&5
6604 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6605 if test "${ac_cv_type___int64+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 $ac_includes_default
6615 int
6616 main ()
6617 {
6618 if ((__int64 *) 0)
6619   return 0;
6620 if (sizeof (__int64))
6621   return 0;
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628   (eval $ac_compile) 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_c_werror_flag"
6636                          || test ! -s conftest.err'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest.$ac_objext'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_type___int64=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_cv_type___int64=no
6654 fi
6655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6658 echo "${ECHO_T}$ac_cv_type___int64" >&6
6659
6660 echo "$as_me:$LINENO: checking size of __int64" >&5
6661 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6662 if test "${ac_cv_sizeof___int64+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   if test "$ac_cv_type___int64" = yes; then
6666   # The cast to unsigned long works around a bug in the HP C Compiler
6667   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6668   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6669   # This bug is HP SR number 8606223364.
6670   if test "$cross_compiling" = yes; then
6671   # Depending upon the size, compute the lo and hi bounds.
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h.  */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h.  */
6678 $ac_includes_default
6679 int
6680 main ()
6681 {
6682 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6683 test_array [0] = 0
6684
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>conftest.er1
6692   ac_status=$?
6693   grep -v '^ *+' conftest.er1 >conftest.err
6694   rm -f conftest.er1
6695   cat conftest.err >&5
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); } &&
6698          { ac_try='test -z "$ac_c_werror_flag"
6699                          || test ! -s conftest.err'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_lo=0 ac_mid=0
6712   while :; do
6713     cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h.  */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h.  */
6719 $ac_includes_default
6720 int
6721 main ()
6722 {
6723 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6724 test_array [0] = 0
6725
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732   (eval $ac_compile) 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -z "$ac_c_werror_flag"
6740                          || test ! -s conftest.err'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; } &&
6746          { ac_try='test -s conftest.$ac_objext'
6747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748   (eval $ac_try) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; }; then
6752   ac_hi=$ac_mid; break
6753 else
6754   echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 ac_lo=`expr $ac_mid + 1`
6758                     if test $ac_lo -le $ac_mid; then
6759                       ac_lo= ac_hi=
6760                       break
6761                     fi
6762                     ac_mid=`expr 2 '*' $ac_mid + 1`
6763 fi
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765   done
6766 else
6767   echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776 $ac_includes_default
6777 int
6778 main ()
6779 {
6780 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6781 test_array [0] = 0
6782
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789   (eval $ac_compile) 2>conftest.er1
6790   ac_status=$?
6791   grep -v '^ *+' conftest.er1 >conftest.err
6792   rm -f conftest.er1
6793   cat conftest.err >&5
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); } &&
6796          { ac_try='test -z "$ac_c_werror_flag"
6797                          || test ! -s conftest.err'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest.$ac_objext'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_hi=-1 ac_mid=-1
6810   while :; do
6811     cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 $ac_includes_default
6818 int
6819 main ()
6820 {
6821 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6822 test_array [0] = 0
6823
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830   (eval $ac_compile) 2>conftest.er1
6831   ac_status=$?
6832   grep -v '^ *+' conftest.er1 >conftest.err
6833   rm -f conftest.er1
6834   cat conftest.err >&5
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } &&
6837          { ac_try='test -z "$ac_c_werror_flag"
6838                          || test ! -s conftest.err'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; } &&
6844          { ac_try='test -s conftest.$ac_objext'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; }; then
6850   ac_lo=$ac_mid; break
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 ac_hi=`expr '(' $ac_mid ')' - 1`
6856                        if test $ac_mid -le $ac_hi; then
6857                          ac_lo= ac_hi=
6858                          break
6859                        fi
6860                        ac_mid=`expr 2 '*' $ac_mid`
6861 fi
6862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863   done
6864 else
6865   echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 ac_lo= ac_hi=
6869 fi
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 fi
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873 # Binary search between lo and hi bounds.
6874 while test "x$ac_lo" != "x$ac_hi"; do
6875   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6876   cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 $ac_includes_default
6883 int
6884 main ()
6885 {
6886 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6887 test_array [0] = 0
6888
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895   (eval $ac_compile) 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -z "$ac_c_werror_flag"
6903                          || test ! -s conftest.err'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; } &&
6909          { ac_try='test -s conftest.$ac_objext'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; }; then
6915   ac_hi=$ac_mid
6916 else
6917   echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_lo=`expr '(' $ac_mid ')' + 1`
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 done
6924 case $ac_lo in
6925 ?*) ac_cv_sizeof___int64=$ac_lo;;
6926 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6929 See \`config.log' for more details." >&5
6930 echo "$as_me: error: cannot compute sizeof (__int64), 77
6931 See \`config.log' for more details." >&2;}
6932    { (exit 1); exit 1; }; }; } ;;
6933 esac
6934 else
6935   if test "$cross_compiling" = yes; then
6936   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6937 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6939 See \`config.log' for more details." >&5
6940 echo "$as_me: error: cannot run test program while cross compiling
6941 See \`config.log' for more details." >&2;}
6942    { (exit 1); exit 1; }; }; }
6943 else
6944   cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950 $ac_includes_default
6951 long longval () { return (long) (sizeof (__int64)); }
6952 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6953 #include <stdio.h>
6954 #include <stdlib.h>
6955 int
6956 main ()
6957 {
6958
6959   FILE *f = fopen ("conftest.val", "w");
6960   if (! f)
6961     exit (1);
6962   if (((long) (sizeof (__int64))) < 0)
6963     {
6964       long i = longval ();
6965       if (i != ((long) (sizeof (__int64))))
6966         exit (1);
6967       fprintf (f, "%ld\n", i);
6968     }
6969   else
6970     {
6971       unsigned long i = ulongval ();
6972       if (i != ((long) (sizeof (__int64))))
6973         exit (1);
6974       fprintf (f, "%lu\n", i);
6975     }
6976   exit (ferror (f) || fclose (f) != 0);
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 rm -f conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984   (eval $ac_link) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_cv_sizeof___int64=`cat conftest.val`
6994 else
6995   echo "$as_me: program exited with status $ac_status" >&5
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ( exit $ac_status )
7000 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7001 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7003 See \`config.log' for more details." >&5
7004 echo "$as_me: error: cannot compute sizeof (__int64), 77
7005 See \`config.log' for more details." >&2;}
7006    { (exit 1); exit 1; }; }; }
7007 fi
7008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 fi
7011 rm -f conftest.val
7012 else
7013   ac_cv_sizeof___int64=0
7014 fi
7015 fi
7016 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7017 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7018 cat >>confdefs.h <<_ACEOF
7019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7020 _ACEOF
7021
7022
7023 fi
7024
7025
7026 # ---------------------
7027 # Warnings and checking
7028 # ---------------------
7029
7030 # Check $CC warning features (if it's GCC).
7031 # We want to use -pedantic, but we don't want warnings about
7032 # * 'long long'
7033 # * variadic macros
7034 # * overlong strings
7035 # So, we only use -pedantic if we can disable those warnings.
7036
7037 loose_warn=
7038 save_CFLAGS="$CFLAGS"
7039 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7040   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7041
7042   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7043 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7044 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   CFLAGS="$option"
7048     cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054
7055 int
7056 main ()
7057 {
7058
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065   (eval $ac_compile) 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } &&
7072          { ac_try='test -z "$ac_c_werror_flag"
7073                          || test ! -s conftest.err'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; } &&
7079          { ac_try='test -s conftest.$ac_objext'
7080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081   (eval $ac_try) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; }; then
7085   eval "$as_acx_Woption=yes"
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 eval "$as_acx_Woption=no"
7091 fi
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093
7094 fi
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7097   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7098   loose_warn="$loose_warn${loose_warn:+ }$option"
7099 fi
7100
7101   done
7102 CFLAGS="$save_CFLAGS"
7103
7104 strict_warn=
7105 save_CFLAGS="$CFLAGS"
7106 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7107   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108
7109   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7110 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7111 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   CFLAGS="$option"
7115     cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121
7122 int
7123 main ()
7124 {
7125
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132   (eval $ac_compile) 2>conftest.er1
7133   ac_status=$?
7134   grep -v '^ *+' conftest.er1 >conftest.err
7135   rm -f conftest.er1
7136   cat conftest.err >&5
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -z "$ac_c_werror_flag"
7140                          || test ! -s conftest.err'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; } &&
7146          { ac_try='test -s conftest.$ac_objext'
7147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   eval "$as_acx_Woption=yes"
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 eval "$as_acx_Woption=no"
7158 fi
7159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7160
7161 fi
7162 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7163 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7164   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7165   strict_warn="$strict_warn${strict_warn:+ }$option"
7166 fi
7167
7168   done
7169 CFLAGS="$save_CFLAGS"
7170
7171 if test "$GCC" = yes; then
7172   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7173 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7174 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   save_CFLAGS="$CFLAGS"
7178 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185
7186 int
7187 main ()
7188 {
7189
7190   ;
7191   return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>conftest.er1
7197   ac_status=$?
7198   grep -v '^ *+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -z "$ac_c_werror_flag"
7204                          || test ! -s conftest.err'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; } &&
7210          { ac_try='test -s conftest.$ac_objext'
7211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212   (eval $ac_try) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; }; then
7216   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7222 fi
7223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7224 CFLAGS="$save_CFLAGS"
7225 fi
7226 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7227 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7228 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7229   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7230 fi
7231
7232
7233 fi
7234
7235
7236 # Check whether --enable-werror-always or --disable-werror-always was given.
7237 if test "${enable_werror_always+set}" = set; then
7238   enableval="$enable_werror_always"
7239
7240 else
7241   enable_werror_always=no
7242 fi;
7243 if test $enable_werror_always = yes; then
7244   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7245 fi
7246
7247
7248
7249
7250 # The above macros do nothing if the compiler is not GCC.  However, the
7251 # Makefile has more goo to add other flags, so this variabl is used to
7252 # enables warnings only for GCC.
7253 warn_cflags=
7254 if test "x$GCC" = "xyes"; then
7255   warn_cflags='$(GCC_WARN_CFLAGS)'
7256 fi
7257
7258
7259 # Enable expensive internal checks
7260 is_release=
7261 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7262   is_release=yes
7263 fi
7264
7265 # Check whether --enable-checking or --disable-checking was given.
7266 if test "${enable_checking+set}" = set; then
7267   enableval="$enable_checking"
7268   ac_checking_flags="${enableval}"
7269 else
7270
7271 # Determine the default checks.
7272 if test x$is_release = x ; then
7273   ac_checking_flags=yes
7274 else
7275   ac_checking_flags=release
7276 fi
7277 fi;
7278 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7279 for check in release $ac_checking_flags
7280 do
7281         case $check in
7282         # these set all the flags to specific states
7283         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7284                         ac_fold_checking= ; ac_gc_checking=1 ;
7285                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7286                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7287                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7288                         ac_types_checking=1 ;;
7289         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7290                         ac_fold_checking= ; ac_gc_checking= ;
7291                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7292                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7293                         ac_tree_checking= ; ac_valgrind_checking= ;
7294                         ac_types_checking= ;;
7295         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7296                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7297                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7298                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7299                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7300                         ac_types_checking=1 ;;
7301         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7302                         ac_fold_checking= ; ac_gc_checking= ;
7303                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7304                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7305                         ac_tree_checking= ; ac_valgrind_checking= ;
7306                         ac_types_checking= ;;
7307         # these enable particular checks
7308         assert)         ac_assert_checking=1 ;;
7309         df)             ac_df_checking=1 ;;
7310         fold)           ac_fold_checking=1 ;;
7311         gc)             ac_gc_checking=1 ;;
7312         gcac)           ac_gc_always_collect=1 ;;
7313         gimple)         ac_gimple_checking=1 ;;
7314         misc)           ac_checking=1 ;;
7315         rtl)            ac_rtl_checking=1 ;;
7316         rtlflag)        ac_rtlflag_checking=1 ;;
7317         runtime)        ac_runtime_checking=1 ;;
7318         tree)           ac_tree_checking=1 ;;
7319         types)          ac_types_checking=1 ;;
7320         valgrind)       ac_valgrind_checking=1 ;;
7321         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7322 echo "$as_me: error: unknown check category $check" >&2;}
7323    { (exit 1); exit 1; }; } ;;
7324         esac
7325 done
7326 IFS="$ac_save_IFS"
7327
7328 nocommon_flag=""
7329 if test x$ac_checking != x ; then
7330
7331 cat >>confdefs.h <<\_ACEOF
7332 #define ENABLE_CHECKING 1
7333 _ACEOF
7334
7335   nocommon_flag=-fno-common
7336 fi
7337
7338 if test x$ac_df_checking != x ; then
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define ENABLE_DF_CHECKING 1
7342 _ACEOF
7343
7344 fi
7345 if test x$ac_assert_checking != x ; then
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define ENABLE_ASSERT_CHECKING 1
7349 _ACEOF
7350
7351 fi
7352 if test x$ac_gimple_checking != x ; then
7353
7354 cat >>confdefs.h <<\_ACEOF
7355 #define ENABLE_GIMPLE_CHECKING 1
7356 _ACEOF
7357
7358 fi
7359
7360 if test x$ac_runtime_checking != x ; then
7361
7362 cat >>confdefs.h <<\_ACEOF
7363 #define ENABLE_RUNTIME_CHECKING 1
7364 _ACEOF
7365
7366 fi
7367 if test x$ac_tree_checking != x ; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define ENABLE_TREE_CHECKING 1
7371 _ACEOF
7372
7373   TREEBROWSER=tree-browser.o
7374 fi
7375 if test x$ac_types_checking != x ; then
7376
7377 cat >>confdefs.h <<\_ACEOF
7378 #define ENABLE_TYPES_CHECKING 1
7379 _ACEOF
7380
7381 fi
7382
7383 if test x$ac_rtl_checking != x ; then
7384
7385 cat >>confdefs.h <<\_ACEOF
7386 #define ENABLE_RTL_CHECKING 1
7387 _ACEOF
7388
7389 fi
7390 if test x$ac_rtlflag_checking != x ; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define ENABLE_RTL_FLAG_CHECKING 1
7394 _ACEOF
7395
7396 fi
7397 if test x$ac_gc_checking != x ; then
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define ENABLE_GC_CHECKING 1
7401 _ACEOF
7402
7403 fi
7404 if test x$ac_gc_always_collect != x ; then
7405
7406 cat >>confdefs.h <<\_ACEOF
7407 #define ENABLE_GC_ALWAYS_COLLECT 1
7408 _ACEOF
7409
7410 fi
7411 if test x$ac_fold_checking != x ; then
7412
7413 cat >>confdefs.h <<\_ACEOF
7414 #define ENABLE_FOLD_CHECKING 1
7415 _ACEOF
7416
7417 fi
7418 valgrind_path_defines=
7419 valgrind_command=
7420
7421 if test "${ac_cv_header_valgrind_h+set}" = set; then
7422   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7423 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7424 if test "${ac_cv_header_valgrind_h+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7428 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7429 else
7430   # Is the header compilable?
7431 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7432 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 $ac_includes_default
7440 #include <valgrind.h>
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444   (eval $ac_compile) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest.$ac_objext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_header_compiler=yes
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_header_compiler=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6
7474
7475 # Is the header present?
7476 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7477 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <valgrind.h>
7485 _ACEOF
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } >/dev/null; then
7494   if test -s conftest.err; then
7495     ac_cpp_err=$ac_c_preproc_warn_flag
7496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7497   else
7498     ac_cpp_err=
7499   fi
7500 else
7501   ac_cpp_err=yes
7502 fi
7503 if test -z "$ac_cpp_err"; then
7504   ac_header_preproc=yes
7505 else
7506   echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509   ac_header_preproc=no
7510 fi
7511 rm -f conftest.err conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513 echo "${ECHO_T}$ac_header_preproc" >&6
7514
7515 # So?  What about this header?
7516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7517   yes:no: )
7518     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7519 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7521 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7522     ac_header_preproc=yes
7523     ;;
7524   no:yes:* )
7525     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7526 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7527     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7528 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7530 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7532 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7533     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7535     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7536 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7537     (
7538       cat <<\_ASBOX
7539 ## ------------------------------------------ ##
7540 ## Report this to the AC_PACKAGE_NAME lists.  ##
7541 ## ------------------------------------------ ##
7542 _ASBOX
7543     ) |
7544       sed "s/^/$as_me: WARNING:     /" >&2
7545     ;;
7546 esac
7547 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7548 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7549 if test "${ac_cv_header_valgrind_h+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   ac_cv_header_valgrind_h=$ac_header_preproc
7553 fi
7554 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7555 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7556
7557 fi
7558 if test $ac_cv_header_valgrind_h = yes; then
7559   have_valgrind_h=yes
7560 else
7561   have_valgrind_h=no
7562 fi
7563
7564
7565
7566 if test x$ac_valgrind_checking != x ; then
7567   # It is certainly possible that there's valgrind but no valgrind.h.
7568   # GCC relies on making annotations so we must have both.
7569   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7570 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7571   cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h.  */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h.  */
7577 #include <valgrind/memcheck.h>
7578 #ifndef VALGRIND_DISCARD
7579 #error VALGRIND_DISCARD not defined
7580 #endif
7581 _ACEOF
7582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7584   ac_status=$?
7585   grep -v '^ *+' conftest.er1 >conftest.err
7586   rm -f conftest.er1
7587   cat conftest.err >&5
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); } >/dev/null; then
7590   if test -s conftest.err; then
7591     ac_cpp_err=$ac_c_preproc_warn_flag
7592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7593   else
7594     ac_cpp_err=
7595   fi
7596 else
7597   ac_cpp_err=yes
7598 fi
7599 if test -z "$ac_cpp_err"; then
7600   gcc_cv_header_valgrind_memcheck_h=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605   gcc_cv_header_valgrind_memcheck_h=no
7606 fi
7607 rm -f conftest.err conftest.$ac_ext
7608   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7609 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7610   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7611 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7612   cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618 #include <memcheck.h>
7619 #ifndef VALGRIND_DISCARD
7620 #error VALGRIND_DISCARD not defined
7621 #endif
7622 _ACEOF
7623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } >/dev/null; then
7631   if test -s conftest.err; then
7632     ac_cpp_err=$ac_c_preproc_warn_flag
7633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7634   else
7635     ac_cpp_err=
7636   fi
7637 else
7638   ac_cpp_err=yes
7639 fi
7640 if test -z "$ac_cpp_err"; then
7641   gcc_cv_header_memcheck_h=yes
7642 else
7643   echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646   gcc_cv_header_memcheck_h=no
7647 fi
7648 rm -f conftest.err conftest.$ac_ext
7649   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7650 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7651
7652 # Prepare PATH_SEPARATOR.
7653 # The user is always right.
7654 if test "${PATH_SEPARATOR+set}" != set; then
7655   echo "#! /bin/sh" >conf$$.sh
7656   echo  "exit 0"   >>conf$$.sh
7657   chmod +x conf$$.sh
7658   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7659     PATH_SEPARATOR=';'
7660   else
7661     PATH_SEPARATOR=:
7662   fi
7663   rm -f conf$$.sh
7664 fi
7665
7666 # Find out how to test for executable files. Don't use a zero-byte file,
7667 # as systems may use methods other than mode bits to determine executability.
7668 cat >conf$$.file <<_ASEOF
7669 #! /bin/sh
7670 exit 0
7671 _ASEOF
7672 chmod +x conf$$.file
7673 if test -x conf$$.file >/dev/null 2>&1; then
7674   ac_executable_p="test -x"
7675 else
7676   ac_executable_p="test -f"
7677 fi
7678 rm -f conf$$.file
7679
7680 # Extract the first word of "valgrind", so it can be a program name with args.
7681 set dummy valgrind; ac_word=$2
7682 echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684 if test "${ac_cv_path_valgrind_path+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   case "$valgrind_path" in
7688   [\\/]* | ?:[\\/]*)
7689     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7690     ;;
7691   *)
7692     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7693     for ac_dir in $PATH; do
7694       IFS="$ac_save_IFS"
7695       test -z "$ac_dir" && ac_dir=.
7696       for ac_exec_ext in '' $ac_executable_extensions; do
7697         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7698           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7699             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7700             break 2
7701           fi
7702         fi
7703       done
7704     done
7705     IFS="$ac_save_IFS"
7706     ;;
7707 esac
7708 fi
7709 valgrind_path="$ac_cv_path_valgrind_path"
7710 if test -n "$valgrind_path"; then
7711   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7712 echo "${ECHO_T}$valgrind_path" >&6
7713 else
7714   echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7716 fi
7717
7718   if test "x$valgrind_path" = "x" \
7719     || (test $have_valgrind_h = no \
7720         && test $gcc_cv_header_memcheck_h = no \
7721         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7722         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7723 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7724    { (exit 1); exit 1; }; }
7725   fi
7726   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7727   valgrind_command="$valgrind_path -q"
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define ENABLE_VALGRIND_CHECKING 1
7731 _ACEOF
7732
7733   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_VALGRIND_MEMCHECK_H 1
7737 _ACEOF
7738
7739   fi
7740   if test $gcc_cv_header_memcheck_h = yes; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_MEMCHECK_H 1
7744 _ACEOF
7745
7746   fi
7747 fi
7748
7749
7750
7751 # Enable code coverage collection
7752 # Check whether --enable-coverage or --disable-coverage was given.
7753 if test "${enable_coverage+set}" = set; then
7754   enableval="$enable_coverage"
7755   case "${enableval}" in
7756   yes|noopt)
7757     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7758     ;;
7759   opt)
7760     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7761     ;;
7762   no)
7763     # a.k.a. --disable-coverage
7764     coverage_flags=""
7765     ;;
7766   *)
7767     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7768 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7769    { (exit 1); exit 1; }; }
7770     ;;
7771 esac
7772 else
7773   coverage_flags=""
7774 fi;
7775
7776
7777 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7778 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7779   enableval="$enable_gather_detailed_mem_stats"
7780
7781 else
7782   enable_gather_detailed_mem_stats=no
7783 fi;
7784 if test x$enable_gather_detailed_mem_stats = xyes ; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define GATHER_STATISTICS 1
7788 _ACEOF
7789
7790 fi
7791
7792 # -------------------------------
7793 # Miscenalleous configure options
7794 # -------------------------------
7795
7796 # With stabs
7797
7798 # Check whether --with-stabs or --without-stabs was given.
7799 if test "${with_stabs+set}" = set; then
7800   withval="$with_stabs"
7801   stabs="$with_stabs"
7802 else
7803   stabs=no
7804 fi;
7805
7806 # Determine whether or not multilibs are enabled.
7807 # Check whether --enable-multilib or --disable-multilib was given.
7808 if test "${enable_multilib+set}" = set; then
7809   enableval="$enable_multilib"
7810
7811 else
7812   enable_multilib=yes
7813 fi;
7814
7815
7816 # Enable __cxa_atexit for C++.
7817 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7818 if test "${enable___cxa_atexit+set}" = set; then
7819   enableval="$enable___cxa_atexit"
7820
7821 fi;
7822
7823 # Enable C extension for decimal float if target supports it.
7824 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7825 if test "${enable_decimal_float+set}" = set; then
7826   enableval="$enable_decimal_float"
7827
7828   case $enable_decimal_float in
7829     yes | no | bid | dpd) ;;
7830     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7831 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7832 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7833 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7834    { (exit 1); exit 1; }; } ;;
7835   esac
7836
7837 else
7838
7839   case $target in
7840     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7841       enable_decimal_float=yes
7842       ;;
7843     *)
7844       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7845 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7846       enable_decimal_float=no
7847       ;;
7848   esac
7849
7850 fi;
7851
7852 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define ENABLE_DECIMAL_FLOAT $dfp
7856 _ACEOF
7857
7858
7859 # x86's use BID format instead of DPD
7860 case x$enable_decimal_float in
7861   xyes)
7862     case $target in
7863       i?86*-*-linux* | x86_64*-*-linux*)
7864         enable_decimal_float=bid
7865         ;;
7866       *)
7867         enable_decimal_float=dpd
7868         ;;
7869     esac
7870     ;;
7871   xno)
7872     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7873     # dependency on libdecnumber.
7874     enable_decimal_float=dpd
7875     ;;
7876 esac
7877
7878
7879 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7880
7881 cat >>confdefs.h <<_ACEOF
7882 #define ENABLE_DECIMAL_BID_FORMAT $bid
7883 _ACEOF
7884
7885
7886 # Enable C extension for fixed-point arithmetic.
7887 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7888 if test "${enable_fixed_point+set}" = set; then
7889   enableval="$enable_fixed_point"
7890
7891
7892 else
7893
7894   case $target in
7895     mips*-*-*)
7896       case $host in
7897         mips*-sgi-irix*)
7898           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7899 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7900           enable_fixed_point=no
7901           ;;
7902         *)
7903           enable_fixed_point=yes
7904           ;;
7905       esac
7906       ;;
7907     *)
7908       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7909 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7910       enable_fixed_point=no
7911       ;;
7912   esac
7913
7914 fi;
7915
7916
7917 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7918
7919 cat >>confdefs.h <<_ACEOF
7920 #define ENABLE_FIXED_POINT $fixedpoint
7921 _ACEOF
7922
7923
7924 # Enable threads
7925 # Pass with no value to take the default
7926 # Pass with a value to specify a thread package
7927 # Check whether --enable-threads or --disable-threads was given.
7928 if test "${enable_threads+set}" = set; then
7929   enableval="$enable_threads"
7930
7931 else
7932   enable_threads=''
7933 fi;
7934
7935 # Check whether --enable-tls or --disable-tls was given.
7936 if test "${enable_tls+set}" = set; then
7937   enableval="$enable_tls"
7938
7939   case $enable_tls in
7940     yes | no) ;;
7941     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7942 Valid choices are 'yes' and 'no'." >&5
7943 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7944 Valid choices are 'yes' and 'no'." >&2;}
7945    { (exit 1); exit 1; }; } ;;
7946   esac
7947
7948 else
7949   enable_tls=''
7950 fi;
7951
7952 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7953 if test "${enable_objc_gc+set}" = set; then
7954   enableval="$enable_objc_gc"
7955   if test x$enable_objc_gc = xno; then
7956         objc_boehm_gc=''
7957 else
7958         objc_boehm_gc=1
7959 fi
7960 else
7961   objc_boehm_gc=''
7962 fi;
7963
7964
7965 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7966 if test "${with_dwarf2+set}" = set; then
7967   withval="$with_dwarf2"
7968   dwarf2="$with_dwarf2"
7969 else
7970   dwarf2=no
7971 fi;
7972
7973 # Check whether --enable-shared or --disable-shared was given.
7974 if test "${enable_shared+set}" = set; then
7975   enableval="$enable_shared"
7976
7977   case $enable_shared in
7978   yes | no) ;;
7979   *)
7980     enable_shared=no
7981     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7982     for pkg in $enableval; do
7983       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7984         enable_shared=yes
7985       fi
7986     done
7987     IFS="$ac_save_ifs"
7988     ;;
7989   esac
7990
7991 else
7992   enable_shared=yes
7993 fi;
7994
7995
7996
7997 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7998 if test "${with_build_sysroot+set}" = set; then
7999   withval="$with_build_sysroot"
8000
8001 fi;
8002
8003
8004 # Check whether --with-sysroot or --without-sysroot was given.
8005 if test "${with_sysroot+set}" = set; then
8006   withval="$with_sysroot"
8007
8008  case ${with_sysroot} in
8009  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8010  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8011  esac
8012
8013  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8014  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8015
8016  if test "x$prefix" = xNONE; then
8017   test_prefix=/usr/local
8018  else
8019   test_prefix=$prefix
8020  fi
8021  if test "x$exec_prefix" = xNONE; then
8022   test_exec_prefix=$test_prefix
8023  else
8024   test_exec_prefix=$exec_prefix
8025  fi
8026  case ${TARGET_SYSTEM_ROOT} in
8027  "${test_prefix}"|"${test_prefix}/"*|\
8028  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8029  '${prefix}'|'${prefix}/'*|\
8030  '${exec_prefix}'|'${exec_prefix}/'*)
8031    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8032    TARGET_SYSTEM_ROOT_DEFINE="$t"
8033    ;;
8034  esac
8035
8036 else
8037
8038  TARGET_SYSTEM_ROOT=
8039  TARGET_SYSTEM_ROOT_DEFINE=
8040  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8041
8042 fi;
8043
8044
8045
8046
8047 # Build with intermodule optimisations
8048 # Check whether --enable-intermodule or --disable-intermodule was given.
8049 if test "${enable_intermodule+set}" = set; then
8050   enableval="$enable_intermodule"
8051   case ${enable_intermodule} in
8052   yes) onestep="-onestep";;
8053   *) onestep="";;
8054 esac
8055 else
8056   onestep=""
8057 fi;
8058
8059
8060
8061
8062 # Check whether --with-pkgversion or --without-pkgversion was given.
8063 if test "${with_pkgversion+set}" = set; then
8064   withval="$with_pkgversion"
8065   case "$withval" in
8066       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8067 echo "$as_me: error: package version not specified" >&2;}
8068    { (exit 1); exit 1; }; } ;;
8069       no)  PKGVERSION= ;;
8070       *)   PKGVERSION="($withval) " ;;
8071      esac
8072 else
8073   PKGVERSION="(GCC) "
8074
8075 fi;
8076
8077
8078
8079
8080 # Check whether --with-bugurl or --without-bugurl was given.
8081 if test "${with_bugurl+set}" = set; then
8082   withval="$with_bugurl"
8083   case "$withval" in
8084       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8085 echo "$as_me: error: bug URL not specified" >&2;}
8086    { (exit 1); exit 1; }; } ;;
8087       no)  BUGURL=
8088            ;;
8089       *)   BUGURL="$withval"
8090            ;;
8091      esac
8092 else
8093   BUGURL="http://gcc.gnu.org/bugs.html"
8094
8095 fi;
8096   case ${BUGURL} in
8097   "")
8098     REPORT_BUGS_TO=
8099     REPORT_BUGS_TEXI=
8100     ;;
8101   *)
8102     REPORT_BUGS_TO="<$BUGURL>"
8103     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8104     ;;
8105   esac;
8106
8107
8108
8109
8110 # Sanity check enable_languages in case someone does not run the toplevel
8111 # configure # script.
8112 # Check whether --enable-languages or --disable-languages was given.
8113 if test "${enable_languages+set}" = set; then
8114   enableval="$enable_languages"
8115   case ,${enable_languages}, in
8116        ,,|,yes,)
8117                 # go safe -- we cannot be much sure without the toplevel
8118                 # configure's
8119                 # analysis of which target libs are present and usable
8120                 enable_languages=c
8121                 ;;
8122          *,all,*)
8123                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8124 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8125    { (exit 1); exit 1; }; }
8126                 ;;
8127         *,c,*)
8128                 ;;
8129         *)
8130                 enable_languages=c,${enable_languages}
8131                 ;;
8132 esac
8133 else
8134   enable_languages=c
8135 fi;
8136
8137 # Used by documentation targets
8138
8139
8140
8141
8142
8143 # Check whether --with-multilib-list or --without-multilib-list was given.
8144 if test "${with_multilib_list+set}" = set; then
8145   withval="$with_multilib_list"
8146   :
8147 else
8148   with_multilib_list=default
8149 fi;
8150
8151 # -------------------------
8152 # Checks for other programs
8153 # -------------------------
8154
8155 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8157 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8158 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161   cat >conftest.make <<\_ACEOF
8162 all:
8163         @echo 'ac_maketemp="$(MAKE)"'
8164 _ACEOF
8165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8166 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8167 if test -n "$ac_maketemp"; then
8168   eval ac_cv_prog_make_${ac_make}_set=yes
8169 else
8170   eval ac_cv_prog_make_${ac_make}_set=no
8171 fi
8172 rm -f conftest.make
8173 fi
8174 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8175   echo "$as_me:$LINENO: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8177   SET_MAKE=
8178 else
8179   echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8181   SET_MAKE="MAKE=${MAKE-make}"
8182 fi
8183
8184
8185 # Find some useful tools
8186 for ac_prog in gawk mawk nawk awk
8187 do
8188   # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 echo "$as_me:$LINENO: checking for $ac_word" >&5
8191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8192 if test "${ac_cv_prog_AWK+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   if test -n "$AWK"; then
8196   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203   for ac_exec_ext in '' $ac_executable_extensions; do
8204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205     ac_cv_prog_AWK="$ac_prog"
8206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210 done
8211
8212 fi
8213 fi
8214 AWK=$ac_cv_prog_AWK
8215 if test -n "$AWK"; then
8216   echo "$as_me:$LINENO: result: $AWK" >&5
8217 echo "${ECHO_T}$AWK" >&6
8218 else
8219   echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8221 fi
8222
8223   test -n "$AWK" && break
8224 done
8225
8226 # We need awk to create options.c and options.h.
8227 # Bail out if it's missing.
8228 case ${AWK} in
8229   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8230 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8231    { (exit 1); exit 1; }; } ;;
8232 esac
8233
8234 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8236 if test "${gcc_cv_prog_LN_S+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   rm -f conftestdata_t
8240 echo >conftestdata_f
8241 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8242 then
8243   gcc_cv_prog_LN_S="ln -s"
8244 else
8245   if ln conftestdata_f conftestdata_t 2>/dev/null
8246   then
8247     gcc_cv_prog_LN_S=ln
8248   else
8249     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8250     then
8251       gcc_cv_prog_LN_S="cp -p"
8252     else
8253       gcc_cv_prog_LN_S=cp
8254     fi
8255   fi
8256 fi
8257 rm -f conftestdata_f conftestdata_t
8258
8259 fi
8260 LN_S="$gcc_cv_prog_LN_S"
8261 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8262   echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264 else
8265   if test "$gcc_cv_prog_LN_S" = "ln"; then
8266     echo "$as_me:$LINENO: result: no, using ln" >&5
8267 echo "${ECHO_T}no, using ln" >&6
8268   else
8269     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8270 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8271   fi
8272 fi
8273
8274 echo "$as_me:$LINENO: checking whether ln works" >&5
8275 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8276 if test "${acx_cv_prog_LN+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   rm -f conftestdata_t
8280 echo >conftestdata_f
8281 if ln conftestdata_f conftestdata_t 2>/dev/null
8282 then
8283   acx_cv_prog_LN=ln
8284 else
8285   acx_cv_prog_LN=no
8286 fi
8287 rm -f conftestdata_f conftestdata_t
8288
8289 fi
8290 if test $acx_cv_prog_LN = no; then
8291   LN="$LN_S"
8292   echo "$as_me:$LINENO: result: no, using $LN" >&5
8293 echo "${ECHO_T}no, using $LN" >&6
8294 else
8295   LN="$acx_cv_prog_LN"
8296   echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8298 fi
8299
8300 if test -n "$ac_tool_prefix"; then
8301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8303 echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305 if test "${ac_cv_prog_RANLIB+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   if test -n "$RANLIB"; then
8309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316   for ac_exec_ext in '' $ac_executable_extensions; do
8317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323 done
8324
8325 fi
8326 fi
8327 RANLIB=$ac_cv_prog_RANLIB
8328 if test -n "$RANLIB"; then
8329   echo "$as_me:$LINENO: result: $RANLIB" >&5
8330 echo "${ECHO_T}$RANLIB" >&6
8331 else
8332   echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 fi
8335
8336 fi
8337 if test -z "$ac_cv_prog_RANLIB"; then
8338   ac_ct_RANLIB=$RANLIB
8339   # Extract the first word of "ranlib", so it can be a program name with args.
8340 set dummy ranlib; ac_word=$2
8341 echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   if test -n "$ac_ct_RANLIB"; then
8347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354   for ac_exec_ext in '' $ac_executable_extensions; do
8355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356     ac_cv_prog_ac_ct_RANLIB="ranlib"
8357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361 done
8362
8363   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8364 fi
8365 fi
8366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8367 if test -n "$ac_ct_RANLIB"; then
8368   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8370 else
8371   echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8373 fi
8374
8375   RANLIB=$ac_ct_RANLIB
8376 else
8377   RANLIB="$ac_cv_prog_RANLIB"
8378 fi
8379
8380 case "${host}" in
8381 *-*-darwin*)
8382   # By default, the Darwin ranlib will not treat common symbols as
8383   # definitions when  building the archive table of contents.  Other
8384   # ranlibs do that; pass an option to the Darwin ranlib that makes
8385   # it behave similarly.
8386   ranlib_flags="-c"
8387   ;;
8388 *)
8389   ranlib_flags=""
8390 esac
8391
8392
8393 # Find a good install program.  We prefer a C program (faster),
8394 # so one script is as good as another.  But avoid the broken or
8395 # incompatible versions:
8396 # SysV /etc/install, /usr/sbin/install
8397 # SunOS /usr/etc/install
8398 # IRIX /sbin/install
8399 # AIX /bin/install
8400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8402 # ./install, which can be erroneously created by make from ./install.sh.
8403 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8404 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8405 if test -z "$INSTALL"; then
8406 if test "${ac_cv_path_install+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8410   for ac_dir in $PATH; do
8411     # Account for people who put trailing slashes in PATH elements.
8412     case "$ac_dir/" in
8413     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8414     *)
8415       # OSF1 and SCO ODT 3.0 have their own names for install.
8416       for ac_prog in ginstall scoinst install; do
8417         if test -f $ac_dir/$ac_prog; then
8418           if test $ac_prog = install &&
8419             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8420             # AIX install.  It has an incompatible calling convention.
8421             # OSF/1 installbsd also uses dspmsg, but is usable.
8422             :
8423           else
8424             ac_cv_path_install="$ac_dir/$ac_prog -c"
8425             break 2
8426           fi
8427         fi
8428       done
8429       ;;
8430     esac
8431   done
8432   IFS="$ac_save_IFS"
8433
8434 fi
8435   if test "${ac_cv_path_install+set}" = set; then
8436     INSTALL="$ac_cv_path_install"
8437   else
8438     # As a last resort, use the slow shell script.  We don't cache a
8439     # path for INSTALL within a source directory, because that will
8440     # break other packages using the cache if that directory is
8441     # removed, or if the path is relative.
8442     INSTALL="$ac_install_sh"
8443   fi
8444 fi
8445 echo "$as_me:$LINENO: result: $INSTALL" >&5
8446 echo "${ECHO_T}$INSTALL" >&6
8447
8448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8449 # It thinks the first close brace ends the variable substitution.
8450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8451
8452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8453
8454
8455 # See if cmp has --ignore-initial.
8456 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8457 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8458 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461    echo abfoo >t1
8462   echo cdfoo >t2
8463   gcc_cv_prog_cmp_skip=slowcompare
8464   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8465     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8466       :
8467     else
8468       gcc_cv_prog_cmp_skip=gnucompare
8469     fi
8470   fi
8471   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8472     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8473       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8474         :
8475       else
8476         gcc_cv_prog_cmp_skip=fastcompare
8477       fi
8478     fi
8479   fi
8480   rm t1 t2
8481
8482 fi
8483 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8484 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8485 make_compare_target=$gcc_cv_prog_cmp_skip
8486
8487
8488
8489 # See if we have the mktemp command.
8490 # Extract the first word of "mktemp", so it can be a program name with args.
8491 set dummy mktemp; ac_word=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   if test -n "$have_mktemp_command"; then
8498   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505   for ac_exec_ext in '' $ac_executable_extensions; do
8506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507     ac_cv_prog_have_mktemp_command="yes"
8508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512 done
8513
8514   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8515 fi
8516 fi
8517 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8518 if test -n "$have_mktemp_command"; then
8519   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8520 echo "${ECHO_T}$have_mktemp_command" >&6
8521 else
8522   echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 # See if makeinfo has been installed and is modern enough
8528 # that we can use it.
8529
8530   # Extract the first word of "makeinfo", so it can be a program name with args.
8531 set dummy makeinfo; ac_word=$2
8532 echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8534 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   if test -n "$MAKEINFO"; then
8538   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543   IFS=$as_save_IFS
8544   test -z "$as_dir" && as_dir=.
8545   for ac_exec_ext in '' $ac_executable_extensions; do
8546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547     ac_cv_prog_MAKEINFO="makeinfo"
8548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549     break 2
8550   fi
8551 done
8552 done
8553
8554 fi
8555 fi
8556 MAKEINFO=$ac_cv_prog_MAKEINFO
8557 if test -n "$MAKEINFO"; then
8558   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8559 echo "${ECHO_T}$MAKEINFO" >&6
8560 else
8561   echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8563 fi
8564
8565   if test -n "$MAKEINFO"; then
8566     # Found it, now check the version.
8567     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8568 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8569 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8573                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8574
8575                     case $ac_prog_version in
8576                       '')  gcc_cv_prog_makeinfo_modern=no;;
8577                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8578                       *)   gcc_cv_prog_makeinfo_modern=no;;
8579                     esac
8580
8581 fi
8582 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8583 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8584   else
8585     gcc_cv_prog_makeinfo_modern=no
8586   fi
8587   if test $gcc_cv_prog_makeinfo_modern = no; then
8588     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8589   fi
8590
8591 if test $gcc_cv_prog_makeinfo_modern = no; then
8592   { echo "$as_me:$LINENO: WARNING:
8593 *** Makeinfo is missing or too old.
8594 *** Info documentation will not be built." >&5
8595 echo "$as_me: WARNING:
8596 *** Makeinfo is missing or too old.
8597 *** Info documentation will not be built." >&2;}
8598   BUILD_INFO=
8599 else
8600   BUILD_INFO=info
8601 fi
8602
8603
8604 # Is pod2man recent enough to regenerate manpages?
8605 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8606 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8607 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8608   echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610   GENERATED_MANPAGES=generated-manpages
8611 else
8612   echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8614   GENERATED_MANPAGES=
8615 fi
8616
8617
8618 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8619
8620 # How about lex?
8621 for ac_prog in flex
8622 do
8623   # Extract the first word of "$ac_prog", so it can be a program name with args.
8624 set dummy $ac_prog; ac_word=$2
8625 echo "$as_me:$LINENO: checking for $ac_word" >&5
8626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8627 if test "${ac_cv_prog_FLEX+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630   if test -n "$FLEX"; then
8631   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638   for ac_exec_ext in '' $ac_executable_extensions; do
8639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640     ac_cv_prog_FLEX="$ac_prog"
8641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645 done
8646
8647 fi
8648 fi
8649 FLEX=$ac_cv_prog_FLEX
8650 if test -n "$FLEX"; then
8651   echo "$as_me:$LINENO: result: $FLEX" >&5
8652 echo "${ECHO_T}$FLEX" >&6
8653 else
8654   echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6
8656 fi
8657
8658   test -n "$FLEX" && break
8659 done
8660 test -n "$FLEX" || FLEX="$MISSING flex"
8661
8662
8663 # Bison?
8664 for ac_prog in bison
8665 do
8666   # Extract the first word of "$ac_prog", so it can be a program name with args.
8667 set dummy $ac_prog; ac_word=$2
8668 echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670 if test "${ac_cv_prog_BISON+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   if test -n "$BISON"; then
8674   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679   IFS=$as_save_IFS
8680   test -z "$as_dir" && as_dir=.
8681   for ac_exec_ext in '' $ac_executable_extensions; do
8682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683     ac_cv_prog_BISON="$ac_prog"
8684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685     break 2
8686   fi
8687 done
8688 done
8689
8690 fi
8691 fi
8692 BISON=$ac_cv_prog_BISON
8693 if test -n "$BISON"; then
8694   echo "$as_me:$LINENO: result: $BISON" >&5
8695 echo "${ECHO_T}$BISON" >&6
8696 else
8697   echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8699 fi
8700
8701   test -n "$BISON" && break
8702 done
8703 test -n "$BISON" || BISON="$MISSING bison"
8704
8705
8706 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8707 # check for build == host before using them.
8708
8709 # NM
8710 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8711   && test -d ../binutils ; then
8712   NM='$(objdir)/../binutils/nm-new'
8713 else
8714   # Extract the first word of "nm", so it can be a program name with args.
8715 set dummy nm; ac_word=$2
8716 echo "$as_me:$LINENO: checking for $ac_word" >&5
8717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8718 if test "${ac_cv_prog_NM+set}" = set; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721   if test -n "$NM"; then
8722   ac_cv_prog_NM="$NM" # Let the user override the test.
8723 else
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727   IFS=$as_save_IFS
8728   test -z "$as_dir" && as_dir=.
8729   for ac_exec_ext in '' $ac_executable_extensions; do
8730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731     ac_cv_prog_NM="nm"
8732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8733     break 2
8734   fi
8735 done
8736 done
8737
8738   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8739 fi
8740 fi
8741 NM=$ac_cv_prog_NM
8742 if test -n "$NM"; then
8743   echo "$as_me:$LINENO: result: $NM" >&5
8744 echo "${ECHO_T}$NM" >&6
8745 else
8746   echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8748 fi
8749
8750 fi
8751
8752 # AR
8753 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8754   && test -d ../binutils ; then
8755   AR='$(objdir)/../binutils/ar'
8756 else
8757   # Extract the first word of "ar", so it can be a program name with args.
8758 set dummy ar; ac_word=$2
8759 echo "$as_me:$LINENO: checking for $ac_word" >&5
8760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8761 if test "${ac_cv_prog_AR+set}" = set; then
8762   echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764   if test -n "$AR"; then
8765   ac_cv_prog_AR="$AR" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8769 do
8770   IFS=$as_save_IFS
8771   test -z "$as_dir" && as_dir=.
8772   for ac_exec_ext in '' $ac_executable_extensions; do
8773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8774     ac_cv_prog_AR="ar"
8775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8776     break 2
8777   fi
8778 done
8779 done
8780
8781   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8782 fi
8783 fi
8784 AR=$ac_cv_prog_AR
8785 if test -n "$AR"; then
8786   echo "$as_me:$LINENO: result: $AR" >&5
8787 echo "${ECHO_T}$AR" >&6
8788 else
8789   echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8791 fi
8792
8793 fi
8794
8795
8796 # --------------------
8797 # Checks for C headers
8798 # --------------------
8799
8800 # Need to reject headers which give warnings, so that the -Werror bootstrap
8801 # works later. *sigh*  This needs to come before all header checks.
8802
8803 ac_c_preproc_warn_flag=yes
8804
8805 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8807 if test "${ac_cv_header_stdc+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h.  */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h.  */
8816 #include <stdlib.h>
8817 #include <stdarg.h>
8818 #include <string.h>
8819 #include <float.h>
8820
8821 int
8822 main ()
8823 {
8824
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831   (eval $ac_compile) 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -z "$ac_c_werror_flag"
8839                          || test ! -s conftest.err'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest.$ac_objext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_header_stdc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_cv_header_stdc=no
8857 fi
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859
8860 if test $ac_cv_header_stdc = yes; then
8861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8862   cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868 #include <string.h>
8869
8870 _ACEOF
8871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872   $EGREP "memchr" >/dev/null 2>&1; then
8873   :
8874 else
8875   ac_cv_header_stdc=no
8876 fi
8877 rm -f conftest*
8878
8879 fi
8880
8881 if test $ac_cv_header_stdc = yes; then
8882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <stdlib.h>
8890
8891 _ACEOF
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893   $EGREP "free" >/dev/null 2>&1; then
8894   :
8895 else
8896   ac_cv_header_stdc=no
8897 fi
8898 rm -f conftest*
8899
8900 fi
8901
8902 if test $ac_cv_header_stdc = yes; then
8903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8904   if test "$cross_compiling" = yes; then
8905   :
8906 else
8907   cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 #include <ctype.h>
8914 #if ((' ' & 0x0FF) == 0x020)
8915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8917 #else
8918 # define ISLOWER(c) \
8919                    (('a' <= (c) && (c) <= 'i') \
8920                      || ('j' <= (c) && (c) <= 'r') \
8921                      || ('s' <= (c) && (c) <= 'z'))
8922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8923 #endif
8924
8925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8926 int
8927 main ()
8928 {
8929   int i;
8930   for (i = 0; i < 256; i++)
8931     if (XOR (islower (i), ISLOWER (i))
8932         || toupper (i) != TOUPPER (i))
8933       exit(2);
8934   exit (0);
8935 }
8936 _ACEOF
8937 rm -f conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939   (eval $ac_link) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   :
8949 else
8950   echo "$as_me: program exited with status $ac_status" >&5
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 ( exit $ac_status )
8955 ac_cv_header_stdc=no
8956 fi
8957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8958 fi
8959 fi
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8963 if test $ac_cv_header_stdc = yes; then
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define STDC_HEADERS 1
8967 _ACEOF
8968
8969 fi
8970
8971 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8972 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8973 if test "${ac_cv_header_time+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #include <sys/types.h>
8983 #include <sys/time.h>
8984 #include <time.h>
8985
8986 int
8987 main ()
8988 {
8989 if ((struct tm *) 0)
8990 return 0;
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997   (eval $ac_compile) 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -z "$ac_c_werror_flag"
9005                          || test ! -s conftest.err'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; } &&
9011          { ac_try='test -s conftest.$ac_objext'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   ac_cv_header_time=yes
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 ac_cv_header_time=no
9023 fi
9024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9027 echo "${ECHO_T}$ac_cv_header_time" >&6
9028 if test $ac_cv_header_time = yes; then
9029
9030 cat >>confdefs.h <<\_ACEOF
9031 #define TIME_WITH_SYS_TIME 1
9032 _ACEOF
9033
9034 fi
9035
9036 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9037 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9038 if test "${gcc_cv_header_string+set}" = set; then
9039   echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041   cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h.  */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h.  */
9047 #include <string.h>
9048 #include <strings.h>
9049 int
9050 main ()
9051 {
9052
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059   (eval $ac_compile) 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -z "$ac_c_werror_flag"
9067                          || test ! -s conftest.err'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; } &&
9073          { ac_try='test -s conftest.$ac_objext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   gcc_cv_header_string=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 gcc_cv_header_string=no
9085 fi
9086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9087 fi
9088 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9089 echo "${ECHO_T}$gcc_cv_header_string" >&6
9090 if test $gcc_cv_header_string = yes; then
9091
9092 cat >>confdefs.h <<\_ACEOF
9093 #define STRING_WITH_STRINGS 1
9094 _ACEOF
9095
9096 fi
9097
9098 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 #include <sys/types.h>
9110 #include <sys/wait.h>
9111 #ifndef WEXITSTATUS
9112 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9113 #endif
9114 #ifndef WIFEXITED
9115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9116 #endif
9117
9118 int
9119 main ()
9120 {
9121   int s;
9122   wait (&s);
9123   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130   (eval $ac_compile) 2>conftest.er1
9131   ac_status=$?
9132   grep -v '^ *+' conftest.er1 >conftest.err
9133   rm -f conftest.er1
9134   cat conftest.err >&5
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } &&
9137          { ac_try='test -z "$ac_c_werror_flag"
9138                          || test ! -s conftest.err'
9139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140   (eval $ac_try) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }; } &&
9144          { ac_try='test -s conftest.$ac_objext'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; }; then
9150   ac_cv_header_sys_wait_h=yes
9151 else
9152   echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155 ac_cv_header_sys_wait_h=no
9156 fi
9157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9161 if test $ac_cv_header_sys_wait_h = yes; then
9162
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_SYS_WAIT_H 1
9165 _ACEOF
9166
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9192                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9193                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9194                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9195 do
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 echo "$as_me:$LINENO: checking for $ac_header" >&5
9198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 #include <$ac_header>
9209 _ACEOF
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } >/dev/null; then
9218   if test -s conftest.err; then
9219     ac_cpp_err=$ac_c_preproc_warn_flag
9220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9221   else
9222     ac_cpp_err=
9223   fi
9224 else
9225   ac_cpp_err=yes
9226 fi
9227 if test -z "$ac_cpp_err"; then
9228   eval "$as_ac_Header=yes"
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233   eval "$as_ac_Header=no"
9234 fi
9235 rm -f conftest.err conftest.$ac_ext
9236 fi
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240   cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242 _ACEOF
9243
9244 fi
9245 done
9246
9247
9248 # Check for thread headers.
9249 echo "$as_me:$LINENO: checking for thread.h" >&5
9250 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9251 if test "${ac_cv_header_thread_h+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260 #include <thread.h>
9261 _ACEOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } >/dev/null; then
9270   if test -s conftest.err; then
9271     ac_cpp_err=$ac_c_preproc_warn_flag
9272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9273   else
9274     ac_cpp_err=
9275   fi
9276 else
9277   ac_cpp_err=yes
9278 fi
9279 if test -z "$ac_cpp_err"; then
9280   ac_cv_header_thread_h=yes
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285   ac_cv_header_thread_h=no
9286 fi
9287 rm -f conftest.err conftest.$ac_ext
9288 fi
9289 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9290 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9291 if test $ac_cv_header_thread_h = yes; then
9292   have_thread_h=yes
9293 else
9294   have_thread_h=
9295 fi
9296
9297 echo "$as_me:$LINENO: checking for pthread.h" >&5
9298 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9299 if test "${ac_cv_header_pthread_h+set}" = set; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 #include <pthread.h>
9309 _ACEOF
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } >/dev/null; then
9318   if test -s conftest.err; then
9319     ac_cpp_err=$ac_c_preproc_warn_flag
9320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9321   else
9322     ac_cpp_err=
9323   fi
9324 else
9325   ac_cpp_err=yes
9326 fi
9327 if test -z "$ac_cpp_err"; then
9328   ac_cv_header_pthread_h=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333   ac_cv_header_pthread_h=no
9334 fi
9335 rm -f conftest.err conftest.$ac_ext
9336 fi
9337 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9339 if test $ac_cv_header_pthread_h = yes; then
9340   have_pthread_h=yes
9341 else
9342   have_pthread_h=
9343 fi
9344
9345
9346 # These tests can't be done till we know if we have limits.h.
9347 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9348 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9349 if test "${gcc_cv_decl_char_bit+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 #ifdef HAVE_LIMITS_H
9359 #include <limits.h>
9360 #endif
9361 #ifdef CHAR_BIT
9362 found
9363 #endif
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366   $EGREP "found" >/dev/null 2>&1; then
9367   gcc_cv_decl_char_bit=yes
9368 else
9369   gcc_cv_decl_char_bit=no
9370 fi
9371 rm -f conftest*
9372
9373
9374 fi
9375 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9376 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9377 if test $gcc_cv_decl_char_bit = no; then
9378   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9379 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9380 if test "${gcc_cv_c_nbby+set}" = set; then
9381   echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383   i=8
9384  gcc_cv_c_nbby=
9385  while test $i -lt 65; do
9386    cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392
9393 int
9394 main ()
9395 {
9396 switch(0) {
9397   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9398   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9399   ; }
9400   ;
9401   return 0;
9402 }
9403 _ACEOF
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406   (eval $ac_compile) 2>conftest.er1
9407   ac_status=$?
9408   grep -v '^ *+' conftest.er1 >conftest.err
9409   rm -f conftest.er1
9410   cat conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -z "$ac_c_werror_flag"
9414                          || test ! -s conftest.err'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; } &&
9420          { ac_try='test -s conftest.$ac_objext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   gcc_cv_c_nbby=$i; break
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 fi
9432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9433    i=`expr $i + 1`
9434  done
9435  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9436
9437 fi
9438 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9439 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9440 if test $gcc_cv_c_nbby = failed; then
9441   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9442 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9443    { (exit 1); exit 1; }; }
9444 else
9445
9446 cat >>confdefs.h <<_ACEOF
9447 #define CHAR_BIT $gcc_cv_c_nbby
9448 _ACEOF
9449
9450 fi
9451 fi
9452 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9453 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9454 if test "${ac_cv_c_bigendian+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   # See if sys/param.h defines the BYTE_ORDER macro.
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464 #include <sys/types.h>
9465 #include <sys/param.h>
9466
9467 int
9468 main ()
9469 {
9470 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9471  bogus endian macros
9472 #endif
9473
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480   (eval $ac_compile) 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -z "$ac_c_werror_flag"
9488                          || test ! -s conftest.err'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; } &&
9494          { ac_try='test -s conftest.$ac_objext'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   # It does; now see whether it defined to BIG_ENDIAN or not.
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <sys/types.h>
9508 #include <sys/param.h>
9509
9510 int
9511 main ()
9512 {
9513 #if BYTE_ORDER != BIG_ENDIAN
9514  not big endian
9515 #endif
9516
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523   (eval $ac_compile) 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } &&
9530          { ac_try='test -z "$ac_c_werror_flag"
9531                          || test ! -s conftest.err'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; } &&
9537          { ac_try='test -s conftest.$ac_objext'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   ac_cv_c_bigendian=yes
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_c_bigendian=no
9549 fi
9550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 # It does not; compile a test program.
9556 if test "$cross_compiling" = yes; then
9557   # try to guess the endianness by grepping values into an object file
9558   ac_cv_c_bigendian=unknown
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9566 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9567 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9568 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9569 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9570 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9571 int
9572 main ()
9573 {
9574  _ascii (); _ebcdic ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581   (eval $ac_compile) 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } &&
9588          { ac_try='test -z "$ac_c_werror_flag"
9589                          || test ! -s conftest.err'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; } &&
9595          { ac_try='test -s conftest.$ac_objext'
9596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597   (eval $ac_try) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9602   ac_cv_c_bigendian=yes
9603 fi
9604 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9605   if test "$ac_cv_c_bigendian" = unknown; then
9606     ac_cv_c_bigendian=no
9607   else
9608     # finding both strings is unlikely to happen, but who knows?
9609     ac_cv_c_bigendian=unknown
9610   fi
9611 fi
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 fi
9617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9618 else
9619   cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 int
9626 main ()
9627 {
9628   /* Are we little or big endian?  From Harbison&Steele.  */
9629   union
9630   {
9631     long l;
9632     char c[sizeof (long)];
9633   } u;
9634   u.l = 1;
9635   exit (u.c[sizeof (long) - 1] == 1);
9636 }
9637 _ACEOF
9638 rm -f conftest$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640   (eval $ac_link) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   ac_cv_c_bigendian=no
9650 else
9651   echo "$as_me: program exited with status $ac_status" >&5
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ( exit $ac_status )
9656 ac_cv_c_bigendian=yes
9657 fi
9658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9659 fi
9660 fi
9661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 fi
9663 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9665 case $ac_cv_c_bigendian in
9666   yes)
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define WORDS_BIGENDIAN 1
9670 _ACEOF
9671  ;;
9672   no)
9673      ;;
9674   *)
9675     { { echo "$as_me:$LINENO: error: unknown endianness
9676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9677 echo "$as_me: error: unknown endianness
9678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9679    { (exit 1); exit 1; }; } ;;
9680 esac
9681
9682
9683 # --------
9684 # UNSORTED
9685 # --------
9686
9687
9688 # These libraries may be used by collect2.
9689 # We may need a special search path to get them linked.
9690 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9691 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9692 if test "${gcc_cv_collect2_libs+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   save_LIBS="$LIBS"
9696 for libs in '' -lld -lmld \
9697                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9698                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9699 do
9700         LIBS="$libs"
9701         cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707
9708 /* Override any gcc2 internal prototype to avoid an error.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 /* We use char because int might match the return type of a gcc2
9713    builtin and then its argument prototype would still apply.  */
9714 char ldopen ();
9715 int
9716 main ()
9717 {
9718 ldopen ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag"
9733                          || test ! -s conftest.err'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   gcc_cv_collect2_libs="$libs"; break
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 fi
9751 rm -f conftest.err conftest.$ac_objext \
9752       conftest$ac_exeext conftest.$ac_ext
9753 done
9754 LIBS="$save_LIBS"
9755 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9756 fi
9757 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9758 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9759 case $gcc_cv_collect2_libs in
9760         "none required")        ;;
9761         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9762 esac
9763
9764
9765 # When building Ada code on Alpha, we need exc_resume which is usually in
9766 # -lexc.  So test for it.
9767 save_LIBS="$LIBS"
9768 LIBS=
9769 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9770 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9771 if test "${ac_cv_search_exc_resume+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   ac_func_search_save_LIBS=$LIBS
9775 ac_cv_search_exc_resume=no
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any gcc2 internal prototype to avoid an error.  */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 /* We use char because int might match the return type of a gcc2
9788    builtin and then its argument prototype would still apply.  */
9789 char exc_resume ();
9790 int
9791 main ()
9792 {
9793 exc_resume ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800   (eval $ac_link) 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } &&
9807          { ac_try='test -z "$ac_c_werror_flag"
9808                          || test ! -s conftest.err'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_search_exc_resume="none required"
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 fi
9826 rm -f conftest.err conftest.$ac_objext \
9827       conftest$ac_exeext conftest.$ac_ext
9828 if test "$ac_cv_search_exc_resume" = no; then
9829   for ac_lib in exc; do
9830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9831     cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any gcc2 internal prototype to avoid an error.  */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 /* We use char because int might match the return type of a gcc2
9843    builtin and then its argument prototype would still apply.  */
9844 char exc_resume ();
9845 int
9846 main ()
9847 {
9848 exc_resume ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855   (eval $ac_link) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_search_exc_resume="-l$ac_lib"
9876 break
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 fi
9882 rm -f conftest.err conftest.$ac_objext \
9883       conftest$ac_exeext conftest.$ac_ext
9884   done
9885 fi
9886 LIBS=$ac_func_search_save_LIBS
9887 fi
9888 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9889 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9890 if test "$ac_cv_search_exc_resume" != no; then
9891   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9892
9893 fi
9894
9895 GNAT_LIBEXC="$LIBS"
9896 LIBS="$save_LIBS"
9897
9898
9899 # Some systems put ldexp and frexp in libm instead of libc; assume
9900 # they're both in the same place.  jcf-dump needs them.
9901 save_LIBS="$LIBS"
9902 LIBS=
9903 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9904 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9905 if test "${ac_cv_search_ldexp+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_func_search_save_LIBS=$LIBS
9909 ac_cv_search_ldexp=no
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any gcc2 internal prototype to avoid an error.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 /* We use char because int might match the return type of a gcc2
9922    builtin and then its argument prototype would still apply.  */
9923 char ldexp ();
9924 int
9925 main ()
9926 {
9927 ldexp ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest$ac_exeext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_search_ldexp="none required"
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 fi
9960 rm -f conftest.err conftest.$ac_objext \
9961       conftest$ac_exeext conftest.$ac_ext
9962 if test "$ac_cv_search_ldexp" = no; then
9963   for ac_lib in m; do
9964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9965     cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any gcc2 internal prototype to avoid an error.  */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char ldexp ();
9979 int
9980 main ()
9981 {
9982 ldexp ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989   (eval $ac_link) 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -z "$ac_c_werror_flag"
9997                          || test ! -s conftest.err'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_cv_search_ldexp="-l$ac_lib"
10010 break
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 fi
10016 rm -f conftest.err conftest.$ac_objext \
10017       conftest$ac_exeext conftest.$ac_ext
10018   done
10019 fi
10020 LIBS=$ac_func_search_save_LIBS
10021 fi
10022 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10023 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10024 if test "$ac_cv_search_ldexp" != no; then
10025   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10026
10027 fi
10028
10029 LDEXP_LIB="$LIBS"
10030 LIBS="$save_LIBS"
10031
10032
10033 # Use <inttypes.h> only if it exists,
10034 # doesn't clash with <sys/types.h>, and declares intmax_t.
10035 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10036 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10037 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 #include <sys/types.h>
10047 #include <inttypes.h>
10048 int
10049 main ()
10050 {
10051 intmax_t i = -1;
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058   (eval $ac_compile) 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -z "$ac_c_werror_flag"
10066                          || test ! -s conftest.err'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; } &&
10072          { ac_try='test -s conftest.$ac_objext'
10073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074   (eval $ac_try) 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   gcc_cv_header_inttypes_h=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 gcc_cv_header_inttypes_h=no
10084 fi
10085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10086 fi
10087
10088 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10089 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10090 if test $gcc_cv_header_inttypes_h = yes; then
10091
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_INTTYPES_H 1
10094 _ACEOF
10095
10096 fi
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
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10134         sysconf strsignal getrusage nl_langinfo \
10135         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10136         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
10137 do
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_var+set}\" = set"; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10152 #define $ac_func innocuous_$ac_func
10153
10154 /* System header to define __stub macros and hopefully few prototypes,
10155     which can conflict with char $ac_func (); below.
10156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157     <limits.h> exists even on freestanding compilers.  */
10158
10159 #ifdef __STDC__
10160 # include <limits.h>
10161 #else
10162 # include <assert.h>
10163 #endif
10164
10165 #undef $ac_func
10166
10167 /* Override any gcc2 internal prototype to avoid an error.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 {
10171 #endif
10172 /* We use char because int might match the return type of a gcc2
10173    builtin and then its argument prototype would still apply.  */
10174 char $ac_func ();
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10179 choke me
10180 #else
10181 char (*f) () = $ac_func;
10182 #endif
10183 #ifdef __cplusplus
10184 }
10185 #endif
10186
10187 int
10188 main ()
10189 {
10190 return f != $ac_func;
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197   (eval $ac_link) 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag"
10205                          || test ! -s conftest.err'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; } &&
10211          { ac_try='test -s conftest$ac_exeext'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   eval "$as_ac_var=yes"
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 eval "$as_ac_var=no"
10223 fi
10224 rm -f conftest.err conftest.$ac_objext \
10225       conftest$ac_exeext conftest.$ac_ext
10226 fi
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230   cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232 _ACEOF
10233
10234 fi
10235 done
10236
10237
10238 if test x$ac_cv_func_mbstowcs = xyes; then
10239   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10240 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10241 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244       if test "$cross_compiling" = yes; then
10245   gcc_cv_func_mbstowcs_works=yes
10246 else
10247   cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 #include <stdlib.h>
10254 int main()
10255 {
10256   mbstowcs(0, "", 0);
10257   return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262   (eval $ac_link) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267   (eval $ac_try) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271   gcc_cv_func_mbstowcs_works=yes
10272 else
10273   echo "$as_me: program exited with status $ac_status" >&5
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ( exit $ac_status )
10278 gcc_cv_func_mbstowcs_works=no
10279 fi
10280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10281 fi
10282 fi
10283 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10284 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10285   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_WORKING_MBSTOWCS 1
10289 _ACEOF
10290
10291   fi
10292 fi
10293
10294 echo "$as_me:$LINENO: checking for ssize_t" >&5
10295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10296 if test "${ac_cv_type_ssize_t+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299   cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305 $ac_includes_default
10306 int
10307 main ()
10308 {
10309 if ((ssize_t *) 0)
10310   return 0;
10311 if (sizeof (ssize_t))
10312   return 0;
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319   (eval $ac_compile) 2>conftest.er1
10320   ac_status=$?
10321   grep -v '^ *+' conftest.er1 >conftest.err
10322   rm -f conftest.er1
10323   cat conftest.err >&5
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -z "$ac_c_werror_flag"
10327                          || test ! -s conftest.err'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; } &&
10333          { ac_try='test -s conftest.$ac_objext'
10334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335   (eval $ac_try) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   ac_cv_type_ssize_t=yes
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 ac_cv_type_ssize_t=no
10345 fi
10346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10347 fi
10348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10350 if test $ac_cv_type_ssize_t = yes; then
10351   :
10352 else
10353
10354 cat >>confdefs.h <<_ACEOF
10355 #define ssize_t int
10356 _ACEOF
10357
10358 fi
10359
10360 echo "$as_me:$LINENO: checking for caddr_t" >&5
10361 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10362 if test "${ac_cv_type_caddr_t+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 $ac_includes_default
10372 int
10373 main ()
10374 {
10375 if ((caddr_t *) 0)
10376   return 0;
10377 if (sizeof (caddr_t))
10378   return 0;
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385   (eval $ac_compile) 2>conftest.er1
10386   ac_status=$?
10387   grep -v '^ *+' conftest.er1 >conftest.err
10388   rm -f conftest.er1
10389   cat conftest.err >&5
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } &&
10392          { ac_try='test -z "$ac_c_werror_flag"
10393                          || test ! -s conftest.err'
10394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395   (eval $ac_try) 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; } &&
10399          { ac_try='test -s conftest.$ac_objext'
10400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401   (eval $ac_try) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   ac_cv_type_caddr_t=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_type_caddr_t=no
10411 fi
10412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10413 fi
10414 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10416 if test $ac_cv_type_caddr_t = yes; then
10417   :
10418 else
10419
10420 cat >>confdefs.h <<_ACEOF
10421 #define caddr_t char *
10422 _ACEOF
10423
10424 fi
10425
10426
10427
10428 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10429 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 #include <sys/mman.h>
10440 _ACEOF
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } >/dev/null; then
10449   if test -s conftest.err; then
10450     ac_cpp_err=$ac_c_preproc_warn_flag
10451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10452   else
10453     ac_cpp_err=
10454   fi
10455 else
10456   ac_cpp_err=yes
10457 fi
10458 if test -z "$ac_cpp_err"; then
10459   ac_cv_header_sys_mman_h=yes
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464   ac_cv_header_sys_mman_h=no
10465 fi
10466 rm -f conftest.err conftest.$ac_ext
10467 fi
10468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10469 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10470 if test $ac_cv_header_sys_mman_h = yes; then
10471   gcc_header_sys_mman_h=yes
10472 else
10473   gcc_header_sys_mman_h=no
10474 fi
10475
10476 echo "$as_me:$LINENO: checking for mmap" >&5
10477 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10478 if test "${ac_cv_func_mmap+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h.  */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h.  */
10487 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10489 #define mmap innocuous_mmap
10490
10491 /* System header to define __stub macros and hopefully few prototypes,
10492     which can conflict with char mmap (); below.
10493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494     <limits.h> exists even on freestanding compilers.  */
10495
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10501
10502 #undef mmap
10503
10504 /* Override any gcc2 internal prototype to avoid an error.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 {
10508 #endif
10509 /* We use char because int might match the return type of a gcc2
10510    builtin and then its argument prototype would still apply.  */
10511 char mmap ();
10512 /* The GNU C library defines this for functions which it implements
10513     to always fail with ENOSYS.  Some functions are actually named
10514     something starting with __ and the normal name is an alias.  */
10515 #if defined (__stub_mmap) || defined (__stub___mmap)
10516 choke me
10517 #else
10518 char (*f) () = mmap;
10519 #endif
10520 #ifdef __cplusplus
10521 }
10522 #endif
10523
10524 int
10525 main ()
10526 {
10527 return f != mmap;
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534   (eval $ac_link) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } &&
10541          { ac_try='test -z "$ac_c_werror_flag"
10542                          || test ! -s conftest.err'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; } &&
10548          { ac_try='test -s conftest$ac_exeext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   ac_cv_func_mmap=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 ac_cv_func_mmap=no
10560 fi
10561 rm -f conftest.err conftest.$ac_objext \
10562       conftest$ac_exeext conftest.$ac_ext
10563 fi
10564 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10565 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10566 if test $ac_cv_func_mmap = yes; then
10567   gcc_func_mmap=yes
10568 else
10569   gcc_func_mmap=no
10570 fi
10571
10572 if test "$gcc_header_sys_mman_h" != yes \
10573  || test "$gcc_func_mmap" != yes; then
10574    gcc_cv_func_mmap_file=no
10575    gcc_cv_func_mmap_dev_zero=no
10576    gcc_cv_func_mmap_anon=no
10577 else
10578    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10579 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10580 if test "${gcc_cv_func_mmap_file+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   # Add a system to this blacklist if
10584    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10585    # memory area containing the same data that you'd get if you applied
10586    # read() to the same fd.  The only system known to have a problem here
10587    # is VMS, where text files have record structure.
10588    case "$host_os" in
10589      vms* | ultrix*)
10590         gcc_cv_func_mmap_file=no ;;
10591      *)
10592         gcc_cv_func_mmap_file=yes;;
10593    esac
10594 fi
10595 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10596 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10597    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10598 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10599 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602   # Add a system to this blacklist if it has mmap() but /dev/zero
10603    # does not exist, or if mmapping /dev/zero does not give anonymous
10604    # zeroed pages with both the following properties:
10605    # 1. If you map N consecutive pages in with one call, and then
10606    #    unmap any subset of those pages, the pages that were not
10607    #    explicitly unmapped remain accessible.
10608    # 2. If you map two adjacent blocks of memory and then unmap them
10609    #    both at once, they must both go away.
10610    # Systems known to be in this category are Windows (all variants),
10611    # VMS, and Darwin.
10612    case "$host_os" in
10613      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10614         gcc_cv_func_mmap_dev_zero=no ;;
10615      *)
10616         gcc_cv_func_mmap_dev_zero=yes;;
10617    esac
10618 fi
10619 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10620 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10621
10622    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10623    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10624 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10625 if test "${gcc_cv_decl_map_anon+set}" = set; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628   cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h.  */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h.  */
10634 #include <sys/types.h>
10635 #include <sys/mman.h>
10636 #include <unistd.h>
10637
10638 #ifndef MAP_ANONYMOUS
10639 #define MAP_ANONYMOUS MAP_ANON
10640 #endif
10641
10642 int
10643 main ()
10644 {
10645 int n = MAP_ANONYMOUS;
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652   (eval $ac_compile) 2>conftest.er1
10653   ac_status=$?
10654   grep -v '^ *+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } &&
10659          { ac_try='test -z "$ac_c_werror_flag"
10660                          || test ! -s conftest.err'
10661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662   (eval $ac_try) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; } &&
10666          { ac_try='test -s conftest.$ac_objext'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }; then
10672   gcc_cv_decl_map_anon=yes
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677 gcc_cv_decl_map_anon=no
10678 fi
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10680 fi
10681 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10682 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10683
10684    if test $gcc_cv_decl_map_anon = no; then
10685      gcc_cv_func_mmap_anon=no
10686    else
10687      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10688 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10689 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10693    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10694    # doesn't give anonymous zeroed pages with the same properties listed
10695    # above for use of /dev/zero.
10696    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10697    case "$host_os" in
10698      vms* | cygwin* | pe | mingw* | sco* | udk* )
10699         gcc_cv_func_mmap_anon=no ;;
10700      *)
10701         gcc_cv_func_mmap_anon=yes;;
10702    esac
10703 fi
10704 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10705 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10706    fi
10707 fi
10708
10709 if test $gcc_cv_func_mmap_file = yes; then
10710
10711 cat >>confdefs.h <<\_ACEOF
10712 #define HAVE_MMAP_FILE 1
10713 _ACEOF
10714
10715 fi
10716 if test $gcc_cv_func_mmap_dev_zero = yes; then
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_MMAP_DEV_ZERO 1
10720 _ACEOF
10721
10722 fi
10723 if test $gcc_cv_func_mmap_anon = yes; then
10724
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_MMAP_ANON 1
10727 _ACEOF
10728
10729 fi
10730
10731
10732 case "${host}" in
10733 *-*-*vms*)
10734   # Under VMS, vfork works very differently than on Unix. The standard test
10735   # won't work, and it isn't easily adaptable. It makes more sense to
10736   # just force it.
10737   ac_cv_func_vfork_works=yes
10738   ;;
10739 esac
10740 echo "$as_me:$LINENO: checking for pid_t" >&5
10741 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10742 if test "${ac_cv_type_pid_t+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751 $ac_includes_default
10752 int
10753 main ()
10754 {
10755 if ((pid_t *) 0)
10756   return 0;
10757 if (sizeof (pid_t))
10758   return 0;
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765   (eval $ac_compile) 2>conftest.er1
10766   ac_status=$?
10767   grep -v '^ *+' conftest.er1 >conftest.err
10768   rm -f conftest.er1
10769   cat conftest.err >&5
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -z "$ac_c_werror_flag"
10773                          || test ! -s conftest.err'
10774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775   (eval $ac_try) 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; } &&
10779          { ac_try='test -s conftest.$ac_objext'
10780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781   (eval $ac_try) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; }; then
10785   ac_cv_type_pid_t=yes
10786 else
10787   echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_type_pid_t=no
10791 fi
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 fi
10794 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10795 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10796 if test $ac_cv_type_pid_t = yes; then
10797   :
10798 else
10799
10800 cat >>confdefs.h <<_ACEOF
10801 #define pid_t int
10802 _ACEOF
10803
10804 fi
10805
10806
10807
10808 for ac_header in unistd.h vfork.h
10809 do
10810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816   cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 #include <$ac_header>
10823 _ACEOF
10824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10826   ac_status=$?
10827   grep -v '^ *+' conftest.er1 >conftest.err
10828   rm -f conftest.er1
10829   cat conftest.err >&5
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } >/dev/null; then
10832   if test -s conftest.err; then
10833     ac_cpp_err=$ac_c_preproc_warn_flag
10834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835   else
10836     ac_cpp_err=
10837   fi
10838 else
10839   ac_cpp_err=yes
10840 fi
10841 if test -z "$ac_cpp_err"; then
10842   eval "$as_ac_Header=yes"
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847   eval "$as_ac_Header=no"
10848 fi
10849 rm -f conftest.err conftest.$ac_ext
10850 fi
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854   cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 _ACEOF
10857
10858 fi
10859 done
10860
10861
10862
10863 for ac_func in fork vfork
10864 do
10865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10868 if eval "test \"\${$as_ac_var+set}\" = set"; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10879 #define $ac_func innocuous_$ac_func
10880
10881 /* System header to define __stub macros and hopefully few prototypes,
10882     which can conflict with char $ac_func (); below.
10883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884     <limits.h> exists even on freestanding compilers.  */
10885
10886 #ifdef __STDC__
10887 # include <limits.h>
10888 #else
10889 # include <assert.h>
10890 #endif
10891
10892 #undef $ac_func
10893
10894 /* Override any gcc2 internal prototype to avoid an error.  */
10895 #ifdef __cplusplus
10896 extern "C"
10897 {
10898 #endif
10899 /* We use char because int might match the return type of a gcc2
10900    builtin and then its argument prototype would still apply.  */
10901 char $ac_func ();
10902 /* The GNU C library defines this for functions which it implements
10903     to always fail with ENOSYS.  Some functions are actually named
10904     something starting with __ and the normal name is an alias.  */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906 choke me
10907 #else
10908 char (*f) () = $ac_func;
10909 #endif
10910 #ifdef __cplusplus
10911 }
10912 #endif
10913
10914 int
10915 main ()
10916 {
10917 return f != $ac_func;
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924   (eval $ac_link) 2>conftest.er1
10925   ac_status=$?
10926   grep -v '^ *+' conftest.er1 >conftest.err
10927   rm -f conftest.er1
10928   cat conftest.err >&5
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -z "$ac_c_werror_flag"
10932                          || test ! -s conftest.err'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; } &&
10938          { ac_try='test -s conftest$ac_exeext'
10939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940   (eval $ac_try) 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; }; then
10944   eval "$as_ac_var=yes"
10945 else
10946   echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 eval "$as_ac_var=no"
10950 fi
10951 rm -f conftest.err conftest.$ac_objext \
10952       conftest$ac_exeext conftest.$ac_ext
10953 fi
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957   cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 _ACEOF
10960
10961 fi
10962 done
10963
10964 if test "x$ac_cv_func_fork" = xyes; then
10965   echo "$as_me:$LINENO: checking for working fork" >&5
10966 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10967 if test "${ac_cv_func_fork_works+set}" = set; then
10968   echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970   if test "$cross_compiling" = yes; then
10971   ac_cv_func_fork_works=cross
10972 else
10973   cat >conftest.$ac_ext <<_ACEOF
10974 /* By Ruediger Kuhlmann. */
10975       #include <sys/types.h>
10976       #if HAVE_UNISTD_H
10977       # include <unistd.h>
10978       #endif
10979       /* Some systems only have a dummy stub for fork() */
10980       int main ()
10981       {
10982         if (fork() < 0)
10983           exit (1);
10984         exit (0);
10985       }
10986 _ACEOF
10987 rm -f conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989   (eval $ac_link) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; }; then
10998   ac_cv_func_fork_works=yes
10999 else
11000   echo "$as_me: program exited with status $ac_status" >&5
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 ( exit $ac_status )
11005 ac_cv_func_fork_works=no
11006 fi
11007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11008 fi
11009 fi
11010 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11011 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11012
11013 else
11014   ac_cv_func_fork_works=$ac_cv_func_fork
11015 fi
11016 if test "x$ac_cv_func_fork_works" = xcross; then
11017   case $host in
11018     *-*-amigaos* | *-*-msdosdjgpp*)
11019       # Override, as these systems have only a dummy fork() stub
11020       ac_cv_func_fork_works=no
11021       ;;
11022     *)
11023       ac_cv_func_fork_works=yes
11024       ;;
11025   esac
11026   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11027 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11028 fi
11029 ac_cv_func_vfork_works=$ac_cv_func_vfork
11030 if test "x$ac_cv_func_vfork" = xyes; then
11031   echo "$as_me:$LINENO: checking for working vfork" >&5
11032 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11033 if test "${ac_cv_func_vfork_works+set}" = set; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   if test "$cross_compiling" = yes; then
11037   ac_cv_func_vfork_works=cross
11038 else
11039   cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 /* Thanks to Paul Eggert for this test.  */
11046 #include <stdio.h>
11047 #include <stdlib.h>
11048 #include <sys/types.h>
11049 #include <sys/stat.h>
11050 #include <sys/wait.h>
11051 #if HAVE_UNISTD_H
11052 # include <unistd.h>
11053 #endif
11054 #if HAVE_VFORK_H
11055 # include <vfork.h>
11056 #endif
11057 /* On some sparc systems, changes by the child to local and incoming
11058    argument registers are propagated back to the parent.  The compiler
11059    is told about this with #include <vfork.h>, but some compilers
11060    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11061    static variable whose address is put into a register that is
11062    clobbered by the vfork.  */
11063 static void
11064 #ifdef __cplusplus
11065 sparc_address_test (int arg)
11066 # else
11067 sparc_address_test (arg) int arg;
11068 #endif
11069 {
11070   static pid_t child;
11071   if (!child) {
11072     child = vfork ();
11073     if (child < 0) {
11074       perror ("vfork");
11075       _exit(2);
11076     }
11077     if (!child) {
11078       arg = getpid();
11079       write(-1, "", 0);
11080       _exit (arg);
11081     }
11082   }
11083 }
11084
11085 int
11086 main ()
11087 {
11088   pid_t parent = getpid ();
11089   pid_t child;
11090
11091   sparc_address_test (0);
11092
11093   child = vfork ();
11094
11095   if (child == 0) {
11096     /* Here is another test for sparc vfork register problems.  This
11097        test uses lots of local variables, at least as many local
11098        variables as main has allocated so far including compiler
11099        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11100        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11101        reuse the register of parent for one of the local variables,
11102        since it will think that parent can't possibly be used any more
11103        in this routine.  Assigning to the local variable will thus
11104        munge parent in the parent process.  */
11105     pid_t
11106       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11107       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11108     /* Convince the compiler that p..p7 are live; otherwise, it might
11109        use the same hardware register for all 8 local variables.  */
11110     if (p != p1 || p != p2 || p != p3 || p != p4
11111         || p != p5 || p != p6 || p != p7)
11112       _exit(1);
11113
11114     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11115        from child file descriptors.  If the child closes a descriptor
11116        before it execs or exits, this munges the parent's descriptor
11117        as well.  Test for this by closing stdout in the child.  */
11118     _exit(close(fileno(stdout)) != 0);
11119   } else {
11120     int status;
11121     struct stat st;
11122
11123     while (wait(&status) != child)
11124       ;
11125     exit(
11126          /* Was there some problem with vforking?  */
11127          child < 0
11128
11129          /* Did the child fail?  (This shouldn't happen.)  */
11130          || status
11131
11132          /* Did the vfork/compiler bug occur?  */
11133          || parent != getpid()
11134
11135          /* Did the file descriptor bug occur?  */
11136          || fstat(fileno(stdout), &st) != 0
11137          );
11138   }
11139 }
11140 _ACEOF
11141 rm -f conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_cv_func_vfork_works=yes
11153 else
11154   echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 ( exit $ac_status )
11159 ac_cv_func_vfork_works=no
11160 fi
11161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11162 fi
11163 fi
11164 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11165 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11166
11167 fi;
11168 if test "x$ac_cv_func_fork_works" = xcross; then
11169   ac_cv_func_vfork_works=$ac_cv_func_vfork
11170   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11171 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11172 fi
11173
11174 if test "x$ac_cv_func_vfork_works" = xyes; then
11175
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_WORKING_VFORK 1
11178 _ACEOF
11179
11180 else
11181
11182 cat >>confdefs.h <<\_ACEOF
11183 #define vfork fork
11184 _ACEOF
11185
11186 fi
11187 if test "x$ac_cv_func_fork_works" = xyes; then
11188
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_WORKING_FORK 1
11191 _ACEOF
11192
11193 fi
11194
11195
11196
11197       if test "X$prefix" = "XNONE"; then
11198     acl_final_prefix="$ac_default_prefix"
11199   else
11200     acl_final_prefix="$prefix"
11201   fi
11202   if test "X$exec_prefix" = "XNONE"; then
11203     acl_final_exec_prefix='${prefix}'
11204   else
11205     acl_final_exec_prefix="$exec_prefix"
11206   fi
11207   acl_save_prefix="$prefix"
11208   prefix="$acl_final_prefix"
11209   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11210   prefix="$acl_save_prefix"
11211
11212
11213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11214 if test "${with_gnu_ld+set}" = set; then
11215   withval="$with_gnu_ld"
11216   test "$withval" = no || with_gnu_ld=yes
11217 else
11218   with_gnu_ld=no
11219 fi;
11220 # Prepare PATH_SEPARATOR.
11221 # The user is always right.
11222 if test "${PATH_SEPARATOR+set}" != set; then
11223   echo "#! /bin/sh" >conf$$.sh
11224   echo  "exit 0"   >>conf$$.sh
11225   chmod +x conf$$.sh
11226   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11227     PATH_SEPARATOR=';'
11228   else
11229     PATH_SEPARATOR=:
11230   fi
11231   rm -f conf$$.sh
11232 fi
11233 ac_prog=ld
11234 if test "$GCC" = yes; then
11235   # Check if gcc -print-prog-name=ld gives a path.
11236   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11237 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11238   case $host in
11239   *-*-mingw*)
11240     # gcc leaves a trailing carriage return which upsets mingw
11241     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11242   *)
11243     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11244   esac
11245   case $ac_prog in
11246     # Accept absolute paths.
11247     [\\/]* | [A-Za-z]:[\\/]*)
11248       re_direlt='/[^/][^/]*/\.\./'
11249       # Canonicalize the path of ld
11250       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11251       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11252         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11253       done
11254       test -z "$LD" && LD="$ac_prog"
11255       ;;
11256   "")
11257     # If it fails, then pretend we aren't using GCC.
11258     ac_prog=ld
11259     ;;
11260   *)
11261     # If it is relative, then search for the first ld in PATH.
11262     with_gnu_ld=unknown
11263     ;;
11264   esac
11265 elif test "$with_gnu_ld" = yes; then
11266   echo "$as_me:$LINENO: checking for GNU ld" >&5
11267 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11268 else
11269   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11270 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11271 fi
11272 if test "${acl_cv_path_LD+set}" = set; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   if test -z "$LD"; then
11276   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11277   for ac_dir in $PATH; do
11278     test -z "$ac_dir" && ac_dir=.
11279     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11280       acl_cv_path_LD="$ac_dir/$ac_prog"
11281       # Check to see if the program is GNU ld.  I'd rather use --version,
11282       # but apparently some GNU ld's only accept -v.
11283       # Break only if it was the GNU/non-GNU ld that we prefer.
11284       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11285         test "$with_gnu_ld" != no && break
11286       else
11287         test "$with_gnu_ld" != yes && break
11288       fi
11289     fi
11290   done
11291   IFS="$ac_save_ifs"
11292 else
11293   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11294 fi
11295 fi
11296
11297 LD="$acl_cv_path_LD"
11298 if test -n "$LD"; then
11299   echo "$as_me:$LINENO: result: $LD" >&5
11300 echo "${ECHO_T}$LD" >&6
11301 else
11302   echo "$as_me:$LINENO: result: no" >&5
11303 echo "${ECHO_T}no" >&6
11304 fi
11305 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11306 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11307    { (exit 1); exit 1; }; }
11308 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11309 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11310 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11314 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11315   acl_cv_prog_gnu_ld=yes
11316 else
11317   acl_cv_prog_gnu_ld=no
11318 fi
11319 fi
11320 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11321 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11322 with_gnu_ld=$acl_cv_prog_gnu_ld
11323
11324
11325
11326                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11327 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11328 if test "${acl_cv_rpath+set}" = set; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331
11332     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11333     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11334     . ./conftest.sh
11335     rm -f ./conftest.sh
11336     acl_cv_rpath=done
11337
11338 fi
11339 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11340 echo "${ECHO_T}$acl_cv_rpath" >&6
11341   wl="$acl_cv_wl"
11342   libext="$acl_cv_libext"
11343   shlibext="$acl_cv_shlibext"
11344   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11345   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11346   hardcode_direct="$acl_cv_hardcode_direct"
11347   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11348     # Check whether --enable-rpath or --disable-rpath was given.
11349 if test "${enable_rpath+set}" = set; then
11350   enableval="$enable_rpath"
11351   :
11352 else
11353   enable_rpath=yes
11354 fi;
11355
11356
11357
11358
11359
11360
11361
11362     use_additional=yes
11363
11364   acl_save_prefix="$prefix"
11365   prefix="$acl_final_prefix"
11366   acl_save_exec_prefix="$exec_prefix"
11367   exec_prefix="$acl_final_exec_prefix"
11368
11369     eval additional_includedir=\"$includedir\"
11370     eval additional_libdir=\"$libdir\"
11371
11372   exec_prefix="$acl_save_exec_prefix"
11373   prefix="$acl_save_prefix"
11374
11375
11376 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11377 if test "${with_libiconv_prefix+set}" = set; then
11378   withval="$with_libiconv_prefix"
11379
11380     if test "X$withval" = "Xno"; then
11381       use_additional=no
11382     else
11383       if test "X$withval" = "X"; then
11384
11385   acl_save_prefix="$prefix"
11386   prefix="$acl_final_prefix"
11387   acl_save_exec_prefix="$exec_prefix"
11388   exec_prefix="$acl_final_exec_prefix"
11389
11390           eval additional_includedir=\"$includedir\"
11391           eval additional_libdir=\"$libdir\"
11392
11393   exec_prefix="$acl_save_exec_prefix"
11394   prefix="$acl_save_prefix"
11395
11396       else
11397         additional_includedir="$withval/include"
11398         additional_libdir="$withval/lib"
11399       fi
11400     fi
11401
11402 fi;
11403       LIBICONV=
11404   LTLIBICONV=
11405   INCICONV=
11406   rpathdirs=
11407   ltrpathdirs=
11408   names_already_handled=
11409   names_next_round='iconv '
11410   while test -n "$names_next_round"; do
11411     names_this_round="$names_next_round"
11412     names_next_round=
11413     for name in $names_this_round; do
11414       already_handled=
11415       for n in $names_already_handled; do
11416         if test "$n" = "$name"; then
11417           already_handled=yes
11418           break
11419         fi
11420       done
11421       if test -z "$already_handled"; then
11422         names_already_handled="$names_already_handled $name"
11423                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11424         eval value=\"\$HAVE_LIB$uppername\"
11425         if test -n "$value"; then
11426           if test "$value" = yes; then
11427             eval value=\"\$LIB$uppername\"
11428             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11429             eval value=\"\$LTLIB$uppername\"
11430             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11431           else
11432                                     :
11433           fi
11434         else
11435                               found_dir=
11436           found_la=
11437           found_so=
11438           found_a=
11439           if test $use_additional = yes; then
11440             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11441               found_dir="$additional_libdir"
11442               found_so="$additional_libdir/lib$name.$shlibext"
11443               if test -f "$additional_libdir/lib$name.la"; then
11444                 found_la="$additional_libdir/lib$name.la"
11445               fi
11446             else
11447               if test -f "$additional_libdir/lib$name.$libext"; then
11448                 found_dir="$additional_libdir"
11449                 found_a="$additional_libdir/lib$name.$libext"
11450                 if test -f "$additional_libdir/lib$name.la"; then
11451                   found_la="$additional_libdir/lib$name.la"
11452                 fi
11453               fi
11454             fi
11455           fi
11456           if test "X$found_dir" = "X"; then
11457             for x in $LDFLAGS $LTLIBICONV; do
11458
11459   acl_save_prefix="$prefix"
11460   prefix="$acl_final_prefix"
11461   acl_save_exec_prefix="$exec_prefix"
11462   exec_prefix="$acl_final_exec_prefix"
11463   eval x=\"$x\"
11464   exec_prefix="$acl_save_exec_prefix"
11465   prefix="$acl_save_prefix"
11466
11467               case "$x" in
11468                 -L*)
11469                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11470                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11471                     found_dir="$dir"
11472                     found_so="$dir/lib$name.$shlibext"
11473                     if test -f "$dir/lib$name.la"; then
11474                       found_la="$dir/lib$name.la"
11475                     fi
11476                   else
11477                     if test -f "$dir/lib$name.$libext"; then
11478                       found_dir="$dir"
11479                       found_a="$dir/lib$name.$libext"
11480                       if test -f "$dir/lib$name.la"; then
11481                         found_la="$dir/lib$name.la"
11482                       fi
11483                     fi
11484                   fi
11485                   ;;
11486               esac
11487               if test "X$found_dir" != "X"; then
11488                 break
11489               fi
11490             done
11491           fi
11492           if test "X$found_dir" != "X"; then
11493                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11494             if test "X$found_so" != "X"; then
11495                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11496                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11497               else
11498                                                                                 haveit=
11499                 for x in $ltrpathdirs; do
11500                   if test "X$x" = "X$found_dir"; then
11501                     haveit=yes
11502                     break
11503                   fi
11504                 done
11505                 if test -z "$haveit"; then
11506                   ltrpathdirs="$ltrpathdirs $found_dir"
11507                 fi
11508                                 if test "$hardcode_direct" = yes; then
11509                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11510                 else
11511                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11512                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11513                                                             haveit=
11514                     for x in $rpathdirs; do
11515                       if test "X$x" = "X$found_dir"; then
11516                         haveit=yes
11517                         break
11518                       fi
11519                     done
11520                     if test -z "$haveit"; then
11521                       rpathdirs="$rpathdirs $found_dir"
11522                     fi
11523                   else
11524                                                                                 haveit=
11525                     for x in $LDFLAGS $LIBICONV; do
11526
11527   acl_save_prefix="$prefix"
11528   prefix="$acl_final_prefix"
11529   acl_save_exec_prefix="$exec_prefix"
11530   exec_prefix="$acl_final_exec_prefix"
11531   eval x=\"$x\"
11532   exec_prefix="$acl_save_exec_prefix"
11533   prefix="$acl_save_prefix"
11534
11535                       if test "X$x" = "X-L$found_dir"; then
11536                         haveit=yes
11537                         break
11538                       fi
11539                     done
11540                     if test -z "$haveit"; then
11541                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11542                     fi
11543                     if test "$hardcode_minus_L" != no; then
11544                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11545                     else
11546                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11547                     fi
11548                   fi
11549                 fi
11550               fi
11551             else
11552               if test "X$found_a" != "X"; then
11553                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11554               else
11555                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11556               fi
11557             fi
11558                         additional_includedir=
11559             case "$found_dir" in
11560               */lib | */lib/)
11561                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11562                 additional_includedir="$basedir/include"
11563                 ;;
11564             esac
11565             if test "X$additional_includedir" != "X"; then
11566                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11567                 haveit=
11568                 if test "X$additional_includedir" = "X/usr/local/include"; then
11569                   if test -n "$GCC"; then
11570                     case $host_os in
11571                       linux*) haveit=yes;;
11572                     esac
11573                   fi
11574                 fi
11575                 if test -z "$haveit"; then
11576                   for x in $CPPFLAGS $INCICONV; do
11577
11578   acl_save_prefix="$prefix"
11579   prefix="$acl_final_prefix"
11580   acl_save_exec_prefix="$exec_prefix"
11581   exec_prefix="$acl_final_exec_prefix"
11582   eval x=\"$x\"
11583   exec_prefix="$acl_save_exec_prefix"
11584   prefix="$acl_save_prefix"
11585
11586                     if test "X$x" = "X-I$additional_includedir"; then
11587                       haveit=yes
11588                       break
11589                     fi
11590                   done
11591                   if test -z "$haveit"; then
11592                     if test -d "$additional_includedir"; then
11593                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11594                     fi
11595                   fi
11596                 fi
11597               fi
11598             fi
11599                         if test -n "$found_la"; then
11600                                                         save_libdir="$libdir"
11601               case "$found_la" in
11602                 */* | *\\*) . "$found_la" ;;
11603                 *) . "./$found_la" ;;
11604               esac
11605               libdir="$save_libdir"
11606                             for dep in $dependency_libs; do
11607                 case "$dep" in
11608                   -L*)
11609                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11610                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11611                       haveit=
11612                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11613                         if test -n "$GCC"; then
11614                           case $host_os in
11615                             linux*) haveit=yes;;
11616                           esac
11617                         fi
11618                       fi
11619                       if test -z "$haveit"; then
11620                         haveit=
11621                         for x in $LDFLAGS $LIBICONV; do
11622
11623   acl_save_prefix="$prefix"
11624   prefix="$acl_final_prefix"
11625   acl_save_exec_prefix="$exec_prefix"
11626   exec_prefix="$acl_final_exec_prefix"
11627   eval x=\"$x\"
11628   exec_prefix="$acl_save_exec_prefix"
11629   prefix="$acl_save_prefix"
11630
11631                           if test "X$x" = "X-L$additional_libdir"; then
11632                             haveit=yes
11633                             break
11634                           fi
11635                         done
11636                         if test -z "$haveit"; then
11637                           if test -d "$additional_libdir"; then
11638                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11639                           fi
11640                         fi
11641                         haveit=
11642                         for x in $LDFLAGS $LTLIBICONV; do
11643
11644   acl_save_prefix="$prefix"
11645   prefix="$acl_final_prefix"
11646   acl_save_exec_prefix="$exec_prefix"
11647   exec_prefix="$acl_final_exec_prefix"
11648   eval x=\"$x\"
11649   exec_prefix="$acl_save_exec_prefix"
11650   prefix="$acl_save_prefix"
11651
11652                           if test "X$x" = "X-L$additional_libdir"; then
11653                             haveit=yes
11654                             break
11655                           fi
11656                         done
11657                         if test -z "$haveit"; then
11658                           if test -d "$additional_libdir"; then
11659                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11660                           fi
11661                         fi
11662                       fi
11663                     fi
11664                     ;;
11665                   -R*)
11666                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11667                     if test "$enable_rpath" != no; then
11668                                                                   haveit=
11669                       for x in $rpathdirs; do
11670                         if test "X$x" = "X$dir"; then
11671                           haveit=yes
11672                           break
11673                         fi
11674                       done
11675                       if test -z "$haveit"; then
11676                         rpathdirs="$rpathdirs $dir"
11677                       fi
11678                                                                   haveit=
11679                       for x in $ltrpathdirs; do
11680                         if test "X$x" = "X$dir"; then
11681                           haveit=yes
11682                           break
11683                         fi
11684                       done
11685                       if test -z "$haveit"; then
11686                         ltrpathdirs="$ltrpathdirs $dir"
11687                       fi
11688                     fi
11689                     ;;
11690                   -l*)
11691                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11692                     ;;
11693                   *.la)
11694                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11695                     ;;
11696                   *)
11697                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11698                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11699                     ;;
11700                 esac
11701               done
11702             fi
11703           else
11704                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11705             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11706           fi
11707         fi
11708       fi
11709     done
11710   done
11711   if test "X$rpathdirs" != "X"; then
11712     if test -n "$hardcode_libdir_separator"; then
11713                         alldirs=
11714       for found_dir in $rpathdirs; do
11715         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11716       done
11717             acl_save_libdir="$libdir"
11718       libdir="$alldirs"
11719       eval flag=\"$hardcode_libdir_flag_spec\"
11720       libdir="$acl_save_libdir"
11721       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11722     else
11723             for found_dir in $rpathdirs; do
11724         acl_save_libdir="$libdir"
11725         libdir="$found_dir"
11726         eval flag=\"$hardcode_libdir_flag_spec\"
11727         libdir="$acl_save_libdir"
11728         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11729       done
11730     fi
11731   fi
11732   if test "X$ltrpathdirs" != "X"; then
11733             for found_dir in $ltrpathdirs; do
11734       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11735     done
11736   fi
11737
11738
11739
11740
11741
11742
11743
11744           am_save_CPPFLAGS="$CPPFLAGS"
11745
11746   for element in $INCICONV; do
11747     haveit=
11748     for x in $CPPFLAGS; do
11749
11750   acl_save_prefix="$prefix"
11751   prefix="$acl_final_prefix"
11752   acl_save_exec_prefix="$exec_prefix"
11753   exec_prefix="$acl_final_exec_prefix"
11754   eval x=\"$x\"
11755   exec_prefix="$acl_save_exec_prefix"
11756   prefix="$acl_save_prefix"
11757
11758       if test "X$x" = "X$element"; then
11759         haveit=yes
11760         break
11761       fi
11762     done
11763     if test -z "$haveit"; then
11764       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11765     fi
11766   done
11767
11768
11769   echo "$as_me:$LINENO: checking for iconv" >&5
11770 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11771 if test "${am_cv_func_iconv+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774
11775     am_cv_func_iconv="no, consider installing GNU libiconv"
11776     am_cv_lib_iconv=no
11777     cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 #include <stdlib.h>
11784 #include <iconv.h>
11785 int
11786 main ()
11787 {
11788 iconv_t cd = iconv_open("","");
11789        iconv(cd,NULL,NULL,NULL,NULL);
11790        iconv_close(cd);
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag"
11805                          || test ! -s conftest.err'
11806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807   (eval $ac_try) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; } &&
11811          { ac_try='test -s conftest$ac_exeext'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; }; then
11817   am_cv_func_iconv=yes
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 fi
11823 rm -f conftest.err conftest.$ac_objext \
11824       conftest$ac_exeext conftest.$ac_ext
11825     if test "$am_cv_func_iconv" != yes; then
11826       am_save_LIBS="$LIBS"
11827       LIBS="$LIBS $LIBICONV"
11828       cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 #include <stdlib.h>
11835 #include <iconv.h>
11836 int
11837 main ()
11838 {
11839 iconv_t cd = iconv_open("","");
11840          iconv(cd,NULL,NULL,NULL,NULL);
11841          iconv_close(cd);
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848   (eval $ac_link) 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -z "$ac_c_werror_flag"
11856                          || test ! -s conftest.err'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; } &&
11862          { ac_try='test -s conftest$ac_exeext'
11863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864   (eval $ac_try) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; }; then
11868   am_cv_lib_iconv=yes
11869         am_cv_func_iconv=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 fi
11875 rm -f conftest.err conftest.$ac_objext \
11876       conftest$ac_exeext conftest.$ac_ext
11877       LIBS="$am_save_LIBS"
11878     fi
11879
11880 fi
11881 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11882 echo "${ECHO_T}$am_cv_func_iconv" >&6
11883   if test "$am_cv_func_iconv" = yes; then
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_ICONV 1
11887 _ACEOF
11888
11889   fi
11890   if test "$am_cv_lib_iconv" = yes; then
11891     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11892 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11893     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11894 echo "${ECHO_T}$LIBICONV" >&6
11895   else
11896             CPPFLAGS="$am_save_CPPFLAGS"
11897     LIBICONV=
11898     LTLIBICONV=
11899   fi
11900
11901
11902
11903   if test "$am_cv_func_iconv" = yes; then
11904     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11905 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11906     if test "${am_cv_proto_iconv+set}" = set; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909
11910       cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916
11917 #include <stdlib.h>
11918 #include <iconv.h>
11919 extern
11920 #ifdef __cplusplus
11921 "C"
11922 #endif
11923 #if defined(__STDC__) || defined(__cplusplus)
11924 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11925 #else
11926 size_t iconv();
11927 #endif
11928
11929 int
11930 main ()
11931 {
11932
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939   (eval $ac_compile) 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag"
11947                          || test ! -s conftest.err'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest.$ac_objext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   am_cv_proto_iconv_arg1=""
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 am_cv_proto_iconv_arg1="const"
11965 fi
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967       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);"
11968 fi
11969
11970     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11971     echo "$as_me:$LINENO: result: ${ac_t:-
11972          }$am_cv_proto_iconv" >&5
11973 echo "${ECHO_T}${ac_t:-
11974          }$am_cv_proto_iconv" >&6
11975
11976 cat >>confdefs.h <<_ACEOF
11977 #define ICONV_CONST $am_cv_proto_iconv_arg1
11978 _ACEOF
11979
11980   fi
11981
11982 # Until we have in-tree GNU iconv:
11983 LIBICONV_DEP=
11984
11985
11986
11987   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11988 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11989 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h.  */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h.  */
11998 #include <locale.h>
11999 int
12000 main ()
12001 {
12002 return LC_MESSAGES
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009   (eval $ac_link) 2>conftest.er1
12010   ac_status=$?
12011   grep -v '^ *+' conftest.er1 >conftest.err
12012   rm -f conftest.er1
12013   cat conftest.err >&5
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } &&
12016          { ac_try='test -z "$ac_c_werror_flag"
12017                          || test ! -s conftest.err'
12018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019   (eval $ac_try) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; } &&
12023          { ac_try='test -s conftest$ac_exeext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   am_cv_val_LC_MESSAGES=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 am_cv_val_LC_MESSAGES=no
12035 fi
12036 rm -f conftest.err conftest.$ac_objext \
12037       conftest$ac_exeext conftest.$ac_ext
12038 fi
12039 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12040 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12041   if test $am_cv_val_LC_MESSAGES = yes; then
12042
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_LC_MESSAGES 1
12045 _ACEOF
12046
12047   fi
12048
12049
12050
12051   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12052 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12053 if test "${am_cv_langinfo_codeset+set}" = set; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h.  */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h.  */
12062 #include <langinfo.h>
12063 int
12064 main ()
12065 {
12066 char* cs = nl_langinfo(CODESET);
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073   (eval $ac_link) 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_c_werror_flag"
12081                          || test ! -s conftest.err'
12082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083   (eval $ac_try) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   am_cv_langinfo_codeset=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 am_cv_langinfo_codeset=no
12099 fi
12100 rm -f conftest.err conftest.$ac_objext \
12101       conftest$ac_exeext conftest.$ac_ext
12102
12103 fi
12104 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12105 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12106   if test $am_cv_langinfo_codeset = yes; then
12107
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_LANGINFO_CODESET 1
12110 _ACEOF
12111
12112   fi
12113
12114
12115 # We will need to find libiberty.h and ansidecl.h
12116 saved_CFLAGS="$CFLAGS"
12117 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
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
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12158         strsignal strstr strverscmp \
12159         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12160         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
12161 do
12162   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12163 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12164 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12165 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 #undef $ac_tr_decl
12175 #define $ac_tr_decl 1
12176
12177 #include "ansidecl.h"
12178 #include "system.h"
12179
12180 int
12181 main ()
12182 {
12183 #ifndef $ac_func
12184 char *(*pfn) = (char *(*)) $ac_func ;
12185 #endif
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192   (eval $ac_compile) 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } &&
12199          { ac_try='test -z "$ac_c_werror_flag"
12200                          || test ! -s conftest.err'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest.$ac_objext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   eval "gcc_cv_have_decl_$ac_func=yes"
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 eval "gcc_cv_have_decl_$ac_func=no"
12218 fi
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 fi
12221
12222 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12223   echo "$as_me:$LINENO: result: yes" >&5
12224 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12225 #define $ac_tr_decl 1
12226 _ACEOF
12227
12228 else
12229   echo "$as_me:$LINENO: result: no" >&5
12230 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12231 #define $ac_tr_decl 0
12232 _ACEOF
12233
12234 fi
12235
12236 done
12237
12238
12239
12240
12241
12242 for ac_func in getrlimit setrlimit getrusage
12243 do
12244   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12245 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12246 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12247 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256 #undef $ac_tr_decl
12257 #define $ac_tr_decl 1
12258
12259 #include "ansidecl.h"
12260 #include "system.h"
12261 #ifdef HAVE_SYS_RESOURCE_H
12262 #include <sys/resource.h>
12263 #endif
12264
12265
12266 int
12267 main ()
12268 {
12269 #ifndef $ac_func
12270 char *(*pfn) = (char *(*)) $ac_func ;
12271 #endif
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278   (eval $ac_compile) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_c_werror_flag"
12286                          || test ! -s conftest.err'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest.$ac_objext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   eval "gcc_cv_have_decl_$ac_func=yes"
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 eval "gcc_cv_have_decl_$ac_func=no"
12304 fi
12305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12306 fi
12307
12308 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12309   echo "$as_me:$LINENO: result: yes" >&5
12310 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12311 #define $ac_tr_decl 1
12312 _ACEOF
12313
12314 else
12315   echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12317 #define $ac_tr_decl 0
12318 _ACEOF
12319
12320 fi
12321
12322 done
12323
12324
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331
12332 #include "ansidecl.h"
12333 #include "system.h"
12334 #ifdef HAVE_SYS_RESOURCE_H
12335 #include <sys/resource.h>
12336 #endif
12337
12338 int
12339 main ()
12340 {
12341 rlim_t l = 0;
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348   (eval $ac_compile) 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag"
12356                          || test ! -s conftest.err'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; } &&
12362          { ac_try='test -s conftest.$ac_objext'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; }; then
12368   :
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373
12374 cat >>confdefs.h <<\_ACEOF
12375 #define rlim_t long
12376 _ACEOF
12377
12378 fi
12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380
12381 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12382 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12383 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12384 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12385
12386 for ac_func in ldgetname
12387 do
12388   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12389 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12390 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12391 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400 #undef $ac_tr_decl
12401 #define $ac_tr_decl 1
12402
12403 #include "ansidecl.h"
12404 #include "system.h"
12405 #ifdef HAVE_LDFCN_H
12406 #undef FREAD
12407 #undef FWRITE
12408 #include <ldfcn.h>
12409 #endif
12410
12411
12412 int
12413 main ()
12414 {
12415 #ifndef $ac_func
12416 char *(*pfn) = (char *(*)) $ac_func ;
12417 #endif
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424   (eval $ac_compile) 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag"
12432                          || test ! -s conftest.err'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; } &&
12438          { ac_try='test -s conftest.$ac_objext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   eval "gcc_cv_have_decl_$ac_func=yes"
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 eval "gcc_cv_have_decl_$ac_func=no"
12450 fi
12451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453
12454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12455   echo "$as_me:$LINENO: result: yes" >&5
12456 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12457 #define $ac_tr_decl 1
12458 _ACEOF
12459
12460 else
12461   echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12463 #define $ac_tr_decl 0
12464 _ACEOF
12465
12466 fi
12467
12468 done
12469
12470
12471
12472 for ac_func in times
12473 do
12474   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12475 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12476 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12477 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 #undef $ac_tr_decl
12487 #define $ac_tr_decl 1
12488
12489 #include "ansidecl.h"
12490 #include "system.h"
12491 #ifdef HAVE_SYS_TIMES_H
12492 #include <sys/times.h>
12493 #endif
12494
12495
12496 int
12497 main ()
12498 {
12499 #ifndef $ac_func
12500 char *(*pfn) = (char *(*)) $ac_func ;
12501 #endif
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"
12516                          || test ! -s conftest.err'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; } &&
12522          { ac_try='test -s conftest.$ac_objext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   eval "gcc_cv_have_decl_$ac_func=yes"
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 eval "gcc_cv_have_decl_$ac_func=no"
12534 fi
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536 fi
12537
12538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12539   echo "$as_me:$LINENO: result: yes" >&5
12540 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12541 #define $ac_tr_decl 1
12542 _ACEOF
12543
12544 else
12545   echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12547 #define $ac_tr_decl 0
12548 _ACEOF
12549
12550 fi
12551
12552 done
12553
12554
12555
12556 for ac_func in sigaltstack
12557 do
12558   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12559 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12560 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12561 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #undef $ac_tr_decl
12571 #define $ac_tr_decl 1
12572
12573 #include "ansidecl.h"
12574 #include "system.h"
12575 #include <signal.h>
12576
12577
12578 int
12579 main ()
12580 {
12581 #ifndef $ac_func
12582 char *(*pfn) = (char *(*)) $ac_func ;
12583 #endif
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590   (eval $ac_compile) 2>conftest.er1
12591   ac_status=$?
12592   grep -v '^ *+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -z "$ac_c_werror_flag"
12598                          || test ! -s conftest.err'
12599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600   (eval $ac_try) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; } &&
12604          { ac_try='test -s conftest.$ac_objext'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   eval "gcc_cv_have_decl_$ac_func=yes"
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 eval "gcc_cv_have_decl_$ac_func=no"
12616 fi
12617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618 fi
12619
12620 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12621   echo "$as_me:$LINENO: result: yes" >&5
12622 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12623 #define $ac_tr_decl 1
12624 _ACEOF
12625
12626 else
12627   echo "$as_me:$LINENO: result: no" >&5
12628 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12629 #define $ac_tr_decl 0
12630 _ACEOF
12631
12632 fi
12633
12634 done
12635
12636
12637 # More time-related stuff.
12638 echo "$as_me:$LINENO: checking for struct tms" >&5
12639 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12640 if test "${ac_cv_struct_tms+set}" = set; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643
12644 cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h.  */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h.  */
12650
12651 #include "ansidecl.h"
12652 #include "system.h"
12653 #ifdef HAVE_SYS_TIMES_H
12654 #include <sys/times.h>
12655 #endif
12656
12657 int
12658 main ()
12659 {
12660 struct tms tms;
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667   (eval $ac_compile) 2>conftest.er1
12668   ac_status=$?
12669   grep -v '^ *+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } &&
12674          { ac_try='test -z "$ac_c_werror_flag"
12675                          || test ! -s conftest.err'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; } &&
12681          { ac_try='test -s conftest.$ac_objext'
12682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683   (eval $ac_try) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; }; then
12687   ac_cv_struct_tms=yes
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 ac_cv_struct_tms=no
12693 fi
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 fi
12696 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12697 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12698 if test $ac_cv_struct_tms = yes; then
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_STRUCT_TMS 1
12702 _ACEOF
12703
12704 fi
12705
12706 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12707 # revisit after autoconf 2.50.
12708 echo "$as_me:$LINENO: checking for clock_t" >&5
12709 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12710 if test "${gcc_cv_type_clock_t+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720
12721 #include "ansidecl.h"
12722 #include "system.h"
12723
12724 int
12725 main ()
12726 {
12727 clock_t x;
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734   (eval $ac_compile) 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } &&
12741          { ac_try='test -z "$ac_c_werror_flag"
12742                          || test ! -s conftest.err'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; } &&
12748          { ac_try='test -s conftest.$ac_objext'
12749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750   (eval $ac_try) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; }; then
12754   gcc_cv_type_clock_t=yes
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 gcc_cv_type_clock_t=no
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 fi
12763 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12764 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12765 if test $gcc_cv_type_clock_t = yes; then
12766
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_CLOCK_T 1
12769 _ACEOF
12770
12771 fi
12772
12773 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12774 CFLAGS="$saved_CFLAGS"
12775
12776 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12777 if test "${enable_initfini_array+set}" = set; then
12778   enableval="$enable_initfini_array"
12779
12780 else
12781
12782 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12783 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12784 if test "${gcc_cv_initfini_array+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787     if test "$cross_compiling" = yes; then
12788   gcc_cv_initfini_array=no
12789 else
12790   cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796
12797 static int x = -1;
12798 int main (void) { return x; }
12799 int foo (void) { x = 0; }
12800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12801 _ACEOF
12802 rm -f conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804   (eval $ac_link) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809   (eval $ac_try) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; }; then
12813   gcc_cv_initfini_array=yes
12814 else
12815   echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ( exit $ac_status )
12820 gcc_cv_initfini_array=no
12821 fi
12822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12823 fi
12824 fi
12825 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12826 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12827   enable_initfini_array=$gcc_cv_initfini_array
12828
12829 fi;
12830 if test $enable_initfini_array = yes; then
12831
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_INITFINI_ARRAY 1
12834 _ACEOF
12835
12836 fi
12837
12838 # mkdir takes a single argument on some systems.
12839 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12840 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12841 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850
12851 #include <sys/types.h>
12852 #ifdef HAVE_SYS_STAT_H
12853 # include <sys/stat.h>
12854 #endif
12855 #ifdef HAVE_UNISTD_H
12856 # include <unistd.h>
12857 #endif
12858 #ifdef HAVE_DIRECT_H
12859 # include <direct.h>
12860 #endif
12861 int
12862 main ()
12863 {
12864 mkdir ("foo", 0);
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871   (eval $ac_compile) 2>conftest.er1
12872   ac_status=$?
12873   grep -v '^ *+' conftest.er1 >conftest.err
12874   rm -f conftest.er1
12875   cat conftest.err >&5
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } &&
12878          { ac_try='test -z "$ac_c_werror_flag"
12879                          || test ! -s conftest.err'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; } &&
12885          { ac_try='test -s conftest.$ac_objext'
12886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887   (eval $ac_try) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; }; then
12891   gcc_cv_mkdir_takes_one_arg=no
12892 else
12893   echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 gcc_cv_mkdir_takes_one_arg=yes
12897 fi
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12901 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12903
12904 cat >>confdefs.h <<\_ACEOF
12905 #define MKDIR_TAKES_ONE_ARG 1
12906 _ACEOF
12907
12908 fi
12909
12910
12911 # File extensions
12912 manext='.1'
12913 objext='.o'
12914
12915
12916
12917 # With Setjmp/Longjmp based exception handling.
12918 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12919 if test "${enable_sjlj_exceptions+set}" = set; then
12920   enableval="$enable_sjlj_exceptions"
12921   case $target in
12922   *-*-hpux10*)
12923     if test $enableval != yes; then
12924       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12925 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12926       enableval=yes
12927     fi
12928     ;;
12929 esac
12930 force_sjlj_exceptions=yes
12931 else
12932   case $target in
12933   *-*-hpux10*)
12934     force_sjlj_exceptions=yes
12935     enableval=yes
12936     ;;
12937   *)
12938     force_sjlj_exceptions=no
12939     ;;
12940 esac
12941 fi;
12942 if test $force_sjlj_exceptions = yes; then
12943   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12944
12945 cat >>confdefs.h <<_ACEOF
12946 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12947 _ACEOF
12948
12949 fi
12950
12951 # For platforms with the unwind ABI which includes an unwind library,
12952 # libunwind, we can choose to use the system libunwind.
12953 # config.gcc also contains tests of with_system_libunwind.
12954
12955
12956 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12957 if test "${with_system_libunwind+set}" = set; then
12958   withval="$with_system_libunwind"
12959
12960 fi;
12961   # If system-libunwind was not specifically set, pick a default setting.
12962   if test x$with_system_libunwind = x; then
12963     case ${target} in
12964       ia64-*-hpux*) with_system_libunwind=yes ;;
12965       *) with_system_libunwind=no ;;
12966     esac
12967   fi
12968   # Based on system-libunwind and target, do we have ipinfo?
12969   if  test x$with_system_libunwind = xyes; then
12970     case ${target} in
12971       ia64-*-*) have_unwind_getipinfo=no ;;
12972       *) have_unwind_getipinfo=yes ;;
12973     esac
12974   else
12975     # Darwin before version 9 does not have _Unwind_GetIPInfo.
12976
12977     case ${target} in
12978       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12979       *) have_unwind_getipinfo=yes ;;
12980     esac
12981
12982   fi
12983
12984   if test x$have_unwind_getipinfo = xyes; then
12985
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_GETIPINFO 1
12988 _ACEOF
12989
12990   fi
12991
12992
12993 # --------------------------------------------------------
12994 # Build, host, and target specific configuration fragments
12995 # --------------------------------------------------------
12996
12997 # Collect build-machine-specific information.
12998 . ${srcdir}/config.build
12999
13000 # Collect host-machine-specific information.
13001 . ${srcdir}/config.host
13002
13003 target_gtfiles=
13004
13005 # Collect target-machine-specific information.
13006 . ${srcdir}/config.gcc
13007
13008 extra_objs="${host_extra_objs} ${extra_objs}"
13009 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13010
13011 # Default the target-machine variables that were not explicitly set.
13012 if test x"$tm_file" = x
13013 then tm_file=$cpu_type/$cpu_type.h; fi
13014
13015 if test x"$extra_headers" = x
13016 then extra_headers=; fi
13017
13018 if test x$md_file = x
13019 then md_file=$cpu_type/$cpu_type.md; fi
13020
13021 if test x$out_file = x
13022 then out_file=$cpu_type/$cpu_type.c; fi
13023
13024 if test x"$tmake_file" = x
13025 then tmake_file=$cpu_type/t-$cpu_type
13026 fi
13027
13028 if test x"$dwarf2" = xyes
13029 then tm_file="$tm_file tm-dwarf2.h"
13030 fi
13031
13032 # Say what files are being used for the output code and MD file.
13033 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13034 echo "Using \`$srcdir/config/$md_file' as machine description file."
13035
13036 # If any of the xm_file variables contain nonexistent files, warn
13037 # about them and drop them.
13038
13039 bx=
13040 for x in $build_xm_file; do
13041   if    test -f $srcdir/config/$x
13042   then      bx="$bx $x"
13043   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13044 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13045   fi
13046 done
13047 build_xm_file="$bx"
13048
13049 hx=
13050 for x in $host_xm_file; do
13051   if    test -f $srcdir/config/$x
13052   then      hx="$hx $x"
13053   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13054 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13055   fi
13056 done
13057 host_xm_file="$hx"
13058
13059 tx=
13060 for x in $xm_file; do
13061   if    test -f $srcdir/config/$x
13062   then      tx="$tx $x"
13063   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13064 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13065   fi
13066 done
13067 xm_file="$tx"
13068
13069 count=a
13070 for f in $tm_file; do
13071         count=${count}x
13072 done
13073 if test $count = ax; then
13074         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13075 else
13076         echo "Using the following target machine macro files:"
13077         for f in $tm_file; do
13078                 echo "  $srcdir/config/$f"
13079         done
13080 fi
13081
13082 if test x$need_64bit_hwint = xyes; then
13083
13084 cat >>confdefs.h <<\_ACEOF
13085 #define NEED_64BIT_HOST_WIDE_INT 1
13086 _ACEOF
13087
13088 fi
13089
13090 if test x$use_long_long_for_widest_fast_int = xyes; then
13091
13092 cat >>confdefs.h <<\_ACEOF
13093 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13094 _ACEOF
13095
13096 fi
13097
13098 count=a
13099 for f in $host_xm_file; do
13100         count=${count}x
13101 done
13102 if test $count = a; then
13103         :
13104 elif test $count = ax; then
13105         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13106 else
13107         echo "Using the following host machine macro files:"
13108         for f in $host_xm_file; do
13109                 echo "  $srcdir/config/$f"
13110         done
13111 fi
13112 echo "Using ${out_host_hook_obj} for host machine hooks."
13113
13114 if test "$host_xm_file" != "$build_xm_file"; then
13115         count=a
13116         for f in $build_xm_file; do
13117                 count=${count}x
13118         done
13119         if test $count = a; then
13120                 :
13121         elif test $count = ax; then
13122                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13123         else
13124                 echo "Using the following build machine macro files:"
13125                 for f in $build_xm_file; do
13126                         echo "  $srcdir/config/$f"
13127                 done
13128         fi
13129 fi
13130
13131 case ${host} in
13132   powerpc*-*-darwin*)
13133     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13134 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13135 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138   cat >conftest.$ac_ext <<_ACEOF
13139
13140 #include <sys/cdefs.h>
13141 #include <sys/signal.h>
13142 #include <ucontext.h>
13143 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13144
13145 _ACEOF
13146 rm -f conftest.$ac_objext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148   (eval $ac_compile) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag"
13156                          || test ! -s conftest.err'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest.$ac_objext'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   gcc_cv_mcontext_underscores=no
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 gcc_cv_mcontext_underscores=yes
13174 fi
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176 fi
13177 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13178 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13179       if test $gcc_cv_mcontext_underscores = yes; then
13180
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAS_MCONTEXT_T_UNDERSCORES
13183 _ACEOF
13184
13185       fi
13186     ;;
13187 esac
13188
13189 # ---------
13190 # Threading
13191 # ---------
13192
13193 # Check if a valid thread package
13194 case ${enable_threads} in
13195   "" | no)
13196     # No threads
13197     target_thread_file='single'
13198     ;;
13199   yes)
13200     # default
13201     target_thread_file='single'
13202     ;;
13203   aix | dce | gnat | irix | posix | posix95 | rtems | \
13204   single | solaris | vxworks | win32 | mipssde)
13205     target_thread_file=${enable_threads}
13206     ;;
13207   *)
13208     echo "${enable_threads} is an unknown thread package" 1>&2
13209     exit 1
13210     ;;
13211 esac
13212
13213 if test x${thread_file} = x; then
13214   # No thread file set by target-specific clauses in config.gcc,
13215   # so use file chosen by default logic above
13216   thread_file=${target_thread_file}
13217 fi
13218
13219 # Make gthr-default.h if we have a thread file.
13220 gthread_flags=
13221 if test $thread_file != single; then
13222   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13223   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13224     rm -f gthr-default.h-t
13225   else
13226     mv -f gthr-default.h-t gthr-default.h
13227   fi
13228   gthread_flags=-DHAVE_GTHR_DEFAULT
13229 fi
13230
13231
13232 # --------
13233 # UNSORTED
13234 # --------
13235
13236 use_cxa_atexit=no
13237 if test x$enable___cxa_atexit = xyes || \
13238    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13239   if test x$host = x$target; then
13240     case $host in
13241       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13242       # keyed to flag_use_cxa_atexit
13243       *-*-mingw32*)
13244         use_cxa_atexit=yes
13245         ;;
13246       *)
13247         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13248 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13249 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13250   echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252   cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13260 #define __cxa_atexit innocuous___cxa_atexit
13261
13262 /* System header to define __stub macros and hopefully few prototypes,
13263     which can conflict with char __cxa_atexit (); below.
13264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265     <limits.h> exists even on freestanding compilers.  */
13266
13267 #ifdef __STDC__
13268 # include <limits.h>
13269 #else
13270 # include <assert.h>
13271 #endif
13272
13273 #undef __cxa_atexit
13274
13275 /* Override any gcc2 internal prototype to avoid an error.  */
13276 #ifdef __cplusplus
13277 extern "C"
13278 {
13279 #endif
13280 /* We use char because int might match the return type of a gcc2
13281    builtin and then its argument prototype would still apply.  */
13282 char __cxa_atexit ();
13283 /* The GNU C library defines this for functions which it implements
13284     to always fail with ENOSYS.  Some functions are actually named
13285     something starting with __ and the normal name is an alias.  */
13286 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13287 choke me
13288 #else
13289 char (*f) () = __cxa_atexit;
13290 #endif
13291 #ifdef __cplusplus
13292 }
13293 #endif
13294
13295 int
13296 main ()
13297 {
13298 return f != __cxa_atexit;
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305   (eval $ac_link) 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -z "$ac_c_werror_flag"
13313                          || test ! -s conftest.err'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_func___cxa_atexit=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_cv_func___cxa_atexit=no
13331 fi
13332 rm -f conftest.err conftest.$ac_objext \
13333       conftest$ac_exeext conftest.$ac_ext
13334 fi
13335 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13336 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13337 if test $ac_cv_func___cxa_atexit = yes; then
13338   use_cxa_atexit=yes
13339 else
13340   echo "__cxa_atexit can't be enabled on this target"
13341 fi
13342
13343         ;;
13344     esac
13345   else
13346     # We can't check for __cxa_atexit when building a cross, so assume
13347     # it is available
13348     use_cxa_atexit=yes
13349   fi
13350   if test x$use_cxa_atexit = xyes; then
13351
13352 cat >>confdefs.h <<\_ACEOF
13353 #define DEFAULT_USE_CXA_ATEXIT 2
13354 _ACEOF
13355
13356   fi
13357 fi
13358
13359 # Look for a file containing extra machine modes.
13360 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13361   extra_modes_file='$(srcdir)'/config/${extra_modes}
13362
13363
13364 cat >>confdefs.h <<_ACEOF
13365 #define EXTRA_MODES_FILE "config/$extra_modes"
13366 _ACEOF
13367
13368 fi
13369
13370 # Convert extra_options into a form suitable for Makefile use.
13371 extra_opt_files=
13372 for f in $extra_options; do
13373   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13374 done
13375
13376
13377 # auto-host.h is the file containing items generated by autoconf and is
13378 # the first file included by config.h.
13379 # If host=build, it is correct to have bconfig include auto-host.h
13380 # as well.  If host!=build, we are in error and need to do more
13381 # work to find out the build config parameters.
13382 if test x$host = x$build
13383 then
13384         build_auto=auto-host.h
13385 else
13386         # We create a subdir, then run autoconf in the subdir.
13387         # To prevent recursion we set host and build for the new
13388         # invocation of configure to the build for this invocation
13389         # of configure.
13390         tempdir=build.$$
13391         rm -rf $tempdir
13392         mkdir $tempdir
13393         cd $tempdir
13394         case ${srcdir} in
13395         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13396         *) realsrcdir=../${srcdir};;
13397         esac
13398         saved_CFLAGS="${CFLAGS}"
13399         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13400         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13401         ${realsrcdir}/configure \
13402                 --enable-languages=${enable_languages-all} \
13403                 --target=$target_alias --host=$build_alias --build=$build_alias
13404         CFLAGS="${saved_CFLAGS}"
13405
13406         # We just finished tests for the build machine, so rename
13407         # the file auto-build.h in the gcc directory.
13408         mv auto-host.h ../auto-build.h
13409         cd ..
13410         rm -rf $tempdir
13411         build_auto=auto-build.h
13412 fi
13413
13414
13415 tm_file="${tm_file} defaults.h"
13416 tm_p_file="${tm_p_file} tm-preds.h"
13417 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13418 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13419 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13420 # put this back in temporarily.
13421 xm_file="auto-host.h ansidecl.h ${xm_file}"
13422
13423 # --------
13424 # UNSORTED
13425 # --------
13426
13427 # Compile in configure arguments.
13428 if test -f configargs.h ; then
13429         # Being re-configured.
13430         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13431         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13432 else
13433         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13434 fi
13435
13436 # Double all backslashes and backslash all quotes to turn
13437 # gcc_config_arguments into a C string.
13438 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13439 $gcc_config_arguments
13440 EOF
13441 gcc_config_arguments_str=`cat conftest.out`
13442 rm -f conftest.out
13443
13444 cat > configargs.h <<EOF
13445 /* Generated automatically. */
13446 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13447 static const char thread_model[] = "$thread_file";
13448
13449 static const struct {
13450   const char *name, *value;
13451 } configure_default_options[] = $configure_default_options;
13452 EOF
13453
13454 gcc_BASEVER=$(cat $srcdir/BASE-VER)
13455 gcc_DEVPHASE=$(cat $srcdir/DEV-PHASE)
13456 gcc_DATESTAMP=$(cat $srcdir/DATESTAMP)
13457 if test -f $srcdir/REVISION ; then
13458         gcc_REVISION=$(cat $srcdir/REVISION)
13459 else
13460         gcc_REVISION=""
13461 fi
13462 cat > plugin-version.h <<EOF
13463 #include "configargs.h"
13464
13465 static char basever[] = "$gcc_BASEVER";
13466 static char datestamp[] = "$gcc_DATESTAMP";
13467 static char devphase[] = "$gcc_DEVPHASE";
13468 static char revision[] = "$gcc_REVISION";
13469
13470 /* FIXME plugins: We should make the version information more precise.
13471    One way to do is to add a checksum. */
13472
13473 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13474                                                 devphase, revision,
13475                                                 configuration_arguments};
13476 EOF
13477
13478 # Internationalization
13479 # If we haven't got the data from the intl directory,
13480 # assume NLS is disabled.
13481 USE_NLS=no
13482 LIBINTL=
13483 LIBINTL_DEP=
13484 INCINTL=
13485 XGETTEXT=
13486 GMSGFMT=
13487 POSUB=
13488
13489 if test -f  ../intl/config.intl; then
13490   .  ../intl/config.intl
13491 fi
13492 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13493 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13494 if test x"$USE_NLS" != xyes; then
13495   echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6
13497 else
13498   echo "$as_me:$LINENO: result: yes" >&5
13499 echo "${ECHO_T}yes" >&6
13500
13501 cat >>confdefs.h <<\_ACEOF
13502 #define ENABLE_NLS 1
13503 _ACEOF
13504
13505
13506   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13507 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13508   # Look for .po and .gmo files in the source directory.
13509   CATALOGS=
13510   XLINGUAS=
13511   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13512     # If there aren't any .gmo files the shell will give us the
13513     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13514     # weeded out.
13515     case "$cat" in *\**)
13516       continue;;
13517     esac
13518     # The quadruple backslash is collapsed to a double backslash
13519     # by the backticks, then collapsed again by the double quotes,
13520     # leaving us with one backslash in the sed expression (right
13521     # before the dot that mustn't act as a wildcard).
13522     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13523     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13524     # The user is allowed to set LINGUAS to a list of languages to
13525     # install catalogs for.  If it's empty that means "all of them."
13526     if test "x$LINGUAS" = x; then
13527       CATALOGS="$CATALOGS $cat"
13528       XLINGUAS="$XLINGUAS $lang"
13529     else
13530       case "$LINGUAS" in *$lang*)
13531         CATALOGS="$CATALOGS $cat"
13532         XLINGUAS="$XLINGUAS $lang"
13533         ;;
13534       esac
13535     fi
13536   done
13537   LINGUAS="$XLINGUAS"
13538   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13539 echo "${ECHO_T}$LINGUAS" >&6
13540
13541
13542     DATADIRNAME=share
13543
13544   INSTOBJEXT=.mo
13545
13546   GENCAT=gencat
13547
13548   CATOBJEXT=.gmo
13549
13550 fi
13551
13552 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13553 # -liconv on the link line twice.
13554 case "$LIBINTL" in *$LIBICONV*)
13555         LIBICONV= ;;
13556 esac
13557
13558 # Check whether --enable-secureplt or --disable-secureplt was given.
13559 if test "${enable_secureplt+set}" = set; then
13560   enableval="$enable_secureplt"
13561
13562 fi;
13563
13564 # Check whether --enable-cld or --disable-cld was given.
13565 if test "${enable_cld+set}" = set; then
13566   enableval="$enable_cld"
13567
13568 else
13569   enable_cld=no
13570 fi;
13571
13572 # Windows32 Registry support for specifying GCC installation paths.
13573 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13574 if test "${enable_win32_registry+set}" = set; then
13575   enableval="$enable_win32_registry"
13576
13577 fi;
13578
13579 case $host_os in
13580   win32 | pe | cygwin* | mingw32* | uwin*)
13581     if test "x$enable_win32_registry" != xno; then
13582       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13583 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13584 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587   ac_func_search_save_LIBS=$LIBS
13588 ac_cv_search_RegOpenKeyExA=no
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595
13596 /* Override any gcc2 internal prototype to avoid an error.  */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 /* We use char because int might match the return type of a gcc2
13601    builtin and then its argument prototype would still apply.  */
13602 char RegOpenKeyExA ();
13603 int
13604 main ()
13605 {
13606 RegOpenKeyExA ();
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613   (eval $ac_link) 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } &&
13620          { ac_try='test -z "$ac_c_werror_flag"
13621                          || test ! -s conftest.err'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; } &&
13627          { ac_try='test -s conftest$ac_exeext'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_cv_search_RegOpenKeyExA="none required"
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 fi
13639 rm -f conftest.err conftest.$ac_objext \
13640       conftest$ac_exeext conftest.$ac_ext
13641 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13642   for ac_lib in advapi32; do
13643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13644     cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650
13651 /* Override any gcc2 internal prototype to avoid an error.  */
13652 #ifdef __cplusplus
13653 extern "C"
13654 #endif
13655 /* We use char because int might match the return type of a gcc2
13656    builtin and then its argument prototype would still apply.  */
13657 char RegOpenKeyExA ();
13658 int
13659 main ()
13660 {
13661 RegOpenKeyExA ();
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668   (eval $ac_link) 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_c_werror_flag"
13676                          || test ! -s conftest.err'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; } &&
13682          { ac_try='test -s conftest$ac_exeext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13689 break
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 fi
13695 rm -f conftest.err conftest.$ac_objext \
13696       conftest$ac_exeext conftest.$ac_ext
13697   done
13698 fi
13699 LIBS=$ac_func_search_save_LIBS
13700 fi
13701 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13702 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13703 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13704   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13705
13706 else
13707   enable_win32_registry=no
13708 fi
13709
13710     fi
13711
13712     if test "x$enable_win32_registry" != xno; then
13713
13714 cat >>confdefs.h <<\_ACEOF
13715 #define ENABLE_WIN32_REGISTRY 1
13716 _ACEOF
13717
13718
13719       if test "x$enable_win32_registry" != xyes \
13720          && test "x$enable_win32_registry" != x; then
13721
13722 cat >>confdefs.h <<_ACEOF
13723 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13724 _ACEOF
13725
13726       fi
13727     fi
13728   ;;
13729 esac
13730
13731 # Get an absolute path to the GCC top-level source directory
13732 holddir=`${PWDCMD-pwd}`
13733 cd $srcdir
13734 topdir=`${PWDCMD-pwd}`
13735 cd $holddir
13736
13737 # Conditionalize the makefile for this host machine.
13738 xmake_file=
13739 for f in ${host_xmake_file}
13740 do
13741         if test -f ${srcdir}/config/$f
13742         then
13743                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13744         fi
13745 done
13746
13747 # Conditionalize the makefile for this target machine.
13748 tmake_file_=
13749 for f in ${tmake_file}
13750 do
13751         if test -f ${srcdir}/config/$f
13752         then
13753                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13754         fi
13755 done
13756 tmake_file="${tmake_file_}"
13757
13758 out_object_file=`basename $out_file .c`.o
13759
13760 tm_file_list="options.h"
13761 tm_include_list="options.h"
13762 for f in $tm_file; do
13763   case $f in
13764     ./* )
13765        f=`echo $f | sed 's/^..//'`
13766        tm_file_list="${tm_file_list} $f"
13767        tm_include_list="${tm_include_list} $f"
13768        ;;
13769     defaults.h )
13770        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13771        tm_include_list="${tm_include_list} $f"
13772        ;;
13773     * )
13774        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13775        tm_include_list="${tm_include_list} config/$f"
13776        ;;
13777   esac
13778 done
13779
13780 tm_p_file_list=
13781 tm_p_include_list=
13782 for f in $tm_p_file; do
13783   case $f in
13784     tm-preds.h )
13785        tm_p_file_list="${tm_p_file_list} $f"
13786        tm_p_include_list="${tm_p_include_list} $f"
13787        ;;
13788     * )
13789        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13790        tm_p_include_list="${tm_p_include_list} config/$f"
13791   esac
13792 done
13793
13794 xm_file_list=
13795 xm_include_list=
13796 for f in $xm_file; do
13797   case $f in
13798     ansidecl.h )
13799        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13800        xm_include_list="${xm_include_list} $f"
13801        ;;
13802     auto-host.h )
13803        xm_file_list="${xm_file_list} $f"
13804        xm_include_list="${xm_include_list} $f"
13805        ;;
13806     * )
13807        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13808        xm_include_list="${xm_include_list} config/$f"
13809        ;;
13810   esac
13811 done
13812
13813 host_xm_file_list=
13814 host_xm_include_list=
13815 for f in $host_xm_file; do
13816   case $f in
13817     ansidecl.h )
13818        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13819        host_xm_include_list="${host_xm_include_list} $f"
13820        ;;
13821     auto-host.h )
13822        host_xm_file_list="${host_xm_file_list} $f"
13823        host_xm_include_list="${host_xm_include_list} $f"
13824        ;;
13825     * )
13826        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13827        host_xm_include_list="${host_xm_include_list} config/$f"
13828        ;;
13829   esac
13830 done
13831
13832 build_xm_file_list=
13833 for f in $build_xm_file; do
13834   case $f in
13835     ansidecl.h )
13836        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13837        build_xm_include_list="${build_xm_include_list} $f"
13838        ;;
13839     auto-build.h | auto-host.h )
13840        build_xm_file_list="${build_xm_file_list} $f"
13841        build_xm_include_list="${build_xm_include_list} $f"
13842        ;;
13843     * )
13844        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13845        build_xm_include_list="${build_xm_include_list} config/$f"
13846        ;;
13847   esac
13848 done
13849
13850 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13851 # cross-compiler which does not use the native headers and libraries.
13852 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13853 CROSS=
13854 ALL=all.internal
13855 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13856
13857 if test "x$with_build_sysroot" != x; then
13858   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13859 else
13860   # This value is used, even on a native system, because
13861   # CROSS_SYSTEM_HEADER_DIR is just
13862   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13863   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13864 fi
13865
13866 if test x$host != x$target
13867 then
13868         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13869         ALL=all.cross
13870         SYSTEM_HEADER_DIR=$build_system_header_dir
13871         case "$host","$target" in
13872         # Darwin crosses can use the host system's libraries and headers,
13873         # because of the fat library support.  Of course, it must be the
13874         # same version of Darwin on both sides.  Allow the user to
13875         # just say --target=foo-darwin without a version number to mean
13876         # "the version on this system".
13877             *-*-darwin*,*-*-darwin*)
13878                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13879                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13880                 if test $hostos = $targetos -o $targetos = darwin ; then
13881                     CROSS=
13882                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13883                     with_headers=yes
13884                 fi
13885                 ;;
13886
13887             i?86-*-*,x86_64-*-* \
13888             | powerpc*-*-*,powerpc64*-*-*)
13889                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13890         esac
13891 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13892         SYSTEM_HEADER_DIR=$build_system_header_dir
13893 fi
13894
13895 # If this is a cross-compiler that does not
13896 # have its own set of headers then define
13897 # inhibit_libc
13898
13899 # If this is using newlib, without having the headers available now,
13900 # then define inhibit_libc in LIBGCC2_CFLAGS.
13901 # This prevents libgcc2 from containing any code which requires libc
13902 # support.
13903 : ${inhibit_libc=false}
13904 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13905        test x$with_newlib = xyes ; } &&
13906      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13907        inhibit_libc=true
13908 fi
13909
13910
13911 # When building gcc with a cross-compiler, we need to adjust things so
13912 # that the generator programs are still built with the native compiler.
13913 # Also, we cannot run fixincludes.
13914
13915 # These are the normal (build=host) settings:
13916 CC_FOR_BUILD='$(CC)'
13917 BUILD_CFLAGS='$(ALL_CFLAGS)'
13918 BUILD_LDFLAGS='$(LDFLAGS)'
13919 STMP_FIXINC=stmp-fixinc
13920
13921 # And these apply if build != host, or we are generating coverage data
13922 if test x$build != x$host || test "x$coverage_flags" != x
13923 then
13924     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13925     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13926 fi
13927
13928 # Expand extra_headers to include complete path.
13929 # This substitutes for lots of t-* files.
13930 extra_headers_list=
13931 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13932 for file in ${extra_headers} ; do
13933   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13934 done
13935
13936 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13937 if test x"$use_gcc_tgmath" = xyes
13938 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13939 fi
13940
13941 # Define collect2 in Makefile.
13942 case $host_can_use_collect2 in
13943   no) collect2= ;;
13944   *) collect2='collect2$(exeext)' ;;
13945 esac
13946
13947
13948 # Add a definition of USE_COLLECT2 if system wants one.
13949 case $use_collect2 in
13950   no) use_collect2= ;;
13951   "") ;;
13952   *)
13953     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13954     xm_defines="${xm_defines} USE_COLLECT2"
13955     case $host_can_use_collect2 in
13956       no)
13957         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13958 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13959    { (exit 1); exit 1; }; }
13960         ;;
13961     esac
13962     ;;
13963 esac
13964
13965 # ---------------------------
13966 # Assembler & linker features
13967 # ---------------------------
13968
13969 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13970 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13971 # However when ld-new is first executed from the build tree, libtool will
13972 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13973 # to the build tree.  While doing this we need to use the previous-stage
13974 # linker, or we have an infinite loop.  The presence of a shell script as
13975 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13976 # the gcc/collect-ld script.  So we need to know how libtool works, or
13977 # exec-tool will fail.
13978
13979
13980 case `pwd` in
13981   *\ * | *\     *)
13982     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13983 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13984 esac
13985
13986
13987
13988 macro_version='2.2.6'
13989 macro_revision='1.3012'
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003 ltmain="$ac_aux_dir/ltmain.sh"
14004
14005 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14006 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14007 if test "${lt_cv_path_SED+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   # Loop through the user's path and test for sed and gsed.
14011 # Then use that list of sed's as ones to test for truncation.
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015   IFS=$as_save_IFS
14016   test -z "$as_dir" && as_dir=.
14017   for lt_ac_prog in sed gsed; do
14018     for ac_exec_ext in '' $ac_executable_extensions; do
14019       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14020         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14021       fi
14022     done
14023   done
14024 done
14025 IFS=$as_save_IFS
14026 lt_ac_max=0
14027 lt_ac_count=0
14028 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14029 # along with /bin/sed that truncates output.
14030 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14031   test ! -f $lt_ac_sed && continue
14032   cat /dev/null > conftest.in
14033   lt_ac_count=0
14034   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14035   # Check for GNU sed and select it if it is found.
14036   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14037     lt_cv_path_SED=$lt_ac_sed
14038     break
14039   fi
14040   while true; do
14041     cat conftest.in conftest.in >conftest.tmp
14042     mv conftest.tmp conftest.in
14043     cp conftest.in conftest.nl
14044     echo >>conftest.nl
14045     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14046     cmp -s conftest.out conftest.nl || break
14047     # 10000 chars as input seems more than enough
14048     test $lt_ac_count -gt 10 && break
14049     lt_ac_count=`expr $lt_ac_count + 1`
14050     if test $lt_ac_count -gt $lt_ac_max; then
14051       lt_ac_max=$lt_ac_count
14052       lt_cv_path_SED=$lt_ac_sed
14053     fi
14054   done
14055 done
14056
14057 fi
14058
14059 SED=$lt_cv_path_SED
14060
14061 echo "$as_me:$LINENO: result: $SED" >&5
14062 echo "${ECHO_T}$SED" >&6
14063
14064 test -z "$SED" && SED=sed
14065 Xsed="$SED -e 1s/^X//"
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077 echo "$as_me:$LINENO: checking for fgrep" >&5
14078 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14079 if test "${ac_cv_prog_fgrep+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14083     then ac_cv_prog_fgrep='grep -F'
14084     else ac_cv_prog_fgrep='fgrep'
14085     fi
14086 fi
14087 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14088 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14089  FGREP=$ac_cv_prog_fgrep
14090
14091
14092 test -z "$GREP" && GREP=grep
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14113 if test "${with_gnu_ld+set}" = set; then
14114   withval="$with_gnu_ld"
14115   test "$withval" = no || with_gnu_ld=yes
14116 else
14117   with_gnu_ld=no
14118 fi;
14119 ac_prog=ld
14120 if test "$GCC" = yes; then
14121   # Check if gcc -print-prog-name=ld gives a path.
14122   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14124   case $host in
14125   *-*-mingw*)
14126     # gcc leaves a trailing carriage return which upsets mingw
14127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14128   *)
14129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14130   esac
14131   case $ac_prog in
14132     # Accept absolute paths.
14133     [\\/]* | ?:[\\/]*)
14134       re_direlt='/[^/][^/]*/\.\./'
14135       # Canonicalize the pathname of ld
14136       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14137       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14138         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14139       done
14140       test -z "$LD" && LD="$ac_prog"
14141       ;;
14142   "")
14143     # If it fails, then pretend we aren't using GCC.
14144     ac_prog=ld
14145     ;;
14146   *)
14147     # If it is relative, then search for the first ld in PATH.
14148     with_gnu_ld=unknown
14149     ;;
14150   esac
14151 elif test "$with_gnu_ld" = yes; then
14152   echo "$as_me:$LINENO: checking for GNU ld" >&5
14153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14154 else
14155   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14157 fi
14158 if test "${lt_cv_path_LD+set}" = set; then
14159   echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161   if test -z "$LD"; then
14162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14163   for ac_dir in $PATH; do
14164     IFS="$lt_save_ifs"
14165     test -z "$ac_dir" && ac_dir=.
14166     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14167       lt_cv_path_LD="$ac_dir/$ac_prog"
14168       # Check to see if the program is GNU ld.  I'd rather use --version,
14169       # but apparently some variants of GNU ld only accept -v.
14170       # Break only if it was the GNU/non-GNU ld that we prefer.
14171       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14172       *GNU* | *'with BFD'*)
14173         test "$with_gnu_ld" != no && break
14174         ;;
14175       *)
14176         test "$with_gnu_ld" != yes && break
14177         ;;
14178       esac
14179     fi
14180   done
14181   IFS="$lt_save_ifs"
14182 else
14183   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14184 fi
14185 fi
14186
14187 LD="$lt_cv_path_LD"
14188 if test -n "$LD"; then
14189   echo "$as_me:$LINENO: result: $LD" >&5
14190 echo "${ECHO_T}$LD" >&6
14191 else
14192   echo "$as_me:$LINENO: result: no" >&5
14193 echo "${ECHO_T}no" >&6
14194 fi
14195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14197    { (exit 1); exit 1; }; }
14198 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14201   echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14204 case `$LD -v 2>&1 </dev/null` in
14205 *GNU* | *'with BFD'*)
14206   lt_cv_prog_gnu_ld=yes
14207   ;;
14208 *)
14209   lt_cv_prog_gnu_ld=no
14210   ;;
14211 esac
14212 fi
14213 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14215 with_gnu_ld=$lt_cv_prog_gnu_ld
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14226 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14227 if test "${lt_cv_path_NM+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   if test -n "$NM"; then
14231   # Let the user override the test.
14232   lt_cv_path_NM="$NM"
14233 else
14234   lt_nm_to_check="${ac_tool_prefix}nm"
14235   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14236     lt_nm_to_check="$lt_nm_to_check nm"
14237   fi
14238   for lt_tmp_nm in $lt_nm_to_check; do
14239     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14240     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14241       IFS="$lt_save_ifs"
14242       test -z "$ac_dir" && ac_dir=.
14243       tmp_nm="$ac_dir/$lt_tmp_nm"
14244       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14245         # Check to see if the nm accepts a BSD-compat flag.
14246         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14247         #   nm: unknown option "B" ignored
14248         # Tru64's nm complains that /dev/null is an invalid object file
14249         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14250         */dev/null* | *'Invalid file or object type'*)
14251           lt_cv_path_NM="$tmp_nm -B"
14252           break
14253           ;;
14254         *)
14255           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14256           */dev/null*)
14257             lt_cv_path_NM="$tmp_nm -p"
14258             break
14259             ;;
14260           *)
14261             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14262             continue # so that we can try to find one that supports BSD flags
14263             ;;
14264           esac
14265           ;;
14266         esac
14267       fi
14268     done
14269     IFS="$lt_save_ifs"
14270   done
14271   : ${lt_cv_path_NM=no}
14272 fi
14273 fi
14274 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14275 echo "${ECHO_T}$lt_cv_path_NM" >&6
14276 if test "$lt_cv_path_NM" != "no"; then
14277   NM="$lt_cv_path_NM"
14278 else
14279   # Didn't find any BSD compatible name lister, look for dumpbin.
14280   if test -n "$ac_tool_prefix"; then
14281   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14282   do
14283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14285 echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14287 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   if test -n "$DUMPBIN"; then
14291   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296   IFS=$as_save_IFS
14297   test -z "$as_dir" && as_dir=.
14298   for ac_exec_ext in '' $ac_executable_extensions; do
14299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14302     break 2
14303   fi
14304 done
14305 done
14306
14307 fi
14308 fi
14309 DUMPBIN=$ac_cv_prog_DUMPBIN
14310 if test -n "$DUMPBIN"; then
14311   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14312 echo "${ECHO_T}$DUMPBIN" >&6
14313 else
14314   echo "$as_me:$LINENO: result: no" >&5
14315 echo "${ECHO_T}no" >&6
14316 fi
14317
14318     test -n "$DUMPBIN" && break
14319   done
14320 fi
14321 if test -z "$DUMPBIN"; then
14322   ac_ct_DUMPBIN=$DUMPBIN
14323   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14324 do
14325   # Extract the first word of "$ac_prog", so it can be a program name with args.
14326 set dummy $ac_prog; ac_word=$2
14327 echo "$as_me:$LINENO: checking for $ac_word" >&5
14328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14329 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   if test -n "$ac_ct_DUMPBIN"; then
14333   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338   IFS=$as_save_IFS
14339   test -z "$as_dir" && as_dir=.
14340   for ac_exec_ext in '' $ac_executable_extensions; do
14341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14344     break 2
14345   fi
14346 done
14347 done
14348
14349 fi
14350 fi
14351 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14352 if test -n "$ac_ct_DUMPBIN"; then
14353   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14354 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14355 else
14356   echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6
14358 fi
14359
14360   test -n "$ac_ct_DUMPBIN" && break
14361 done
14362 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14363
14364   DUMPBIN=$ac_ct_DUMPBIN
14365 fi
14366
14367
14368   if test "$DUMPBIN" != ":"; then
14369     NM="$DUMPBIN"
14370   fi
14371 fi
14372 test -z "$NM" && NM=nm
14373
14374
14375
14376
14377
14378
14379 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14380 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14381 if test "${lt_cv_nm_interface+set}" = set; then
14382   echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384   lt_cv_nm_interface="BSD nm"
14385   echo "int some_variable = 0;" > conftest.$ac_ext
14386   (eval echo "\"\$as_me:14386: $ac_compile\"" >&5)
14387   (eval "$ac_compile" 2>conftest.err)
14388   cat conftest.err >&5
14389   (eval echo "\"\$as_me:14389: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14390   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14391   cat conftest.err >&5
14392   (eval echo "\"\$as_me:14392: output\"" >&5)
14393   cat conftest.out >&5
14394   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14395     lt_cv_nm_interface="MS dumpbin"
14396   fi
14397   rm -f conftest*
14398 fi
14399 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14400 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14401
14402 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14403 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14404 LN_S=$as_ln_s
14405 if test "$LN_S" = "ln -s"; then
14406   echo "$as_me:$LINENO: result: yes" >&5
14407 echo "${ECHO_T}yes" >&6
14408 else
14409   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14410 echo "${ECHO_T}no, using $LN_S" >&6
14411 fi
14412
14413 # find the maximum length of command line arguments
14414 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14415 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14416 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419     i=0
14420   teststring="ABCD"
14421
14422   case $build_os in
14423   msdosdjgpp*)
14424     # On DJGPP, this test can blow up pretty badly due to problems in libc
14425     # (any single argument exceeding 2000 bytes causes a buffer overrun
14426     # during glob expansion).  Even if it were fixed, the result of this
14427     # check would be larger than it should be.
14428     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14429     ;;
14430
14431   gnu*)
14432     # Under GNU Hurd, this test is not required because there is
14433     # no limit to the length of command line arguments.
14434     # Libtool will interpret -1 as no limit whatsoever
14435     lt_cv_sys_max_cmd_len=-1;
14436     ;;
14437
14438   cygwin* | mingw* | cegcc*)
14439     # On Win9x/ME, this test blows up -- it succeeds, but takes
14440     # about 5 minutes as the teststring grows exponentially.
14441     # Worse, since 9x/ME are not pre-emptively multitasking,
14442     # you end up with a "frozen" computer, even though with patience
14443     # the test eventually succeeds (with a max line length of 256k).
14444     # Instead, let's just punt: use the minimum linelength reported by
14445     # all of the supported platforms: 8192 (on NT/2K/XP).
14446     lt_cv_sys_max_cmd_len=8192;
14447     ;;
14448
14449   amigaos*)
14450     # On AmigaOS with pdksh, this test takes hours, literally.
14451     # So we just punt and use a minimum line length of 8192.
14452     lt_cv_sys_max_cmd_len=8192;
14453     ;;
14454
14455   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14456     # This has been around since 386BSD, at least.  Likely further.
14457     if test -x /sbin/sysctl; then
14458       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14459     elif test -x /usr/sbin/sysctl; then
14460       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14461     else
14462       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14463     fi
14464     # And add a safety zone
14465     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14466     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14467     ;;
14468
14469   interix*)
14470     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14471     lt_cv_sys_max_cmd_len=196608
14472     ;;
14473
14474   osf*)
14475     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14476     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14477     # nice to cause kernel panics so lets avoid the loop below.
14478     # First set a reasonable default.
14479     lt_cv_sys_max_cmd_len=16384
14480     #
14481     if test -x /sbin/sysconfig; then
14482       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14483         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14484       esac
14485     fi
14486     ;;
14487   sco3.2v5*)
14488     lt_cv_sys_max_cmd_len=102400
14489     ;;
14490   sysv5* | sco5v6* | sysv4.2uw2*)
14491     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14492     if test -n "$kargmax"; then
14493       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14494     else
14495       lt_cv_sys_max_cmd_len=32768
14496     fi
14497     ;;
14498   *)
14499     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14500     if test -n "$lt_cv_sys_max_cmd_len"; then
14501       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14502       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14503     else
14504       # Make teststring a little bigger before we do anything with it.
14505       # a 1K string should be a reasonable start.
14506       for i in 1 2 3 4 5 6 7 8 ; do
14507         teststring=$teststring$teststring
14508       done
14509       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14510       # If test is not a shell built-in, we'll probably end up computing a
14511       # maximum length that is only half of the actual maximum length, but
14512       # we can't tell.
14513       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14514                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14515               test $i != 17 # 1/2 MB should be enough
14516       do
14517         i=`expr $i + 1`
14518         teststring=$teststring$teststring
14519       done
14520       # Only check the string length outside the loop.
14521       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14522       teststring=
14523       # Add a significant safety factor because C++ compilers can tack on
14524       # massive amounts of additional arguments before passing them to the
14525       # linker.  It appears as though 1/2 is a usable value.
14526       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14527     fi
14528     ;;
14529   esac
14530
14531 fi
14532
14533 if test -n $lt_cv_sys_max_cmd_len ; then
14534   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14536 else
14537   echo "$as_me:$LINENO: result: none" >&5
14538 echo "${ECHO_T}none" >&6
14539 fi
14540 max_cmd_len=$lt_cv_sys_max_cmd_len
14541
14542
14543
14544
14545
14546
14547 : ${CP="cp -f"}
14548 : ${MV="mv -f"}
14549 : ${RM="rm -f"}
14550
14551 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14552 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14553 # Try some XSI features
14554 xsi_shell=no
14555 ( _lt_dummy="a/b/c"
14556   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14557       = c,a/b,, \
14558     && eval 'test $(( 1 + 1 )) -eq 2 \
14559     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14560   && xsi_shell=yes
14561 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14562 echo "${ECHO_T}$xsi_shell" >&6
14563
14564
14565 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14566 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14567 lt_shell_append=no
14568 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14569     >/dev/null 2>&1 \
14570   && lt_shell_append=yes
14571 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14572 echo "${ECHO_T}$lt_shell_append" >&6
14573
14574
14575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14576   lt_unset=unset
14577 else
14578   lt_unset=false
14579 fi
14580
14581
14582
14583
14584
14585 # test EBCDIC or ASCII
14586 case `echo X|tr X '\101'` in
14587  A) # ASCII based system
14588     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14589   lt_SP2NL='tr \040 \012'
14590   lt_NL2SP='tr \015\012 \040\040'
14591   ;;
14592  *) # EBCDIC based system
14593   lt_SP2NL='tr \100 \n'
14594   lt_NL2SP='tr \r\n \100\100'
14595   ;;
14596 esac
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14607 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14608 if test "${lt_cv_ld_reload_flag+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   lt_cv_ld_reload_flag='-r'
14612 fi
14613 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14614 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14615 reload_flag=$lt_cv_ld_reload_flag
14616 case $reload_flag in
14617 "" | " "*) ;;
14618 *) reload_flag=" $reload_flag" ;;
14619 esac
14620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14621 case $host_os in
14622   darwin*)
14623     if test "$GCC" = yes; then
14624       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14625     else
14626       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14627     fi
14628     ;;
14629 esac
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639 if test -n "$ac_tool_prefix"; then
14640   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14642 echo "$as_me:$LINENO: checking for $ac_word" >&5
14643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14644 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   if test -n "$OBJDUMP"; then
14648   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653   IFS=$as_save_IFS
14654   test -z "$as_dir" && as_dir=.
14655   for ac_exec_ext in '' $ac_executable_extensions; do
14656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14659     break 2
14660   fi
14661 done
14662 done
14663
14664 fi
14665 fi
14666 OBJDUMP=$ac_cv_prog_OBJDUMP
14667 if test -n "$OBJDUMP"; then
14668   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14669 echo "${ECHO_T}$OBJDUMP" >&6
14670 else
14671   echo "$as_me:$LINENO: result: no" >&5
14672 echo "${ECHO_T}no" >&6
14673 fi
14674
14675 fi
14676 if test -z "$ac_cv_prog_OBJDUMP"; then
14677   ac_ct_OBJDUMP=$OBJDUMP
14678   # Extract the first word of "objdump", so it can be a program name with args.
14679 set dummy objdump; ac_word=$2
14680 echo "$as_me:$LINENO: checking for $ac_word" >&5
14681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14682 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   if test -n "$ac_ct_OBJDUMP"; then
14686   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14687 else
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14690 do
14691   IFS=$as_save_IFS
14692   test -z "$as_dir" && as_dir=.
14693   for ac_exec_ext in '' $ac_executable_extensions; do
14694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695     ac_cv_prog_ac_ct_OBJDUMP="objdump"
14696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14697     break 2
14698   fi
14699 done
14700 done
14701
14702   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14703 fi
14704 fi
14705 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14706 if test -n "$ac_ct_OBJDUMP"; then
14707   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14708 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14709 else
14710   echo "$as_me:$LINENO: result: no" >&5
14711 echo "${ECHO_T}no" >&6
14712 fi
14713
14714   OBJDUMP=$ac_ct_OBJDUMP
14715 else
14716   OBJDUMP="$ac_cv_prog_OBJDUMP"
14717 fi
14718
14719 test -z "$OBJDUMP" && OBJDUMP=objdump
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14730 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14731 if test "${lt_cv_deplibs_check_method+set}" = set; then
14732   echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734   lt_cv_file_magic_cmd='$MAGIC_CMD'
14735 lt_cv_file_magic_test_file=
14736 lt_cv_deplibs_check_method='unknown'
14737 # Need to set the preceding variable on all platforms that support
14738 # interlibrary dependencies.
14739 # 'none' -- dependencies not supported.
14740 # `unknown' -- same as none, but documents that we really don't know.
14741 # 'pass_all' -- all dependencies passed with no checks.
14742 # 'test_compile' -- check by making test program.
14743 # 'file_magic [[regex]]' -- check by looking for files in library path
14744 # which responds to the $file_magic_cmd with a given extended regex.
14745 # If you have `file' or equivalent on your system and you're not sure
14746 # whether `pass_all' will *always* work, you probably want this one.
14747
14748 case $host_os in
14749 aix[4-9]*)
14750   lt_cv_deplibs_check_method=pass_all
14751   ;;
14752
14753 beos*)
14754   lt_cv_deplibs_check_method=pass_all
14755   ;;
14756
14757 bsdi[45]*)
14758   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14759   lt_cv_file_magic_cmd='/usr/bin/file -L'
14760   lt_cv_file_magic_test_file=/shlib/libc.so
14761   ;;
14762
14763 cygwin*)
14764   # func_win32_libid is a shell function defined in ltmain.sh
14765   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14766   lt_cv_file_magic_cmd='func_win32_libid'
14767   ;;
14768
14769 mingw* | pw32*)
14770   # Base MSYS/MinGW do not provide the 'file' command needed by
14771   # func_win32_libid shell function, so use a weaker test based on 'objdump',
14772   # unless we find 'file', for example because we are cross-compiling.
14773   if ( file / ) >/dev/null 2>&1; then
14774     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14775     lt_cv_file_magic_cmd='func_win32_libid'
14776   else
14777     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14778     lt_cv_file_magic_cmd='$OBJDUMP -f'
14779   fi
14780   ;;
14781
14782 cegcc)
14783   # use the weaker test based on 'objdump'. See mingw*.
14784   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14785   lt_cv_file_magic_cmd='$OBJDUMP -f'
14786   ;;
14787
14788 darwin* | rhapsody*)
14789   lt_cv_deplibs_check_method=pass_all
14790   ;;
14791
14792 freebsd* | dragonfly*)
14793   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14794     case $host_cpu in
14795     i*86 )
14796       # Not sure whether the presence of OpenBSD here was a mistake.
14797       # Let's accept both of them until this is cleared up.
14798       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14799       lt_cv_file_magic_cmd=/usr/bin/file
14800       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14801       ;;
14802     esac
14803   else
14804     lt_cv_deplibs_check_method=pass_all
14805   fi
14806   ;;
14807
14808 gnu*)
14809   lt_cv_deplibs_check_method=pass_all
14810   ;;
14811
14812 hpux10.20* | hpux11*)
14813   lt_cv_file_magic_cmd=/usr/bin/file
14814   case $host_cpu in
14815   ia64*)
14816     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14817     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14818     ;;
14819   hppa*64*)
14820     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]'
14821     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14822     ;;
14823   *)
14824     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14825     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14826     ;;
14827   esac
14828   ;;
14829
14830 interix[3-9]*)
14831   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14832   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14833   ;;
14834
14835 irix5* | irix6* | nonstopux*)
14836   case $LD in
14837   *-32|*"-32 ") libmagic=32-bit;;
14838   *-n32|*"-n32 ") libmagic=N32;;
14839   *-64|*"-64 ") libmagic=64-bit;;
14840   *) libmagic=never-match;;
14841   esac
14842   lt_cv_deplibs_check_method=pass_all
14843   ;;
14844
14845 # This must be Linux ELF.
14846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14847   lt_cv_deplibs_check_method=pass_all
14848   ;;
14849
14850 netbsd*)
14851   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14852     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14853   else
14854     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14855   fi
14856   ;;
14857
14858 newos6*)
14859   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14860   lt_cv_file_magic_cmd=/usr/bin/file
14861   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14862   ;;
14863
14864 *nto* | *qnx*)
14865   lt_cv_deplibs_check_method=pass_all
14866   ;;
14867
14868 openbsd*)
14869   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14870     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14871   else
14872     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14873   fi
14874   ;;
14875
14876 osf3* | osf4* | osf5*)
14877   lt_cv_deplibs_check_method=pass_all
14878   ;;
14879
14880 rdos*)
14881   lt_cv_deplibs_check_method=pass_all
14882   ;;
14883
14884 solaris*)
14885   lt_cv_deplibs_check_method=pass_all
14886   ;;
14887
14888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14889   lt_cv_deplibs_check_method=pass_all
14890   ;;
14891
14892 sysv4 | sysv4.3*)
14893   case $host_vendor in
14894   motorola)
14895     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]'
14896     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14897     ;;
14898   ncr)
14899     lt_cv_deplibs_check_method=pass_all
14900     ;;
14901   sequent)
14902     lt_cv_file_magic_cmd='/bin/file'
14903     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14904     ;;
14905   sni)
14906     lt_cv_file_magic_cmd='/bin/file'
14907     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14908     lt_cv_file_magic_test_file=/lib/libc.so
14909     ;;
14910   siemens)
14911     lt_cv_deplibs_check_method=pass_all
14912     ;;
14913   pc)
14914     lt_cv_deplibs_check_method=pass_all
14915     ;;
14916   esac
14917   ;;
14918
14919 tpf*)
14920   lt_cv_deplibs_check_method=pass_all
14921   ;;
14922 esac
14923
14924 fi
14925 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14926 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14927 file_magic_cmd=$lt_cv_file_magic_cmd
14928 deplibs_check_method=$lt_cv_deplibs_check_method
14929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942 if test -n "$ac_tool_prefix"; then
14943   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14944 set dummy ${ac_tool_prefix}ar; ac_word=$2
14945 echo "$as_me:$LINENO: checking for $ac_word" >&5
14946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14947 if test "${ac_cv_prog_AR+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   if test -n "$AR"; then
14951   ac_cv_prog_AR="$AR" # Let the user override the test.
14952 else
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14955 do
14956   IFS=$as_save_IFS
14957   test -z "$as_dir" && as_dir=.
14958   for ac_exec_ext in '' $ac_executable_extensions; do
14959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960     ac_cv_prog_AR="${ac_tool_prefix}ar"
14961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14962     break 2
14963   fi
14964 done
14965 done
14966
14967 fi
14968 fi
14969 AR=$ac_cv_prog_AR
14970 if test -n "$AR"; then
14971   echo "$as_me:$LINENO: result: $AR" >&5
14972 echo "${ECHO_T}$AR" >&6
14973 else
14974   echo "$as_me:$LINENO: result: no" >&5
14975 echo "${ECHO_T}no" >&6
14976 fi
14977
14978 fi
14979 if test -z "$ac_cv_prog_AR"; then
14980   ac_ct_AR=$AR
14981   # Extract the first word of "ar", so it can be a program name with args.
14982 set dummy ar; ac_word=$2
14983 echo "$as_me:$LINENO: checking for $ac_word" >&5
14984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14986   echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988   if test -n "$ac_ct_AR"; then
14989   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14990 else
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14993 do
14994   IFS=$as_save_IFS
14995   test -z "$as_dir" && as_dir=.
14996   for ac_exec_ext in '' $ac_executable_extensions; do
14997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14998     ac_cv_prog_ac_ct_AR="ar"
14999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15000     break 2
15001   fi
15002 done
15003 done
15004
15005   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15006 fi
15007 fi
15008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15009 if test -n "$ac_ct_AR"; then
15010   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15011 echo "${ECHO_T}$ac_ct_AR" >&6
15012 else
15013   echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15015 fi
15016
15017   AR=$ac_ct_AR
15018 else
15019   AR="$ac_cv_prog_AR"
15020 fi
15021
15022 test -z "$AR" && AR=ar
15023 test -z "$AR_FLAGS" && AR_FLAGS=cru
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035 if test -n "$ac_tool_prefix"; then
15036   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15037 set dummy ${ac_tool_prefix}strip; ac_word=$2
15038 echo "$as_me:$LINENO: checking for $ac_word" >&5
15039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15040 if test "${ac_cv_prog_STRIP+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   if test -n "$STRIP"; then
15044   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15045 else
15046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 for as_dir in $PATH
15048 do
15049   IFS=$as_save_IFS
15050   test -z "$as_dir" && as_dir=.
15051   for ac_exec_ext in '' $ac_executable_extensions; do
15052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15053     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15055     break 2
15056   fi
15057 done
15058 done
15059
15060 fi
15061 fi
15062 STRIP=$ac_cv_prog_STRIP
15063 if test -n "$STRIP"; then
15064   echo "$as_me:$LINENO: result: $STRIP" >&5
15065 echo "${ECHO_T}$STRIP" >&6
15066 else
15067   echo "$as_me:$LINENO: result: no" >&5
15068 echo "${ECHO_T}no" >&6
15069 fi
15070
15071 fi
15072 if test -z "$ac_cv_prog_STRIP"; then
15073   ac_ct_STRIP=$STRIP
15074   # Extract the first word of "strip", so it can be a program name with args.
15075 set dummy strip; ac_word=$2
15076 echo "$as_me:$LINENO: checking for $ac_word" >&5
15077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15078 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   if test -n "$ac_ct_STRIP"; then
15082   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15083 else
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $PATH
15086 do
15087   IFS=$as_save_IFS
15088   test -z "$as_dir" && as_dir=.
15089   for ac_exec_ext in '' $ac_executable_extensions; do
15090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091     ac_cv_prog_ac_ct_STRIP="strip"
15092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15093     break 2
15094   fi
15095 done
15096 done
15097
15098   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15099 fi
15100 fi
15101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15102 if test -n "$ac_ct_STRIP"; then
15103   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15104 echo "${ECHO_T}$ac_ct_STRIP" >&6
15105 else
15106   echo "$as_me:$LINENO: result: no" >&5
15107 echo "${ECHO_T}no" >&6
15108 fi
15109
15110   STRIP=$ac_ct_STRIP
15111 else
15112   STRIP="$ac_cv_prog_STRIP"
15113 fi
15114
15115 test -z "$STRIP" && STRIP=:
15116
15117
15118
15119
15120
15121
15122 if test -n "$ac_tool_prefix"; then
15123   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15125 echo "$as_me:$LINENO: checking for $ac_word" >&5
15126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15127 if test "${ac_cv_prog_RANLIB+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   if test -n "$RANLIB"; then
15131   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15132 else
15133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134 for as_dir in $PATH
15135 do
15136   IFS=$as_save_IFS
15137   test -z "$as_dir" && as_dir=.
15138   for ac_exec_ext in '' $ac_executable_extensions; do
15139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15140     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15142     break 2
15143   fi
15144 done
15145 done
15146
15147 fi
15148 fi
15149 RANLIB=$ac_cv_prog_RANLIB
15150 if test -n "$RANLIB"; then
15151   echo "$as_me:$LINENO: result: $RANLIB" >&5
15152 echo "${ECHO_T}$RANLIB" >&6
15153 else
15154   echo "$as_me:$LINENO: result: no" >&5
15155 echo "${ECHO_T}no" >&6
15156 fi
15157
15158 fi
15159 if test -z "$ac_cv_prog_RANLIB"; then
15160   ac_ct_RANLIB=$RANLIB
15161   # Extract the first word of "ranlib", so it can be a program name with args.
15162 set dummy ranlib; ac_word=$2
15163 echo "$as_me:$LINENO: checking for $ac_word" >&5
15164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15166   echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168   if test -n "$ac_ct_RANLIB"; then
15169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15170 else
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15173 do
15174   IFS=$as_save_IFS
15175   test -z "$as_dir" && as_dir=.
15176   for ac_exec_ext in '' $ac_executable_extensions; do
15177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178     ac_cv_prog_ac_ct_RANLIB="ranlib"
15179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15180     break 2
15181   fi
15182 done
15183 done
15184
15185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15186 fi
15187 fi
15188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15189 if test -n "$ac_ct_RANLIB"; then
15190   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15192 else
15193   echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15195 fi
15196
15197   RANLIB=$ac_ct_RANLIB
15198 else
15199   RANLIB="$ac_cv_prog_RANLIB"
15200 fi
15201
15202 test -z "$RANLIB" && RANLIB=:
15203
15204
15205
15206
15207
15208
15209 # Determine commands to create old-style static archives.
15210 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15211 old_postinstall_cmds='chmod 644 $oldlib'
15212 old_postuninstall_cmds=
15213
15214 if test -n "$RANLIB"; then
15215   case $host_os in
15216   openbsd*)
15217     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15218     ;;
15219   *)
15220     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15221     ;;
15222   esac
15223   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15224 fi
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259 # If no C compiler was specified, use CC.
15260 LTCC=${LTCC-"$CC"}
15261
15262 # If no C compiler flags were specified, use CFLAGS.
15263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15264
15265 # Allow CC to be a program name with arguments.
15266 compiler=$CC
15267
15268
15269 # Check for command to grab the raw symbol name followed by C symbol from nm.
15270 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15271 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15273   echo $ECHO_N "(cached) $ECHO_C" >&6
15274 else
15275
15276 # These are sane defaults that work on at least a few old systems.
15277 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15278
15279 # Character class describing NM global symbol codes.
15280 symcode='[BCDEGRST]'
15281
15282 # Regexp to match symbols that can be accessed directly from C.
15283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15284
15285 # Define system-specific variables.
15286 case $host_os in
15287 aix*)
15288   symcode='[BCDT]'
15289   ;;
15290 cygwin* | mingw* | pw32* | cegcc*)
15291   symcode='[ABCDGISTW]'
15292   ;;
15293 hpux*)
15294   if test "$host_cpu" = ia64; then
15295     symcode='[ABCDEGRST]'
15296   fi
15297   ;;
15298 irix* | nonstopux*)
15299   symcode='[BCDEGRST]'
15300   ;;
15301 osf*)
15302   symcode='[BCDEGQRST]'
15303   ;;
15304 solaris*)
15305   symcode='[BDRT]'
15306   ;;
15307 sco3.2v5*)
15308   symcode='[DT]'
15309   ;;
15310 sysv4.2uw2*)
15311   symcode='[DT]'
15312   ;;
15313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15314   symcode='[ABDT]'
15315   ;;
15316 sysv4)
15317   symcode='[DFNSTU]'
15318   ;;
15319 esac
15320
15321 # If we're using GNU nm, then use its standard symbol codes.
15322 case `$NM -V 2>&1` in
15323 *GNU* | *'with BFD'*)
15324   symcode='[ABCDGIRSTW]' ;;
15325 esac
15326
15327 # Transform an extracted symbol line into a proper C declaration.
15328 # Some systems (esp. on ia64) link data and code symbols differently,
15329 # so use this general approach.
15330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15331
15332 # Transform an extracted symbol line into symbol name and symbol address
15333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15334 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'"
15335
15336 # Handle CRLF in mingw tool chain
15337 opt_cr=
15338 case $build_os in
15339 mingw*)
15340   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15341   ;;
15342 esac
15343
15344 # Try without a prefix underscore, then with it.
15345 for ac_symprfx in "" "_"; do
15346
15347   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15348   symxfrm="\\1 $ac_symprfx\\2 \\2"
15349
15350   # Write the raw and C identifiers.
15351   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15352     # Fake it for dumpbin and say T for any non-static function
15353     # and D for any global variable.
15354     # Also find C++ and __fastcall symbols from MSVC++,
15355     # which start with @ or ?.
15356     lt_cv_sys_global_symbol_pipe="$AWK '"\
15357 "     {last_section=section; section=\$ 3};"\
15358 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15359 "     \$ 0!~/External *\|/{next};"\
15360 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15361 "     {if(hide[section]) next};"\
15362 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15363 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15364 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15365 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15366 "     ' prfx=^$ac_symprfx"
15367   else
15368     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15369   fi
15370
15371   # Check to see that the pipe works correctly.
15372   pipe_works=no
15373
15374   rm -f conftest*
15375   cat > conftest.$ac_ext <<_LT_EOF
15376 #ifdef __cplusplus
15377 extern "C" {
15378 #endif
15379 char nm_test_var;
15380 void nm_test_func(void);
15381 void nm_test_func(void){}
15382 #ifdef __cplusplus
15383 }
15384 #endif
15385 int main(){nm_test_var='a';nm_test_func();return(0);}
15386 _LT_EOF
15387
15388   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389   (eval $ac_compile) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; then
15393     # Now try to grab the symbols.
15394     nlist=conftest.nm
15395     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15396   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } && test -s "$nlist"; then
15400       # Try sorting and uniquifying the output.
15401       if sort "$nlist" | uniq > "$nlist"T; then
15402         mv -f "$nlist"T "$nlist"
15403       else
15404         rm -f "$nlist"T
15405       fi
15406
15407       # Make sure that we snagged all the symbols we need.
15408       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15409         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15410           cat <<_LT_EOF > conftest.$ac_ext
15411 #ifdef __cplusplus
15412 extern "C" {
15413 #endif
15414
15415 _LT_EOF
15416           # Now generate the symbol file.
15417           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15418
15419           cat <<_LT_EOF >> conftest.$ac_ext
15420
15421 /* The mapping between symbol names and symbols.  */
15422 const struct {
15423   const char *name;
15424   void       *address;
15425 }
15426 lt__PROGRAM__LTX_preloaded_symbols[] =
15427 {
15428   { "@PROGRAM@", (void *) 0 },
15429 _LT_EOF
15430           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15431           cat <<\_LT_EOF >> conftest.$ac_ext
15432   {0, (void *) 0}
15433 };
15434
15435 /* This works around a problem in FreeBSD linker */
15436 #ifdef FREEBSD_WORKAROUND
15437 static const void *lt_preloaded_setup() {
15438   return lt__PROGRAM__LTX_preloaded_symbols;
15439 }
15440 #endif
15441
15442 #ifdef __cplusplus
15443 }
15444 #endif
15445 _LT_EOF
15446           # Now try linking the two files.
15447           mv conftest.$ac_objext conftstm.$ac_objext
15448           lt_save_LIBS="$LIBS"
15449           lt_save_CFLAGS="$CFLAGS"
15450           LIBS="conftstm.$ac_objext"
15451           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15452           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453   (eval $ac_link) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15457             pipe_works=yes
15458           fi
15459           LIBS="$lt_save_LIBS"
15460           CFLAGS="$lt_save_CFLAGS"
15461         else
15462           echo "cannot find nm_test_func in $nlist" >&5
15463         fi
15464       else
15465         echo "cannot find nm_test_var in $nlist" >&5
15466       fi
15467     else
15468       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15469     fi
15470   else
15471     echo "$progname: failed program was:" >&5
15472     cat conftest.$ac_ext >&5
15473   fi
15474   rm -rf conftest* conftst*
15475
15476   # Do not use the global_symbol_pipe unless it works.
15477   if test "$pipe_works" = yes; then
15478     break
15479   else
15480     lt_cv_sys_global_symbol_pipe=
15481   fi
15482 done
15483
15484 fi
15485
15486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15487   lt_cv_sys_global_symbol_to_cdecl=
15488 fi
15489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15490   echo "$as_me:$LINENO: result: failed" >&5
15491 echo "${ECHO_T}failed" >&6
15492 else
15493   echo "$as_me:$LINENO: result: ok" >&5
15494 echo "${ECHO_T}ok" >&6
15495 fi
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15519 if test "${enable_libtool_lock+set}" = set; then
15520   enableval="$enable_libtool_lock"
15521
15522 fi;
15523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15524
15525 # Some flags need to be propagated to the compiler or linker for good
15526 # libtool support.
15527 case $host in
15528 ia64-*-hpux*)
15529   # Find out which ABI we are using.
15530   echo 'int i;' > conftest.$ac_ext
15531   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532   (eval $ac_compile) 2>&5
15533   ac_status=$?
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); }; then
15536     case `/usr/bin/file conftest.$ac_objext` in
15537       *ELF-32*)
15538         HPUX_IA64_MODE="32"
15539         ;;
15540       *ELF-64*)
15541         HPUX_IA64_MODE="64"
15542         ;;
15543     esac
15544   fi
15545   rm -rf conftest*
15546   ;;
15547 *-*-irix6*)
15548   # Find out which ABI we are using.
15549   echo '#line 15549 "configure"' > conftest.$ac_ext
15550   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15551   (eval $ac_compile) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; then
15555     if test "$lt_cv_prog_gnu_ld" = yes; then
15556       case `/usr/bin/file conftest.$ac_objext` in
15557         *32-bit*)
15558           LD="${LD-ld} -melf32bsmip"
15559           ;;
15560         *N32*)
15561           LD="${LD-ld} -melf32bmipn32"
15562           ;;
15563         *64-bit*)
15564           LD="${LD-ld} -melf64bmip"
15565         ;;
15566       esac
15567     else
15568       case `/usr/bin/file conftest.$ac_objext` in
15569         *32-bit*)
15570           LD="${LD-ld} -32"
15571           ;;
15572         *N32*)
15573           LD="${LD-ld} -n32"
15574           ;;
15575         *64-bit*)
15576           LD="${LD-ld} -64"
15577           ;;
15578       esac
15579     fi
15580   fi
15581   rm -rf conftest*
15582   ;;
15583
15584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15586   # Find out which ABI we are using.
15587   echo 'int i;' > conftest.$ac_ext
15588   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589   (eval $ac_compile) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; then
15593     case `/usr/bin/file conftest.o` in
15594       *32-bit*)
15595         case $host in
15596           x86_64-*kfreebsd*-gnu)
15597             LD="${LD-ld} -m elf_i386_fbsd"
15598             ;;
15599           x86_64-*linux*)
15600             LD="${LD-ld} -m elf_i386"
15601             ;;
15602           ppc64-*linux*|powerpc64-*linux*)
15603             LD="${LD-ld} -m elf32ppclinux"
15604             ;;
15605           s390x-*linux*)
15606             LD="${LD-ld} -m elf_s390"
15607             ;;
15608           sparc64-*linux*)
15609             LD="${LD-ld} -m elf32_sparc"
15610             ;;
15611         esac
15612         ;;
15613       *64-bit*)
15614         case $host in
15615           x86_64-*kfreebsd*-gnu)
15616             LD="${LD-ld} -m elf_x86_64_fbsd"
15617             ;;
15618           x86_64-*linux*)
15619             LD="${LD-ld} -m elf_x86_64"
15620             ;;
15621           ppc*-*linux*|powerpc*-*linux*)
15622             LD="${LD-ld} -m elf64ppc"
15623             ;;
15624           s390*-*linux*|s390*-*tpf*)
15625             LD="${LD-ld} -m elf64_s390"
15626             ;;
15627           sparc*-*linux*)
15628             LD="${LD-ld} -m elf64_sparc"
15629             ;;
15630         esac
15631         ;;
15632     esac
15633   fi
15634   rm -rf conftest*
15635   ;;
15636
15637 *-*-sco3.2v5*)
15638   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15639   SAVE_CFLAGS="$CFLAGS"
15640   CFLAGS="$CFLAGS -belf"
15641   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15643 if test "${lt_cv_cc_needs_belf+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   ac_ext=c
15647 ac_cpp='$CPP $CPPFLAGS'
15648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15651
15652      cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658
15659 int
15660 main ()
15661 {
15662
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669   (eval $ac_link) 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag"
15677                          || test ! -s conftest.err'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; } &&
15683          { ac_try='test -s conftest$ac_exeext'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689   lt_cv_cc_needs_belf=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 lt_cv_cc_needs_belf=no
15695 fi
15696 rm -f conftest.err conftest.$ac_objext \
15697       conftest$ac_exeext conftest.$ac_ext
15698      ac_ext=c
15699 ac_cpp='$CPP $CPPFLAGS'
15700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15703
15704 fi
15705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15707   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15708     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15709     CFLAGS="$SAVE_CFLAGS"
15710   fi
15711   ;;
15712 sparc*-*solaris*)
15713   # Find out which ABI we are using.
15714   echo 'int i;' > conftest.$ac_ext
15715   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; then
15720     case `/usr/bin/file conftest.o` in
15721     *64-bit*)
15722       case $lt_cv_prog_gnu_ld in
15723       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15724       *)
15725         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15726           LD="${LD-ld} -64"
15727         fi
15728         ;;
15729       esac
15730       ;;
15731     esac
15732   fi
15733   rm -rf conftest*
15734   ;;
15735 esac
15736
15737 need_locks="$enable_libtool_lock"
15738
15739
15740   case $host_os in
15741     rhapsody* | darwin*)
15742     if test -n "$ac_tool_prefix"; then
15743   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15744 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15745 echo "$as_me:$LINENO: checking for $ac_word" >&5
15746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15747 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750   if test -n "$DSYMUTIL"; then
15751   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15752 else
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $PATH
15755 do
15756   IFS=$as_save_IFS
15757   test -z "$as_dir" && as_dir=.
15758   for ac_exec_ext in '' $ac_executable_extensions; do
15759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15762     break 2
15763   fi
15764 done
15765 done
15766
15767 fi
15768 fi
15769 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15770 if test -n "$DSYMUTIL"; then
15771   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15772 echo "${ECHO_T}$DSYMUTIL" >&6
15773 else
15774   echo "$as_me:$LINENO: result: no" >&5
15775 echo "${ECHO_T}no" >&6
15776 fi
15777
15778 fi
15779 if test -z "$ac_cv_prog_DSYMUTIL"; then
15780   ac_ct_DSYMUTIL=$DSYMUTIL
15781   # Extract the first word of "dsymutil", so it can be a program name with args.
15782 set dummy dsymutil; ac_word=$2
15783 echo "$as_me:$LINENO: checking for $ac_word" >&5
15784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15785 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   if test -n "$ac_ct_DSYMUTIL"; then
15789   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15790 else
15791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15793 do
15794   IFS=$as_save_IFS
15795   test -z "$as_dir" && as_dir=.
15796   for ac_exec_ext in '' $ac_executable_extensions; do
15797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15798     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15800     break 2
15801   fi
15802 done
15803 done
15804
15805   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15806 fi
15807 fi
15808 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15809 if test -n "$ac_ct_DSYMUTIL"; then
15810   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15811 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15812 else
15813   echo "$as_me:$LINENO: result: no" >&5
15814 echo "${ECHO_T}no" >&6
15815 fi
15816
15817   DSYMUTIL=$ac_ct_DSYMUTIL
15818 else
15819   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15820 fi
15821
15822     if test -n "$ac_tool_prefix"; then
15823   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15825 echo "$as_me:$LINENO: checking for $ac_word" >&5
15826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15827 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15828   echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830   if test -n "$NMEDIT"; then
15831   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15832 else
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836   IFS=$as_save_IFS
15837   test -z "$as_dir" && as_dir=.
15838   for ac_exec_ext in '' $ac_executable_extensions; do
15839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15842     break 2
15843   fi
15844 done
15845 done
15846
15847 fi
15848 fi
15849 NMEDIT=$ac_cv_prog_NMEDIT
15850 if test -n "$NMEDIT"; then
15851   echo "$as_me:$LINENO: result: $NMEDIT" >&5
15852 echo "${ECHO_T}$NMEDIT" >&6
15853 else
15854   echo "$as_me:$LINENO: result: no" >&5
15855 echo "${ECHO_T}no" >&6
15856 fi
15857
15858 fi
15859 if test -z "$ac_cv_prog_NMEDIT"; then
15860   ac_ct_NMEDIT=$NMEDIT
15861   # Extract the first word of "nmedit", so it can be a program name with args.
15862 set dummy nmedit; ac_word=$2
15863 echo "$as_me:$LINENO: checking for $ac_word" >&5
15864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15865 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15866   echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868   if test -n "$ac_ct_NMEDIT"; then
15869   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15870 else
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15873 do
15874   IFS=$as_save_IFS
15875   test -z "$as_dir" && as_dir=.
15876   for ac_exec_ext in '' $ac_executable_extensions; do
15877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878     ac_cv_prog_ac_ct_NMEDIT="nmedit"
15879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15880     break 2
15881   fi
15882 done
15883 done
15884
15885   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15886 fi
15887 fi
15888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15889 if test -n "$ac_ct_NMEDIT"; then
15890   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15891 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15892 else
15893   echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15895 fi
15896
15897   NMEDIT=$ac_ct_NMEDIT
15898 else
15899   NMEDIT="$ac_cv_prog_NMEDIT"
15900 fi
15901
15902     if test -n "$ac_tool_prefix"; then
15903   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15904 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15905 echo "$as_me:$LINENO: checking for $ac_word" >&5
15906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15907 if test "${ac_cv_prog_LIPO+set}" = set; then
15908   echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910   if test -n "$LIPO"; then
15911   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916   IFS=$as_save_IFS
15917   test -z "$as_dir" && as_dir=.
15918   for ac_exec_ext in '' $ac_executable_extensions; do
15919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15922     break 2
15923   fi
15924 done
15925 done
15926
15927 fi
15928 fi
15929 LIPO=$ac_cv_prog_LIPO
15930 if test -n "$LIPO"; then
15931   echo "$as_me:$LINENO: result: $LIPO" >&5
15932 echo "${ECHO_T}$LIPO" >&6
15933 else
15934   echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15936 fi
15937
15938 fi
15939 if test -z "$ac_cv_prog_LIPO"; then
15940   ac_ct_LIPO=$LIPO
15941   # Extract the first word of "lipo", so it can be a program name with args.
15942 set dummy lipo; ac_word=$2
15943 echo "$as_me:$LINENO: checking for $ac_word" >&5
15944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15945 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   if test -n "$ac_ct_LIPO"; then
15949   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15953 do
15954   IFS=$as_save_IFS
15955   test -z "$as_dir" && as_dir=.
15956   for ac_exec_ext in '' $ac_executable_extensions; do
15957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958     ac_cv_prog_ac_ct_LIPO="lipo"
15959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15960     break 2
15961   fi
15962 done
15963 done
15964
15965   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15966 fi
15967 fi
15968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15969 if test -n "$ac_ct_LIPO"; then
15970   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
15971 echo "${ECHO_T}$ac_ct_LIPO" >&6
15972 else
15973   echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6
15975 fi
15976
15977   LIPO=$ac_ct_LIPO
15978 else
15979   LIPO="$ac_cv_prog_LIPO"
15980 fi
15981
15982     if test -n "$ac_tool_prefix"; then
15983   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15984 set dummy ${ac_tool_prefix}otool; ac_word=$2
15985 echo "$as_me:$LINENO: checking for $ac_word" >&5
15986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15987 if test "${ac_cv_prog_OTOOL+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   if test -n "$OTOOL"; then
15991   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15992 else
15993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994 for as_dir in $PATH
15995 do
15996   IFS=$as_save_IFS
15997   test -z "$as_dir" && as_dir=.
15998   for ac_exec_ext in '' $ac_executable_extensions; do
15999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16000     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16002     break 2
16003   fi
16004 done
16005 done
16006
16007 fi
16008 fi
16009 OTOOL=$ac_cv_prog_OTOOL
16010 if test -n "$OTOOL"; then
16011   echo "$as_me:$LINENO: result: $OTOOL" >&5
16012 echo "${ECHO_T}$OTOOL" >&6
16013 else
16014   echo "$as_me:$LINENO: result: no" >&5
16015 echo "${ECHO_T}no" >&6
16016 fi
16017
16018 fi
16019 if test -z "$ac_cv_prog_OTOOL"; then
16020   ac_ct_OTOOL=$OTOOL
16021   # Extract the first word of "otool", so it can be a program name with args.
16022 set dummy otool; ac_word=$2
16023 echo "$as_me:$LINENO: checking for $ac_word" >&5
16024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16025 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   if test -n "$ac_ct_OTOOL"; then
16029   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16030 else
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16033 do
16034   IFS=$as_save_IFS
16035   test -z "$as_dir" && as_dir=.
16036   for ac_exec_ext in '' $ac_executable_extensions; do
16037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038     ac_cv_prog_ac_ct_OTOOL="otool"
16039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16040     break 2
16041   fi
16042 done
16043 done
16044
16045   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16046 fi
16047 fi
16048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16049 if test -n "$ac_ct_OTOOL"; then
16050   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16051 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16052 else
16053   echo "$as_me:$LINENO: result: no" >&5
16054 echo "${ECHO_T}no" >&6
16055 fi
16056
16057   OTOOL=$ac_ct_OTOOL
16058 else
16059   OTOOL="$ac_cv_prog_OTOOL"
16060 fi
16061
16062     if test -n "$ac_tool_prefix"; then
16063   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16064 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16065 echo "$as_me:$LINENO: checking for $ac_word" >&5
16066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16067 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   if test -n "$OTOOL64"; then
16071   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16072 else
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16075 do
16076   IFS=$as_save_IFS
16077   test -z "$as_dir" && as_dir=.
16078   for ac_exec_ext in '' $ac_executable_extensions; do
16079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16082     break 2
16083   fi
16084 done
16085 done
16086
16087 fi
16088 fi
16089 OTOOL64=$ac_cv_prog_OTOOL64
16090 if test -n "$OTOOL64"; then
16091   echo "$as_me:$LINENO: result: $OTOOL64" >&5
16092 echo "${ECHO_T}$OTOOL64" >&6
16093 else
16094   echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6
16096 fi
16097
16098 fi
16099 if test -z "$ac_cv_prog_OTOOL64"; then
16100   ac_ct_OTOOL64=$OTOOL64
16101   # Extract the first word of "otool64", so it can be a program name with args.
16102 set dummy otool64; ac_word=$2
16103 echo "$as_me:$LINENO: checking for $ac_word" >&5
16104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16105 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16106   echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108   if test -n "$ac_ct_OTOOL64"; then
16109   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16110 else
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16113 do
16114   IFS=$as_save_IFS
16115   test -z "$as_dir" && as_dir=.
16116   for ac_exec_ext in '' $ac_executable_extensions; do
16117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16118     ac_cv_prog_ac_ct_OTOOL64="otool64"
16119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16120     break 2
16121   fi
16122 done
16123 done
16124
16125   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16126 fi
16127 fi
16128 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16129 if test -n "$ac_ct_OTOOL64"; then
16130   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16131 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16132 else
16133   echo "$as_me:$LINENO: result: no" >&5
16134 echo "${ECHO_T}no" >&6
16135 fi
16136
16137   OTOOL64=$ac_ct_OTOOL64
16138 else
16139   OTOOL64="$ac_cv_prog_OTOOL64"
16140 fi
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16169 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16170 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   lt_cv_apple_cc_single_mod=no
16174       if test -z "${LT_MULTI_MODULE}"; then
16175         # By default we will add the -single_module flag. You can override
16176         # by either setting the environment variable LT_MULTI_MODULE
16177         # non-empty at configure time, or by adding -multi_module to the
16178         # link flags.
16179         rm -rf libconftest.dylib*
16180         echo "int foo(void){return 1;}" > conftest.c
16181         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16182 -dynamiclib -Wl,-single_module conftest.c" >&5
16183         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16184           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16185         _lt_result=$?
16186         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16187           lt_cv_apple_cc_single_mod=yes
16188         else
16189           cat conftest.err >&5
16190         fi
16191         rm -rf libconftest.dylib*
16192         rm -f conftest.*
16193       fi
16194 fi
16195 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16196 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16197     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16198 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16199 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   lt_cv_ld_exported_symbols_list=no
16203       save_LDFLAGS=$LDFLAGS
16204       echo "_main" > conftest.sym
16205       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16206       cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212
16213 int
16214 main ()
16215 {
16216
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223   (eval $ac_link) 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag"
16231                          || test ! -s conftest.err'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest$ac_exeext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   lt_cv_ld_exported_symbols_list=yes
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 lt_cv_ld_exported_symbols_list=no
16249 fi
16250 rm -f conftest.err conftest.$ac_objext \
16251       conftest$ac_exeext conftest.$ac_ext
16252         LDFLAGS="$save_LDFLAGS"
16253
16254 fi
16255 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16256 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16257     case $host_os in
16258     rhapsody* | darwin1.[012])
16259       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16260     darwin1.*)
16261       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16262     darwin*) # darwin 5.x on
16263       # if running on 10.5 or later, the deployment target defaults
16264       # to the OS version, if on x86, and 10.4, the deployment
16265       # target defaults to 10.4. Don't you love it?
16266       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16267         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16268           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16269         10.[012]*)
16270           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16271         10.*)
16272           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16273       esac
16274     ;;
16275   esac
16276     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16277       _lt_dar_single_mod='$single_module'
16278     fi
16279     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16280       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16281     else
16282       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16283     fi
16284     if test "$DSYMUTIL" != ":"; then
16285       _lt_dsymutil='~$DSYMUTIL $lib || :'
16286     else
16287       _lt_dsymutil=
16288     fi
16289     ;;
16290   esac
16291
16292
16293 for ac_header in dlfcn.h
16294 do
16295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296 echo "$as_me:$LINENO: checking for $ac_header" >&5
16297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307 #include <$ac_header>
16308 _ACEOF
16309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } >/dev/null; then
16317   if test -s conftest.err; then
16318     ac_cpp_err=$ac_c_preproc_warn_flag
16319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16320   else
16321     ac_cpp_err=
16322   fi
16323 else
16324   ac_cpp_err=yes
16325 fi
16326 if test -z "$ac_cpp_err"; then
16327   eval "$as_ac_Header=yes"
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332   eval "$as_ac_Header=no"
16333 fi
16334 rm -f conftest.err conftest.$ac_ext
16335 fi
16336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339   cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16341 _ACEOF
16342
16343 fi
16344 done
16345
16346
16347
16348 # Set options
16349
16350
16351
16352         enable_dlopen=no
16353
16354
16355   enable_win32_dll=no
16356
16357
16358             # Check whether --enable-shared or --disable-shared was given.
16359 if test "${enable_shared+set}" = set; then
16360   enableval="$enable_shared"
16361   p=${PACKAGE-default}
16362     case $enableval in
16363     yes) enable_shared=yes ;;
16364     no) enable_shared=no ;;
16365     *)
16366       enable_shared=no
16367       # Look at the argument we got.  We use all the common list separators.
16368       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16369       for pkg in $enableval; do
16370         IFS="$lt_save_ifs"
16371         if test "X$pkg" = "X$p"; then
16372           enable_shared=yes
16373         fi
16374       done
16375       IFS="$lt_save_ifs"
16376       ;;
16377     esac
16378 else
16379   enable_shared=yes
16380 fi;
16381
16382
16383
16384
16385
16386
16387
16388
16389   # Check whether --enable-static or --disable-static was given.
16390 if test "${enable_static+set}" = set; then
16391   enableval="$enable_static"
16392   p=${PACKAGE-default}
16393     case $enableval in
16394     yes) enable_static=yes ;;
16395     no) enable_static=no ;;
16396     *)
16397      enable_static=no
16398       # Look at the argument we got.  We use all the common list separators.
16399       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16400       for pkg in $enableval; do
16401         IFS="$lt_save_ifs"
16402         if test "X$pkg" = "X$p"; then
16403           enable_static=yes
16404         fi
16405       done
16406       IFS="$lt_save_ifs"
16407       ;;
16408     esac
16409 else
16410   enable_static=yes
16411 fi;
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421 # Check whether --with-pic or --without-pic was given.
16422 if test "${with_pic+set}" = set; then
16423   withval="$with_pic"
16424   pic_mode="$withval"
16425 else
16426   pic_mode=default
16427 fi;
16428
16429 test -z "$pic_mode" && pic_mode=default
16430
16431
16432
16433
16434
16435
16436
16437   # Check whether --enable-fast-install or --disable-fast-install was given.
16438 if test "${enable_fast_install+set}" = set; then
16439   enableval="$enable_fast_install"
16440   p=${PACKAGE-default}
16441     case $enableval in
16442     yes) enable_fast_install=yes ;;
16443     no) enable_fast_install=no ;;
16444     *)
16445       enable_fast_install=no
16446       # Look at the argument we got.  We use all the common list separators.
16447       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16448       for pkg in $enableval; do
16449         IFS="$lt_save_ifs"
16450         if test "X$pkg" = "X$p"; then
16451           enable_fast_install=yes
16452         fi
16453       done
16454       IFS="$lt_save_ifs"
16455       ;;
16456     esac
16457 else
16458   enable_fast_install=yes
16459 fi;
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470 # This can be used to rebuild libtool when needed
16471 LIBTOOL_DEPS="$ltmain"
16472
16473 # Always use our own libtool.
16474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500 test -z "$LN_S" && LN_S="ln -s"
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515 if test -n "${ZSH_VERSION+set}" ; then
16516    setopt NO_GLOB_SUBST
16517 fi
16518
16519 echo "$as_me:$LINENO: checking for objdir" >&5
16520 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16521 if test "${lt_cv_objdir+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   rm -f .libs 2>/dev/null
16525 mkdir .libs 2>/dev/null
16526 if test -d .libs; then
16527   lt_cv_objdir=.libs
16528 else
16529   # MS-DOS does not allow filenames that begin with a dot.
16530   lt_cv_objdir=_libs
16531 fi
16532 rmdir .libs 2>/dev/null
16533 fi
16534 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16535 echo "${ECHO_T}$lt_cv_objdir" >&6
16536 objdir=$lt_cv_objdir
16537
16538
16539
16540
16541
16542 cat >>confdefs.h <<_ACEOF
16543 #define LT_OBJDIR "$lt_cv_objdir/"
16544 _ACEOF
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562 case $host_os in
16563 aix3*)
16564   # AIX sometimes has problems with the GCC collect2 program.  For some
16565   # reason, if we set the COLLECT_NAMES environment variable, the problems
16566   # vanish in a puff of smoke.
16567   if test "X${COLLECT_NAMES+set}" != Xset; then
16568     COLLECT_NAMES=
16569     export COLLECT_NAMES
16570   fi
16571   ;;
16572 esac
16573
16574 # Sed substitution that helps us do robust quoting.  It backslashifies
16575 # metacharacters that are still active within double-quoted strings.
16576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16577
16578 # Same as above, but do not quote variable references.
16579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16580
16581 # Sed substitution to delay expansion of an escaped shell variable in a
16582 # double_quote_subst'ed string.
16583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16584
16585 # Sed substitution to delay expansion of an escaped single quote.
16586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16587
16588 # Sed substitution to avoid accidental globbing in evaled expressions
16589 no_glob_subst='s/\*/\\\*/g'
16590
16591 # Global variables:
16592 ofile=libtool
16593 can_build_shared=yes
16594
16595 # All known linkers require a `.a' archive for static linking (except MSVC,
16596 # which needs '.lib').
16597 libext=a
16598
16599 with_gnu_ld="$lt_cv_prog_gnu_ld"
16600
16601 old_CC="$CC"
16602 old_CFLAGS="$CFLAGS"
16603
16604 # Set sane defaults for various variables
16605 test -z "$CC" && CC=cc
16606 test -z "$LTCC" && LTCC=$CC
16607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16608 test -z "$LD" && LD=ld
16609 test -z "$ac_objext" && ac_objext=o
16610
16611 for cc_temp in $compiler""; do
16612   case $cc_temp in
16613     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16614     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16615     \-*) ;;
16616     *) break;;
16617   esac
16618 done
16619 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16620
16621
16622 # Only perform the check for file, if the check method requires it
16623 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16624 case $deplibs_check_method in
16625 file_magic*)
16626   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16627     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16628 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   case $MAGIC_CMD in
16633 [\\/*] |  ?:[\\/]*)
16634   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16635   ;;
16636 *)
16637   lt_save_MAGIC_CMD="$MAGIC_CMD"
16638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16639   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16640   for ac_dir in $ac_dummy; do
16641     IFS="$lt_save_ifs"
16642     test -z "$ac_dir" && ac_dir=.
16643     if test -f $ac_dir/${ac_tool_prefix}file; then
16644       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16645       if test -n "$file_magic_test_file"; then
16646         case $deplibs_check_method in
16647         "file_magic "*)
16648           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16649           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16650           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16651             $EGREP "$file_magic_regex" > /dev/null; then
16652             :
16653           else
16654             cat <<_LT_EOF 1>&2
16655
16656 *** Warning: the command libtool uses to detect shared libraries,
16657 *** $file_magic_cmd, produces output that libtool cannot recognize.
16658 *** The result is that libtool may fail to recognize shared libraries
16659 *** as such.  This will affect the creation of libtool libraries that
16660 *** depend on shared libraries, but programs linked with such libtool
16661 *** libraries will work regardless of this problem.  Nevertheless, you
16662 *** may want to report the problem to your system manager and/or to
16663 *** bug-libtool@gnu.org
16664
16665 _LT_EOF
16666           fi ;;
16667         esac
16668       fi
16669       break
16670     fi
16671   done
16672   IFS="$lt_save_ifs"
16673   MAGIC_CMD="$lt_save_MAGIC_CMD"
16674   ;;
16675 esac
16676 fi
16677
16678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16679 if test -n "$MAGIC_CMD"; then
16680   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16681 echo "${ECHO_T}$MAGIC_CMD" >&6
16682 else
16683   echo "$as_me:$LINENO: result: no" >&5
16684 echo "${ECHO_T}no" >&6
16685 fi
16686
16687
16688
16689
16690
16691 if test -z "$lt_cv_path_MAGIC_CMD"; then
16692   if test -n "$ac_tool_prefix"; then
16693     echo "$as_me:$LINENO: checking for file" >&5
16694 echo $ECHO_N "checking for file... $ECHO_C" >&6
16695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   case $MAGIC_CMD in
16699 [\\/*] |  ?:[\\/]*)
16700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16701   ;;
16702 *)
16703   lt_save_MAGIC_CMD="$MAGIC_CMD"
16704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16706   for ac_dir in $ac_dummy; do
16707     IFS="$lt_save_ifs"
16708     test -z "$ac_dir" && ac_dir=.
16709     if test -f $ac_dir/file; then
16710       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16711       if test -n "$file_magic_test_file"; then
16712         case $deplibs_check_method in
16713         "file_magic "*)
16714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16717             $EGREP "$file_magic_regex" > /dev/null; then
16718             :
16719           else
16720             cat <<_LT_EOF 1>&2
16721
16722 *** Warning: the command libtool uses to detect shared libraries,
16723 *** $file_magic_cmd, produces output that libtool cannot recognize.
16724 *** The result is that libtool may fail to recognize shared libraries
16725 *** as such.  This will affect the creation of libtool libraries that
16726 *** depend on shared libraries, but programs linked with such libtool
16727 *** libraries will work regardless of this problem.  Nevertheless, you
16728 *** may want to report the problem to your system manager and/or to
16729 *** bug-libtool@gnu.org
16730
16731 _LT_EOF
16732           fi ;;
16733         esac
16734       fi
16735       break
16736     fi
16737   done
16738   IFS="$lt_save_ifs"
16739   MAGIC_CMD="$lt_save_MAGIC_CMD"
16740   ;;
16741 esac
16742 fi
16743
16744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16745 if test -n "$MAGIC_CMD"; then
16746   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16747 echo "${ECHO_T}$MAGIC_CMD" >&6
16748 else
16749   echo "$as_me:$LINENO: result: no" >&5
16750 echo "${ECHO_T}no" >&6
16751 fi
16752
16753
16754   else
16755     MAGIC_CMD=:
16756   fi
16757 fi
16758
16759   fi
16760   ;;
16761 esac
16762
16763 # Use C for the default configuration in the libtool script
16764
16765 lt_save_CC="$CC"
16766 ac_ext=c
16767 ac_cpp='$CPP $CPPFLAGS'
16768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16771
16772
16773 # Source file extension for C test sources.
16774 ac_ext=c
16775
16776 # Object file extension for compiled C test sources.
16777 objext=o
16778 objext=$objext
16779
16780 # Code to be used in simple compile tests
16781 lt_simple_compile_test_code="int some_variable = 0;"
16782
16783 # Code to be used in simple link tests
16784 lt_simple_link_test_code='int main(){return(0);}'
16785
16786
16787
16788
16789
16790
16791
16792 # If no C compiler was specified, use CC.
16793 LTCC=${LTCC-"$CC"}
16794
16795 # If no C compiler flags were specified, use CFLAGS.
16796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16797
16798 # Allow CC to be a program name with arguments.
16799 compiler=$CC
16800
16801 # Save the default compiler, since it gets overwritten when the other
16802 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16803 compiler_DEFAULT=$CC
16804
16805 # save warnings/boilerplate of simple test code
16806 ac_outfile=conftest.$ac_objext
16807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16809 _lt_compiler_boilerplate=`cat conftest.err`
16810 $RM conftest*
16811
16812 ac_outfile=conftest.$ac_objext
16813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16815 _lt_linker_boilerplate=`cat conftest.err`
16816 $RM -r conftest*
16817
16818
16819 ## CAVEAT EMPTOR:
16820 ## There is no encapsulation within the following macros, do not change
16821 ## the running order or otherwise move them around unless you know exactly
16822 ## what you are doing...
16823 if test -n "$compiler"; then
16824
16825 lt_prog_compiler_no_builtin_flag=
16826
16827 if test "$GCC" = yes; then
16828   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16829
16830   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16831 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16832 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16833   echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835   lt_cv_prog_compiler_rtti_exceptions=no
16836    ac_outfile=conftest.$ac_objext
16837    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16838    lt_compiler_flag="-fno-rtti -fno-exceptions"
16839    # Insert the option either (1) after the last *FLAGS variable, or
16840    # (2) before a word containing "conftest.", or (3) at the end.
16841    # Note that $ac_compile itself does not contain backslashes and begins
16842    # with a dollar sign (not a hyphen), so the echo should work correctly.
16843    # The option is referenced via a variable to avoid confusing sed.
16844    lt_compile=`echo "$ac_compile" | $SED \
16845    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16847    -e 's:$: $lt_compiler_flag:'`
16848    (eval echo "\"\$as_me:16848: $lt_compile\"" >&5)
16849    (eval "$lt_compile" 2>conftest.err)
16850    ac_status=$?
16851    cat conftest.err >&5
16852    echo "$as_me:16852: \$? = $ac_status" >&5
16853    if (exit $ac_status) && test -s "$ac_outfile"; then
16854      # The compiler can only warn and ignore the option if not recognized
16855      # So say no if there are warnings other than the usual output.
16856      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16857      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16858      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16859        lt_cv_prog_compiler_rtti_exceptions=yes
16860      fi
16861    fi
16862    $RM conftest*
16863
16864 fi
16865 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16866 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16867
16868 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16869     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16870 else
16871     :
16872 fi
16873
16874 fi
16875
16876
16877
16878
16879
16880
16881   lt_prog_compiler_wl=
16882 lt_prog_compiler_pic=
16883 lt_prog_compiler_static=
16884
16885 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16887
16888   if test "$GCC" = yes; then
16889     lt_prog_compiler_wl='-Wl,'
16890     lt_prog_compiler_static='-static'
16891
16892     case $host_os in
16893       aix*)
16894       # All AIX code is PIC.
16895       if test "$host_cpu" = ia64; then
16896         # AIX 5 now supports IA64 processor
16897         lt_prog_compiler_static='-Bstatic'
16898       fi
16899       ;;
16900
16901     amigaos*)
16902       case $host_cpu in
16903       powerpc)
16904             # see comment about AmigaOS4 .so support
16905             lt_prog_compiler_pic='-fPIC'
16906         ;;
16907       m68k)
16908             # FIXME: we need at least 68020 code to build shared libraries, but
16909             # adding the `-m68020' flag to GCC prevents building anything better,
16910             # like `-m68040'.
16911             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16912         ;;
16913       esac
16914       ;;
16915
16916     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16917       # PIC is the default for these OSes.
16918       ;;
16919
16920     mingw* | cygwin* | pw32* | os2* | cegcc*)
16921       # This hack is so that the source file can tell whether it is being
16922       # built for inclusion in a dll (and should export symbols for example).
16923       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16924       # (--disable-auto-import) libraries
16925       lt_prog_compiler_pic='-DDLL_EXPORT'
16926       ;;
16927
16928     darwin* | rhapsody*)
16929       # PIC is the default on this platform
16930       # Common symbols not allowed in MH_DYLIB files
16931       lt_prog_compiler_pic='-fno-common'
16932       ;;
16933
16934     hpux*)
16935       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16936       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16937       # sets the default TLS model and affects inlining.
16938       case $host_cpu in
16939       hppa*64*)
16940         # +Z the default
16941         ;;
16942       *)
16943         lt_prog_compiler_pic='-fPIC'
16944         ;;
16945       esac
16946       ;;
16947
16948     interix[3-9]*)
16949       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16950       # Instead, we relocate shared libraries at runtime.
16951       ;;
16952
16953     msdosdjgpp*)
16954       # Just because we use GCC doesn't mean we suddenly get shared libraries
16955       # on systems that don't support them.
16956       lt_prog_compiler_can_build_shared=no
16957       enable_shared=no
16958       ;;
16959
16960     *nto* | *qnx*)
16961       # QNX uses GNU C++, but need to define -shared option too, otherwise
16962       # it will coredump.
16963       lt_prog_compiler_pic='-fPIC -shared'
16964       ;;
16965
16966     sysv4*MP*)
16967       if test -d /usr/nec; then
16968         lt_prog_compiler_pic=-Kconform_pic
16969       fi
16970       ;;
16971
16972     *)
16973       lt_prog_compiler_pic='-fPIC'
16974       ;;
16975     esac
16976   else
16977     # PORTME Check for flag to pass linker flags through the system compiler.
16978     case $host_os in
16979     aix*)
16980       lt_prog_compiler_wl='-Wl,'
16981       if test "$host_cpu" = ia64; then
16982         # AIX 5 now supports IA64 processor
16983         lt_prog_compiler_static='-Bstatic'
16984       else
16985         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16986       fi
16987       ;;
16988
16989     mingw* | cygwin* | pw32* | os2* | cegcc*)
16990       # This hack is so that the source file can tell whether it is being
16991       # built for inclusion in a dll (and should export symbols for example).
16992       lt_prog_compiler_pic='-DDLL_EXPORT'
16993       ;;
16994
16995     hpux9* | hpux10* | hpux11*)
16996       lt_prog_compiler_wl='-Wl,'
16997       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16998       # not for PA HP-UX.
16999       case $host_cpu in
17000       hppa*64*|ia64*)
17001         # +Z the default
17002         ;;
17003       *)
17004         lt_prog_compiler_pic='+Z'
17005         ;;
17006       esac
17007       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17008       lt_prog_compiler_static='${wl}-a ${wl}archive'
17009       ;;
17010
17011     irix5* | irix6* | nonstopux*)
17012       lt_prog_compiler_wl='-Wl,'
17013       # PIC (with -KPIC) is the default.
17014       lt_prog_compiler_static='-non_shared'
17015       ;;
17016
17017     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17018       case $cc_basename in
17019       # old Intel for x86_64 which still supported -KPIC.
17020       ecc*)
17021         lt_prog_compiler_wl='-Wl,'
17022         lt_prog_compiler_pic='-KPIC'
17023         lt_prog_compiler_static='-static'
17024         ;;
17025       # icc used to be incompatible with GCC.
17026       # ICC 10 doesn't accept -KPIC any more.
17027       icc* | ifort*)
17028         lt_prog_compiler_wl='-Wl,'
17029         lt_prog_compiler_pic='-fPIC'
17030         lt_prog_compiler_static='-static'
17031         ;;
17032       # Lahey Fortran 8.1.
17033       lf95*)
17034         lt_prog_compiler_wl='-Wl,'
17035         lt_prog_compiler_pic='--shared'
17036         lt_prog_compiler_static='--static'
17037         ;;
17038       pgcc* | pgf77* | pgf90* | pgf95*)
17039         # Portland Group compilers (*not* the Pentium gcc compiler,
17040         # which looks to be a dead project)
17041         lt_prog_compiler_wl='-Wl,'
17042         lt_prog_compiler_pic='-fpic'
17043         lt_prog_compiler_static='-Bstatic'
17044         ;;
17045       ccc*)
17046         lt_prog_compiler_wl='-Wl,'
17047         # All Alpha code is PIC.
17048         lt_prog_compiler_static='-non_shared'
17049         ;;
17050       xl*)
17051         # IBM XL C 8.0/Fortran 10.1 on PPC
17052         lt_prog_compiler_wl='-Wl,'
17053         lt_prog_compiler_pic='-qpic'
17054         lt_prog_compiler_static='-qstaticlink'
17055         ;;
17056       *)
17057         case `$CC -V 2>&1 | sed 5q` in
17058         *Sun\ C*)
17059           # Sun C 5.9
17060           lt_prog_compiler_pic='-KPIC'
17061           lt_prog_compiler_static='-Bstatic'
17062           lt_prog_compiler_wl='-Wl,'
17063           ;;
17064         *Sun\ F*)
17065           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17066           lt_prog_compiler_pic='-KPIC'
17067           lt_prog_compiler_static='-Bstatic'
17068           lt_prog_compiler_wl=''
17069           ;;
17070         esac
17071         ;;
17072       esac
17073       ;;
17074
17075     newsos6)
17076       lt_prog_compiler_pic='-KPIC'
17077       lt_prog_compiler_static='-Bstatic'
17078       ;;
17079
17080     *nto* | *qnx*)
17081       # QNX uses GNU C++, but need to define -shared option too, otherwise
17082       # it will coredump.
17083       lt_prog_compiler_pic='-fPIC -shared'
17084       ;;
17085
17086     osf3* | osf4* | osf5*)
17087       lt_prog_compiler_wl='-Wl,'
17088       # All OSF/1 code is PIC.
17089       lt_prog_compiler_static='-non_shared'
17090       ;;
17091
17092     rdos*)
17093       lt_prog_compiler_static='-non_shared'
17094       ;;
17095
17096     solaris*)
17097       lt_prog_compiler_pic='-KPIC'
17098       lt_prog_compiler_static='-Bstatic'
17099       case $cc_basename in
17100       f77* | f90* | f95*)
17101         lt_prog_compiler_wl='-Qoption ld ';;
17102       *)
17103         lt_prog_compiler_wl='-Wl,';;
17104       esac
17105       ;;
17106
17107     sunos4*)
17108       lt_prog_compiler_wl='-Qoption ld '
17109       lt_prog_compiler_pic='-PIC'
17110       lt_prog_compiler_static='-Bstatic'
17111       ;;
17112
17113     sysv4 | sysv4.2uw2* | sysv4.3*)
17114       lt_prog_compiler_wl='-Wl,'
17115       lt_prog_compiler_pic='-KPIC'
17116       lt_prog_compiler_static='-Bstatic'
17117       ;;
17118
17119     sysv4*MP*)
17120       if test -d /usr/nec ;then
17121         lt_prog_compiler_pic='-Kconform_pic'
17122         lt_prog_compiler_static='-Bstatic'
17123       fi
17124       ;;
17125
17126     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17127       lt_prog_compiler_wl='-Wl,'
17128       lt_prog_compiler_pic='-KPIC'
17129       lt_prog_compiler_static='-Bstatic'
17130       ;;
17131
17132     unicos*)
17133       lt_prog_compiler_wl='-Wl,'
17134       lt_prog_compiler_can_build_shared=no
17135       ;;
17136
17137     uts4*)
17138       lt_prog_compiler_pic='-pic'
17139       lt_prog_compiler_static='-Bstatic'
17140       ;;
17141
17142     *)
17143       lt_prog_compiler_can_build_shared=no
17144       ;;
17145     esac
17146   fi
17147
17148 case $host_os in
17149   # For platforms which do not support PIC, -DPIC is meaningless:
17150   *djgpp*)
17151     lt_prog_compiler_pic=
17152     ;;
17153   *)
17154     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17155     ;;
17156 esac
17157 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17158 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17159
17160
17161
17162
17163
17164
17165 #
17166 # Check to make sure the PIC flag actually works.
17167 #
17168 if test -n "$lt_prog_compiler_pic"; then
17169   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17170 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17171 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174   lt_cv_prog_compiler_pic_works=no
17175    ac_outfile=conftest.$ac_objext
17176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17177    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17178    # Insert the option either (1) after the last *FLAGS variable, or
17179    # (2) before a word containing "conftest.", or (3) at the end.
17180    # Note that $ac_compile itself does not contain backslashes and begins
17181    # with a dollar sign (not a hyphen), so the echo should work correctly.
17182    # The option is referenced via a variable to avoid confusing sed.
17183    lt_compile=`echo "$ac_compile" | $SED \
17184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17186    -e 's:$: $lt_compiler_flag:'`
17187    (eval echo "\"\$as_me:17187: $lt_compile\"" >&5)
17188    (eval "$lt_compile" 2>conftest.err)
17189    ac_status=$?
17190    cat conftest.err >&5
17191    echo "$as_me:17191: \$? = $ac_status" >&5
17192    if (exit $ac_status) && test -s "$ac_outfile"; then
17193      # The compiler can only warn and ignore the option if not recognized
17194      # So say no if there are warnings other than the usual output.
17195      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17196      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17197      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17198        lt_cv_prog_compiler_pic_works=yes
17199      fi
17200    fi
17201    $RM conftest*
17202
17203 fi
17204 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17205 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17206
17207 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17208     case $lt_prog_compiler_pic in
17209      "" | " "*) ;;
17210      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17211      esac
17212 else
17213     lt_prog_compiler_pic=
17214      lt_prog_compiler_can_build_shared=no
17215 fi
17216
17217 fi
17218
17219
17220
17221
17222
17223
17224 #
17225 # Check to make sure the static flag actually works.
17226 #
17227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17229 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17230 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   lt_cv_prog_compiler_static_works=no
17234    save_LDFLAGS="$LDFLAGS"
17235    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17236    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17238      # The linker can only warn and ignore the option if not recognized
17239      # So say no if there are warnings
17240      if test -s conftest.err; then
17241        # Append any errors to the config.log.
17242        cat conftest.err 1>&5
17243        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17244        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17245        if diff conftest.exp conftest.er2 >/dev/null; then
17246          lt_cv_prog_compiler_static_works=yes
17247        fi
17248      else
17249        lt_cv_prog_compiler_static_works=yes
17250      fi
17251    fi
17252    $RM -r conftest*
17253    LDFLAGS="$save_LDFLAGS"
17254
17255 fi
17256 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17257 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17258
17259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17260     :
17261 else
17262     lt_prog_compiler_static=
17263 fi
17264
17265
17266
17267
17268
17269
17270
17271   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17273 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   lt_cv_prog_compiler_c_o=no
17277    $RM -r conftest 2>/dev/null
17278    mkdir conftest
17279    cd conftest
17280    mkdir out
17281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17282
17283    lt_compiler_flag="-o out/conftest2.$ac_objext"
17284    # Insert the option either (1) after the last *FLAGS variable, or
17285    # (2) before a word containing "conftest.", or (3) at the end.
17286    # Note that $ac_compile itself does not contain backslashes and begins
17287    # with a dollar sign (not a hyphen), so the echo should work correctly.
17288    lt_compile=`echo "$ac_compile" | $SED \
17289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17291    -e 's:$: $lt_compiler_flag:'`
17292    (eval echo "\"\$as_me:17292: $lt_compile\"" >&5)
17293    (eval "$lt_compile" 2>out/conftest.err)
17294    ac_status=$?
17295    cat out/conftest.err >&5
17296    echo "$as_me:17296: \$? = $ac_status" >&5
17297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17298    then
17299      # The compiler can only warn and ignore the option if not recognized
17300      # So say no if there are warnings
17301      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17304        lt_cv_prog_compiler_c_o=yes
17305      fi
17306    fi
17307    chmod u+w . 2>&5
17308    $RM conftest*
17309    # SGI C++ compiler will create directory out/ii_files/ for
17310    # template instantiation
17311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17312    $RM out/* && rmdir out
17313    cd ..
17314    $RM -r conftest
17315    $RM conftest*
17316
17317 fi
17318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17320
17321
17322
17323
17324
17325
17326   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17327 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331   lt_cv_prog_compiler_c_o=no
17332    $RM -r conftest 2>/dev/null
17333    mkdir conftest
17334    cd conftest
17335    mkdir out
17336    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17337
17338    lt_compiler_flag="-o out/conftest2.$ac_objext"
17339    # Insert the option either (1) after the last *FLAGS variable, or
17340    # (2) before a word containing "conftest.", or (3) at the end.
17341    # Note that $ac_compile itself does not contain backslashes and begins
17342    # with a dollar sign (not a hyphen), so the echo should work correctly.
17343    lt_compile=`echo "$ac_compile" | $SED \
17344    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17346    -e 's:$: $lt_compiler_flag:'`
17347    (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
17348    (eval "$lt_compile" 2>out/conftest.err)
17349    ac_status=$?
17350    cat out/conftest.err >&5
17351    echo "$as_me:17351: \$? = $ac_status" >&5
17352    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17353    then
17354      # The compiler can only warn and ignore the option if not recognized
17355      # So say no if there are warnings
17356      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17357      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17358      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17359        lt_cv_prog_compiler_c_o=yes
17360      fi
17361    fi
17362    chmod u+w . 2>&5
17363    $RM conftest*
17364    # SGI C++ compiler will create directory out/ii_files/ for
17365    # template instantiation
17366    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17367    $RM out/* && rmdir out
17368    cd ..
17369    $RM -r conftest
17370    $RM conftest*
17371
17372 fi
17373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17375
17376
17377
17378
17379 hard_links="nottested"
17380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17381   # do not overwrite the value of need_locks provided by the user
17382   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17384   hard_links=yes
17385   $RM conftest*
17386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17387   touch conftest.a
17388   ln conftest.a conftest.b 2>&5 || hard_links=no
17389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390   echo "$as_me:$LINENO: result: $hard_links" >&5
17391 echo "${ECHO_T}$hard_links" >&6
17392   if test "$hard_links" = no; then
17393     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17395     need_locks=warn
17396   fi
17397 else
17398   need_locks=no
17399 fi
17400
17401
17402
17403
17404
17405
17406   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17408
17409   runpath_var=
17410   allow_undefined_flag=
17411   always_export_symbols=no
17412   archive_cmds=
17413   archive_expsym_cmds=
17414   compiler_needs_object=no
17415   enable_shared_with_static_runtimes=no
17416   export_dynamic_flag_spec=
17417   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17418   hardcode_automatic=no
17419   hardcode_direct=no
17420   hardcode_direct_absolute=no
17421   hardcode_libdir_flag_spec=
17422   hardcode_libdir_flag_spec_ld=
17423   hardcode_libdir_separator=
17424   hardcode_minus_L=no
17425   hardcode_shlibpath_var=unsupported
17426   inherit_rpath=no
17427   link_all_deplibs=unknown
17428   module_cmds=
17429   module_expsym_cmds=
17430   old_archive_from_new_cmds=
17431   old_archive_from_expsyms_cmds=
17432   thread_safe_flag_spec=
17433   whole_archive_flag_spec=
17434   # include_expsyms should be a list of space-separated symbols to be *always*
17435   # included in the symbol list
17436   include_expsyms=
17437   # exclude_expsyms can be an extended regexp of symbols to exclude
17438   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17439   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17440   # as well as any symbol that contains `d'.
17441   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17442   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17443   # platforms (ab)use it in PIC code, but their linkers get confused if
17444   # the symbol is explicitly referenced.  Since portable code cannot
17445   # rely on this symbol name, it's probably fine to never include it in
17446   # preloaded symbol tables.
17447   # Exclude shared library initialization/finalization symbols.
17448   extract_expsyms_cmds=
17449
17450   case $host_os in
17451   cygwin* | mingw* | pw32* | cegcc*)
17452     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17453     # When not using gcc, we currently assume that we are using
17454     # Microsoft Visual C++.
17455     if test "$GCC" != yes; then
17456       with_gnu_ld=no
17457     fi
17458     ;;
17459   interix*)
17460     # we just hope/assume this is gcc and not c89 (= MSVC++)
17461     with_gnu_ld=yes
17462     ;;
17463   openbsd*)
17464     with_gnu_ld=no
17465     ;;
17466   esac
17467
17468   ld_shlibs=yes
17469   if test "$with_gnu_ld" = yes; then
17470     # If archive_cmds runs LD, not CC, wlarc should be empty
17471     wlarc='${wl}'
17472
17473     # Set some defaults for GNU ld with shared library support. These
17474     # are reset later if shared libraries are not supported. Putting them
17475     # here allows them to be overridden if necessary.
17476     runpath_var=LD_RUN_PATH
17477     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17478     export_dynamic_flag_spec='${wl}--export-dynamic'
17479     # ancient GNU ld didn't support --whole-archive et. al.
17480     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17481       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17482     else
17483       whole_archive_flag_spec=
17484     fi
17485     supports_anon_versioning=no
17486     case `$LD -v 2>&1` in
17487       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17488       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17489       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17490       *\ 2.11.*) ;; # other 2.11 versions
17491       *) supports_anon_versioning=yes ;;
17492     esac
17493
17494     # See if GNU ld supports shared libraries.
17495     case $host_os in
17496     aix[3-9]*)
17497       # On AIX/PPC, the GNU linker is very broken
17498       if test "$host_cpu" != ia64; then
17499         ld_shlibs=no
17500         cat <<_LT_EOF 1>&2
17501
17502 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17503 *** to be unable to reliably create shared libraries on AIX.
17504 *** Therefore, libtool is disabling shared libraries support.  If you
17505 *** really care for shared libraries, you may want to modify your PATH
17506 *** so that a non-GNU linker is found, and then restart.
17507
17508 _LT_EOF
17509       fi
17510       ;;
17511
17512     amigaos*)
17513       case $host_cpu in
17514       powerpc)
17515             # see comment about AmigaOS4 .so support
17516             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17517             archive_expsym_cmds=''
17518         ;;
17519       m68k)
17520             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17521             hardcode_libdir_flag_spec='-L$libdir'
17522             hardcode_minus_L=yes
17523         ;;
17524       esac
17525       ;;
17526
17527     beos*)
17528       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17529         allow_undefined_flag=unsupported
17530         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17531         # support --undefined.  This deserves some investigation.  FIXME
17532         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533       else
17534         ld_shlibs=no
17535       fi
17536       ;;
17537
17538     cygwin* | mingw* | pw32* | cegcc*)
17539       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17540       # as there is no search path for DLLs.
17541       hardcode_libdir_flag_spec='-L$libdir'
17542       allow_undefined_flag=unsupported
17543       always_export_symbols=no
17544       enable_shared_with_static_runtimes=yes
17545       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17546
17547       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17549         # If the export-symbols file already is a .def file (1st line
17550         # is EXPORTS), use it as is; otherwise, prepend...
17551         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17552           cp $export_symbols $output_objdir/$soname.def;
17553         else
17554           echo EXPORTS > $output_objdir/$soname.def;
17555           cat $export_symbols >> $output_objdir/$soname.def;
17556         fi~
17557         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17558       else
17559         ld_shlibs=no
17560       fi
17561       ;;
17562
17563     interix[3-9]*)
17564       hardcode_direct=no
17565       hardcode_shlibpath_var=no
17566       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17567       export_dynamic_flag_spec='${wl}-E'
17568       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17569       # Instead, shared libraries are loaded at an image base (0x10000000 by
17570       # default) and relocated if they conflict, which is a slow very memory
17571       # consuming and fragmenting process.  To avoid this, we pick a random,
17572       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17573       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17574       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17575       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'
17576       ;;
17577
17578     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17579       tmp_diet=no
17580       if test "$host_os" = linux-dietlibc; then
17581         case $cc_basename in
17582           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17583         esac
17584       fi
17585       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17586          && test "$tmp_diet" = no
17587       then
17588         tmp_addflag=
17589         tmp_sharedflag='-shared'
17590         case $cc_basename,$host_cpu in
17591         pgcc*)                          # Portland Group C compiler
17592           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'
17593           tmp_addflag=' $pic_flag'
17594           ;;
17595         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17596           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'
17597           tmp_addflag=' $pic_flag -Mnomain' ;;
17598         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17599           tmp_addflag=' -i_dynamic' ;;
17600         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17601           tmp_addflag=' -i_dynamic -nofor_main' ;;
17602         ifc* | ifort*)                  # Intel Fortran compiler
17603           tmp_addflag=' -nofor_main' ;;
17604         lf95*)                          # Lahey Fortran 8.1
17605           whole_archive_flag_spec=
17606           tmp_sharedflag='--shared' ;;
17607         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17608           tmp_sharedflag='-qmkshrobj'
17609           tmp_addflag= ;;
17610         esac
17611         case `$CC -V 2>&1 | sed 5q` in
17612         *Sun\ C*)                       # Sun C 5.9
17613           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'
17614           compiler_needs_object=yes
17615           tmp_sharedflag='-G' ;;
17616         *Sun\ F*)                       # Sun Fortran 8.3
17617           tmp_sharedflag='-G' ;;
17618         esac
17619         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620
17621         if test "x$supports_anon_versioning" = xyes; then
17622           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17623             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17624             echo "local: *; };" >> $output_objdir/$libname.ver~
17625             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17626         fi
17627
17628         case $cc_basename in
17629         xlf*)
17630           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17631           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17632           hardcode_libdir_flag_spec=
17633           hardcode_libdir_flag_spec_ld='-rpath $libdir'
17634           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17635           if test "x$supports_anon_versioning" = xyes; then
17636             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17637               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17638               echo "local: *; };" >> $output_objdir/$libname.ver~
17639               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17640           fi
17641           ;;
17642         esac
17643       else
17644         ld_shlibs=no
17645       fi
17646       ;;
17647
17648     netbsd*)
17649       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17650         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17651         wlarc=
17652       else
17653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655       fi
17656       ;;
17657
17658     solaris*)
17659       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17660         ld_shlibs=no
17661         cat <<_LT_EOF 1>&2
17662
17663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17664 *** create shared libraries on Solaris systems.  Therefore, libtool
17665 *** is disabling shared libraries support.  We urge you to upgrade GNU
17666 *** binutils to release 2.9.1 or newer.  Another option is to modify
17667 *** your PATH or compiler configuration so that the native linker is
17668 *** used, and then restart.
17669
17670 _LT_EOF
17671       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17672         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17674       else
17675         ld_shlibs=no
17676       fi
17677       ;;
17678
17679     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17680       case `$LD -v 2>&1` in
17681         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17682         ld_shlibs=no
17683         cat <<_LT_EOF 1>&2
17684
17685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17686 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17687 *** is disabling shared libraries support.  We urge you to upgrade GNU
17688 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17689 *** your PATH or compiler configuration so that the native linker is
17690 *** used, and then restart.
17691
17692 _LT_EOF
17693         ;;
17694         *)
17695           # For security reasons, it is highly recommended that you always
17696           # use absolute paths for naming shared libraries, and exclude the
17697           # DT_RUNPATH tag from executables and libraries.  But doing so
17698           # requires that you compile everything twice, which is a pain.
17699           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17700             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17701             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17702             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17703           else
17704             ld_shlibs=no
17705           fi
17706         ;;
17707       esac
17708       ;;
17709
17710     sunos4*)
17711       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17712       wlarc=
17713       hardcode_direct=yes
17714       hardcode_shlibpath_var=no
17715       ;;
17716
17717     *)
17718       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17719         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17721       else
17722         ld_shlibs=no
17723       fi
17724       ;;
17725     esac
17726
17727     if test "$ld_shlibs" = no; then
17728       runpath_var=
17729       hardcode_libdir_flag_spec=
17730       export_dynamic_flag_spec=
17731       whole_archive_flag_spec=
17732     fi
17733   else
17734     # PORTME fill in a description of your system's linker (not GNU ld)
17735     case $host_os in
17736     aix3*)
17737       allow_undefined_flag=unsupported
17738       always_export_symbols=yes
17739       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'
17740       # Note: this linker hardcodes the directories in LIBPATH if there
17741       # are no directories specified by -L.
17742       hardcode_minus_L=yes
17743       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17744         # Neither direct hardcoding nor static linking is supported with a
17745         # broken collect2.
17746         hardcode_direct=unsupported
17747       fi
17748       ;;
17749
17750     aix[4-9]*)
17751       if test "$host_cpu" = ia64; then
17752         # On IA64, the linker does run time linking by default, so we don't
17753         # have to do anything special.
17754         aix_use_runtimelinking=no
17755         exp_sym_flag='-Bexport'
17756         no_entry_flag=""
17757       else
17758         # If we're using GNU nm, then we don't want the "-C" option.
17759         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17760         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17761           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'
17762         else
17763           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'
17764         fi
17765         aix_use_runtimelinking=no
17766
17767         # Test if we are trying to use run time linking or normal
17768         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17769         # need to do runtime linking.
17770         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17771           for ld_flag in $LDFLAGS; do
17772           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17773             aix_use_runtimelinking=yes
17774             break
17775           fi
17776           done
17777           ;;
17778         esac
17779
17780         exp_sym_flag='-bexport'
17781         no_entry_flag='-bnoentry'
17782       fi
17783
17784       # When large executables or shared objects are built, AIX ld can
17785       # have problems creating the table of contents.  If linking a library
17786       # or program results in "error TOC overflow" add -mminimal-toc to
17787       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17788       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17789
17790       archive_cmds=''
17791       hardcode_direct=yes
17792       hardcode_direct_absolute=yes
17793       hardcode_libdir_separator=':'
17794       link_all_deplibs=yes
17795       file_list_spec='${wl}-f,'
17796
17797       if test "$GCC" = yes; then
17798         case $host_os in aix4.[012]|aix4.[012].*)
17799         # We only want to do this on AIX 4.2 and lower, the check
17800         # below for broken collect2 doesn't work under 4.3+
17801           collect2name=`${CC} -print-prog-name=collect2`
17802           if test -f "$collect2name" &&
17803            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17804           then
17805           # We have reworked collect2
17806           :
17807           else
17808           # We have old collect2
17809           hardcode_direct=unsupported
17810           # It fails to find uninstalled libraries when the uninstalled
17811           # path is not listed in the libpath.  Setting hardcode_minus_L
17812           # to unsupported forces relinking
17813           hardcode_minus_L=yes
17814           hardcode_libdir_flag_spec='-L$libdir'
17815           hardcode_libdir_separator=
17816           fi
17817           ;;
17818         esac
17819         shared_flag='-shared'
17820         if test "$aix_use_runtimelinking" = yes; then
17821           shared_flag="$shared_flag "'${wl}-G'
17822         fi
17823       else
17824         # not using gcc
17825         if test "$host_cpu" = ia64; then
17826         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17827         # chokes on -Wl,-G. The following line is correct:
17828           shared_flag='-G'
17829         else
17830           if test "$aix_use_runtimelinking" = yes; then
17831             shared_flag='${wl}-G'
17832           else
17833             shared_flag='${wl}-bM:SRE'
17834           fi
17835         fi
17836       fi
17837
17838       export_dynamic_flag_spec='${wl}-bexpall'
17839       # It seems that -bexpall does not export symbols beginning with
17840       # underscore (_), so it is better to generate a list of symbols to export.
17841       always_export_symbols=yes
17842       if test "$aix_use_runtimelinking" = yes; then
17843         # Warning - without using the other runtime loading flags (-brtl),
17844         # -berok will link without error, but may produce a broken library.
17845         allow_undefined_flag='-berok'
17846         # Determine the default libpath from the value encoded in an
17847         # empty executable.
17848         cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854
17855 int
17856 main ()
17857 {
17858
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17865   (eval $ac_link) 2>conftest.er1
17866   ac_status=$?
17867   grep -v '^ *+' conftest.er1 >conftest.err
17868   rm -f conftest.er1
17869   cat conftest.err >&5
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); } &&
17872          { ac_try='test -z "$ac_c_werror_flag"
17873                          || test ! -s conftest.err'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; } &&
17879          { ac_try='test -s conftest$ac_exeext'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; }; then
17885
17886 lt_aix_libpath_sed='
17887     /Import File Strings/,/^$/ {
17888         /^0/ {
17889             s/^0  *\(.*\)$/\1/
17890             p
17891         }
17892     }'
17893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17894 # Check for a 64-bit object if we didn't find anything.
17895 if test -z "$aix_libpath"; then
17896   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17897 fi
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 fi
17903 rm -f conftest.err conftest.$ac_objext \
17904       conftest$ac_exeext conftest.$ac_ext
17905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17906
17907         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17908         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"
17909       else
17910         if test "$host_cpu" = ia64; then
17911           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17912           allow_undefined_flag="-z nodefs"
17913           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"
17914         else
17915          # Determine the default libpath from the value encoded in an
17916          # empty executable.
17917          cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923
17924 int
17925 main ()
17926 {
17927
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934   (eval $ac_link) 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -z "$ac_c_werror_flag"
17942                          || test ! -s conftest.err'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest$ac_exeext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954
17955 lt_aix_libpath_sed='
17956     /Import File Strings/,/^$/ {
17957         /^0/ {
17958             s/^0  *\(.*\)$/\1/
17959             p
17960         }
17961     }'
17962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 # Check for a 64-bit object if we didn't find anything.
17964 if test -z "$aix_libpath"; then
17965   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17966 fi
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 fi
17972 rm -f conftest.err conftest.$ac_objext \
17973       conftest$ac_exeext conftest.$ac_ext
17974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17975
17976          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17977           # Warning - without using the other run time loading flags,
17978           # -berok will link without error, but may produce a broken library.
17979           no_undefined_flag=' ${wl}-bernotok'
17980           allow_undefined_flag=' ${wl}-berok'
17981           # Exported symbols can be pulled into shared objects from archives
17982           whole_archive_flag_spec='$convenience'
17983           archive_cmds_need_lc=yes
17984           # This is similar to how AIX traditionally builds its shared libraries.
17985           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'
17986         fi
17987       fi
17988       ;;
17989
17990     amigaos*)
17991       case $host_cpu in
17992       powerpc)
17993             # see comment about AmigaOS4 .so support
17994             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17995             archive_expsym_cmds=''
17996         ;;
17997       m68k)
17998             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)'
17999             hardcode_libdir_flag_spec='-L$libdir'
18000             hardcode_minus_L=yes
18001         ;;
18002       esac
18003       ;;
18004
18005     bsdi[45]*)
18006       export_dynamic_flag_spec=-rdynamic
18007       ;;
18008
18009     cygwin* | mingw* | pw32* | cegcc*)
18010       # When not using gcc, we currently assume that we are using
18011       # Microsoft Visual C++.
18012       # hardcode_libdir_flag_spec is actually meaningless, as there is
18013       # no search path for DLLs.
18014       hardcode_libdir_flag_spec=' '
18015       allow_undefined_flag=unsupported
18016       # Tell ltmain to make .lib files, not .a files.
18017       libext=lib
18018       # Tell ltmain to make .dll files, not .so files.
18019       shrext_cmds=".dll"
18020       # FIXME: Setting linknames here is a bad hack.
18021       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18022       # The linker will automatically build a .lib file if we build a DLL.
18023       old_archive_from_new_cmds='true'
18024       # FIXME: Should let the user specify the lib program.
18025       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18026       fix_srcfile_path='`cygpath -w "$srcfile"`'
18027       enable_shared_with_static_runtimes=yes
18028       ;;
18029
18030     darwin* | rhapsody*)
18031
18032
18033   archive_cmds_need_lc=no
18034   hardcode_direct=no
18035   hardcode_automatic=yes
18036   hardcode_shlibpath_var=unsupported
18037   whole_archive_flag_spec=''
18038   link_all_deplibs=yes
18039   allow_undefined_flag="$_lt_dar_allow_undefined"
18040   case $cc_basename in
18041      ifort*) _lt_dar_can_shared=yes ;;
18042      *) _lt_dar_can_shared=$GCC ;;
18043   esac
18044   if test "$_lt_dar_can_shared" = "yes"; then
18045     output_verbose_link_cmd=echo
18046     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18047     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18048     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}"
18049     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}"
18050
18051   else
18052   ld_shlibs=no
18053   fi
18054
18055       ;;
18056
18057     dgux*)
18058       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059       hardcode_libdir_flag_spec='-L$libdir'
18060       hardcode_shlibpath_var=no
18061       ;;
18062
18063     freebsd1*)
18064       ld_shlibs=no
18065       ;;
18066
18067     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18068     # support.  Future versions do this automatically, but an explicit c++rt0.o
18069     # does not break anything, and helps significantly (at the cost of a little
18070     # extra space).
18071     freebsd2.2*)
18072       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18073       hardcode_libdir_flag_spec='-R$libdir'
18074       hardcode_direct=yes
18075       hardcode_shlibpath_var=no
18076       ;;
18077
18078     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18079     freebsd2*)
18080       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18081       hardcode_direct=yes
18082       hardcode_minus_L=yes
18083       hardcode_shlibpath_var=no
18084       ;;
18085
18086     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18087     freebsd* | dragonfly*)
18088       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18089       hardcode_libdir_flag_spec='-R$libdir'
18090       hardcode_direct=yes
18091       hardcode_shlibpath_var=no
18092       ;;
18093
18094     hpux9*)
18095       if test "$GCC" = yes; then
18096         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'
18097       else
18098         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'
18099       fi
18100       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18101       hardcode_libdir_separator=:
18102       hardcode_direct=yes
18103
18104       # hardcode_minus_L: Not really in the search PATH,
18105       # but as the default location of the library.
18106       hardcode_minus_L=yes
18107       export_dynamic_flag_spec='${wl}-E'
18108       ;;
18109
18110     hpux10*)
18111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18112         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18113       else
18114         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18115       fi
18116       if test "$with_gnu_ld" = no; then
18117         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18118         hardcode_libdir_flag_spec_ld='+b $libdir'
18119         hardcode_libdir_separator=:
18120         hardcode_direct=yes
18121         hardcode_direct_absolute=yes
18122         export_dynamic_flag_spec='${wl}-E'
18123         # hardcode_minus_L: Not really in the search PATH,
18124         # but as the default location of the library.
18125         hardcode_minus_L=yes
18126       fi
18127       ;;
18128
18129     hpux11*)
18130       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18131         case $host_cpu in
18132         hppa*64*)
18133           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134           ;;
18135         ia64*)
18136           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18137           ;;
18138         *)
18139           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18140           ;;
18141         esac
18142       else
18143         case $host_cpu in
18144         hppa*64*)
18145           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146           ;;
18147         ia64*)
18148           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18149           ;;
18150         *)
18151           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18152           ;;
18153         esac
18154       fi
18155       if test "$with_gnu_ld" = no; then
18156         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18157         hardcode_libdir_separator=:
18158
18159         case $host_cpu in
18160         hppa*64*|ia64*)
18161           hardcode_direct=no
18162           hardcode_shlibpath_var=no
18163           ;;
18164         *)
18165           hardcode_direct=yes
18166           hardcode_direct_absolute=yes
18167           export_dynamic_flag_spec='${wl}-E'
18168
18169           # hardcode_minus_L: Not really in the search PATH,
18170           # but as the default location of the library.
18171           hardcode_minus_L=yes
18172           ;;
18173         esac
18174       fi
18175       ;;
18176
18177     irix5* | irix6* | nonstopux*)
18178       if test "$GCC" = yes; then
18179         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'
18180         # Try to use the -exported_symbol ld option, if it does not
18181         # work, assume that -exports_file does not work either and
18182         # implicitly export all symbols.
18183         save_LDFLAGS="$LDFLAGS"
18184         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18185         cat >conftest.$ac_ext <<_ACEOF
18186 int foo(void) {}
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190   (eval $ac_link) 2>conftest.er1
18191   ac_status=$?
18192   grep -v '^ *+' conftest.er1 >conftest.err
18193   rm -f conftest.er1
18194   cat conftest.err >&5
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); } &&
18197          { ac_try='test -z "$ac_c_werror_flag"
18198                          || test ! -s conftest.err'
18199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200   (eval $ac_try) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; } &&
18204          { ac_try='test -s conftest$ac_exeext'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; }; then
18210   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'
18211
18212 else
18213   echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 fi
18217 rm -f conftest.err conftest.$ac_objext \
18218       conftest$ac_exeext conftest.$ac_ext
18219         LDFLAGS="$save_LDFLAGS"
18220       else
18221         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'
18222         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'
18223       fi
18224       archive_cmds_need_lc='no'
18225       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18226       hardcode_libdir_separator=:
18227       inherit_rpath=yes
18228       link_all_deplibs=yes
18229       ;;
18230
18231     netbsd*)
18232       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18233         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18234       else
18235         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18236       fi
18237       hardcode_libdir_flag_spec='-R$libdir'
18238       hardcode_direct=yes
18239       hardcode_shlibpath_var=no
18240       ;;
18241
18242     newsos6)
18243       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18244       hardcode_direct=yes
18245       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18246       hardcode_libdir_separator=:
18247       hardcode_shlibpath_var=no
18248       ;;
18249
18250     *nto* | *qnx*)
18251       ;;
18252
18253     openbsd*)
18254       if test -f /usr/libexec/ld.so; then
18255         hardcode_direct=yes
18256         hardcode_shlibpath_var=no
18257         hardcode_direct_absolute=yes
18258         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18259           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18260           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18261           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18262           export_dynamic_flag_spec='${wl}-E'
18263         else
18264           case $host_os in
18265            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18266              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18267              hardcode_libdir_flag_spec='-R$libdir'
18268              ;;
18269            *)
18270              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18271              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18272              ;;
18273           esac
18274         fi
18275       else
18276         ld_shlibs=no
18277       fi
18278       ;;
18279
18280     os2*)
18281       hardcode_libdir_flag_spec='-L$libdir'
18282       hardcode_minus_L=yes
18283       allow_undefined_flag=unsupported
18284       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'
18285       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18286       ;;
18287
18288     osf3*)
18289       if test "$GCC" = yes; then
18290         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18291         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'
18292       else
18293         allow_undefined_flag=' -expect_unresolved \*'
18294         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'
18295       fi
18296       archive_cmds_need_lc='no'
18297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18298       hardcode_libdir_separator=:
18299       ;;
18300
18301     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18302       if test "$GCC" = yes; then
18303         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18304         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'
18305         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18306       else
18307         allow_undefined_flag=' -expect_unresolved \*'
18308         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'
18309         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~
18310         $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'
18311
18312         # Both c and cxx compiler support -rpath directly
18313         hardcode_libdir_flag_spec='-rpath $libdir'
18314       fi
18315       archive_cmds_need_lc='no'
18316       hardcode_libdir_separator=:
18317       ;;
18318
18319     solaris*)
18320       no_undefined_flag=' -z defs'
18321       if test "$GCC" = yes; then
18322         wlarc='${wl}'
18323         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18324         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18325           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18326       else
18327         case `$CC -V 2>&1` in
18328         *"Compilers 5.0"*)
18329           wlarc=''
18330           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18332           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18333           ;;
18334         *)
18335           wlarc='${wl}'
18336           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18337           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18338           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18339           ;;
18340         esac
18341       fi
18342       hardcode_libdir_flag_spec='-R$libdir'
18343       hardcode_shlibpath_var=no
18344       case $host_os in
18345       solaris2.[0-5] | solaris2.[0-5].*) ;;
18346       *)
18347         # The compiler driver will combine and reorder linker options,
18348         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18349         # but is careful enough not to reorder.
18350         # Supported since Solaris 2.6 (maybe 2.5.1?)
18351         if test "$GCC" = yes; then
18352           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18353         else
18354           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18355         fi
18356         ;;
18357       esac
18358       link_all_deplibs=yes
18359       ;;
18360
18361     sunos4*)
18362       if test "x$host_vendor" = xsequent; then
18363         # Use $CC to link under sequent, because it throws in some extra .o
18364         # files that make .init and .fini sections work.
18365         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18366       else
18367         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18368       fi
18369       hardcode_libdir_flag_spec='-L$libdir'
18370       hardcode_direct=yes
18371       hardcode_minus_L=yes
18372       hardcode_shlibpath_var=no
18373       ;;
18374
18375     sysv4)
18376       case $host_vendor in
18377         sni)
18378           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18379           hardcode_direct=yes # is this really true???
18380         ;;
18381         siemens)
18382           ## LD is ld it makes a PLAMLIB
18383           ## CC just makes a GrossModule.
18384           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18385           reload_cmds='$CC -r -o $output$reload_objs'
18386           hardcode_direct=no
18387         ;;
18388         motorola)
18389           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18390           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18391         ;;
18392       esac
18393       runpath_var='LD_RUN_PATH'
18394       hardcode_shlibpath_var=no
18395       ;;
18396
18397     sysv4.3*)
18398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18399       hardcode_shlibpath_var=no
18400       export_dynamic_flag_spec='-Bexport'
18401       ;;
18402
18403     sysv4*MP*)
18404       if test -d /usr/nec; then
18405         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18406         hardcode_shlibpath_var=no
18407         runpath_var=LD_RUN_PATH
18408         hardcode_runpath_var=yes
18409         ld_shlibs=yes
18410       fi
18411       ;;
18412
18413     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18414       no_undefined_flag='${wl}-z,text'
18415       archive_cmds_need_lc=no
18416       hardcode_shlibpath_var=no
18417       runpath_var='LD_RUN_PATH'
18418
18419       if test "$GCC" = yes; then
18420         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18421         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18422       else
18423         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18424         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18425       fi
18426       ;;
18427
18428     sysv5* | sco3.2v5* | sco5v6*)
18429       # Note: We can NOT use -z defs as we might desire, because we do not
18430       # link with -lc, and that would cause any symbols used from libc to
18431       # always be unresolved, which means just about no library would
18432       # ever link correctly.  If we're not using GNU ld we use -z text
18433       # though, which does catch some bad symbols but isn't as heavy-handed
18434       # as -z defs.
18435       no_undefined_flag='${wl}-z,text'
18436       allow_undefined_flag='${wl}-z,nodefs'
18437       archive_cmds_need_lc=no
18438       hardcode_shlibpath_var=no
18439       hardcode_libdir_flag_spec='${wl}-R,$libdir'
18440       hardcode_libdir_separator=':'
18441       link_all_deplibs=yes
18442       export_dynamic_flag_spec='${wl}-Bexport'
18443       runpath_var='LD_RUN_PATH'
18444
18445       if test "$GCC" = yes; then
18446         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18447         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18448       else
18449         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18450         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18451       fi
18452       ;;
18453
18454     uts4*)
18455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18456       hardcode_libdir_flag_spec='-L$libdir'
18457       hardcode_shlibpath_var=no
18458       ;;
18459
18460     *)
18461       ld_shlibs=no
18462       ;;
18463     esac
18464
18465     if test x$host_vendor = xsni; then
18466       case $host in
18467       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18468         export_dynamic_flag_spec='${wl}-Blargedynsym'
18469         ;;
18470       esac
18471     fi
18472   fi
18473
18474 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18475 echo "${ECHO_T}$ld_shlibs" >&6
18476 test "$ld_shlibs" = no && can_build_shared=no
18477
18478 with_gnu_ld=$with_gnu_ld
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494 #
18495 # Do we need to explicitly link libc?
18496 #
18497 case "x$archive_cmds_need_lc" in
18498 x|xyes)
18499   # Assume -lc should be added
18500   archive_cmds_need_lc=yes
18501
18502   if test "$enable_shared" = yes && test "$GCC" = yes; then
18503     case $archive_cmds in
18504     *'~'*)
18505       # FIXME: we may have to deal with multi-command sequences.
18506       ;;
18507     '$CC '*)
18508       # Test whether the compiler implicitly links with -lc since on some
18509       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18510       # to ld, don't add -lc before -lgcc.
18511       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18512 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18513 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516   $RM conftest*
18517         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18518
18519         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520   (eval $ac_compile) 2>&5
18521   ac_status=$?
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); } 2>conftest.err; then
18524           soname=conftest
18525           lib=conftest
18526           libobjs=conftest.$ac_objext
18527           deplibs=
18528           wl=$lt_prog_compiler_wl
18529           pic_flag=$lt_prog_compiler_pic
18530           compiler_flags=-v
18531           linker_flags=-v
18532           verstring=
18533           output_objdir=.
18534           libname=conftest
18535           lt_save_allow_undefined_flag=$allow_undefined_flag
18536           allow_undefined_flag=
18537           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18538   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }
18542           then
18543             lt_cv_archive_cmds_need_lc=no
18544           else
18545             lt_cv_archive_cmds_need_lc=yes
18546           fi
18547           allow_undefined_flag=$lt_save_allow_undefined_flag
18548         else
18549           cat conftest.err 1>&5
18550         fi
18551         $RM conftest*
18552
18553 fi
18554 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18555 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18556       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18557       ;;
18558     esac
18559   fi
18560   ;;
18561 esac
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
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18720 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18721
18722 if test "$GCC" = yes; then
18723   case $host_os in
18724     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18725     *) lt_awk_arg="/^libraries:/" ;;
18726   esac
18727   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18728   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18729     # if the path contains ";" then we assume it to be the separator
18730     # otherwise default to the standard path separator (i.e. ":") - it is
18731     # assumed that no part of a normal pathname contains ";" but that should
18732     # okay in the real world where ";" in dirpaths is itself problematic.
18733     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18734   else
18735     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18736   fi
18737   # Ok, now we have the path, separated by spaces, we can step through it
18738   # and add multilib dir if necessary.
18739   lt_tmp_lt_search_path_spec=
18740   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18741   for lt_sys_path in $lt_search_path_spec; do
18742     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18743       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18744     else
18745       test -d "$lt_sys_path" && \
18746         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18747     fi
18748   done
18749   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18750 BEGIN {RS=" "; FS="/|\n";} {
18751   lt_foo="";
18752   lt_count=0;
18753   for (lt_i = NF; lt_i > 0; lt_i--) {
18754     if ($lt_i != "" && $lt_i != ".") {
18755       if ($lt_i == "..") {
18756         lt_count++;
18757       } else {
18758         if (lt_count == 0) {
18759           lt_foo="/" $lt_i lt_foo;
18760         } else {
18761           lt_count--;
18762         }
18763       }
18764     }
18765   }
18766   if (lt_foo != "") { lt_freq[lt_foo]++; }
18767   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18768 }'`
18769   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18770 else
18771   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18772 fi
18773 library_names_spec=
18774 libname_spec='lib$name'
18775 soname_spec=
18776 shrext_cmds=".so"
18777 postinstall_cmds=
18778 postuninstall_cmds=
18779 finish_cmds=
18780 finish_eval=
18781 shlibpath_var=
18782 shlibpath_overrides_runpath=unknown
18783 version_type=none
18784 dynamic_linker="$host_os ld.so"
18785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18786 need_lib_prefix=unknown
18787 hardcode_into_libs=no
18788
18789 # when you set need_version to no, make sure it does not cause -set_version
18790 # flags to be left without arguments
18791 need_version=unknown
18792
18793 case $host_os in
18794 aix3*)
18795   version_type=linux
18796   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18797   shlibpath_var=LIBPATH
18798
18799   # AIX 3 has no versioning support, so we append a major version to the name.
18800   soname_spec='${libname}${release}${shared_ext}$major'
18801   ;;
18802
18803 aix[4-9]*)
18804   version_type=linux
18805   need_lib_prefix=no
18806   need_version=no
18807   hardcode_into_libs=yes
18808   if test "$host_cpu" = ia64; then
18809     # AIX 5 supports IA64
18810     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18811     shlibpath_var=LD_LIBRARY_PATH
18812   else
18813     # With GCC up to 2.95.x, collect2 would create an import file
18814     # for dependence libraries.  The import file would start with
18815     # the line `#! .'.  This would cause the generated library to
18816     # depend on `.', always an invalid library.  This was fixed in
18817     # development snapshots of GCC prior to 3.0.
18818     case $host_os in
18819       aix4 | aix4.[01] | aix4.[01].*)
18820       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18821            echo ' yes '
18822            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18823         :
18824       else
18825         can_build_shared=no
18826       fi
18827       ;;
18828     esac
18829     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18830     # soname into executable. Probably we can add versioning support to
18831     # collect2, so additional links can be useful in future.
18832     if test "$aix_use_runtimelinking" = yes; then
18833       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18834       # instead of lib<name>.a to let people know that these are not
18835       # typical AIX shared libraries.
18836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837     else
18838       # We preserve .a as extension for shared libraries through AIX4.2
18839       # and later when we are not doing run time linking.
18840       library_names_spec='${libname}${release}.a $libname.a'
18841       soname_spec='${libname}${release}${shared_ext}$major'
18842     fi
18843     shlibpath_var=LIBPATH
18844   fi
18845   ;;
18846
18847 amigaos*)
18848   case $host_cpu in
18849   powerpc)
18850     # Since July 2007 AmigaOS4 officially supports .so libraries.
18851     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853     ;;
18854   m68k)
18855     library_names_spec='$libname.ixlibrary $libname.a'
18856     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18857     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'
18858     ;;
18859   esac
18860   ;;
18861
18862 beos*)
18863   library_names_spec='${libname}${shared_ext}'
18864   dynamic_linker="$host_os ld.so"
18865   shlibpath_var=LIBRARY_PATH
18866   ;;
18867
18868 bsdi[45]*)
18869   version_type=linux
18870   need_version=no
18871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872   soname_spec='${libname}${release}${shared_ext}$major'
18873   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18874   shlibpath_var=LD_LIBRARY_PATH
18875   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18876   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18877   # the default ld.so.conf also contains /usr/contrib/lib and
18878   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18879   # libtool to hard-code these into programs
18880   ;;
18881
18882 cygwin* | mingw* | pw32* | cegcc*)
18883   version_type=windows
18884   shrext_cmds=".dll"
18885   need_version=no
18886   need_lib_prefix=no
18887
18888   case $GCC,$host_os in
18889   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18890     library_names_spec='$libname.dll.a'
18891     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18892     postinstall_cmds='base_file=`basename \${file}`~
18893       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18894       dldir=$destdir/`dirname \$dlpath`~
18895       test -d \$dldir || mkdir -p \$dldir~
18896       $install_prog $dir/$dlname \$dldir/$dlname~
18897       chmod a+x \$dldir/$dlname~
18898       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18899         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18900       fi'
18901     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18902       dlpath=$dir/\$dldll~
18903        $RM \$dlpath'
18904     shlibpath_overrides_runpath=yes
18905
18906     case $host_os in
18907     cygwin*)
18908       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18909       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18910       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18911       ;;
18912     mingw* | cegcc*)
18913       # MinGW DLLs use traditional 'lib' prefix
18914       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18915       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18916       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18917         # It is most probably a Windows format PATH printed by
18918         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18919         # path with ; separators, and with drive letters. We can handle the
18920         # drive letters (cygwin fileutils understands them), so leave them,
18921         # especially as we might pass files found there to a mingw objdump,
18922         # which wouldn't understand a cygwinified path. Ahh.
18923         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18924       else
18925         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18926       fi
18927       ;;
18928     pw32*)
18929       # pw32 DLLs use 'pw' prefix rather than 'lib'
18930       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18931       ;;
18932     esac
18933     ;;
18934
18935   *)
18936     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18937     ;;
18938   esac
18939   dynamic_linker='Win32 ld.exe'
18940   # FIXME: first we should search . and the directory the executable is in
18941   shlibpath_var=PATH
18942   ;;
18943
18944 darwin* | rhapsody*)
18945   dynamic_linker="$host_os dyld"
18946   version_type=darwin
18947   need_lib_prefix=no
18948   need_version=no
18949   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18950   soname_spec='${libname}${release}${major}$shared_ext'
18951   shlibpath_overrides_runpath=yes
18952   shlibpath_var=DYLD_LIBRARY_PATH
18953   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18954
18955   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18956   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18957   ;;
18958
18959 dgux*)
18960   version_type=linux
18961   need_lib_prefix=no
18962   need_version=no
18963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18964   soname_spec='${libname}${release}${shared_ext}$major'
18965   shlibpath_var=LD_LIBRARY_PATH
18966   ;;
18967
18968 freebsd1*)
18969   dynamic_linker=no
18970   ;;
18971
18972 freebsd* | dragonfly*)
18973   # DragonFly does not have aout.  When/if they implement a new
18974   # versioning mechanism, adjust this.
18975   if test -x /usr/bin/objformat; then
18976     objformat=`/usr/bin/objformat`
18977   else
18978     case $host_os in
18979     freebsd[123]*) objformat=aout ;;
18980     *) objformat=elf ;;
18981     esac
18982   fi
18983   version_type=freebsd-$objformat
18984   case $version_type in
18985     freebsd-elf*)
18986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18987       need_version=no
18988       need_lib_prefix=no
18989       ;;
18990     freebsd-*)
18991       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18992       need_version=yes
18993       ;;
18994   esac
18995   shlibpath_var=LD_LIBRARY_PATH
18996   case $host_os in
18997   freebsd2*)
18998     shlibpath_overrides_runpath=yes
18999     ;;
19000   freebsd3.[01]* | freebsdelf3.[01]*)
19001     shlibpath_overrides_runpath=yes
19002     hardcode_into_libs=yes
19003     ;;
19004   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19005   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19006     shlibpath_overrides_runpath=no
19007     hardcode_into_libs=yes
19008     ;;
19009   *) # from 4.6 on, and DragonFly
19010     shlibpath_overrides_runpath=yes
19011     hardcode_into_libs=yes
19012     ;;
19013   esac
19014   ;;
19015
19016 gnu*)
19017   version_type=linux
19018   need_lib_prefix=no
19019   need_version=no
19020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19021   soname_spec='${libname}${release}${shared_ext}$major'
19022   shlibpath_var=LD_LIBRARY_PATH
19023   hardcode_into_libs=yes
19024   ;;
19025
19026 hpux9* | hpux10* | hpux11*)
19027   # Give a soname corresponding to the major version so that dld.sl refuses to
19028   # link against other versions.
19029   version_type=sunos
19030   need_lib_prefix=no
19031   need_version=no
19032   case $host_cpu in
19033   ia64*)
19034     shrext_cmds='.so'
19035     hardcode_into_libs=yes
19036     dynamic_linker="$host_os dld.so"
19037     shlibpath_var=LD_LIBRARY_PATH
19038     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19040     soname_spec='${libname}${release}${shared_ext}$major'
19041     if test "X$HPUX_IA64_MODE" = X32; then
19042       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19043     else
19044       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19045     fi
19046     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19047     ;;
19048   hppa*64*)
19049     shrext_cmds='.sl'
19050     hardcode_into_libs=yes
19051     dynamic_linker="$host_os dld.sl"
19052     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19053     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055     soname_spec='${libname}${release}${shared_ext}$major'
19056     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19057     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19058     ;;
19059   *)
19060     shrext_cmds='.sl'
19061     dynamic_linker="$host_os dld.sl"
19062     shlibpath_var=SHLIB_PATH
19063     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065     soname_spec='${libname}${release}${shared_ext}$major'
19066     ;;
19067   esac
19068   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19069   postinstall_cmds='chmod 555 $lib'
19070   ;;
19071
19072 interix[3-9]*)
19073   version_type=linux
19074   need_lib_prefix=no
19075   need_version=no
19076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19077   soname_spec='${libname}${release}${shared_ext}$major'
19078   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19079   shlibpath_var=LD_LIBRARY_PATH
19080   shlibpath_overrides_runpath=no
19081   hardcode_into_libs=yes
19082   ;;
19083
19084 irix5* | irix6* | nonstopux*)
19085   case $host_os in
19086     nonstopux*) version_type=nonstopux ;;
19087     *)
19088         if test "$lt_cv_prog_gnu_ld" = yes; then
19089                 version_type=linux
19090         else
19091                 version_type=irix
19092         fi ;;
19093   esac
19094   need_lib_prefix=no
19095   need_version=no
19096   soname_spec='${libname}${release}${shared_ext}$major'
19097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19098   case $host_os in
19099   irix5* | nonstopux*)
19100     libsuff= shlibsuff=
19101     ;;
19102   *)
19103     case $LD in # libtool.m4 will add one of these switches to LD
19104     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19105       libsuff= shlibsuff= libmagic=32-bit;;
19106     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19107       libsuff=32 shlibsuff=N32 libmagic=N32;;
19108     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19109       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19110     *) libsuff= shlibsuff= libmagic=never-match;;
19111     esac
19112     ;;
19113   esac
19114   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19115   shlibpath_overrides_runpath=no
19116   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19117   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19118   hardcode_into_libs=yes
19119   ;;
19120
19121 # No shared lib support for Linux oldld, aout, or coff.
19122 linux*oldld* | linux*aout* | linux*coff*)
19123   dynamic_linker=no
19124   ;;
19125
19126 # This must be Linux ELF.
19127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19128   version_type=linux
19129   need_lib_prefix=no
19130   need_version=no
19131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19132   soname_spec='${libname}${release}${shared_ext}$major'
19133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19134   shlibpath_var=LD_LIBRARY_PATH
19135   shlibpath_overrides_runpath=no
19136
19137   # Some binutils ld are patched to set DT_RUNPATH
19138   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19139   echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141   lt_cv_shlibpath_overrides_runpath=no
19142     save_LDFLAGS=$LDFLAGS
19143     save_libdir=$libdir
19144     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19145          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19146     cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h.  */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h.  */
19152
19153 int
19154 main ()
19155 {
19156
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19163   (eval $ac_link) 2>conftest.er1
19164   ac_status=$?
19165   grep -v '^ *+' conftest.er1 >conftest.err
19166   rm -f conftest.er1
19167   cat conftest.err >&5
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); } &&
19170          { ac_try='test -z "$ac_c_werror_flag"
19171                          || test ! -s conftest.err'
19172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173   (eval $ac_try) 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; } &&
19177          { ac_try='test -s conftest$ac_exeext'
19178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179   (eval $ac_try) 2>&5
19180   ac_status=$?
19181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182   (exit $ac_status); }; }; then
19183   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19184   lt_cv_shlibpath_overrides_runpath=yes
19185 fi
19186
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 fi
19192 rm -f conftest.err conftest.$ac_objext \
19193       conftest$ac_exeext conftest.$ac_ext
19194     LDFLAGS=$save_LDFLAGS
19195     libdir=$save_libdir
19196
19197 fi
19198
19199   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19200
19201   # This implies no fast_install, which is unacceptable.
19202   # Some rework will be needed to allow for fast_install
19203   # before this can be enabled.
19204   hardcode_into_libs=yes
19205
19206   # Append ld.so.conf contents to the search path
19207   if test -f /etc/ld.so.conf; then
19208     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' ' '`
19209     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19210   fi
19211
19212   # We used to test for /lib/ld.so.1 and disable shared libraries on
19213   # powerpc, because MkLinux only supported shared libraries with the
19214   # GNU dynamic linker.  Since this was broken with cross compilers,
19215   # most powerpc-linux boxes support dynamic linking these days and
19216   # people can always --disable-shared, the test was removed, and we
19217   # assume the GNU/Linux dynamic linker is in use.
19218   dynamic_linker='GNU/Linux ld.so'
19219   ;;
19220
19221 netbsd*)
19222   version_type=sunos
19223   need_lib_prefix=no
19224   need_version=no
19225   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19227     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19228     dynamic_linker='NetBSD (a.out) ld.so'
19229   else
19230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19231     soname_spec='${libname}${release}${shared_ext}$major'
19232     dynamic_linker='NetBSD ld.elf_so'
19233   fi
19234   shlibpath_var=LD_LIBRARY_PATH
19235   shlibpath_overrides_runpath=yes
19236   hardcode_into_libs=yes
19237   ;;
19238
19239 newsos6)
19240   version_type=linux
19241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19242   shlibpath_var=LD_LIBRARY_PATH
19243   shlibpath_overrides_runpath=yes
19244   ;;
19245
19246 *nto* | *qnx*)
19247   version_type=qnx
19248   need_lib_prefix=no
19249   need_version=no
19250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19251   soname_spec='${libname}${release}${shared_ext}$major'
19252   shlibpath_var=LD_LIBRARY_PATH
19253   shlibpath_overrides_runpath=no
19254   hardcode_into_libs=yes
19255   dynamic_linker='ldqnx.so'
19256   ;;
19257
19258 openbsd*)
19259   version_type=sunos
19260   sys_lib_dlsearch_path_spec="/usr/lib"
19261   need_lib_prefix=no
19262   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19263   case $host_os in
19264     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19265     *)                          need_version=no  ;;
19266   esac
19267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19269   shlibpath_var=LD_LIBRARY_PATH
19270   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19271     case $host_os in
19272       openbsd2.[89] | openbsd2.[89].*)
19273         shlibpath_overrides_runpath=no
19274         ;;
19275       *)
19276         shlibpath_overrides_runpath=yes
19277         ;;
19278       esac
19279   else
19280     shlibpath_overrides_runpath=yes
19281   fi
19282   ;;
19283
19284 os2*)
19285   libname_spec='$name'
19286   shrext_cmds=".dll"
19287   need_lib_prefix=no
19288   library_names_spec='$libname${shared_ext} $libname.a'
19289   dynamic_linker='OS/2 ld.exe'
19290   shlibpath_var=LIBPATH
19291   ;;
19292
19293 osf3* | osf4* | osf5*)
19294   version_type=osf
19295   need_lib_prefix=no
19296   need_version=no
19297   soname_spec='${libname}${release}${shared_ext}$major'
19298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299   shlibpath_var=LD_LIBRARY_PATH
19300   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19301   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19302   ;;
19303
19304 rdos*)
19305   dynamic_linker=no
19306   ;;
19307
19308 solaris*)
19309   version_type=linux
19310   need_lib_prefix=no
19311   need_version=no
19312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313   soname_spec='${libname}${release}${shared_ext}$major'
19314   shlibpath_var=LD_LIBRARY_PATH
19315   shlibpath_overrides_runpath=yes
19316   hardcode_into_libs=yes
19317   # ldd complains unless libraries are executable
19318   postinstall_cmds='chmod +x $lib'
19319   ;;
19320
19321 sunos4*)
19322   version_type=sunos
19323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19324   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19325   shlibpath_var=LD_LIBRARY_PATH
19326   shlibpath_overrides_runpath=yes
19327   if test "$with_gnu_ld" = yes; then
19328     need_lib_prefix=no
19329   fi
19330   need_version=yes
19331   ;;
19332
19333 sysv4 | sysv4.3*)
19334   version_type=linux
19335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19336   soname_spec='${libname}${release}${shared_ext}$major'
19337   shlibpath_var=LD_LIBRARY_PATH
19338   case $host_vendor in
19339     sni)
19340       shlibpath_overrides_runpath=no
19341       need_lib_prefix=no
19342       runpath_var=LD_RUN_PATH
19343       ;;
19344     siemens)
19345       need_lib_prefix=no
19346       ;;
19347     motorola)
19348       need_lib_prefix=no
19349       need_version=no
19350       shlibpath_overrides_runpath=no
19351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19352       ;;
19353   esac
19354   ;;
19355
19356 sysv4*MP*)
19357   if test -d /usr/nec ;then
19358     version_type=linux
19359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19360     soname_spec='$libname${shared_ext}.$major'
19361     shlibpath_var=LD_LIBRARY_PATH
19362   fi
19363   ;;
19364
19365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19366   version_type=freebsd-elf
19367   need_lib_prefix=no
19368   need_version=no
19369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19370   soname_spec='${libname}${release}${shared_ext}$major'
19371   shlibpath_var=LD_LIBRARY_PATH
19372   shlibpath_overrides_runpath=yes
19373   hardcode_into_libs=yes
19374   if test "$with_gnu_ld" = yes; then
19375     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19376   else
19377     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19378     case $host_os in
19379       sco3.2v5*)
19380         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19381         ;;
19382     esac
19383   fi
19384   sys_lib_dlsearch_path_spec='/usr/lib'
19385   ;;
19386
19387 tpf*)
19388   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19389   version_type=linux
19390   need_lib_prefix=no
19391   need_version=no
19392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393   shlibpath_var=LD_LIBRARY_PATH
19394   shlibpath_overrides_runpath=no
19395   hardcode_into_libs=yes
19396   ;;
19397
19398 uts4*)
19399   version_type=linux
19400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401   soname_spec='${libname}${release}${shared_ext}$major'
19402   shlibpath_var=LD_LIBRARY_PATH
19403   ;;
19404
19405 *)
19406   dynamic_linker=no
19407   ;;
19408 esac
19409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19410 echo "${ECHO_T}$dynamic_linker" >&6
19411 test "$dynamic_linker" = no && can_build_shared=no
19412
19413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19414 if test "$GCC" = yes; then
19415   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19416 fi
19417
19418 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19419   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19420 fi
19421 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19422   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19423 fi
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
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19512 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19513 hardcode_action=
19514 if test -n "$hardcode_libdir_flag_spec" ||
19515    test -n "$runpath_var" ||
19516    test "X$hardcode_automatic" = "Xyes" ; then
19517
19518   # We can hardcode non-existent directories.
19519   if test "$hardcode_direct" != no &&
19520      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19521      # have to relink, otherwise we might link with an installed library
19522      # when we should be linking with a yet-to-be-installed one
19523      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19524      test "$hardcode_minus_L" != no; then
19525     # Linking always hardcodes the temporary library directory.
19526     hardcode_action=relink
19527   else
19528     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19529     hardcode_action=immediate
19530   fi
19531 else
19532   # We cannot hardcode anything, or else we can only hardcode existing
19533   # directories.
19534   hardcode_action=unsupported
19535 fi
19536 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19537 echo "${ECHO_T}$hardcode_action" >&6
19538
19539 if test "$hardcode_action" = relink ||
19540    test "$inherit_rpath" = yes; then
19541   # Fast installation is not supported
19542   enable_fast_install=no
19543 elif test "$shlibpath_overrides_runpath" = yes ||
19544      test "$enable_shared" = no; then
19545   # Fast installation is not necessary
19546   enable_fast_install=needless
19547 fi
19548
19549
19550
19551
19552
19553
19554   if test "x$enable_dlopen" != xyes; then
19555   enable_dlopen=unknown
19556   enable_dlopen_self=unknown
19557   enable_dlopen_self_static=unknown
19558 else
19559   lt_cv_dlopen=no
19560   lt_cv_dlopen_libs=
19561
19562   case $host_os in
19563   beos*)
19564     lt_cv_dlopen="load_add_on"
19565     lt_cv_dlopen_libs=
19566     lt_cv_dlopen_self=yes
19567     ;;
19568
19569   mingw* | pw32* | cegcc*)
19570     lt_cv_dlopen="LoadLibrary"
19571     lt_cv_dlopen_libs=
19572     ;;
19573
19574   cygwin*)
19575     lt_cv_dlopen="dlopen"
19576     lt_cv_dlopen_libs=
19577     ;;
19578
19579   darwin*)
19580   # if libdl is installed we need to link against it
19581     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-ldl  $LIBS"
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594
19595 /* Override any gcc2 internal prototype to avoid an error.  */
19596 #ifdef __cplusplus
19597 extern "C"
19598 #endif
19599 /* We use char because int might match the return type of a gcc2
19600    builtin and then its argument prototype would still apply.  */
19601 char dlopen ();
19602 int
19603 main ()
19604 {
19605 dlopen ();
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19612   (eval $ac_link) 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } &&
19619          { ac_try='test -z "$ac_c_werror_flag"
19620                          || test ! -s conftest.err'
19621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622   (eval $ac_try) 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); }; } &&
19626          { ac_try='test -s conftest$ac_exeext'
19627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628   (eval $ac_try) 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; }; then
19632   ac_cv_lib_dl_dlopen=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ac_cv_lib_dl_dlopen=no
19638 fi
19639 rm -f conftest.err conftest.$ac_objext \
19640       conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19645 if test $ac_cv_lib_dl_dlopen = yes; then
19646   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19647 else
19648
19649     lt_cv_dlopen="dyld"
19650     lt_cv_dlopen_libs=
19651     lt_cv_dlopen_self=yes
19652
19653 fi
19654
19655     ;;
19656
19657   *)
19658     echo "$as_me:$LINENO: checking for shl_load" >&5
19659 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19660 if test "${ac_cv_func_shl_load+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19671 #define shl_load innocuous_shl_load
19672
19673 /* System header to define __stub macros and hopefully few prototypes,
19674     which can conflict with char shl_load (); below.
19675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19676     <limits.h> exists even on freestanding compilers.  */
19677
19678 #ifdef __STDC__
19679 # include <limits.h>
19680 #else
19681 # include <assert.h>
19682 #endif
19683
19684 #undef shl_load
19685
19686 /* Override any gcc2 internal prototype to avoid an error.  */
19687 #ifdef __cplusplus
19688 extern "C"
19689 {
19690 #endif
19691 /* We use char because int might match the return type of a gcc2
19692    builtin and then its argument prototype would still apply.  */
19693 char shl_load ();
19694 /* The GNU C library defines this for functions which it implements
19695     to always fail with ENOSYS.  Some functions are actually named
19696     something starting with __ and the normal name is an alias.  */
19697 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19698 choke me
19699 #else
19700 char (*f) () = shl_load;
19701 #endif
19702 #ifdef __cplusplus
19703 }
19704 #endif
19705
19706 int
19707 main ()
19708 {
19709 return f != shl_load;
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716   (eval $ac_link) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_c_werror_flag"
19724                          || test ! -s conftest.err'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; } &&
19730          { ac_try='test -s conftest$ac_exeext'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_func_shl_load=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_cv_func_shl_load=no
19742 fi
19743 rm -f conftest.err conftest.$ac_objext \
19744       conftest$ac_exeext conftest.$ac_ext
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19747 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19748 if test $ac_cv_func_shl_load = yes; then
19749   lt_cv_dlopen="shl_load"
19750 else
19751   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19752 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19753 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756   ac_check_lib_save_LIBS=$LIBS
19757 LIBS="-ldld  $LIBS"
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764
19765 /* Override any gcc2 internal prototype to avoid an error.  */
19766 #ifdef __cplusplus
19767 extern "C"
19768 #endif
19769 /* We use char because int might match the return type of a gcc2
19770    builtin and then its argument prototype would still apply.  */
19771 char shl_load ();
19772 int
19773 main ()
19774 {
19775 shl_load ();
19776   ;
19777   return 0;
19778 }
19779 _ACEOF
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19782   (eval $ac_link) 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } &&
19789          { ac_try='test -z "$ac_c_werror_flag"
19790                          || test ! -s conftest.err'
19791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792   (eval $ac_try) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; } &&
19796          { ac_try='test -s conftest$ac_exeext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_lib_dld_shl_load=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807 ac_cv_lib_dld_shl_load=no
19808 fi
19809 rm -f conftest.err conftest.$ac_objext \
19810       conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19812 fi
19813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19814 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19815 if test $ac_cv_lib_dld_shl_load = yes; then
19816   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19817 else
19818   echo "$as_me:$LINENO: checking for dlopen" >&5
19819 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19820 if test "${ac_cv_func_dlopen+set}" = set; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19831 #define dlopen innocuous_dlopen
19832
19833 /* System header to define __stub macros and hopefully few prototypes,
19834     which can conflict with char dlopen (); below.
19835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19836     <limits.h> exists even on freestanding compilers.  */
19837
19838 #ifdef __STDC__
19839 # include <limits.h>
19840 #else
19841 # include <assert.h>
19842 #endif
19843
19844 #undef dlopen
19845
19846 /* Override any gcc2 internal prototype to avoid an error.  */
19847 #ifdef __cplusplus
19848 extern "C"
19849 {
19850 #endif
19851 /* We use char because int might match the return type of a gcc2
19852    builtin and then its argument prototype would still apply.  */
19853 char dlopen ();
19854 /* The GNU C library defines this for functions which it implements
19855     to always fail with ENOSYS.  Some functions are actually named
19856     something starting with __ and the normal name is an alias.  */
19857 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19858 choke me
19859 #else
19860 char (*f) () = dlopen;
19861 #endif
19862 #ifdef __cplusplus
19863 }
19864 #endif
19865
19866 int
19867 main ()
19868 {
19869 return f != dlopen;
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876   (eval $ac_link) 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_c_werror_flag"
19884                          || test ! -s conftest.err'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; } &&
19890          { ac_try='test -s conftest$ac_exeext'
19891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892   (eval $ac_try) 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; }; then
19896   ac_cv_func_dlopen=yes
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 ac_cv_func_dlopen=no
19902 fi
19903 rm -f conftest.err conftest.$ac_objext \
19904       conftest$ac_exeext conftest.$ac_ext
19905 fi
19906 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19907 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19908 if test $ac_cv_func_dlopen = yes; then
19909   lt_cv_dlopen="dlopen"
19910 else
19911   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-ldl  $LIBS"
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924
19925 /* Override any gcc2 internal prototype to avoid an error.  */
19926 #ifdef __cplusplus
19927 extern "C"
19928 #endif
19929 /* We use char because int might match the return type of a gcc2
19930    builtin and then its argument prototype would still apply.  */
19931 char dlopen ();
19932 int
19933 main ()
19934 {
19935 dlopen ();
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942   (eval $ac_link) 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } &&
19949          { ac_try='test -z "$ac_c_werror_flag"
19950                          || test ! -s conftest.err'
19951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952   (eval $ac_try) 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; } &&
19956          { ac_try='test -s conftest$ac_exeext'
19957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958   (eval $ac_try) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; }; then
19962   ac_cv_lib_dl_dlopen=yes
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 ac_cv_lib_dl_dlopen=no
19968 fi
19969 rm -f conftest.err conftest.$ac_objext \
19970       conftest$ac_exeext conftest.$ac_ext
19971 LIBS=$ac_check_lib_save_LIBS
19972 fi
19973 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19974 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19975 if test $ac_cv_lib_dl_dlopen = yes; then
19976   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19977 else
19978   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19979 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19981   echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983   ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lsvld  $LIBS"
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991
19992 /* Override any gcc2 internal prototype to avoid an error.  */
19993 #ifdef __cplusplus
19994 extern "C"
19995 #endif
19996 /* We use char because int might match the return type of a gcc2
19997    builtin and then its argument prototype would still apply.  */
19998 char dlopen ();
19999 int
20000 main ()
20001 {
20002 dlopen ();
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009   (eval $ac_link) 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } &&
20016          { ac_try='test -z "$ac_c_werror_flag"
20017                          || test ! -s conftest.err'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; } &&
20023          { ac_try='test -s conftest$ac_exeext'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; }; then
20029   ac_cv_lib_svld_dlopen=yes
20030 else
20031   echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034 ac_cv_lib_svld_dlopen=no
20035 fi
20036 rm -f conftest.err conftest.$ac_objext \
20037       conftest$ac_exeext conftest.$ac_ext
20038 LIBS=$ac_check_lib_save_LIBS
20039 fi
20040 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20041 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20042 if test $ac_cv_lib_svld_dlopen = yes; then
20043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20044 else
20045   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20046 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20047 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   ac_check_lib_save_LIBS=$LIBS
20051 LIBS="-ldld  $LIBS"
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058
20059 /* Override any gcc2 internal prototype to avoid an error.  */
20060 #ifdef __cplusplus
20061 extern "C"
20062 #endif
20063 /* We use char because int might match the return type of a gcc2
20064    builtin and then its argument prototype would still apply.  */
20065 char dld_link ();
20066 int
20067 main ()
20068 {
20069 dld_link ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } &&
20083          { ac_try='test -z "$ac_c_werror_flag"
20084                          || test ! -s conftest.err'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; } &&
20090          { ac_try='test -s conftest$ac_exeext'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; }; then
20096   ac_cv_lib_dld_dld_link=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 ac_cv_lib_dld_dld_link=no
20102 fi
20103 rm -f conftest.err conftest.$ac_objext \
20104       conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20106 fi
20107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20108 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20109 if test $ac_cv_lib_dld_dld_link = yes; then
20110   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20111 fi
20112
20113
20114 fi
20115
20116
20117 fi
20118
20119
20120 fi
20121
20122
20123 fi
20124
20125
20126 fi
20127
20128     ;;
20129   esac
20130
20131   if test "x$lt_cv_dlopen" != xno; then
20132     enable_dlopen=yes
20133   else
20134     enable_dlopen=no
20135   fi
20136
20137   case $lt_cv_dlopen in
20138   dlopen)
20139     save_CPPFLAGS="$CPPFLAGS"
20140     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20141
20142     save_LDFLAGS="$LDFLAGS"
20143     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20144
20145     save_LIBS="$LIBS"
20146     LIBS="$lt_cv_dlopen_libs $LIBS"
20147
20148     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20149 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20150 if test "${lt_cv_dlopen_self+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153           if test "$cross_compiling" = yes; then :
20154   lt_cv_dlopen_self=cross
20155 else
20156   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20157   lt_status=$lt_dlunknown
20158   cat > conftest.$ac_ext <<_LT_EOF
20159 #line 20159 "configure"
20160 #include "confdefs.h"
20161
20162 #if HAVE_DLFCN_H
20163 #include <dlfcn.h>
20164 #endif
20165
20166 #include <stdio.h>
20167
20168 #ifdef RTLD_GLOBAL
20169 #  define LT_DLGLOBAL           RTLD_GLOBAL
20170 #else
20171 #  ifdef DL_GLOBAL
20172 #    define LT_DLGLOBAL         DL_GLOBAL
20173 #  else
20174 #    define LT_DLGLOBAL         0
20175 #  endif
20176 #endif
20177
20178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20179    find out it does not work in some platform. */
20180 #ifndef LT_DLLAZY_OR_NOW
20181 #  ifdef RTLD_LAZY
20182 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20183 #  else
20184 #    ifdef DL_LAZY
20185 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20186 #    else
20187 #      ifdef RTLD_NOW
20188 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20189 #      else
20190 #        ifdef DL_NOW
20191 #          define LT_DLLAZY_OR_NOW      DL_NOW
20192 #        else
20193 #          define LT_DLLAZY_OR_NOW      0
20194 #        endif
20195 #      endif
20196 #    endif
20197 #  endif
20198 #endif
20199
20200 void fnord() { int i=42;}
20201 int main ()
20202 {
20203   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20204   int status = $lt_dlunknown;
20205
20206   if (self)
20207     {
20208       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20209       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20210       /* dlclose (self); */
20211     }
20212   else
20213     puts (dlerror ());
20214
20215   return status;
20216 }
20217 _LT_EOF
20218   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219   (eval $ac_link) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20223     (./conftest; exit; ) >&5 2>/dev/null
20224     lt_status=$?
20225     case x$lt_status in
20226       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20227       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20228       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20229     esac
20230   else :
20231     # compilation failed
20232     lt_cv_dlopen_self=no
20233   fi
20234 fi
20235 rm -fr conftest*
20236
20237
20238 fi
20239 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20240 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20241
20242     if test "x$lt_cv_dlopen_self" = xyes; then
20243       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20244       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20245 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20246 if test "${lt_cv_dlopen_self_static+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249           if test "$cross_compiling" = yes; then :
20250   lt_cv_dlopen_self_static=cross
20251 else
20252   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20253   lt_status=$lt_dlunknown
20254   cat > conftest.$ac_ext <<_LT_EOF
20255 #line 20255 "configure"
20256 #include "confdefs.h"
20257
20258 #if HAVE_DLFCN_H
20259 #include <dlfcn.h>
20260 #endif
20261
20262 #include <stdio.h>
20263
20264 #ifdef RTLD_GLOBAL
20265 #  define LT_DLGLOBAL           RTLD_GLOBAL
20266 #else
20267 #  ifdef DL_GLOBAL
20268 #    define LT_DLGLOBAL         DL_GLOBAL
20269 #  else
20270 #    define LT_DLGLOBAL         0
20271 #  endif
20272 #endif
20273
20274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20275    find out it does not work in some platform. */
20276 #ifndef LT_DLLAZY_OR_NOW
20277 #  ifdef RTLD_LAZY
20278 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20279 #  else
20280 #    ifdef DL_LAZY
20281 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20282 #    else
20283 #      ifdef RTLD_NOW
20284 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20285 #      else
20286 #        ifdef DL_NOW
20287 #          define LT_DLLAZY_OR_NOW      DL_NOW
20288 #        else
20289 #          define LT_DLLAZY_OR_NOW      0
20290 #        endif
20291 #      endif
20292 #    endif
20293 #  endif
20294 #endif
20295
20296 void fnord() { int i=42;}
20297 int main ()
20298 {
20299   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20300   int status = $lt_dlunknown;
20301
20302   if (self)
20303     {
20304       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20305       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20306       /* dlclose (self); */
20307     }
20308   else
20309     puts (dlerror ());
20310
20311   return status;
20312 }
20313 _LT_EOF
20314   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20315   (eval $ac_link) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20319     (./conftest; exit; ) >&5 2>/dev/null
20320     lt_status=$?
20321     case x$lt_status in
20322       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20323       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20324       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20325     esac
20326   else :
20327     # compilation failed
20328     lt_cv_dlopen_self_static=no
20329   fi
20330 fi
20331 rm -fr conftest*
20332
20333
20334 fi
20335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20336 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20337     fi
20338
20339     CPPFLAGS="$save_CPPFLAGS"
20340     LDFLAGS="$save_LDFLAGS"
20341     LIBS="$save_LIBS"
20342     ;;
20343   esac
20344
20345   case $lt_cv_dlopen_self in
20346   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20347   *) enable_dlopen_self=unknown ;;
20348   esac
20349
20350   case $lt_cv_dlopen_self_static in
20351   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20352   *) enable_dlopen_self_static=unknown ;;
20353   esac
20354 fi
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372 striplib=
20373 old_striplib=
20374 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20375 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20377   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20378   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20379   echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6
20381 else
20382 # FIXME - insert some real tests, host_os isn't really good enough
20383   case $host_os in
20384   darwin*)
20385     if test -n "$STRIP" ; then
20386       striplib="$STRIP -x"
20387       old_striplib="$STRIP -S"
20388       echo "$as_me:$LINENO: result: yes" >&5
20389 echo "${ECHO_T}yes" >&6
20390     else
20391       echo "$as_me:$LINENO: result: no" >&5
20392 echo "${ECHO_T}no" >&6
20393     fi
20394     ;;
20395   *)
20396     echo "$as_me:$LINENO: result: no" >&5
20397 echo "${ECHO_T}no" >&6
20398     ;;
20399   esac
20400 fi
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413   # Report which library types will actually be built
20414   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20416   echo "$as_me:$LINENO: result: $can_build_shared" >&5
20417 echo "${ECHO_T}$can_build_shared" >&6
20418
20419   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20421   test "$can_build_shared" = "no" && enable_shared=no
20422
20423   # On AIX, shared libraries and static libraries use the same namespace, and
20424   # are all built from PIC.
20425   case $host_os in
20426   aix3*)
20427     test "$enable_shared" = yes && enable_static=no
20428     if test -n "$RANLIB"; then
20429       archive_cmds="$archive_cmds~\$RANLIB \$lib"
20430       postinstall_cmds='$RANLIB $lib'
20431     fi
20432     ;;
20433
20434   aix[4-9]*)
20435     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20436       test "$enable_shared" = yes && enable_static=no
20437     fi
20438     ;;
20439   esac
20440   echo "$as_me:$LINENO: result: $enable_shared" >&5
20441 echo "${ECHO_T}$enable_shared" >&6
20442
20443   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20445   # Make sure either enable_shared or enable_static is yes.
20446   test "$enable_shared" = yes || enable_static=yes
20447   echo "$as_me:$LINENO: result: $enable_static" >&5
20448 echo "${ECHO_T}$enable_static" >&6
20449
20450
20451
20452
20453 fi
20454 ac_ext=c
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20459
20460 CC="$lt_save_CC"
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477 # Only expand once:
20478
20479
20480
20481
20482
20483 # Identify the assembler which will work hand-in-glove with the newly
20484 # built GCC, so that we can examine its features.  This is the assembler
20485 # which will be driven by the driver program.
20486 #
20487 # If build != host, and we aren't building gas in-tree, we identify a
20488 # build->target assembler and hope that it will have the same features
20489 # as the host->target assembler we'll be using.
20490 gcc_cv_gas_major_version=
20491 gcc_cv_gas_minor_version=
20492 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20493
20494 if test "${gcc_cv_as+set}" = set; then
20495   :
20496 else
20497
20498 if test -x "$DEFAULT_ASSEMBLER"; then
20499         gcc_cv_as="$DEFAULT_ASSEMBLER"
20500 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20501      && test -f ../gas/Makefile \
20502      && test x$build = x$host; then
20503         gcc_cv_as=../gas/as-new$build_exeext
20504 elif test -x as$build_exeext; then
20505         # Build using assembler in the current directory.
20506         gcc_cv_as=./as$build_exeext
20507 elif test -x $AS_FOR_TARGET; then
20508         gcc_cv_as="$AS_FOR_TARGET"
20509 else
20510         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20511 set dummy $AS_FOR_TARGET; ac_word=$2
20512 echo "$as_me:$LINENO: checking for $ac_word" >&5
20513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20514 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   case $gcc_cv_as in
20518   [\\/]* | ?:[\\/]*)
20519   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20520   ;;
20521   *)
20522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20523 for as_dir in $PATH
20524 do
20525   IFS=$as_save_IFS
20526   test -z "$as_dir" && as_dir=.
20527   for ac_exec_ext in '' $ac_executable_extensions; do
20528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20529     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20531     break 2
20532   fi
20533 done
20534 done
20535
20536   ;;
20537 esac
20538 fi
20539 gcc_cv_as=$ac_cv_path_gcc_cv_as
20540
20541 if test -n "$gcc_cv_as"; then
20542   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20543 echo "${ECHO_T}$gcc_cv_as" >&6
20544 else
20545   echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6
20547 fi
20548
20549 fi
20550 fi
20551
20552
20553 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20554
20555 case "$ORIGINAL_AS_FOR_TARGET" in
20556   ./as | ./as$build_exeext) ;;
20557   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20558  ;;
20559 esac
20560
20561 echo "$as_me:$LINENO: checking what assembler to use" >&5
20562 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20563 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20564   # Single tree build which includes gas.  We want to prefer it
20565   # over whatever linker top-level may have detected, since
20566   # we'll use what we're building after installation anyway.
20567   echo "$as_me:$LINENO: result: newly built gas" >&5
20568 echo "${ECHO_T}newly built gas" >&6
20569   in_tree_gas=yes
20570   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20571 for f in $gcc_cv_as_bfd_srcdir/configure \
20572          $gcc_cv_as_gas_srcdir/configure \
20573          $gcc_cv_as_gas_srcdir/configure.in \
20574          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20575   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20576   if test x$gcc_cv_gas_version != x; then
20577     break
20578   fi
20579 done
20580 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20581 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20582 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20583 case $gcc_cv_gas_patch_version in
20584   "") gcc_cv_gas_patch_version="0" ;;
20585 esac
20586 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20587                             + $gcc_cv_gas_minor_version \) \* 1000 \
20588                             + $gcc_cv_gas_patch_version`
20589
20590   in_tree_gas_is_elf=no
20591   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20592      || (grep 'obj_format = multi' ../gas/Makefile \
20593          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20594   then
20595     in_tree_gas_is_elf=yes
20596   fi
20597 else
20598   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20599 echo "${ECHO_T}$gcc_cv_as" >&6
20600   in_tree_gas=no
20601 fi
20602
20603 # Identify the linker which will work hand-in-glove with the newly
20604 # built GCC, so that we can examine its features.  This is the linker
20605 # which will be driven by the driver program.
20606 #
20607 # If build != host, and we aren't building gas in-tree, we identify a
20608 # build->target linker and hope that it will have the same features
20609 # as the host->target linker we'll be using.
20610 gcc_cv_gld_major_version=
20611 gcc_cv_gld_minor_version=
20612 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20613 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20614
20615 if test "${gcc_cv_ld+set}" = set; then
20616   :
20617 else
20618
20619 if test -x "$DEFAULT_LINKER"; then
20620         gcc_cv_ld="$DEFAULT_LINKER"
20621 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20622      && test -f ../ld/Makefile \
20623      && test x$build = x$host; then
20624         gcc_cv_ld=../ld/ld-new$build_exeext
20625 elif test -x collect-ld$build_exeext; then
20626         # Build using linker in the current directory.
20627         gcc_cv_ld=./collect-ld$build_exeext
20628 elif test -x $LD_FOR_TARGET; then
20629         gcc_cv_ld="$LD_FOR_TARGET"
20630 else
20631         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20632 set dummy $LD_FOR_TARGET; ac_word=$2
20633 echo "$as_me:$LINENO: checking for $ac_word" >&5
20634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20635 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   case $gcc_cv_ld in
20639   [\\/]* | ?:[\\/]*)
20640   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20641   ;;
20642   *)
20643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20644 for as_dir in $PATH
20645 do
20646   IFS=$as_save_IFS
20647   test -z "$as_dir" && as_dir=.
20648   for ac_exec_ext in '' $ac_executable_extensions; do
20649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20650     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20652     break 2
20653   fi
20654 done
20655 done
20656
20657   ;;
20658 esac
20659 fi
20660 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20661
20662 if test -n "$gcc_cv_ld"; then
20663   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20664 echo "${ECHO_T}$gcc_cv_ld" >&6
20665 else
20666   echo "$as_me:$LINENO: result: no" >&5
20667 echo "${ECHO_T}no" >&6
20668 fi
20669
20670 fi
20671 fi
20672
20673
20674 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20675
20676 case "$ORIGINAL_LD_FOR_TARGET" in
20677   ./collect-ld | ./collect-ld$build_exeext) ;;
20678   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20679  ;;
20680 esac
20681
20682 echo "$as_me:$LINENO: checking what linker to use" >&5
20683 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20684 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20685         # Single tree build which includes ld.  We want to prefer it
20686         # over whatever linker top-level may have detected, since
20687         # we'll use what we're building after installation anyway.
20688         echo "$as_me:$LINENO: result: newly built ld" >&5
20689 echo "${ECHO_T}newly built ld" >&6
20690         in_tree_ld=yes
20691         in_tree_ld_is_elf=no
20692         if (grep 'EMUL = .*elf' ../ld/Makefile \
20693             || grep 'EMUL = .*linux' ../ld/Makefile \
20694             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20695           in_tree_ld_is_elf=yes
20696         fi
20697         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
20698         do
20699                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20700                 if test x$gcc_cv_gld_version != x; then
20701                         break
20702                 fi
20703         done
20704         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20705         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20706 else
20707         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20708 echo "${ECHO_T}$gcc_cv_ld" >&6
20709         in_tree_ld=no
20710 fi
20711
20712 # Figure out what nm we will be using.
20713 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20714 if test "${gcc_cv_nm+set}" = set; then
20715   :
20716 else
20717
20718 if test -f $gcc_cv_binutils_srcdir/configure.in \
20719      && test -f ../binutils/Makefile \
20720      && test x$build = x$host; then
20721         gcc_cv_nm=../binutils/nm-new$build_exeext
20722 elif test -x nm$build_exeext; then
20723         gcc_cv_nm=./nm$build_exeext
20724 elif test -x $NM_FOR_TARGET; then
20725         gcc_cv_nm="$NM_FOR_TARGET"
20726 else
20727         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20728 set dummy $NM_FOR_TARGET; ac_word=$2
20729 echo "$as_me:$LINENO: checking for $ac_word" >&5
20730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20731 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20732   echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734   case $gcc_cv_nm in
20735   [\\/]* | ?:[\\/]*)
20736   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20737   ;;
20738   *)
20739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20740 for as_dir in $PATH
20741 do
20742   IFS=$as_save_IFS
20743   test -z "$as_dir" && as_dir=.
20744   for ac_exec_ext in '' $ac_executable_extensions; do
20745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20746     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20748     break 2
20749   fi
20750 done
20751 done
20752
20753   ;;
20754 esac
20755 fi
20756 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20757
20758 if test -n "$gcc_cv_nm"; then
20759   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20760 echo "${ECHO_T}$gcc_cv_nm" >&6
20761 else
20762   echo "$as_me:$LINENO: result: no" >&5
20763 echo "${ECHO_T}no" >&6
20764 fi
20765
20766 fi
20767 fi
20768
20769
20770 echo "$as_me:$LINENO: checking what nm to use" >&5
20771 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20772 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20773         # Single tree build which includes binutils.
20774         echo "$as_me:$LINENO: result: newly built nm" >&5
20775 echo "${ECHO_T}newly built nm" >&6
20776         in_tree_nm=yes
20777 else
20778         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20779 echo "${ECHO_T}$gcc_cv_nm" >&6
20780         in_tree_nm=no
20781 fi
20782
20783 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20784
20785 case "$ORIGINAL_NM_FOR_TARGET" in
20786   ./nm | ./nm$build_exeext) ;;
20787   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20788  ;;
20789 esac
20790
20791
20792 # Figure out what objdump we will be using.
20793 if test "${gcc_cv_objdump+set}" = set; then
20794   :
20795 else
20796
20797 if test -f $gcc_cv_binutils_srcdir/configure.in \
20798      && test -f ../binutils/Makefile \
20799      && test x$build = x$host; then
20800         # Single tree build which includes binutils.
20801         gcc_cv_objdump=../binutils/objdump$build_exeext
20802 elif test -x objdump$build_exeext; then
20803         gcc_cv_objdump=./objdump$build_exeext
20804 elif test -x $OBJDUMP_FOR_TARGET; then
20805         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20806 else
20807         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20808 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20809 echo "$as_me:$LINENO: checking for $ac_word" >&5
20810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20811 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20812   echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814   case $gcc_cv_objdump in
20815   [\\/]* | ?:[\\/]*)
20816   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20817   ;;
20818   *)
20819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20820 for as_dir in $PATH
20821 do
20822   IFS=$as_save_IFS
20823   test -z "$as_dir" && as_dir=.
20824   for ac_exec_ext in '' $ac_executable_extensions; do
20825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20826     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20828     break 2
20829   fi
20830 done
20831 done
20832
20833   ;;
20834 esac
20835 fi
20836 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20837
20838 if test -n "$gcc_cv_objdump"; then
20839   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20840 echo "${ECHO_T}$gcc_cv_objdump" >&6
20841 else
20842   echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6
20844 fi
20845
20846 fi
20847 fi
20848
20849
20850 echo "$as_me:$LINENO: checking what objdump to use" >&5
20851 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20852 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20853         # Single tree build which includes binutils.
20854         echo "$as_me:$LINENO: result: newly built objdump" >&5
20855 echo "${ECHO_T}newly built objdump" >&6
20856 elif test x$gcc_cv_objdump = x; then
20857         echo "$as_me:$LINENO: result: not found" >&5
20858 echo "${ECHO_T}not found" >&6
20859 else
20860         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20861 echo "${ECHO_T}$gcc_cv_objdump" >&6
20862 fi
20863
20864 # Figure out what readelf we will be using.
20865 if test "${gcc_cv_readelf+set}" = set; then
20866   :
20867 else
20868
20869 if test -f $gcc_cv_binutils_srcdir/configure.in \
20870      && test -f ../binutils/Makefile \
20871      && test x$build = x$host; then
20872         # Single tree build which includes binutils.
20873         gcc_cv_readelf=../binutils/readelf$build_exeext
20874 elif test -x readelf$build_exeext; then
20875         gcc_cv_readelf=./readelf$build_exeext
20876 else
20877         # Extract the first word of "readelf", so it can be a program name with args.
20878 set dummy readelf; ac_word=$2
20879 echo "$as_me:$LINENO: checking for $ac_word" >&5
20880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20881 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20882   echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884   case $gcc_cv_readelf in
20885   [\\/]* | ?:[\\/]*)
20886   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20887   ;;
20888   *)
20889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20890 for as_dir in $PATH
20891 do
20892   IFS=$as_save_IFS
20893   test -z "$as_dir" && as_dir=.
20894   for ac_exec_ext in '' $ac_executable_extensions; do
20895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20896     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20898     break 2
20899   fi
20900 done
20901 done
20902
20903   ;;
20904 esac
20905 fi
20906 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20907
20908 if test -n "$gcc_cv_readelf"; then
20909   echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20910 echo "${ECHO_T}$gcc_cv_readelf" >&6
20911 else
20912   echo "$as_me:$LINENO: result: no" >&5
20913 echo "${ECHO_T}no" >&6
20914 fi
20915
20916 fi
20917 fi
20918
20919
20920 echo "$as_me:$LINENO: checking what readelf to use" >&5
20921 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20922 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20923         # Single tree build which includes binutils.
20924         echo "$as_me:$LINENO: result: newly built readelf" >&5
20925 echo "${ECHO_T}newly built readelf" >&6
20926 elif test x$gcc_cv_readelf = x; then
20927         echo "$as_me:$LINENO: result: not found" >&5
20928 echo "${ECHO_T}not found" >&6
20929 else
20930         echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20931 echo "${ECHO_T}$gcc_cv_readelf" >&6
20932 fi
20933
20934 # Figure out what assembler alignment features are present.
20935 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20936 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20937 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940   gcc_cv_as_balign_and_p2align=no
20941     if test $in_tree_gas = yes; then
20942     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20943   then gcc_cv_as_balign_and_p2align=yes
20944 fi
20945   elif test x$gcc_cv_as != x; then
20946     echo '.balign 4
20947 .p2align 2' > conftest.s
20948     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; }
20954     then
20955         gcc_cv_as_balign_and_p2align=yes
20956     else
20957       echo "configure: failed program was" >&5
20958       cat conftest.s >&5
20959     fi
20960     rm -f conftest.o conftest.s
20961   fi
20962 fi
20963 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20964 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20965 if test $gcc_cv_as_balign_and_p2align = yes; then
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20969 _ACEOF
20970
20971 fi
20972
20973 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20974 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20975 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   gcc_cv_as_max_skip_p2align=no
20979     if test $in_tree_gas = yes; then
20980     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20981   then gcc_cv_as_max_skip_p2align=yes
20982 fi
20983   elif test x$gcc_cv_as != x; then
20984     echo '.p2align 4,,7' > conftest.s
20985     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }
20991     then
20992         gcc_cv_as_max_skip_p2align=yes
20993     else
20994       echo "configure: failed program was" >&5
20995       cat conftest.s >&5
20996     fi
20997     rm -f conftest.o conftest.s
20998   fi
20999 fi
21000 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21001 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21002 if test $gcc_cv_as_max_skip_p2align = yes; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21006 _ACEOF
21007
21008 fi
21009
21010 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21011 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21012 if test "${gcc_cv_as_literal16+set}" = set; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015   gcc_cv_as_literal16=no
21016     if test $in_tree_gas = yes; then
21017     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21018   then gcc_cv_as_literal16=yes
21019 fi
21020   elif test x$gcc_cv_as != x; then
21021     echo '.literal16' > conftest.s
21022     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024   (eval $ac_try) 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); }; }
21028     then
21029         gcc_cv_as_literal16=yes
21030     else
21031       echo "configure: failed program was" >&5
21032       cat conftest.s >&5
21033     fi
21034     rm -f conftest.o conftest.s
21035   fi
21036 fi
21037 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21038 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21039 if test $gcc_cv_as_literal16 = yes; then
21040
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_GAS_LITERAL16 1
21043 _ACEOF
21044
21045 fi
21046
21047 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21048 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21049 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052   gcc_cv_as_subsection_m1=no
21053     if test $in_tree_gas = yes; then
21054     if test $in_tree_gas_is_elf = yes \
21055   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21056   then gcc_cv_as_subsection_m1=yes
21057 fi
21058   elif test x$gcc_cv_as != x; then
21059     echo 'conftest_label1: .word 0
21060 .subsection -1
21061 conftest_label2: .word 0
21062 .previous' > conftest.s
21063     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; }
21069     then
21070         if test x$gcc_cv_nm != x; then
21071     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21072     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21073     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21074     then :
21075     else gcc_cv_as_subsection_m1=yes
21076     fi
21077     rm -f conftest.nm1 conftest.nm2
21078   fi
21079     else
21080       echo "configure: failed program was" >&5
21081       cat conftest.s >&5
21082     fi
21083     rm -f conftest.o conftest.s
21084   fi
21085 fi
21086 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21087 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21088 if test $gcc_cv_as_subsection_m1 = yes; then
21089
21090 cat >>confdefs.h <<\_ACEOF
21091 #define HAVE_GAS_SUBSECTION_ORDERING 1
21092 _ACEOF
21093
21094 fi
21095
21096 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21097 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21098 if test "${gcc_cv_as_weak+set}" = set; then
21099   echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101   gcc_cv_as_weak=no
21102     if test $in_tree_gas = yes; then
21103     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21104   then gcc_cv_as_weak=yes
21105 fi
21106   elif test x$gcc_cv_as != x; then
21107     echo '      .weak foobar' > conftest.s
21108     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }
21114     then
21115         gcc_cv_as_weak=yes
21116     else
21117       echo "configure: failed program was" >&5
21118       cat conftest.s >&5
21119     fi
21120     rm -f conftest.o conftest.s
21121   fi
21122 fi
21123 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21124 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21125 if test $gcc_cv_as_weak = yes; then
21126
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_GAS_WEAK 1
21129 _ACEOF
21130
21131 fi
21132
21133 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21134 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21135 if test "${gcc_cv_as_weakref+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   gcc_cv_as_weakref=no
21139     if test $in_tree_gas = yes; then
21140     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21141   then gcc_cv_as_weakref=yes
21142 fi
21143   elif test x$gcc_cv_as != x; then
21144     echo '      .weakref foobar, barfnot' > conftest.s
21145     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147   (eval $ac_try) 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; }
21151     then
21152         gcc_cv_as_weakref=yes
21153     else
21154       echo "configure: failed program was" >&5
21155       cat conftest.s >&5
21156     fi
21157     rm -f conftest.o conftest.s
21158   fi
21159 fi
21160 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21161 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21162 if test $gcc_cv_as_weakref = yes; then
21163
21164 cat >>confdefs.h <<\_ACEOF
21165 #define HAVE_GAS_WEAKREF 1
21166 _ACEOF
21167
21168 fi
21169
21170 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21171 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21172 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21173   echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175   gcc_cv_as_nsubspa_comdat=no
21176     if test $in_tree_gas = yes; then
21177     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21178   then gcc_cv_as_nsubspa_comdat=yes
21179 fi
21180   elif test x$gcc_cv_as != x; then
21181     echo '      .SPACE $TEXT$
21182         .NSUBSPA $CODE$,COMDAT' > conftest.s
21183     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185   (eval $ac_try) 2>&5
21186   ac_status=$?
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); }; }
21189     then
21190         gcc_cv_as_nsubspa_comdat=yes
21191     else
21192       echo "configure: failed program was" >&5
21193       cat conftest.s >&5
21194     fi
21195     rm -f conftest.o conftest.s
21196   fi
21197 fi
21198 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21199 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21200 if test $gcc_cv_as_nsubspa_comdat = yes; then
21201
21202 cat >>confdefs.h <<\_ACEOF
21203 #define HAVE_GAS_NSUBSPA_COMDAT 1
21204 _ACEOF
21205
21206 fi
21207
21208 # .hidden needs to be supported in both the assembler and the linker,
21209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21210 # This is irritatingly difficult to feature test for; we have to check the
21211 # date string after the version number.  If we've got an in-tree
21212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21213 # to be safe.
21214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21215 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21216 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21217 if test "${gcc_cv_as_hidden+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   gcc_cv_as_hidden=no
21221     if test $in_tree_gas = yes; then
21222     if test $in_tree_gas_is_elf = yes \
21223   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21224   then gcc_cv_as_hidden=yes
21225 fi
21226   elif test x$gcc_cv_as != x; then
21227     echo '      .hidden foobar
21228 foobar:' > conftest.s
21229     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }
21235     then
21236         gcc_cv_as_hidden=yes
21237     else
21238       echo "configure: failed program was" >&5
21239       cat conftest.s >&5
21240     fi
21241     rm -f conftest.o conftest.s
21242   fi
21243 fi
21244 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21245 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21246
21247
21248 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21249 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21250 if test "${gcc_cv_ld_hidden+set}" = set; then
21251   echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253   if test $in_tree_ld = yes ; then
21254   gcc_cv_ld_hidden=no
21255   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 \
21256      && test $in_tree_ld_is_elf = yes; then
21257      gcc_cv_ld_hidden=yes
21258   fi
21259 else
21260   gcc_cv_ld_hidden=yes
21261   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21262   if echo "$ld_ver" | grep GNU > /dev/null; then
21263     ld_vers=`echo $ld_ver | sed -n \
21264         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21265     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'`
21266     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21267     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21268     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21269     if test 0"$ld_date" -lt 20020404; then
21270       if test -n "$ld_date"; then
21271         # If there was date string, but was earlier than 2002-04-04, fail
21272         gcc_cv_ld_hidden=no
21273       elif test -z "$ld_vers"; then
21274         # If there was no date string nor ld version number, something is wrong
21275         gcc_cv_ld_hidden=no
21276       else
21277         test -z "$ld_vers_patch" && ld_vers_patch=0
21278         if test "$ld_vers_major" -lt 2; then
21279           gcc_cv_ld_hidden=no
21280         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21281           gcc_cv_ld_hidden="no"
21282         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21283           gcc_cv_ld_hidden=no
21284         fi
21285       fi
21286     fi
21287   else
21288     case "${target}" in
21289       hppa64*-*-hpux* | ia64*-*-hpux*)
21290         gcc_cv_ld_hidden=yes
21291         ;;
21292       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21293         gcc_cv_ld_hidden=yes
21294         ;;
21295       *)
21296         gcc_cv_ld_hidden=no
21297         ;;
21298     esac
21299   fi
21300 fi
21301 fi
21302 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21303 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21304 libgcc_visibility=no
21305
21306
21307 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21308   libgcc_visibility=yes
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_GAS_HIDDEN 1
21312 _ACEOF
21313
21314 fi
21315
21316 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21317 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21318 gcc_cv_ld_ro_rw_mix=unknown
21319 if test $in_tree_ld = yes ; then
21320   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 \
21321      && test $in_tree_ld_is_elf = yes; then
21322     gcc_cv_ld_ro_rw_mix=read-write
21323   fi
21324 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21325   echo '.section myfoosect, "a"' > conftest1.s
21326   echo '.section myfoosect, "aw"' > conftest2.s
21327   echo '.byte 1' >> conftest2.s
21328   echo '.section myfoosect, "a"' > conftest3.s
21329   echo '.byte 0' >> conftest3.s
21330   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21331      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21332      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21333      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21334         conftest2.o conftest3.o > /dev/null 2>&1; then
21335     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21336                          | sed -e '/myfoosect/!d' -e N`
21337     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21338       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21339         gcc_cv_ld_ro_rw_mix=read-only
21340       else
21341         gcc_cv_ld_ro_rw_mix=read-write
21342       fi
21343     fi
21344   fi
21345   rm -f conftest.* conftest[123].*
21346 fi
21347 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21348
21349 cat >>confdefs.h <<\_ACEOF
21350 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21351 _ACEOF
21352
21353 fi
21354 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21355 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21356
21357 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21358 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21359 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21360 if test "${gcc_cv_as_leb128+set}" = set; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   gcc_cv_as_leb128=no
21364     if test $in_tree_gas = yes; then
21365     if test $in_tree_gas_is_elf = yes \
21366   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21367   then gcc_cv_as_leb128=yes
21368 fi
21369   elif test x$gcc_cv_as != x; then
21370     echo '      .data
21371         .uleb128 L2 - L1
21372 L1:
21373         .uleb128 1280
21374         .sleb128 -1010
21375 L2:' > conftest.s
21376     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }
21382     then
21383         # GAS versions before 2.11 do not support uleb128,
21384   # despite appearing to.
21385   # ??? There exists an elf-specific test that will crash
21386   # the assembler.  Perhaps it's better to figure out whether
21387   # arbitrary sections are supported and try the test.
21388   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21389   if echo "$as_ver" | grep GNU > /dev/null; then
21390     as_vers=`echo $as_ver | sed -n \
21391         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21392     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21393     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21394     if test $as_major -eq 2 && test $as_minor -lt 11
21395     then :
21396     else gcc_cv_as_leb128=yes
21397     fi
21398   fi
21399     else
21400       echo "configure: failed program was" >&5
21401       cat conftest.s >&5
21402     fi
21403     rm -f conftest.o conftest.s
21404   fi
21405 fi
21406 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21407 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21408 if test $gcc_cv_as_leb128 = yes; then
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_AS_LEB128 1
21412 _ACEOF
21413
21414 fi
21415
21416 # Check if we have assembler support for unwind directives.
21417 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21418 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21419 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   gcc_cv_as_cfi_directive=no
21423   if test x$gcc_cv_as != x; then
21424     echo '      .text
21425         .cfi_startproc
21426         .cfi_offset 0, 0
21427         .cfi_same_value 1
21428         .cfi_def_cfa 1, 2
21429         .cfi_escape 1, 2, 3, 4, 5
21430         .cfi_endproc' > conftest.s
21431     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433   (eval $ac_try) 2>&5
21434   ac_status=$?
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); }; }
21437     then
21438         case "$target" in
21439   *-*-solaris*)
21440     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21441     # read-only and read-write sections, we need to make sure that the
21442     # assembler used emits read-write .eh_frame sections.
21443     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21444       if test "x$gcc_cv_objdump" != x; then
21445         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21446                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21447           gcc_cv_as_cfi_directive=no
21448         else
21449           gcc_cv_as_cfi_directive=yes
21450         fi
21451       else
21452         # no objdump, err on the side of caution
21453         gcc_cv_as_cfi_directive=no
21454       fi
21455     else
21456       gcc_cv_as_cfi_directive=yes
21457     fi
21458     ;;
21459   *-*-*)
21460     gcc_cv_as_cfi_directive=yes
21461     ;;
21462 esac
21463     else
21464       echo "configure: failed program was" >&5
21465       cat conftest.s >&5
21466     fi
21467     rm -f conftest.o conftest.s
21468   fi
21469 fi
21470 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21471 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21472
21473 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21474 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21475 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21476 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   gcc_cv_as_cfi_advance_working=no
21480   if test x$gcc_cv_as != x; then
21481     echo '      .text
21482         .cfi_startproc
21483         .cfi_adjust_cfa_offset 64
21484         .skip 512, 0
21485         .cfi_adjust_cfa_offset 128
21486         .cfi_endproc' > conftest.s
21487     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; }
21493     then
21494
21495 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21496     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21497    gcc_cv_as_cfi_advance_working=yes
21498 fi
21499
21500     else
21501       echo "configure: failed program was" >&5
21502       cat conftest.s >&5
21503     fi
21504     rm -f conftest.o conftest.s
21505   fi
21506 fi
21507 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21508 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21509
21510 else
21511   # no readelf, err on the side of caution
21512   gcc_cv_as_cfi_advance_working=no
21513 fi
21514
21515 cat >>confdefs.h <<_ACEOF
21516 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21517        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21518 _ACEOF
21519
21520
21521 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21522 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21523 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526   gcc_cv_as_cfi_personality_directive=no
21527   if test x$gcc_cv_as != x; then
21528     echo '      .text
21529         .cfi_startproc
21530         .cfi_personality 0, symbol
21531         .cfi_endproc' > conftest.s
21532     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }
21538     then
21539         gcc_cv_as_cfi_personality_directive=yes
21540     else
21541       echo "configure: failed program was" >&5
21542       cat conftest.s >&5
21543     fi
21544     rm -f conftest.o conftest.s
21545   fi
21546 fi
21547 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21548 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21549
21550
21551 cat >>confdefs.h <<_ACEOF
21552 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21553     then echo 1; else echo 0; fi`
21554 _ACEOF
21555
21556
21557 # GAS versions up to and including 2.11.0 may mis-optimize
21558 # .eh_frame data.
21559 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21560 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21561 if test "${gcc_cv_as_eh_frame+set}" = set; then
21562   echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564   gcc_cv_as_eh_frame=no
21565     if test $in_tree_gas = yes; then
21566     if test $in_tree_gas_is_elf = yes \
21567   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21568   then gcc_cv_as_eh_frame=yes
21569 fi
21570   elif test x$gcc_cv_as != x; then
21571     echo '      .text
21572 .LFB1:
21573         .4byte  0
21574 .L1:
21575         .4byte  0
21576 .LFE1:
21577         .section        .eh_frame,"aw",@progbits
21578 __FRAME_BEGIN__:
21579         .4byte  .LECIE1-.LSCIE1
21580 .LSCIE1:
21581         .4byte  0x0
21582         .byte   0x1
21583         .ascii "z\0"
21584         .byte   0x1
21585         .byte   0x78
21586         .byte   0x1a
21587         .byte   0x0
21588         .byte   0x4
21589         .4byte  1
21590         .p2align 1
21591 .LECIE1:
21592 .LSFDE1:
21593         .4byte  .LEFDE1-.LASFDE1
21594 .LASFDE1:
21595         .4byte  .LASFDE1-__FRAME_BEGIN__
21596         .4byte  .LFB1
21597         .4byte  .LFE1-.LFB1
21598         .byte   0x4
21599         .4byte  .LFE1-.LFB1
21600         .byte   0x4
21601         .4byte  .L1-.LFB1
21602 .LEFDE1:' > conftest.s
21603     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }
21609     then
21610           cat > conftest.lit <<EOF
21611  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21612  0010 01000000 12000000 18000000 00000000  ................
21613  0020 08000000 04080000 0044               .........D      
21614 EOF
21615 cat > conftest.big <<EOF
21616  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21617  0010 00000001 00000012 00000018 00000000  ................
21618  0020 00000008 04000000 0844               .........D      
21619 EOF
21620   # If the assembler didn't choke, and we can objdump,
21621   # and we got the correct data, then succeed.
21622   # The text in the here-document typically retains its unix-style line
21623   # endings, while the output of objdump will use host line endings.
21624   # Therefore, use diff -b for the comparisons.
21625   if test x$gcc_cv_objdump != x \
21626   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21627      | tail -3 > conftest.got \
21628   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21629     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21630   then
21631     gcc_cv_as_eh_frame=yes
21632   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634   (eval $ac_try) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; }; then
21638     gcc_cv_as_eh_frame=buggy
21639   else
21640     # Uh oh, what do we do now?
21641     gcc_cv_as_eh_frame=no
21642   fi
21643     else
21644       echo "configure: failed program was" >&5
21645       cat conftest.s >&5
21646     fi
21647     rm -f conftest.o conftest.s
21648   fi
21649 fi
21650 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21651 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21652
21653
21654 if test $gcc_cv_as_eh_frame = buggy; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define USE_AS_TRADITIONAL_FORMAT 1
21658 _ACEOF
21659
21660 fi
21661
21662 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21663 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21664 if test "${gcc_cv_as_shf_merge+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   gcc_cv_as_shf_merge=no
21668     if test $in_tree_gas = yes; then
21669     if test $in_tree_gas_is_elf = yes \
21670   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21671   then gcc_cv_as_shf_merge=yes
21672 fi
21673   elif test x$gcc_cv_as != x; then
21674     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21675     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677   (eval $ac_try) 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; }
21681     then
21682         gcc_cv_as_shf_merge=yes
21683     else
21684       echo "configure: failed program was" >&5
21685       cat conftest.s >&5
21686     fi
21687     rm -f conftest.o conftest.s
21688   fi
21689 fi
21690 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21691 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21692
21693 if test $gcc_cv_as_shf_merge = no; then
21694   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21695 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21696 if test "${gcc_cv_as_shf_merge+set}" = set; then
21697   echo $ECHO_N "(cached) $ECHO_C" >&6
21698 else
21699   gcc_cv_as_shf_merge=no
21700     if test $in_tree_gas = yes; then
21701     if test $in_tree_gas_is_elf = yes \
21702   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21703   then gcc_cv_as_shf_merge=yes
21704 fi
21705   elif test x$gcc_cv_as != x; then
21706     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21707     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709   (eval $ac_try) 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; }
21713     then
21714         gcc_cv_as_shf_merge=yes
21715     else
21716       echo "configure: failed program was" >&5
21717       cat conftest.s >&5
21718     fi
21719     rm -f conftest.o conftest.s
21720   fi
21721 fi
21722 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21723 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21724
21725 fi
21726
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21729 _ACEOF
21730
21731
21732 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21733 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21734 if test "${gcc_cv_as_comdat_group+set}" = set; then
21735   echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737   gcc_cv_as_comdat_group=no
21738     if test $in_tree_gas = yes; then
21739     if test $in_tree_gas_is_elf = yes \
21740   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21741   then gcc_cv_as_comdat_group=yes
21742 fi
21743   elif test x$gcc_cv_as != x; then
21744     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21745     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }
21751     then
21752         gcc_cv_as_comdat_group=yes
21753     else
21754       echo "configure: failed program was" >&5
21755       cat conftest.s >&5
21756     fi
21757     rm -f conftest.o conftest.s
21758   fi
21759 fi
21760 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21761 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21762
21763 if test $gcc_cv_as_comdat_group = yes; then
21764   gcc_cv_as_comdat_group_percent=no
21765 else
21766  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21767 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21768 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   gcc_cv_as_comdat_group_percent=no
21772     if test $in_tree_gas = yes; then
21773     if test $in_tree_gas_is_elf = yes \
21774   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21775   then gcc_cv_as_comdat_group_percent=yes
21776 fi
21777   elif test x$gcc_cv_as != x; then
21778     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21779     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; }
21785     then
21786         gcc_cv_as_comdat_group_percent=yes
21787     else
21788       echo "configure: failed program was" >&5
21789       cat conftest.s >&5
21790     fi
21791     rm -f conftest.o conftest.s
21792   fi
21793 fi
21794 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21795 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21796
21797 fi
21798 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21799   comdat_group=yes
21800   if test 0"$ld_date" -lt 20050308; then
21801     if test -n "$ld_date"; then
21802       # If there was date string, but was earlier than 2005-03-08, fail
21803       comdat_group=no
21804     elif test "$ld_vers_major" -lt 2; then
21805       comdat_group=no
21806     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21807       comdat_group=no
21808     fi
21809   fi
21810 else
21811   # assume linkers other than GNU ld don't support COMDAT group
21812   comdat_group=no
21813 fi
21814 if test $comdat_group = no; then
21815   gcc_cv_as_comdat_group=no
21816   gcc_cv_as_comdat_group_percent=no
21817 fi
21818
21819 cat >>confdefs.h <<_ACEOF
21820 #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`
21821 _ACEOF
21822
21823
21824 # Thread-local storage - the check is heavily parameterized.
21825 conftest_s=
21826 tls_first_major=
21827 tls_first_minor=
21828 tls_as_opt=
21829 case "$target" in
21830   alpha*-*-*)
21831     conftest_s='
21832         .section ".tdata","awT",@progbits
21833 foo:    .long   25
21834         .text
21835         ldq     $27,__tls_get_addr($29)         !literal!1
21836         lda     $16,foo($29)                    !tlsgd!1
21837         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21838         ldq     $27,__tls_get_addr($29)         !literal!2
21839         lda     $16,foo($29)                    !tlsldm!2
21840         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21841         ldq     $1,foo($29)                     !gotdtprel
21842         ldah    $2,foo($29)                     !dtprelhi
21843         lda     $3,foo($2)                      !dtprello
21844         lda     $4,foo($29)                     !dtprel
21845         ldq     $1,foo($29)                     !gottprel
21846         ldah    $2,foo($29)                     !tprelhi
21847         lda     $3,foo($2)                      !tprello
21848         lda     $4,foo($29)                     !tprel'
21849         tls_first_major=2
21850         tls_first_minor=13
21851         tls_as_opt=--fatal-warnings
21852         ;;
21853   cris-*-*|crisv32-*-*)
21854     conftest_s='
21855         .section ".tdata","awT",@progbits
21856 x:      .long   25
21857         .text
21858         move.d x:IE,$r10
21859         nop'
21860         tls_first_major=2
21861         tls_first_minor=20
21862         tls_as_opt=--fatal-warnings
21863         ;;
21864   frv*-*-*)
21865     conftest_s='
21866         .section ".tdata","awT",@progbits
21867 x:      .long   25
21868         .text
21869         call    #gettlsoff(x)'
21870         tls_first_major=2
21871         tls_first_minor=14
21872         ;;
21873   hppa*-*-linux*)
21874     conftest_s='
21875 t1:     .reg    %r20
21876 t2:     .reg    %r21
21877 gp:     .reg    %r19
21878         .section ".tdata","awT",@progbits
21879 foo:    .long   25
21880         .text
21881         .align  4
21882         addil LT%foo-$tls_gdidx$,gp
21883         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21884         b __tls_get_addr
21885         nop
21886         addil LT%foo-$tls_ldidx$,gp
21887         b __tls_get_addr
21888         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21889         addil LR%foo-$tls_dtpoff$,%ret0
21890         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21891         mfctl %cr27,%t1
21892         addil LT%foo-$tls_ieoff$,gp
21893         ldw RT%foo-$tls_ieoff$(%r1),%t2
21894         add %t1,%t2,%t3
21895         mfctl %cr27,%t1
21896         addil LR%foo-$tls_leoff$,%t1
21897         ldo RR%foo-$tls_leoff$(%r1),%t2'
21898         tls_first_major=2
21899         tls_first_minor=15
21900         tls_as_opt=--fatal-warnings
21901         ;;
21902   arm*-*-*)
21903     conftest_s='
21904         .section ".tdata","awT",%progbits
21905 foo:    .long   25
21906         .text
21907 .word foo(gottpoff)
21908 .word foo(tpoff)
21909 .word foo(tlsgd)
21910 .word foo(tlsldm)
21911 .word foo(tlsldo)'
21912         tls_first_major=2
21913         tls_first_minor=17
21914         ;;
21915   i[34567]86-*-*)
21916     conftest_s='
21917         .section ".tdata","awT",@progbits
21918 foo:    .long   25
21919         .text
21920         movl    %gs:0, %eax
21921         leal    foo@TLSGD(,%ebx,1), %eax
21922         leal    foo@TLSLDM(%ebx), %eax
21923         leal    foo@DTPOFF(%eax), %edx
21924         movl    foo@GOTTPOFF(%ebx), %eax
21925         subl    foo@GOTTPOFF(%ebx), %eax
21926         addl    foo@GOTNTPOFF(%ebx), %eax
21927         movl    foo@INDNTPOFF, %eax
21928         movl    $foo@TPOFF, %eax
21929         subl    $foo@TPOFF, %eax
21930         leal    foo@NTPOFF(%ecx), %eax'
21931         tls_first_major=2
21932         tls_first_minor=14
21933         tls_as_opt=--fatal-warnings
21934         ;;
21935   x86_64-*-*)
21936     conftest_s='
21937         .section ".tdata","awT",@progbits
21938 foo:    .long   25
21939         .text
21940         movq    %fs:0, %rax
21941         leaq    foo@TLSGD(%rip), %rdi
21942         leaq    foo@TLSLD(%rip), %rdi
21943         leaq    foo@DTPOFF(%rax), %rdx
21944         movq    foo@GOTTPOFF(%rip), %rax
21945         movq    $foo@TPOFF, %rax'
21946         tls_first_major=2
21947         tls_first_minor=14
21948         tls_as_opt=--fatal-warnings
21949         ;;
21950   ia64-*-*)
21951     conftest_s='
21952         .section ".tdata","awT",@progbits
21953 foo:    data8   25
21954         .text
21955         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21956         addl    r17 = @ltoff(@dtprel(foo#)), gp
21957         addl    r18 = @ltoff(@tprel(foo#)), gp
21958         addl    r19 = @dtprel(foo#), gp
21959         adds    r21 = @dtprel(foo#), r13
21960         movl    r23 = @dtprel(foo#)
21961         addl    r20 = @tprel(foo#), gp
21962         adds    r22 = @tprel(foo#), r13
21963         movl    r24 = @tprel(foo#)'
21964         tls_first_major=2
21965         tls_first_minor=13
21966         tls_as_opt=--fatal-warnings
21967         ;;
21968   mips*-*-*)
21969     conftest_s='
21970         .section .tdata,"awT",@progbits
21971 x:
21972         .word 2
21973         .text
21974         addiu $4, $28, %tlsgd(x)
21975         addiu $4, $28, %tlsldm(x)
21976         lui $4, %dtprel_hi(x)
21977         addiu $4, $4, %dtprel_lo(x)
21978         lw $4, %gottprel(x)($28)
21979         lui $4, %tprel_hi(x)
21980         addiu $4, $4, %tprel_lo(x)'
21981         tls_first_major=2
21982         tls_first_minor=16
21983         tls_as_opt='-32 --fatal-warnings'
21984         ;;
21985   powerpc-*-*)
21986     conftest_s='
21987         .section ".tdata","awT",@progbits
21988         .align 2
21989 ld0:    .space 4
21990 ld1:    .space 4
21991 x1:     .space 4
21992 x2:     .space 4
21993 x3:     .space 4
21994         .text
21995         addi 3,31,ld0@got@tlsgd
21996         bl __tls_get_addr
21997         addi 3,31,x1@got@tlsld
21998         bl __tls_get_addr
21999         addi 9,3,x1@dtprel
22000         addis 9,3,x2@dtprel@ha
22001         addi 9,9,x2@dtprel@l
22002         lwz 9,x3@got@tprel(31)
22003         add 9,9,x@tls
22004         addi 9,2,x1@tprel
22005         addis 9,2,x2@tprel@ha
22006         addi 9,9,x2@tprel@l'
22007         tls_first_major=2
22008         tls_first_minor=14
22009         tls_as_opt="-a32 --fatal-warnings"
22010         ;;
22011   powerpc64-*-*)
22012     conftest_s='
22013         .section ".tdata","awT",@progbits
22014         .align 3
22015 ld0:    .space 8
22016 ld1:    .space 8
22017 x1:     .space 8
22018 x2:     .space 8
22019 x3:     .space 8
22020         .text
22021         addi 3,2,ld0@got@tlsgd
22022         bl .__tls_get_addr
22023         nop
22024         addi 3,2,ld1@toc
22025         bl .__tls_get_addr
22026         nop
22027         addi 3,2,x1@got@tlsld
22028         bl .__tls_get_addr
22029         nop
22030         addi 9,3,x1@dtprel
22031         bl .__tls_get_addr
22032         nop
22033         addis 9,3,x2@dtprel@ha
22034         addi 9,9,x2@dtprel@l
22035         bl .__tls_get_addr
22036         nop
22037         ld 9,x3@got@dtprel(2)
22038         add 9,9,3
22039         bl .__tls_get_addr
22040         nop'
22041         tls_first_major=2
22042         tls_first_minor=14
22043         tls_as_opt="-a64 --fatal-warnings"
22044         ;;
22045   s390-*-*)
22046     conftest_s='
22047         .section ".tdata","awT",@progbits
22048 foo:    .long   25
22049         .text
22050         .long   foo@TLSGD
22051         .long   foo@TLSLDM
22052         .long   foo@DTPOFF
22053         .long   foo@NTPOFF
22054         .long   foo@GOTNTPOFF
22055         .long   foo@INDNTPOFF
22056         l       %r1,foo@GOTNTPOFF(%r12)
22057         l       %r1,0(%r1):tls_load:foo
22058         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22059         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22060         tls_first_major=2
22061         tls_first_minor=14
22062         tls_as_opt="-m31 --fatal-warnings"
22063         ;;
22064   s390x-*-*)
22065     conftest_s='
22066         .section ".tdata","awT",@progbits
22067 foo:    .long   25
22068         .text
22069         .quad   foo@TLSGD
22070         .quad   foo@TLSLDM
22071         .quad   foo@DTPOFF
22072         .quad   foo@NTPOFF
22073         .quad   foo@GOTNTPOFF
22074         lg      %r1,foo@GOTNTPOFF(%r12)
22075         larl    %r1,foo@INDNTPOFF
22076         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22077         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22078         tls_first_major=2
22079         tls_first_minor=14
22080         tls_as_opt="-m64 -Aesame --fatal-warnings"
22081         ;;
22082   sh-*-* | sh[34]-*-*)
22083     conftest_s='
22084         .section ".tdata","awT",@progbits
22085 foo:    .long   25
22086         .text
22087         .long   foo@TLSGD
22088         .long   foo@TLSLDM
22089         .long   foo@DTPOFF
22090         .long   foo@GOTTPOFF
22091         .long   foo@TPOFF'
22092         tls_first_major=2
22093         tls_first_minor=13
22094         tls_as_opt=--fatal-warnings
22095         ;;
22096   sparc*-*-*)
22097     case "$target" in
22098       sparc*-sun-solaris2.[56789]*)
22099         # TLS was introduced in the Solaris 9 4/04 release but
22100         # we do not enable it by default on Solaris 9 either.
22101         if test "x$enable_tls" = xyes ; then
22102           on_solaris=yes
22103         else
22104           enable_tls=no;
22105         fi
22106         ;;
22107       sparc*-sun-solaris2.*)
22108         on_solaris=yes
22109         ;;
22110       *)
22111         on_solaris=no
22112         ;;
22113     esac
22114     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22115       conftest_s='
22116         .section ".tdata",#alloc,#write,#tls
22117 foo:    .long   25
22118         .text
22119         sethi   %tgd_hi22(foo), %o0
22120         add     %o0, %tgd_lo10(foo), %o1
22121         add     %l7, %o1, %o0, %tgd_add(foo)
22122         call    __tls_get_addr, %tgd_call(foo)
22123         sethi   %tldm_hi22(foo), %l1
22124         add     %l1, %tldm_lo10(foo), %l2
22125         add     %l7, %l2, %o0, %tldm_add(foo)
22126         call    __tls_get_addr, %tldm_call(foo)
22127         sethi   %tldo_hix22(foo), %l3
22128         xor     %l3, %tldo_lox10(foo), %l4
22129         add     %o0, %l4, %l5, %tldo_add(foo)
22130         sethi   %tie_hi22(foo), %o3
22131         add     %o3, %tie_lo10(foo), %o3
22132         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22133         add     %g7, %o2, %o4, %tie_add(foo)
22134         sethi   %tle_hix22(foo), %l1
22135         xor     %l1, %tle_lox10(foo), %o5
22136         ld      [%g7 + %o5], %o1'
22137         tls_first_major=0
22138         tls_first_minor=0
22139     else
22140       conftest_s='
22141         .section ".tdata","awT",@progbits
22142 foo:    .long   25
22143         .text
22144         sethi   %tgd_hi22(foo), %o0
22145         add     %o0, %tgd_lo10(foo), %o1
22146         add     %l7, %o1, %o0, %tgd_add(foo)
22147         call    __tls_get_addr, %tgd_call(foo)
22148         sethi   %tldm_hi22(foo), %l1
22149         add     %l1, %tldm_lo10(foo), %l2
22150         add     %l7, %l2, %o0, %tldm_add(foo)
22151         call    __tls_get_addr, %tldm_call(foo)
22152         sethi   %tldo_hix22(foo), %l3
22153         xor     %l3, %tldo_lox10(foo), %l4
22154         add     %o0, %l4, %l5, %tldo_add(foo)
22155         sethi   %tie_hi22(foo), %o3
22156         add     %o3, %tie_lo10(foo), %o3
22157         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22158         add     %g7, %o2, %o4, %tie_add(foo)
22159         sethi   %tle_hix22(foo), %l1
22160         xor     %l1, %tle_lox10(foo), %o5
22161         ld      [%g7 + %o5], %o1'
22162         tls_first_major=2
22163         tls_first_minor=14
22164         tls_as_opt="-32 --fatal-warnings"
22165       fi
22166         ;;
22167   xtensa*-*-*)
22168     conftest_s='
22169         .section ".tdata","awT",@progbits
22170 foo:    .long   25
22171         .text
22172         movi    a8, foo@TLSFUNC
22173         movi    a10, foo@TLSARG
22174         callx8.tls a8, foo@TLSCALL'
22175         tls_first_major=2
22176         tls_first_minor=19
22177         ;;
22178 esac
22179 set_have_as_tls=no
22180 if test "x$enable_tls" = xno ; then
22181   : # TLS explicitly disabled.
22182 elif test "x$enable_tls" = xyes ; then
22183   set_have_as_tls=yes # TLS explicitly enabled.
22184 elif test -z "$tls_first_major"; then
22185   : # If we don't have a check, assume no support.
22186 else
22187   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22188 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22189 if test "${gcc_cv_as_tls+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   gcc_cv_as_tls=no
22193     if test $in_tree_gas = yes; then
22194     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22195   then gcc_cv_as_tls=yes
22196 fi
22197   elif test x$gcc_cv_as != x; then
22198     echo "$conftest_s" > conftest.s
22199     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; }
22205     then
22206         gcc_cv_as_tls=yes
22207     else
22208       echo "configure: failed program was" >&5
22209       cat conftest.s >&5
22210     fi
22211     rm -f conftest.o conftest.s
22212   fi
22213 fi
22214 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22215 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22216 if test $gcc_cv_as_tls = yes; then
22217   set_have_as_tls=yes
22218 fi
22219 fi
22220 if test $set_have_as_tls = yes ; then
22221
22222 cat >>confdefs.h <<\_ACEOF
22223 #define HAVE_AS_TLS 1
22224 _ACEOF
22225
22226 fi
22227
22228 # Target-specific assembler checks.
22229
22230 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22231 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22232 gcc_cv_ld_static_dynamic=no
22233 if test $in_tree_ld = yes ; then
22234   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
22235     gcc_cv_ld_static_dynamic=yes
22236   fi
22237 elif test x$gcc_cv_ld != x; then
22238         # Check if linker supports -Bstatic/-Bdynamic option
22239         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22240           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22241                 gcc_cv_ld_static_dynamic=yes
22242         fi
22243 fi
22244 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22245
22246 cat >>confdefs.h <<\_ACEOF
22247 #define HAVE_LD_STATIC_DYNAMIC 1
22248 _ACEOF
22249
22250 fi
22251 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22252 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22253
22254 if test x"$demangler_in_ld" = xyes; then
22255   echo "$as_me:$LINENO: checking linker --demangle support" >&5
22256 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22257   gcc_cv_ld_demangle=no
22258   if test $in_tree_ld = yes; then
22259     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 \
22260       gcc_cv_ld_demangle=yes
22261     fi
22262   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22263     # Check if the GNU linker supports --demangle option
22264     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22265       gcc_cv_ld_demangle=yes
22266     fi
22267   fi
22268   if test x"$gcc_cv_ld_demangle" = xyes; then
22269
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_LD_DEMANGLE 1
22272 _ACEOF
22273
22274   fi
22275   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22276 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22277 fi
22278
22279 case "$target" in
22280   # All TARGET_ABI_OSF targets.
22281   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22282     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22283 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22284 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   gcc_cv_as_alpha_explicit_relocs=no
22288     if test $in_tree_gas = yes; then
22289     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22290   then gcc_cv_as_alpha_explicit_relocs=yes
22291 fi
22292   elif test x$gcc_cv_as != x; then
22293     echo '      .set nomacro
22294         .text
22295         extbl   $3, $2, $3      !lituse_bytoff!1
22296         ldq     $2, a($29)      !literal!1
22297         ldq     $4, b($29)      !literal!2
22298         ldq_u   $3, 0($2)       !lituse_base!1
22299         ldq     $27, f($29)     !literal!5
22300         jsr     $26, ($27), f   !lituse_jsr!5
22301         ldah    $29, 0($26)     !gpdisp!3
22302         lda     $0, c($29)      !gprel
22303         ldah    $1, d($29)      !gprelhigh
22304         lda     $1, d($1)       !gprellow
22305         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22306     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }
22312     then
22313         gcc_cv_as_alpha_explicit_relocs=yes
22314     else
22315       echo "configure: failed program was" >&5
22316       cat conftest.s >&5
22317     fi
22318     rm -f conftest.o conftest.s
22319   fi
22320 fi
22321 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22322 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22323 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22324
22325 cat >>confdefs.h <<\_ACEOF
22326 #define HAVE_AS_EXPLICIT_RELOCS 1
22327 _ACEOF
22328
22329 fi
22330     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22331 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22332 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   gcc_cv_as_alpha_jsrdirect_relocs=no
22336     if test $in_tree_gas = yes; then
22337     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22338   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22339 fi
22340   elif test x$gcc_cv_as != x; then
22341     echo '      .set nomacro
22342         .text
22343         ldq     $27, a($29)     !literal!1
22344         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22345     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347   (eval $ac_try) 2>&5
22348   ac_status=$?
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); }; }
22351     then
22352         gcc_cv_as_alpha_jsrdirect_relocs=yes
22353     else
22354       echo "configure: failed program was" >&5
22355       cat conftest.s >&5
22356     fi
22357     rm -f conftest.o conftest.s
22358   fi
22359 fi
22360 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22361 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22362 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22363
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_AS_JSRDIRECT_RELOCS 1
22366 _ACEOF
22367
22368 fi
22369     ;;
22370
22371   cris-*-*)
22372     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22373 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22374 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   gcc_cv_as_cris_no_mul_bug=no
22378     if test $in_tree_gas = yes; then
22379     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22380   then gcc_cv_as_cris_no_mul_bug=yes
22381 fi
22382   elif test x$gcc_cv_as != x; then
22383     echo '.text' > conftest.s
22384     if { ac_try='$gcc_cv_as -no-mul-bug-abort -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_cris_no_mul_bug=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_cris_no_mul_bug" >&5
22400 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22401 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22405 _ACEOF
22406
22407 fi
22408     ;;
22409
22410   sparc*-*-*)
22411     echo "$as_me:$LINENO: checking assembler for .register" >&5
22412 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22413 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22414   echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416   gcc_cv_as_sparc_register_op=no
22417   if test x$gcc_cv_as != x; then
22418     echo '.register %g2, #scratch' > conftest.s
22419     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }
22425     then
22426         gcc_cv_as_sparc_register_op=yes
22427     else
22428       echo "configure: failed program was" >&5
22429       cat conftest.s >&5
22430     fi
22431     rm -f conftest.o conftest.s
22432   fi
22433 fi
22434 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22435 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22436 if test $gcc_cv_as_sparc_register_op = yes; then
22437
22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22440 _ACEOF
22441
22442 fi
22443
22444     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22445 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22446 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22447   echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449   gcc_cv_as_sparc_relax=no
22450   if test x$gcc_cv_as != x; then
22451     echo '.text' > conftest.s
22452     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; }
22458     then
22459         gcc_cv_as_sparc_relax=yes
22460     else
22461       echo "configure: failed program was" >&5
22462       cat conftest.s >&5
22463     fi
22464     rm -f conftest.o conftest.s
22465   fi
22466 fi
22467 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22468 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22469 if test $gcc_cv_as_sparc_relax = yes; then
22470
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_AS_RELAX_OPTION 1
22473 _ACEOF
22474
22475 fi
22476
22477     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22478 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22479 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22480   echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482   gcc_cv_as_sparc_ua_pcrel=no
22483   if test x$gcc_cv_as != x; then
22484     echo '.text
22485 foo:
22486         nop
22487 .data
22488 .align 4
22489 .byte 0
22490 .uaword %r_disp32(foo)' > conftest.s
22491     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }
22497     then
22498         if test x$gcc_cv_ld != x \
22499        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22500          gcc_cv_as_sparc_ua_pcrel=yes
22501        fi
22502        rm -f conftest
22503     else
22504       echo "configure: failed program was" >&5
22505       cat conftest.s >&5
22506     fi
22507     rm -f conftest.o conftest.s
22508   fi
22509 fi
22510 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22511 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22512 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22513
22514 cat >>confdefs.h <<\_ACEOF
22515 #define HAVE_AS_SPARC_UA_PCREL 1
22516 _ACEOF
22517
22518
22519       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22520 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22521 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22522   echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524   gcc_cv_as_sparc_ua_pcrel_hidden=no
22525   if test x$gcc_cv_as != x; then
22526     echo '.data
22527 .align 4
22528 .byte 0x31
22529 .uaword %r_disp32(foo)
22530 .byte 0x32, 0x33, 0x34
22531 .global foo
22532 .hidden foo
22533 foo:
22534 .skip 4' > conftest.s
22535     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537   (eval $ac_try) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; }
22541     then
22542         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22543          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22544          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22545             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22546             if $gcc_cv_objdump -R conftest 2> /dev/null \
22547                | grep 'DISP32' > /dev/null 2>&1; then
22548                 :
22549             else
22550                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22551             fi
22552          fi
22553          rm -f conftest
22554     else
22555       echo "configure: failed program was" >&5
22556       cat conftest.s >&5
22557     fi
22558     rm -f conftest.o conftest.s
22559   fi
22560 fi
22561 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22562 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22563 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22564
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22567 _ACEOF
22568
22569 fi
22570
22571 fi # unaligned pcrel relocs
22572
22573     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22574 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22575 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22576   echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578   gcc_cv_as_sparc_offsetable_lo10=no
22579   if test x$gcc_cv_as != x; then
22580     echo '.text
22581         or %g1, %lo(ab) + 12, %g1
22582         or %g1, %lo(ab + 12), %g1' > conftest.s
22583     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585   (eval $ac_try) 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; }
22589     then
22590         if test x$gcc_cv_objdump != x \
22591        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22592           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22593          gcc_cv_as_sparc_offsetable_lo10=yes
22594        fi
22595     else
22596       echo "configure: failed program was" >&5
22597       cat conftest.s >&5
22598     fi
22599     rm -f conftest.o conftest.s
22600   fi
22601 fi
22602 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22603 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22604 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_AS_OFFSETABLE_LO10 1
22608 _ACEOF
22609
22610 fi
22611     ;;
22612
22613   i[34567]86-*-* | x86_64-*-*)
22614     case $target_os in
22615       cygwin* | pe | mingw32*)
22616         # Used for DWARF 2 in PE
22617         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22618 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22619 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   gcc_cv_as_ix86_pe_secrel32=no
22623     if test $in_tree_gas = yes; then
22624     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22625   then gcc_cv_as_ix86_pe_secrel32=yes
22626 fi
22627   elif test x$gcc_cv_as != x; then
22628     echo '.text
22629 foo:    nop
22630 .data
22631         .secrel32 foo' > conftest.s
22632     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }
22638     then
22639         if test x$gcc_cv_ld != x \
22640            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22641              gcc_cv_as_ix86_pe_secrel32=yes
22642            fi
22643            rm -f conftest
22644     else
22645       echo "configure: failed program was" >&5
22646       cat conftest.s >&5
22647     fi
22648     rm -f conftest.o conftest.s
22649   fi
22650 fi
22651 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22652 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22653 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22654
22655 cat >>confdefs.h <<\_ACEOF
22656 #define HAVE_GAS_PE_SECREL32_RELOC 1
22657 _ACEOF
22658
22659 fi
22660         ;;
22661     esac
22662
22663     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22664 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22665 if test "${gcc_cv_as_ix86_filds+set}" = set; then
22666   echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668   gcc_cv_as_ix86_filds=no
22669   if test x$gcc_cv_as != x; then
22670     echo 'filds mem; fists mem' > conftest.s
22671     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }
22677     then
22678         gcc_cv_as_ix86_filds=yes
22679     else
22680       echo "configure: failed program was" >&5
22681       cat conftest.s >&5
22682     fi
22683     rm -f conftest.o conftest.s
22684   fi
22685 fi
22686 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
22687 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
22688 if test $gcc_cv_as_ix86_filds = yes; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_AS_IX86_FILDS 1
22692 _ACEOF
22693
22694 fi
22695
22696     echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
22697 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
22698 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701   gcc_cv_as_ix86_fildq=no
22702   if test x$gcc_cv_as != x; then
22703     echo 'fildq mem; fistpq mem' > conftest.s
22704     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706   (eval $ac_try) 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); }; }
22710     then
22711         gcc_cv_as_ix86_fildq=yes
22712     else
22713       echo "configure: failed program was" >&5
22714       cat conftest.s >&5
22715     fi
22716     rm -f conftest.o conftest.s
22717   fi
22718 fi
22719 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
22720 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
22721 if test $gcc_cv_as_ix86_fildq = yes; then
22722
22723 cat >>confdefs.h <<\_ACEOF
22724 #define HAVE_AS_IX86_FILDQ 1
22725 _ACEOF
22726
22727 fi
22728
22729     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22730 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22731 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22732   echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734   gcc_cv_as_ix86_cmov_sun_syntax=no
22735   if test x$gcc_cv_as != x; then
22736     echo 'cmovl.l %edx, %eax' > conftest.s
22737     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }
22743     then
22744         gcc_cv_as_ix86_cmov_sun_syntax=yes
22745     else
22746       echo "configure: failed program was" >&5
22747       cat conftest.s >&5
22748     fi
22749     rm -f conftest.o conftest.s
22750   fi
22751 fi
22752 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22753 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22754 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22755
22756 cat >>confdefs.h <<\_ACEOF
22757 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22758 _ACEOF
22759
22760 fi
22761
22762     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22763 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22764 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22765   echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767   gcc_cv_as_ix86_ffreep=no
22768   if test x$gcc_cv_as != x; then
22769     echo 'ffreep %st(1)' > conftest.s
22770     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772   (eval $ac_try) 2>&5
22773   ac_status=$?
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); }; }
22776     then
22777         gcc_cv_as_ix86_ffreep=yes
22778     else
22779       echo "configure: failed program was" >&5
22780       cat conftest.s >&5
22781     fi
22782     rm -f conftest.o conftest.s
22783   fi
22784 fi
22785 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22786 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22787 if test $gcc_cv_as_ix86_ffreep = yes; then
22788
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_AS_IX86_FFREEP 1
22791 _ACEOF
22792
22793 fi
22794
22795     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22796 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22797 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22798   echo $ECHO_N "(cached) $ECHO_C" >&6
22799 else
22800   gcc_cv_as_ix86_sahf=no
22801   if test x$gcc_cv_as != x; then
22802     echo 'sahf' > conftest.s
22803     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); }; }
22809     then
22810         gcc_cv_as_ix86_sahf=yes
22811     else
22812       echo "configure: failed program was" >&5
22813       cat conftest.s >&5
22814     fi
22815     rm -f conftest.o conftest.s
22816   fi
22817 fi
22818 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22819 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22820 if test $gcc_cv_as_ix86_sahf = yes; then
22821
22822 cat >>confdefs.h <<\_ACEOF
22823 #define HAVE_AS_IX86_SAHF 1
22824 _ACEOF
22825
22826 fi
22827
22828     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22829 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22830 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833   gcc_cv_as_ix86_diff_sect_delta=no
22834   if test x$gcc_cv_as != x; then
22835     echo '.section .rodata
22836 .L1:
22837         .long .L2-.L1
22838         .long .L3-.L1
22839         .text
22840 .L3:    nop
22841 .L2:    nop' > conftest.s
22842     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); }; }
22848     then
22849         gcc_cv_as_ix86_diff_sect_delta=yes
22850     else
22851       echo "configure: failed program was" >&5
22852       cat conftest.s >&5
22853     fi
22854     rm -f conftest.o conftest.s
22855   fi
22856 fi
22857 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22858 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22859 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22860
22861 cat >>confdefs.h <<\_ACEOF
22862 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22863 _ACEOF
22864
22865 fi
22866
22867     # This one is used unconditionally by i386.[ch]; it is to be defined
22868     # to 1 if the feature is present, 0 otherwise.
22869     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22870 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22871 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22872   echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874   gcc_cv_as_ix86_gotoff_in_data=no
22875     if test $in_tree_gas = yes; then
22876     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22877   then gcc_cv_as_ix86_gotoff_in_data=yes
22878 fi
22879   elif test x$gcc_cv_as != x; then
22880     echo '      .text
22881 .L0:
22882         nop
22883         .data
22884         .long .L0@GOTOFF' > conftest.s
22885     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; }
22891     then
22892         gcc_cv_as_ix86_gotoff_in_data=yes
22893     else
22894       echo "configure: failed program was" >&5
22895       cat conftest.s >&5
22896     fi
22897     rm -f conftest.o conftest.s
22898   fi
22899 fi
22900 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22901 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22902
22903
22904 cat >>confdefs.h <<_ACEOF
22905 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22906 _ACEOF
22907
22908     ;;
22909
22910   ia64*-*-*)
22911     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22912 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22913 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22917     if test $in_tree_gas = yes; then
22918     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22919   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22920 fi
22921   elif test x$gcc_cv_as != x; then
22922     echo '      .text
22923         addl r15 = @ltoffx(x#), gp
22924         ;;
22925         ld8.mov r16 = [r15], x#' > conftest.s
22926     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }
22932     then
22933         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22934     else
22935       echo "configure: failed program was" >&5
22936       cat conftest.s >&5
22937     fi
22938     rm -f conftest.o conftest.s
22939   fi
22940 fi
22941 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22942 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22943 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22944
22945 cat >>confdefs.h <<\_ACEOF
22946 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22947 _ACEOF
22948
22949 fi
22950
22951     ;;
22952
22953   powerpc*-*-*)
22954     case $target in
22955       *-*-aix*) conftest_s='    .machine "pwr5"
22956         .csect .text[PR]
22957         mfcr 3,128';;
22958       *-*-darwin*)
22959         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22960 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22961 if test "${gcc_cv_as_machine_directive+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   gcc_cv_as_machine_directive=no
22965   if test x$gcc_cv_as != x; then
22966     echo '      .machine ppc7400' > conftest.s
22967     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969   (eval $ac_try) 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; }
22973     then
22974         gcc_cv_as_machine_directive=yes
22975     else
22976       echo "configure: failed program was" >&5
22977       cat conftest.s >&5
22978     fi
22979     rm -f conftest.o conftest.s
22980   fi
22981 fi
22982 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22983 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22984
22985         if test x$gcc_cv_as_machine_directive != xyes; then
22986           echo "*** This target requires an assembler supporting \".machine\"" >&2
22987           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22988           test x$build = x$target && exit 1
22989         fi
22990         conftest_s='    .text
22991         mfcr r3,128';;
22992       *) conftest_s='   .machine power4
22993         .text
22994         mfcr 3,128';;
22995     esac
22996
22997     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22998 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22999 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002   gcc_cv_as_powerpc_mfcrf=no
23003     if test $in_tree_gas = yes; then
23004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23005   then gcc_cv_as_powerpc_mfcrf=yes
23006 fi
23007   elif test x$gcc_cv_as != x; then
23008     echo "$conftest_s" > conftest.s
23009     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; }
23015     then
23016         gcc_cv_as_powerpc_mfcrf=yes
23017     else
23018       echo "configure: failed program was" >&5
23019       cat conftest.s >&5
23020     fi
23021     rm -f conftest.o conftest.s
23022   fi
23023 fi
23024 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23025 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23026 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23027
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_AS_MFCRF 1
23030 _ACEOF
23031
23032 fi
23033
23034     case $target in
23035       *-*-aix*) conftest_s='    .machine "pwr5"
23036         .csect .text[PR]
23037         popcntb 3,3';;
23038       *) conftest_s='   .machine power5
23039         .text
23040         popcntb 3,3';;
23041     esac
23042
23043     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23044 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23045 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23046   echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048   gcc_cv_as_powerpc_popcntb=no
23049     if test $in_tree_gas = yes; then
23050     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23051   then gcc_cv_as_powerpc_popcntb=yes
23052 fi
23053   elif test x$gcc_cv_as != x; then
23054     echo "$conftest_s" > conftest.s
23055     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; }
23061     then
23062         gcc_cv_as_powerpc_popcntb=yes
23063     else
23064       echo "configure: failed program was" >&5
23065       cat conftest.s >&5
23066     fi
23067     rm -f conftest.o conftest.s
23068   fi
23069 fi
23070 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23071 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23072 if test $gcc_cv_as_powerpc_popcntb = yes; then
23073
23074 cat >>confdefs.h <<\_ACEOF
23075 #define HAVE_AS_POPCNTB 1
23076 _ACEOF
23077
23078 fi
23079
23080     case $target in
23081       *-*-aix*) conftest_s='    .machine "pwr5x"
23082         .csect .text[PR]
23083         frin 1,1';;
23084       *) conftest_s='   .machine power5
23085         .text
23086         frin 1,1';;
23087     esac
23088
23089     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23090 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23091 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23092   echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094   gcc_cv_as_powerpc_fprnd=no
23095     if test $in_tree_gas = yes; then
23096     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23097   then gcc_cv_as_powerpc_fprnd=yes
23098 fi
23099   elif test x$gcc_cv_as != x; then
23100     echo "$conftest_s" > conftest.s
23101     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }
23107     then
23108         gcc_cv_as_powerpc_fprnd=yes
23109     else
23110       echo "configure: failed program was" >&5
23111       cat conftest.s >&5
23112     fi
23113     rm -f conftest.o conftest.s
23114   fi
23115 fi
23116 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23117 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23118 if test $gcc_cv_as_powerpc_fprnd = yes; then
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_AS_FPRND 1
23122 _ACEOF
23123
23124 fi
23125
23126     case $target in
23127       *-*-aix*) conftest_s='    .machine "pwr6"
23128         .csect .text[PR]
23129         mffgpr 1,3';;
23130       *) conftest_s='   .machine power6
23131         .text
23132         mffgpr 1,3';;
23133     esac
23134
23135     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23136 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23137 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23138   echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140   gcc_cv_as_powerpc_mfpgpr=no
23141     if test $in_tree_gas = yes; then
23142     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23143   then gcc_cv_as_powerpc_mfpgpr=yes
23144 fi
23145   elif test x$gcc_cv_as != x; then
23146     echo "$conftest_s" > conftest.s
23147     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; }
23153     then
23154         gcc_cv_as_powerpc_mfpgpr=yes
23155     else
23156       echo "configure: failed program was" >&5
23157       cat conftest.s >&5
23158     fi
23159     rm -f conftest.o conftest.s
23160   fi
23161 fi
23162 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23163 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23164 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23165
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_AS_MFPGPR 1
23168 _ACEOF
23169
23170 fi
23171
23172     case $target in
23173       *-*-aix*) conftest_s='    .csect .text[PR]
23174 LCF..0:
23175         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23176       *-*-darwin*)
23177         conftest_s='    .text
23178 LCF0:
23179         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23180       *) conftest_s='   .text
23181 .LCF0:
23182         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23183     esac
23184
23185     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23186 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23187 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23188   echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190   gcc_cv_as_powerpc_rel16=no
23191     if test $in_tree_gas = yes; then
23192     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23193   then gcc_cv_as_powerpc_rel16=yes
23194 fi
23195   elif test x$gcc_cv_as != x; then
23196     echo "$conftest_s" > conftest.s
23197     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; }
23203     then
23204         gcc_cv_as_powerpc_rel16=yes
23205     else
23206       echo "configure: failed program was" >&5
23207       cat conftest.s >&5
23208     fi
23209     rm -f conftest.o conftest.s
23210   fi
23211 fi
23212 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23213 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23214 if test $gcc_cv_as_powerpc_rel16 = yes; then
23215
23216 cat >>confdefs.h <<\_ACEOF
23217 #define HAVE_AS_REL16 1
23218 _ACEOF
23219
23220 fi
23221
23222     case $target in
23223       *-*-aix*) conftest_s='    .machine "pwr6"
23224         .csect .text[PR]
23225         cmpb 3,4,5';;
23226       *) conftest_s='   .machine power6
23227         .text
23228         cmpb 3,4,5';;
23229     esac
23230
23231     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23232 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23233 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23234   echo $ECHO_N "(cached) $ECHO_C" >&6
23235 else
23236   gcc_cv_as_powerpc_cmpb=no
23237     if test $in_tree_gas = yes; then
23238     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23239   then gcc_cv_as_powerpc_cmpb=yes
23240 fi
23241   elif test x$gcc_cv_as != x; then
23242     echo "$conftest_s" > conftest.s
23243     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245   (eval $ac_try) 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; }
23249     then
23250         gcc_cv_as_powerpc_cmpb=yes
23251     else
23252       echo "configure: failed program was" >&5
23253       cat conftest.s >&5
23254     fi
23255     rm -f conftest.o conftest.s
23256   fi
23257 fi
23258 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23259 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23260 if test $gcc_cv_as_powerpc_cmpb = yes; then
23261
23262 cat >>confdefs.h <<\_ACEOF
23263 #define HAVE_AS_CMPB 1
23264 _ACEOF
23265
23266 fi
23267
23268     case $target in
23269       *-*-aix*) conftest_s='    .machine "pwr6"
23270         .csect .text[PR]
23271         dadd 1,2,3';;
23272       *) conftest_s='   .machine power6
23273         .text
23274         dadd 1,2,3';;
23275     esac
23276
23277     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23278 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23279 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282   gcc_cv_as_powerpc_dfp=no
23283     if test $in_tree_gas = yes; then
23284     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23285   then gcc_cv_as_powerpc_dfp=yes
23286 fi
23287   elif test x$gcc_cv_as != x; then
23288     echo "$conftest_s" > conftest.s
23289     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }
23295     then
23296         gcc_cv_as_powerpc_dfp=yes
23297     else
23298       echo "configure: failed program was" >&5
23299       cat conftest.s >&5
23300     fi
23301     rm -f conftest.o conftest.s
23302   fi
23303 fi
23304 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23305 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23306 if test $gcc_cv_as_powerpc_dfp = yes; then
23307
23308 cat >>confdefs.h <<\_ACEOF
23309 #define HAVE_AS_DFP 1
23310 _ACEOF
23311
23312 fi
23313
23314     case $target in
23315       *-*-aix*) conftest_s='    .machine "pwr7"
23316         .csect .text[PR]
23317         lxvd2x 1,2,3';;
23318       *) conftest_s='   .machine power7
23319         .text
23320         lxvd2x 1,2,3';;
23321     esac
23322
23323     echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23324 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23325 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23326   echo $ECHO_N "(cached) $ECHO_C" >&6
23327 else
23328   gcc_cv_as_powerpc_vsx=no
23329     if test $in_tree_gas = yes; then
23330     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23331   then gcc_cv_as_powerpc_vsx=yes
23332 fi
23333   elif test x$gcc_cv_as != x; then
23334     echo "$conftest_s" > conftest.s
23335     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337   (eval $ac_try) 2>&5
23338   ac_status=$?
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); }; }
23341     then
23342         gcc_cv_as_powerpc_vsx=yes
23343     else
23344       echo "configure: failed program was" >&5
23345       cat conftest.s >&5
23346     fi
23347     rm -f conftest.o conftest.s
23348   fi
23349 fi
23350 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23351 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23352 if test $gcc_cv_as_powerpc_vsx = yes; then
23353
23354 cat >>confdefs.h <<\_ACEOF
23355 #define HAVE_AS_VSX 1
23356 _ACEOF
23357
23358 fi
23359
23360     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23361 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23362 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23363   echo $ECHO_N "(cached) $ECHO_C" >&6
23364 else
23365   gcc_cv_as_powerpc_gnu_attribute=no
23366     if test $in_tree_gas = yes; then
23367     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23368   then gcc_cv_as_powerpc_gnu_attribute=yes
23369 fi
23370   elif test x$gcc_cv_as != x; then
23371     echo '.gnu_attribute 4,1' > conftest.s
23372     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); }; }
23378     then
23379         gcc_cv_as_powerpc_gnu_attribute=yes
23380     else
23381       echo "configure: failed program was" >&5
23382       cat conftest.s >&5
23383     fi
23384     rm -f conftest.o conftest.s
23385   fi
23386 fi
23387 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23388 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23389 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23390
23391 cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_AS_GNU_ATTRIBUTE 1
23393 _ACEOF
23394
23395 fi
23396
23397     echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23398 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23399 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23400   echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402   gcc_cv_as_powerpc_tls_markers=no
23403     if test $in_tree_gas = yes; then
23404     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23405   then gcc_cv_as_powerpc_tls_markers=yes
23406 fi
23407   elif test x$gcc_cv_as != x; then
23408     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23409     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }
23415     then
23416         gcc_cv_as_powerpc_tls_markers=yes
23417     else
23418       echo "configure: failed program was" >&5
23419       cat conftest.s >&5
23420     fi
23421     rm -f conftest.o conftest.s
23422   fi
23423 fi
23424 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23425 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23426 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23427
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_AS_TLS_MARKERS 1
23430 _ACEOF
23431
23432 fi
23433     ;;
23434
23435   mips*-*-*)
23436     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23437 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23438 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23439   echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441   gcc_cv_as_mips_explicit_relocs=no
23442     if test $in_tree_gas = yes; then
23443     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23444   then gcc_cv_as_mips_explicit_relocs=yes
23445 fi
23446   elif test x$gcc_cv_as != x; then
23447     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23448     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; }
23454     then
23455         gcc_cv_as_mips_explicit_relocs=yes
23456     else
23457       echo "configure: failed program was" >&5
23458       cat conftest.s >&5
23459     fi
23460     rm -f conftest.o conftest.s
23461   fi
23462 fi
23463 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23464 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23465 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23466   if test x$target_cpu_default = x
23467        then target_cpu_default=MASK_EXPLICIT_RELOCS
23468        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23469        fi
23470 fi
23471     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23472 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23473 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23474   echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476   gcc_cv_as_mips_no_shared=no
23477     if test $in_tree_gas = yes; then
23478     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23479   then gcc_cv_as_mips_no_shared=yes
23480 fi
23481   elif test x$gcc_cv_as != x; then
23482     echo 'nop' > conftest.s
23483     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; }
23489     then
23490         gcc_cv_as_mips_no_shared=yes
23491     else
23492       echo "configure: failed program was" >&5
23493       cat conftest.s >&5
23494     fi
23495     rm -f conftest.o conftest.s
23496   fi
23497 fi
23498 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23499 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23500 if test $gcc_cv_as_mips_no_shared = yes; then
23501
23502 cat >>confdefs.h <<\_ACEOF
23503 #define HAVE_AS_NO_SHARED 1
23504 _ACEOF
23505
23506 fi
23507
23508     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23509 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23510 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23511   echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513   gcc_cv_as_mips_gnu_attribute=no
23514     if test $in_tree_gas = yes; then
23515     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23516   then gcc_cv_as_mips_gnu_attribute=yes
23517 fi
23518   elif test x$gcc_cv_as != x; then
23519     echo '.gnu_attribute 4,1' > conftest.s
23520     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522   (eval $ac_try) 2>&5
23523   ac_status=$?
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); }; }
23526     then
23527         gcc_cv_as_mips_gnu_attribute=yes
23528     else
23529       echo "configure: failed program was" >&5
23530       cat conftest.s >&5
23531     fi
23532     rm -f conftest.o conftest.s
23533   fi
23534 fi
23535 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23536 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23537 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23538
23539 cat >>confdefs.h <<\_ACEOF
23540 #define HAVE_AS_GNU_ATTRIBUTE 1
23541 _ACEOF
23542
23543 fi
23544
23545     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23546 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23547 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23548   echo $ECHO_N "(cached) $ECHO_C" >&6
23549 else
23550   gcc_cv_as_mips_dtprelword=no
23551     if test $in_tree_gas = yes; then
23552     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23553   then gcc_cv_as_mips_dtprelword=yes
23554 fi
23555   elif test x$gcc_cv_as != x; then
23556     echo '.section .tdata,"awT",@progbits
23557 x:
23558         .word 2
23559         .text
23560         .dtprelword x+0x8000' > conftest.s
23561     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563   (eval $ac_try) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; }
23567     then
23568         gcc_cv_as_mips_dtprelword=yes
23569     else
23570       echo "configure: failed program was" >&5
23571       cat conftest.s >&5
23572     fi
23573     rm -f conftest.o conftest.s
23574   fi
23575 fi
23576 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23577 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23578 if test $gcc_cv_as_mips_dtprelword = yes; then
23579
23580 cat >>confdefs.h <<\_ACEOF
23581 #define HAVE_AS_DTPRELWORD 1
23582 _ACEOF
23583
23584 fi
23585     ;;
23586 esac
23587
23588 # Mips and HP-UX need the GNU assembler.
23589 # Linux on IA64 might be able to use the Intel assembler.
23590
23591 case "$target" in
23592   mips*-*-* | *-*-hpux* )
23593     if test x$gas_flag = xyes \
23594        || test x"$host" != x"$build" \
23595        || test ! -x "$gcc_cv_as" \
23596        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23597       :
23598     else
23599       echo "*** This configuration requires the GNU assembler" >&2
23600       exit 1
23601     fi
23602     ;;
23603 esac
23604
23605 # ??? Not all targets support dwarf2 debug_line, even within a version
23606 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23607 # info to the output file.  So, as supported targets are added to gas 2.11,
23608 # add some instruction here to (also) show we expect this might work.
23609 # ??? Once 2.11 is released, probably need to add first known working
23610 # version to the per-target configury.
23611 case "$target" in
23612   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23613   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23614   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23615   | spu-*-* | fido*-*-* | m32c-*-*)
23616     insn="nop"
23617     ;;
23618   ia64*-*-* | s390*-*-*)
23619     insn="nop 0"
23620     ;;
23621   mmix-*-*)
23622     insn="swym 0"
23623     ;;
23624 esac
23625 if test x"$insn" != x; then
23626  conftest_s="\
23627         .file 1 \"conftest.s\"
23628         .loc 1 3 0
23629         $insn"
23630  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23631 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23632 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23633   echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635   gcc_cv_as_dwarf2_debug_line=no
23636     if test $in_tree_gas = yes; then
23637     if test $in_tree_gas_is_elf = yes \
23638   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23639   then gcc_cv_as_dwarf2_debug_line=yes
23640 fi
23641   elif test x$gcc_cv_as != x; then
23642     echo "$conftest_s" > conftest.s
23643     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); }; }
23649     then
23650         if test x$gcc_cv_objdump != x \
23651    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23652       | grep debug_line > /dev/null 2>&1; then
23653      gcc_cv_as_dwarf2_debug_line=yes
23654    fi
23655     else
23656       echo "configure: failed program was" >&5
23657       cat conftest.s >&5
23658     fi
23659     rm -f conftest.o conftest.s
23660   fi
23661 fi
23662 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23663 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23664
23665
23666 # The .debug_line file table must be in the exact order that
23667 # we specified the files, since these indices are also used
23668 # by DW_AT_decl_file.  Approximate this test by testing if
23669 # the assembler bitches if the same index is assigned twice.
23670  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23671 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23672 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675   gcc_cv_as_dwarf2_file_buggy=no
23676   if test x$gcc_cv_as != x; then
23677     echo '      .file 1 "foo.s"
23678         .file 1 "bar.s"' > conftest.s
23679     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681   (eval $ac_try) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; }
23685     then
23686         gcc_cv_as_dwarf2_file_buggy=yes
23687     else
23688       echo "configure: failed program was" >&5
23689       cat conftest.s >&5
23690     fi
23691     rm -f conftest.o conftest.s
23692   fi
23693 fi
23694 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23695 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23696
23697
23698  if test $gcc_cv_as_dwarf2_debug_line = yes \
23699  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23700
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23703 _ACEOF
23704
23705  fi
23706
23707  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23708 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23709 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23710   echo $ECHO_N "(cached) $ECHO_C" >&6
23711 else
23712   gcc_cv_as_gdwarf2_flag=no
23713     if test $in_tree_gas = yes; then
23714     if test $in_tree_gas_is_elf = yes \
23715   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23716   then gcc_cv_as_gdwarf2_flag=yes
23717 fi
23718   elif test x$gcc_cv_as != x; then
23719     echo "$insn" > conftest.s
23720     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722   (eval $ac_try) 2>&5
23723   ac_status=$?
23724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725   (exit $ac_status); }; }
23726     then
23727         gcc_cv_as_gdwarf2_flag=yes
23728     else
23729       echo "configure: failed program was" >&5
23730       cat conftest.s >&5
23731     fi
23732     rm -f conftest.o conftest.s
23733   fi
23734 fi
23735 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23736 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23737 if test $gcc_cv_as_gdwarf2_flag = yes; then
23738
23739 cat >>confdefs.h <<\_ACEOF
23740 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23741 _ACEOF
23742
23743 fi
23744
23745  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23746 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23747 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23748   echo $ECHO_N "(cached) $ECHO_C" >&6
23749 else
23750   gcc_cv_as_gstabs_flag=no
23751     if test $in_tree_gas = yes; then
23752     if test $in_tree_gas_is_elf = yes \
23753   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23754   then gcc_cv_as_gstabs_flag=yes
23755 fi
23756   elif test x$gcc_cv_as != x; then
23757     echo "$insn" > conftest.s
23758     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760   (eval $ac_try) 2>&5
23761   ac_status=$?
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); }; }
23764     then
23765         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23766    # and warns about it, but still exits successfully.  So check for
23767    # this.
23768    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770   (eval $ac_try) 2>&5
23771   ac_status=$?
23772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773   (exit $ac_status); }; }
23774    then :
23775    else gcc_cv_as_gstabs_flag=yes
23776    fi
23777     else
23778       echo "configure: failed program was" >&5
23779       cat conftest.s >&5
23780     fi
23781     rm -f conftest.o conftest.s
23782   fi
23783 fi
23784 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23785 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23786 if test $gcc_cv_as_gstabs_flag = yes; then
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23790 _ACEOF
23791
23792 fi
23793
23794  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23795 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23796 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799   gcc_cv_as_debug_prefix_map_flag=no
23800     if test $in_tree_gas = yes; then
23801     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23802   then gcc_cv_as_debug_prefix_map_flag=yes
23803 fi
23804   elif test x$gcc_cv_as != x; then
23805     echo "$insn" > conftest.s
23806     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }
23812     then
23813         gcc_cv_as_debug_prefix_map_flag=yes
23814     else
23815       echo "configure: failed program was" >&5
23816       cat conftest.s >&5
23817     fi
23818     rm -f conftest.o conftest.s
23819   fi
23820 fi
23821 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23822 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23823 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23824
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23827 _ACEOF
23828
23829 fi
23830 fi
23831
23832 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23833 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23834 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837   gcc_cv_as_lcomm_with_alignment=no
23838   if test x$gcc_cv_as != x; then
23839     echo '.lcomm bar,4,16' > conftest.s
23840     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842   (eval $ac_try) 2>&5
23843   ac_status=$?
23844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845   (exit $ac_status); }; }
23846     then
23847         gcc_cv_as_lcomm_with_alignment=yes
23848     else
23849       echo "configure: failed program was" >&5
23850       cat conftest.s >&5
23851     fi
23852     rm -f conftest.o conftest.s
23853   fi
23854 fi
23855 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23856 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23857 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23858
23859 cat >>confdefs.h <<\_ACEOF
23860 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23861 _ACEOF
23862
23863 fi
23864
23865 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23866 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23867 if test "${gcc_cv_as_line_zero+set}" = set; then
23868   echo $ECHO_N "(cached) $ECHO_C" >&6
23869 else
23870   gcc_cv_as_line_zero=no
23871   if test $in_tree_gas = yes; then
23872     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23873   then gcc_cv_as_line_zero=yes
23874 fi
23875   elif test "x$gcc_cv_as" != x; then
23876     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23877     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879   (eval $ac_try) 2>&5
23880   ac_status=$?
23881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882   (exit $ac_status); }; } &&
23883        test "x`cat conftest.out`" = x
23884     then
23885       gcc_cv_as_line_zero=yes
23886     else
23887       echo "configure: failed program was" >&5
23888       cat conftest.s >&5
23889       echo "configure: error output was" >&5
23890       cat conftest.out >&5
23891     fi
23892     rm -f conftest.o conftest.s conftest.out
23893   fi
23894 fi
23895 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23896 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23897 if test "x$gcc_cv_as_line_zero" = xyes; then
23898
23899 cat >>confdefs.h <<\_ACEOF
23900 #define HAVE_AS_LINE_ZERO 1
23901 _ACEOF
23902
23903 fi
23904
23905 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23906 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23907 gcc_cv_ld_eh_frame_hdr=no
23908 if test $in_tree_ld = yes ; then
23909   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 \
23910      && test $in_tree_ld_is_elf = yes; then
23911     gcc_cv_ld_eh_frame_hdr=yes
23912   fi
23913 elif test x$gcc_cv_ld != x; then
23914         # Check if linker supports --eh-frame-hdr option
23915         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23916                 gcc_cv_ld_eh_frame_hdr=yes
23917         fi
23918 fi
23919
23920 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23921
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_LD_EH_FRAME_HDR 1
23924 _ACEOF
23925
23926 fi
23927 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23928 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23929
23930 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23931 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23932 gcc_cv_ld_pie=no
23933 if test $in_tree_ld = yes ; then
23934   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 \
23935      && test $in_tree_ld_is_elf = yes; then
23936     gcc_cv_ld_pie=yes
23937   fi
23938 elif test x$gcc_cv_ld != x; then
23939         # Check if linker supports -pie option
23940         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23941                 gcc_cv_ld_pie=yes
23942         fi
23943 fi
23944 if test x"$gcc_cv_ld_pie" = xyes; then
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_LD_PIE 1
23948 _ACEOF
23949
23950 fi
23951 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23952 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23953
23954 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23955 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23956 gcc_cv_ld_eh_gc_sections=no
23957 if test $in_tree_ld = yes ; then
23958   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
23959      && test $in_tree_ld_is_elf = yes; then
23960     gcc_cv_ld_eh_gc_sections=yes
23961   fi
23962 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23963   cat > conftest.s <<EOF
23964         .section        .text
23965 .globl _start
23966         .type _start, @function
23967 _start:
23968         .long foo
23969         .size _start, .-_start
23970         .section        .text.foo,"ax",@progbits
23971         .type foo, @function
23972 foo:
23973         .long 0
23974         .size foo, .-foo
23975         .section        .gcc_except_table.foo,"a",@progbits
23976 .L0:
23977         .long 0
23978         .section        .eh_frame,"a",@progbits
23979         .long .L0
23980 EOF
23981   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23982     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23983          | grep "gc-sections option ignored" > /dev/null; then
23984       gcc_cv_ld_eh_gc_sections=no
23985     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23986       gcc_cv_ld_eh_gc_sections=yes
23987       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23988       if test x$gcc_cv_as_comdat_group != xyes; then
23989         gcc_cv_ld_eh_gc_sections=no
23990         cat > conftest.s <<EOF
23991         .section        .text
23992 .globl _start
23993         .type _start, @function
23994 _start:
23995         .long foo
23996         .size _start, .-_start
23997         .section        .gnu.linkonce.t.foo,"ax",@progbits
23998         .type foo, @function
23999 foo:
24000         .long 0
24001         .size foo, .-foo
24002         .section        .gcc_except_table.foo,"a",@progbits
24003 .L0:
24004         .long 0
24005         .section        .eh_frame,"a",@progbits
24006         .long .L0
24007 EOF
24008         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24009           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24010                | grep "gc-sections option ignored" > /dev/null; then
24011             gcc_cv_ld_eh_gc_sections=no
24012           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24013             gcc_cv_ld_eh_gc_sections=yes
24014           fi
24015         fi
24016       fi
24017     fi
24018   fi
24019   rm -f conftest.s conftest.o conftest
24020 fi
24021 case "$target" in
24022   hppa*-*-linux*)
24023     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24024     gcc_cv_ld_eh_gc_sections=no
24025     ;;
24026 esac
24027 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24028
24029 cat >>confdefs.h <<\_ACEOF
24030 #define HAVE_LD_EH_GC_SECTIONS 1
24031 _ACEOF
24032
24033 fi
24034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24035 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24036
24037 # --------
24038 # UNSORTED
24039 # --------
24040
24041 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24042 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24043 if test "${gcc_cv_ld_as_needed+set}" = set; then
24044   echo $ECHO_N "(cached) $ECHO_C" >&6
24045 else
24046   gcc_cv_ld_as_needed=no
24047 if test $in_tree_ld = yes ; then
24048   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 \
24049      && test $in_tree_ld_is_elf = yes; then
24050     gcc_cv_ld_as_needed=yes
24051   fi
24052 elif test x$gcc_cv_ld != x; then
24053         # Check if linker supports --as-needed and --no-as-needed options
24054         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24055                 gcc_cv_ld_as_needed=yes
24056         fi
24057 fi
24058
24059 fi
24060 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24061 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24062 if test x"$gcc_cv_ld_as_needed" = xyes; then
24063
24064 cat >>confdefs.h <<\_ACEOF
24065 #define HAVE_LD_AS_NEEDED 1
24066 _ACEOF
24067
24068 fi
24069
24070 case "$target:$tm_file" in
24071   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24072     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24073 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24074 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24075   echo $ECHO_N "(cached) $ECHO_C" >&6
24076 else
24077   gcc_cv_ld_no_dot_syms=no
24078     if test $in_tree_ld = yes ; then
24079       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
24080         gcc_cv_ld_no_dot_syms=yes
24081       fi
24082     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24083       cat > conftest1.s <<EOF
24084         .text
24085         bl .foo
24086 EOF
24087       cat > conftest2.s <<EOF
24088         .section ".opd","aw"
24089         .align 3
24090         .globl foo
24091         .type foo,@function
24092 foo:
24093         .quad .LEfoo,.TOC.@tocbase,0
24094         .text
24095 .LEfoo:
24096         blr
24097         .size foo,.-.LEfoo
24098 EOF
24099       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24100          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24101          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24102         gcc_cv_ld_no_dot_syms=yes
24103       fi
24104       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24105     fi
24106
24107 fi
24108 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24109 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24110     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24111
24112 cat >>confdefs.h <<\_ACEOF
24113 #define HAVE_LD_NO_DOT_SYMS 1
24114 _ACEOF
24115
24116     fi
24117     ;;
24118 esac
24119
24120 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24121 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24122 if test "${gcc_cv_ld_sysroot+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   gcc_cv_ld_sysroot=no
24126   if test $in_tree_ld = yes ; then
24127       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
24128         gcc_cv_ld_sysroot=yes
24129       fi
24130   elif test x$gcc_cv_ld != x; then
24131     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24132       gcc_cv_ld_sysroot=yes
24133     fi
24134   fi
24135 fi
24136 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24137 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24138 if test x"$gcc_cv_ld_sysroot" = xyes; then
24139
24140 cat >>confdefs.h <<\_ACEOF
24141 #define HAVE_LD_SYSROOT 1
24142 _ACEOF
24143
24144 fi
24145
24146 if test x$with_sysroot = x && test x$host = x$target \
24147    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24148    && test "$prefix" != "NONE"; then
24149
24150 cat >>confdefs.h <<_ACEOF
24151 #define PREFIX_INCLUDE_DIR "$prefix/include"
24152 _ACEOF
24153
24154 fi
24155
24156 # Test for stack protector support in target C library.
24157 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24158 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24159 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24160   echo $ECHO_N "(cached) $ECHO_C" >&6
24161 else
24162   gcc_cv_libc_provides_ssp=no
24163     case "$target" in
24164        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24165       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24166         if test "x$with_sysroot" = x; then
24167           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24168         elif test "x$with_build_sysroot" != "x"; then
24169           glibc_header_dir="${with_build_sysroot}/usr/include"
24170         elif test "x$with_sysroot" = xyes; then
24171           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24172         else
24173           glibc_header_dir="${with_sysroot}/usr/include"
24174         fi
24175       else
24176         glibc_header_dir=/usr/include
24177       fi
24178       # glibc 2.4 and later provides __stack_chk_fail and
24179       # either __stack_chk_guard, or TLS access to stack guard canary.
24180       if test -f $glibc_header_dir/features.h \
24181          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24182             $glibc_header_dir/features.h > /dev/null; then
24183         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24184            $glibc_header_dir/features.h > /dev/null; then
24185           gcc_cv_libc_provides_ssp=yes
24186         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24187              $glibc_header_dir/features.h > /dev/null \
24188              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24189              $glibc_header_dir/features.h > /dev/null; then
24190           gcc_cv_libc_provides_ssp=yes
24191         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24192              $glibc_header_dir/features.h > /dev/null && \
24193              test -f $glibc_header_dir/bits/uClibc_config.h && \
24194              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24195              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24196           gcc_cv_libc_provides_ssp=yes
24197         fi
24198       fi
24199         ;;
24200        *-*-gnu*)
24201          # Avoid complicated tests (see
24202          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24203          # simply assert that glibc does provide this, which is true for all
24204          # realistically usable GNU/Hurd configurations.
24205          gcc_cv_libc_provides_ssp=yes;;
24206        *-*-darwin*)
24207          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24208 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24209 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24210   echo $ECHO_N "(cached) $ECHO_C" >&6
24211 else
24212   cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24220 #define __stack_chk_fail innocuous___stack_chk_fail
24221
24222 /* System header to define __stub macros and hopefully few prototypes,
24223     which can conflict with char __stack_chk_fail (); below.
24224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24225     <limits.h> exists even on freestanding compilers.  */
24226
24227 #ifdef __STDC__
24228 # include <limits.h>
24229 #else
24230 # include <assert.h>
24231 #endif
24232
24233 #undef __stack_chk_fail
24234
24235 /* Override any gcc2 internal prototype to avoid an error.  */
24236 #ifdef __cplusplus
24237 extern "C"
24238 {
24239 #endif
24240 /* We use char because int might match the return type of a gcc2
24241    builtin and then its argument prototype would still apply.  */
24242 char __stack_chk_fail ();
24243 /* The GNU C library defines this for functions which it implements
24244     to always fail with ENOSYS.  Some functions are actually named
24245     something starting with __ and the normal name is an alias.  */
24246 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24247 choke me
24248 #else
24249 char (*f) () = __stack_chk_fail;
24250 #endif
24251 #ifdef __cplusplus
24252 }
24253 #endif
24254
24255 int
24256 main ()
24257 {
24258 return f != __stack_chk_fail;
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext conftest$ac_exeext
24264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24265   (eval $ac_link) 2>conftest.er1
24266   ac_status=$?
24267   grep -v '^ *+' conftest.er1 >conftest.err
24268   rm -f conftest.er1
24269   cat conftest.err >&5
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } &&
24272          { ac_try='test -z "$ac_c_werror_flag"
24273                          || test ! -s conftest.err'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; } &&
24279          { ac_try='test -s conftest$ac_exeext'
24280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281   (eval $ac_try) 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); }; }; then
24285   ac_cv_func___stack_chk_fail=yes
24286 else
24287   echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 ac_cv_func___stack_chk_fail=no
24291 fi
24292 rm -f conftest.err conftest.$ac_objext \
24293       conftest$ac_exeext conftest.$ac_ext
24294 fi
24295 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24296 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24297 if test $ac_cv_func___stack_chk_fail = yes; then
24298   gcc_cv_libc_provides_ssp=yes
24299 else
24300   echo "no __stack_chk_fail on this target"
24301 fi
24302
24303         ;;
24304   *) gcc_cv_libc_provides_ssp=no ;;
24305     esac
24306 fi
24307 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24308 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24309
24310 if test x$gcc_cv_libc_provides_ssp = xyes; then
24311
24312 cat >>confdefs.h <<\_ACEOF
24313 #define TARGET_LIBC_PROVIDES_SSP 1
24314 _ACEOF
24315
24316 fi
24317
24318 # Check if TFmode long double should be used by default or not.
24319 # Some glibc targets used DFmode long double, but with glibc 2.4
24320 # and later they can use TFmode.
24321 case "$target" in
24322   powerpc*-*-linux* | \
24323   powerpc*-*-gnu* | \
24324   sparc*-*-linux* | \
24325   s390*-*-linux* | \
24326   alpha*-*-linux*)
24327
24328 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24329 if test "${with_long_double_128+set}" = set; then
24330   withval="$with_long_double_128"
24331   gcc_cv_target_ldbl128="$with_long_double_128"
24332 else
24333   gcc_cv_target_ldbl128=no
24334       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24335         if test "x$with_sysroot" = x; then
24336           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24337         elif test "x$with_build_sysroot" != "x"; then
24338           glibc_header_dir="${with_build_sysroot}/usr/include"
24339         elif test "x$with_sysroot" = xyes; then
24340           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24341         else
24342           glibc_header_dir="${with_sysroot}/usr/include"
24343         fi
24344       else
24345         glibc_header_dir=/usr/include
24346       fi
24347       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24348         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24349       && gcc_cv_target_ldbl128=yes
24350
24351 fi;
24352     ;;
24353 esac
24354 if test x$gcc_cv_target_ldbl128 = xyes; then
24355
24356 cat >>confdefs.h <<\_ACEOF
24357 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24358 _ACEOF
24359
24360 fi
24361
24362 # Find out what GC implementation we want, or may, use.
24363
24364 # Check whether --with-gc or --without-gc was given.
24365 if test "${with_gc+set}" = set; then
24366   withval="$with_gc"
24367   case "$withval" in
24368   page)
24369     GGC=ggc-$withval
24370     ;;
24371   zone)
24372     GGC=ggc-$withval
24373
24374 cat >>confdefs.h <<\_ACEOF
24375 #define GGC_ZONE 1
24376 _ACEOF
24377
24378     ;;
24379   *)
24380     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24381 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24382    { (exit 1); exit 1; }; }
24383     ;;
24384 esac
24385 else
24386   GGC=ggc-page
24387 fi;
24388
24389 echo "Using $GGC for garbage collection."
24390
24391 # Use the system's zlib library.
24392 zlibdir=-L../zlib
24393 zlibinc="-I\$(srcdir)/../zlib"
24394
24395 # Check whether --with-system-zlib or --without-system-zlib was given.
24396 if test "${with_system_zlib+set}" = set; then
24397   withval="$with_system_zlib"
24398   zlibdir=
24399 zlibinc=
24400
24401 fi;
24402
24403
24404
24405
24406 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24407 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24408     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24409 if test "${enable_maintainer_mode+set}" = set; then
24410   enableval="$enable_maintainer_mode"
24411   maintainer_mode=$enableval
24412 else
24413   maintainer_mode=no
24414 fi;
24415
24416 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24417 echo "${ECHO_T}$maintainer_mode" >&6
24418
24419 if test "$maintainer_mode" = "yes"; then
24420   MAINT=''
24421 else
24422   MAINT='#'
24423 fi
24424
24425 # --------------
24426 # Language hooks
24427 # --------------
24428
24429 # Make empty files to contain the specs and options for each language.
24430 # Then add #include lines to for a compiler that has specs and/or options.
24431
24432 subdirs=
24433 lang_opt_files=
24434 lang_specs_files=
24435 lang_tree_files=
24436 # These (without "all_") are set in each config-lang.in.
24437 # `language' must be a single word so is spelled singularly.
24438 all_languages=
24439 all_compilers=
24440 all_outputs='Makefile gccbug'
24441 # List of language makefile fragments.
24442 all_lang_makefrags=
24443 # List of language subdirectory makefiles.  Deprecated.
24444 all_lang_makefiles=
24445 # Additional files for gengtype
24446 all_gtfiles="$target_gtfiles"
24447
24448 # These are the languages that are set in --enable-languages,
24449 # and are available in the GCC tree.
24450 all_selected_languages=
24451
24452 # Add the language fragments.
24453 # Languages are added via two mechanisms.  Some information must be
24454 # recorded in makefile variables, these are defined in config-lang.in.
24455 # We accumulate them and plug them into the main Makefile.
24456 # The other mechanism is a set of hooks for each of the main targets
24457 # like `clean', `install', etc.
24458
24459 language_hooks="Make-hooks"
24460
24461 for lang in ${srcdir}/*/config-lang.in
24462 do
24463         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24464
24465         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24466         if test "x$lang_alias" = x
24467         then
24468               echo "$lang doesn't set \$language." 1>&2
24469               exit 1
24470         fi
24471         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24472         subdirs="$subdirs $subdir"
24473
24474         # $gcc_subdir is where the gcc integration files are to be found
24475         # for a language, both for internal compiler purposes (compiler
24476         # sources implementing front-end to GCC tree converters), and for
24477         # build infrastructure purposes (Make-lang.in, etc.)
24478         #
24479         # This will be <subdir> (relative to $srcdir) if a line like
24480         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24481         # is found in <langdir>/config-lang.in, and will remain <langdir>
24482         # otherwise.
24483         #
24484         # Except for the language alias (fetched above), the regular
24485         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24486         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24487         # only this and the language alias.
24488
24489         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24490         if [ "$gcc_subdir" = "" ]; then
24491            gcc_subdir="$subdir"
24492         fi
24493
24494         case ",$enable_languages," in
24495         *,$lang_alias,*)
24496             all_selected_languages="$all_selected_languages $lang_alias"
24497             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24498                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24499             fi
24500             ;;
24501         esac
24502
24503         language=
24504         boot_language=
24505         compilers=
24506         outputs=
24507         gtfiles=
24508         subdir_requires=
24509         . ${srcdir}/$gcc_subdir/config-lang.in
24510         if test "x$language" = x
24511         then
24512                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24513                 exit 1
24514         fi
24515
24516         ok=:
24517         case ",$enable_languages," in
24518                 *,$lang_alias,*) ;;
24519                 *)
24520                         for i in $subdir_requires; do
24521                                 test -f "${srcdir}/$i/config-lang.in" && continue
24522                                 ok=false
24523                                 break
24524                         done
24525                 ;;
24526         esac
24527         $ok || continue
24528
24529         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24530         if test -f $srcdir/$gcc_subdir/lang.opt; then
24531             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24532         fi
24533         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24534             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24535         fi
24536         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24537                 then all_lang_makefiles="$gcc_subdir/Makefile"
24538         fi
24539         all_languages="$all_languages $language"
24540         all_compilers="$all_compilers $compilers"
24541         all_outputs="$all_outputs $outputs"
24542         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24543 done
24544
24545 # Pick up gtfiles for c
24546 gtfiles=
24547 . ${srcdir}/c-config-lang.in
24548 all_gtfiles="$all_gtfiles [c] $gtfiles"
24549
24550 check_languages=
24551 for language in $all_selected_languages
24552 do
24553         check_languages="$check_languages check-$language"
24554 done
24555
24556 # We link each language in with a set of hooks, reached indirectly via
24557 # lang.${target}.  Only do so for selected languages.
24558
24559 rm -f Make-hooks
24560 touch Make-hooks
24561 target_list="all.cross start.encap rest.encap tags \
24562         install-common install-man install-info install-pdf dvi pdf \
24563         html uninstall info man srcextra srcman srcinfo \
24564         mostlyclean clean distclean maintainer-clean"
24565
24566 for t in $target_list
24567 do
24568         x=
24569         for lang in $all_selected_languages
24570         do
24571                 x="$x $lang.$t"
24572         done
24573         echo "lang.$t: $x" >> Make-hooks
24574 done
24575
24576 # --------
24577 # UNSORTED
24578 # --------
24579
24580 # Create .gdbinit.
24581
24582 echo "dir ." > .gdbinit
24583 echo "dir ${srcdir}" >> .gdbinit
24584 if test x$gdb_needs_out_file_path = xyes
24585 then
24586         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24587 fi
24588 if test "x$subdirs" != x; then
24589         for s in $subdirs
24590         do
24591                 echo "dir ${srcdir}/$s" >> .gdbinit
24592         done
24593 fi
24594 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24595
24596 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24597
24598
24599
24600 # Find a directory in which to install a shared libgcc.
24601
24602 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24603 if test "${enable_version_specific_runtime_libs+set}" = set; then
24604   enableval="$enable_version_specific_runtime_libs"
24605
24606 fi;
24607
24608
24609 # Check whether --with-slibdir or --without-slibdir was given.
24610 if test "${with_slibdir+set}" = set; then
24611   withval="$with_slibdir"
24612   slibdir="$with_slibdir"
24613 else
24614   if test "${enable_version_specific_runtime_libs+set}" = set; then
24615   slibdir='$(libsubdir)'
24616 elif test "$host" != "$target"; then
24617   slibdir='$(build_tooldir)/lib'
24618 else
24619   slibdir='$(libdir)'
24620 fi
24621 fi;
24622
24623
24624
24625 # Check whether --with-datarootdir or --without-datarootdir was given.
24626 if test "${with_datarootdir+set}" = set; then
24627   withval="$with_datarootdir"
24628   datarootdir="\${prefix}/$with_datarootdir"
24629 else
24630   datarootdir='$(prefix)/share'
24631 fi;
24632
24633
24634
24635 # Check whether --with-docdir or --without-docdir was given.
24636 if test "${with_docdir+set}" = set; then
24637   withval="$with_docdir"
24638   docdir="\${prefix}/$with_docdir"
24639 else
24640   docdir='$(datarootdir)'
24641 fi;
24642
24643
24644
24645 # Check whether --with-htmldir or --without-htmldir was given.
24646 if test "${with_htmldir+set}" = set; then
24647   withval="$with_htmldir"
24648   htmldir="\${prefix}/$with_htmldir"
24649 else
24650   htmldir='$(docdir)'
24651 fi;
24652
24653
24654 # Substitute configuration variables
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716 # Echo link setup.
24717 if test x${build} = x${host} ; then
24718   if test x${host} = x${target} ; then
24719     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24720   else
24721     echo "Links are now set up to build a cross-compiler" 1>&2
24722     echo " from ${host} to ${target}." 1>&2
24723   fi
24724 else
24725   if test x${host} = x${target} ; then
24726     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24727     echo " for ${target}." 1>&2
24728   else
24729     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24730     echo " from ${host} to ${target}." 1>&2
24731   fi
24732 fi
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742 if test "x${CLOOGLIBS}" != "x" ; then
24743
24744 cat >>confdefs.h <<\_ACEOF
24745 #define HAVE_cloog 1
24746 _ACEOF
24747
24748 fi
24749
24750 # Check for plugin support
24751 # Check whether --enable-plugin or --disable-plugin was given.
24752 if test "${enable_plugin+set}" = set; then
24753   enableval="$enable_plugin"
24754   enable_plugin=$enableval
24755 else
24756   enable_plugin=yes; default_plugin=yes
24757 fi;
24758
24759 pluginlibs=
24760 if test x"$enable_plugin" = x"yes"; then
24761   # Check that the host supports -rdynamic and -ldl
24762   have_rdynamic=no
24763   have_dl=no
24764   saved_LDFLAGS="$LDFLAGS"
24765   saved_LIBS="$LIBS"
24766   LIBS=
24767
24768   # Check -rdynamic
24769   LDFLAGS="$LDFLAGS -rdynamic"
24770   echo "$as_me:$LINENO: checking for -rdynamic" >&5
24771 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778
24779 int
24780 main ()
24781 {
24782 return 0;
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24789   (eval $ac_link) 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } &&
24796          { ac_try='test -z "$ac_c_werror_flag"
24797                          || test ! -s conftest.err'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; } &&
24803          { ac_try='test -s conftest$ac_exeext'
24804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805   (eval $ac_try) 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; }; then
24809   echo "$as_me:$LINENO: result: yes" >&5
24810 echo "${ECHO_T}yes" >&6; have_rdynamic=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815 echo "$as_me:$LINENO: result: no" >&5
24816 echo "${ECHO_T}no" >&6
24817 fi
24818 rm -f conftest.err conftest.$ac_objext \
24819       conftest$ac_exeext conftest.$ac_ext
24820   if test x"$have_rdynamic" = x"yes" ; then
24821     pluginlibs="-rdynamic"
24822   fi
24823
24824   # Check -ldl
24825   LDFLAGS="$LDFLAGS -ldl"
24826   echo "$as_me:$LINENO: checking for -ldl" >&5
24827 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24828   cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834 #include <dlfcn.h>
24835 int
24836 main ()
24837 {
24838 volatile int f = 0; if (f) dlopen ("dummy", 0);
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 rm -f conftest.$ac_objext conftest$ac_exeext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24845   (eval $ac_link) 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } &&
24852          { ac_try='test -z "$ac_c_werror_flag"
24853                          || test ! -s conftest.err'
24854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855   (eval $ac_try) 2>&5
24856   ac_status=$?
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; } &&
24859          { ac_try='test -s conftest$ac_exeext'
24860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861   (eval $ac_try) 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; }; then
24865   echo "$as_me:$LINENO: result: yes" >&5
24866 echo "${ECHO_T}yes" >&6; have_dl=yes
24867 else
24868   echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24870
24871 echo "$as_me:$LINENO: result: no" >&5
24872 echo "${ECHO_T}no" >&6
24873 fi
24874 rm -f conftest.err conftest.$ac_objext \
24875       conftest$ac_exeext conftest.$ac_ext
24876   if test x"$have_dl" = x"yes"; then
24877     pluginlibs="$pluginlibs -ldl"
24878   fi
24879
24880   # Check that we can build shared objects with -fPIC -shared
24881   LDFLAGS="$LDFLAGS -fPIC -shared"
24882   echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
24883 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
24884   cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h.  */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h.  */
24890 extern int X;
24891 int
24892 main ()
24893 {
24894 return X == 0;
24895   ;
24896   return 0;
24897 }
24898 _ACEOF
24899 rm -f conftest.$ac_objext conftest$ac_exeext
24900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24901   (eval $ac_link) 2>conftest.er1
24902   ac_status=$?
24903   grep -v '^ *+' conftest.er1 >conftest.err
24904   rm -f conftest.er1
24905   cat conftest.err >&5
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); } &&
24908          { ac_try='test -z "$ac_c_werror_flag"
24909                          || test ! -s conftest.err'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; } &&
24915          { ac_try='test -s conftest$ac_exeext'
24916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917   (eval $ac_try) 2>&5
24918   ac_status=$?
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); }; }; then
24921   echo "$as_me:$LINENO: result: yes" >&5
24922 echo "${ECHO_T}yes" >&6; have_pic_shared=yes
24923 else
24924   echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 echo "$as_me:$LINENO: result: no" >&5
24928 echo "${ECHO_T}no" >&6; have_pic_shared=no
24929 fi
24930 rm -f conftest.err conftest.$ac_objext \
24931       conftest$ac_exeext conftest.$ac_ext
24932   if test x"$have_pic_shared" != x"yes"; then
24933     pluginlibs=
24934     enable_plugin=no
24935   fi
24936
24937   # If plugin support had been requested but not available, fail.
24938   if test x"$enable_plugin" = x"no" ; then
24939     if test x"$default_plugin" != x"yes"; then
24940       { { echo "$as_me:$LINENO: error:
24941 Building GCC with plugin support requires a host that supports
24942 -fPIC, -shared, -ldl and -rdynamic." >&5
24943 echo "$as_me: error:
24944 Building GCC with plugin support requires a host that supports
24945 -fPIC, -shared, -ldl and -rdynamic." >&2;}
24946    { (exit 1); exit 1; }; }
24947     fi
24948   fi
24949
24950   LDFLAGS="$saved_LDFLAGS"
24951   LIBS="$saved_LIBS"
24952 fi
24953
24954
24955
24956 if test x"$enable_plugin" = x"yes"; then
24957
24958 cat >>confdefs.h <<\_ACEOF
24959 #define ENABLE_PLUGIN 1
24960 _ACEOF
24961
24962 fi
24963
24964 # Configure the subdirectories
24965 # AC_CONFIG_SUBDIRS($subdirs)
24966
24967 # Create the Makefile
24968 # and configure language subdirectories
24969           ac_config_files="$ac_config_files $all_outputs"
24970
24971
24972           ac_config_commands="$ac_config_commands default"
24973
24974 cat >confcache <<\_ACEOF
24975 # This file is a shell script that caches the results of configure
24976 # tests run on this system so they can be shared between configure
24977 # scripts and configure runs, see configure's option --config-cache.
24978 # It is not useful on other systems.  If it contains results you don't
24979 # want to keep, you may remove or edit it.
24980 #
24981 # config.status only pays attention to the cache file if you give it
24982 # the --recheck option to rerun configure.
24983 #
24984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24986 # following values.
24987
24988 _ACEOF
24989
24990 # The following way of writing the cache mishandles newlines in values,
24991 # but we know of no workaround that is simple, portable, and efficient.
24992 # So, don't put newlines in cache variables' values.
24993 # Ultrix sh set writes to stderr and can't be redirected directly,
24994 # and sets the high bit in the cache file unless we assign to the vars.
24995 {
24996   (set) 2>&1 |
24997     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24998     *ac_space=\ *)
24999       # `set' does not quote correctly, so add quotes (double-quote
25000       # substitution turns \\\\ into \\, and sed turns \\ into \).
25001       sed -n \
25002         "s/'/'\\\\''/g;
25003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25004       ;;
25005     *)
25006       # `set' quotes correctly as required by POSIX, so do not add quotes.
25007       sed -n \
25008         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25009       ;;
25010     esac;
25011 } |
25012   sed '
25013      t clear
25014      : clear
25015      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25016      t end
25017      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25018      : end' >>confcache
25019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25020   if test -w $cache_file; then
25021     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25022     cat confcache >$cache_file
25023   else
25024     echo "not updating unwritable cache $cache_file"
25025   fi
25026 fi
25027 rm -f confcache
25028
25029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25030 # Let make expand exec_prefix.
25031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25032
25033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25035 # trailing colons and then remove the whole line if VPATH becomes empty
25036 # (actually we leave an empty line to preserve line numbers).
25037 if test "x$srcdir" = x.; then
25038   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25039 s/:*\$(srcdir):*/:/;
25040 s/:*\${srcdir}:*/:/;
25041 s/:*@srcdir@:*/:/;
25042 s/^\([^=]*=[     ]*\):*/\1/;
25043 s/:*$//;
25044 s/^[^=]*=[       ]*$//;
25045 }'
25046 fi
25047
25048 DEFS=-DHAVE_CONFIG_H
25049
25050 ac_libobjs=
25051 ac_ltlibobjs=
25052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25053   # 1. Remove the extension, and $U if already installed.
25054   ac_i=`echo "$ac_i" |
25055          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25056   # 2. Add them.
25057   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25058   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25059 done
25060 LIBOBJS=$ac_libobjs
25061
25062 LTLIBOBJS=$ac_ltlibobjs
25063
25064
25065
25066 : ${CONFIG_STATUS=./config.status}
25067 ac_clean_files_save=$ac_clean_files
25068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25071 cat >$CONFIG_STATUS <<_ACEOF
25072 #! $SHELL
25073 # Generated by $as_me.
25074 # Run this file to recreate the current configuration.
25075 # Compiler output produced by configure, useful for debugging
25076 # configure, is in config.log if it exists.
25077
25078 debug=false
25079 ac_cs_recheck=false
25080 ac_cs_silent=false
25081 SHELL=\${CONFIG_SHELL-$SHELL}
25082 _ACEOF
25083
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25085 ## --------------------- ##
25086 ## M4sh Initialization.  ##
25087 ## --------------------- ##
25088
25089 # Be Bourne compatible
25090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25091   emulate sh
25092   NULLCMD=:
25093   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25094   # is contrary to our usage.  Disable this feature.
25095   alias -g '${1+"$@"}'='"$@"'
25096 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25097   set -o posix
25098 fi
25099 DUALCASE=1; export DUALCASE # for MKS sh
25100
25101 # Support unset when possible.
25102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25103   as_unset=unset
25104 else
25105   as_unset=false
25106 fi
25107
25108
25109 # Work around bugs in pre-3.0 UWIN ksh.
25110 $as_unset ENV MAIL MAILPATH
25111 PS1='$ '
25112 PS2='> '
25113 PS4='+ '
25114
25115 # NLS nuisances.
25116 for as_var in \
25117   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25118   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25119   LC_TELEPHONE LC_TIME
25120 do
25121   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25122     eval $as_var=C; export $as_var
25123   else
25124     $as_unset $as_var
25125   fi
25126 done
25127
25128 # Required to use basename.
25129 if expr a : '\(a\)' >/dev/null 2>&1; then
25130   as_expr=expr
25131 else
25132   as_expr=false
25133 fi
25134
25135 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25136   as_basename=basename
25137 else
25138   as_basename=false
25139 fi
25140
25141
25142 # Name of the executable.
25143 as_me=`$as_basename "$0" ||
25144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25145          X"$0" : 'X\(//\)$' \| \
25146          X"$0" : 'X\(/\)$' \| \
25147          .     : '\(.\)' 2>/dev/null ||
25148 echo X/"$0" |
25149     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25150           /^X\/\(\/\/\)$/{ s//\1/; q; }
25151           /^X\/\(\/\).*/{ s//\1/; q; }
25152           s/.*/./; q'`
25153
25154
25155 # PATH needs CR, and LINENO needs CR and PATH.
25156 # Avoid depending upon Character Ranges.
25157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25160 as_cr_digits='0123456789'
25161 as_cr_alnum=$as_cr_Letters$as_cr_digits
25162
25163 # The user is always right.
25164 if test "${PATH_SEPARATOR+set}" != set; then
25165   echo "#! /bin/sh" >conf$$.sh
25166   echo  "exit 0"   >>conf$$.sh
25167   chmod +x conf$$.sh
25168   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25169     PATH_SEPARATOR=';'
25170   else
25171     PATH_SEPARATOR=:
25172   fi
25173   rm -f conf$$.sh
25174 fi
25175
25176
25177   as_lineno_1=$LINENO
25178   as_lineno_2=$LINENO
25179   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25180   test "x$as_lineno_1" != "x$as_lineno_2" &&
25181   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25182   # Find who we are.  Look in the path if we contain no path at all
25183   # relative or not.
25184   case $0 in
25185     *[\\/]* ) as_myself=$0 ;;
25186     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25187 for as_dir in $PATH
25188 do
25189   IFS=$as_save_IFS
25190   test -z "$as_dir" && as_dir=.
25191   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25192 done
25193
25194        ;;
25195   esac
25196   # We did not find ourselves, most probably we were run as `sh COMMAND'
25197   # in which case we are not to be found in the path.
25198   if test "x$as_myself" = x; then
25199     as_myself=$0
25200   fi
25201   if test ! -f "$as_myself"; then
25202     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25203 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25204    { (exit 1); exit 1; }; }
25205   fi
25206   case $CONFIG_SHELL in
25207   '')
25208     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25210 do
25211   IFS=$as_save_IFS
25212   test -z "$as_dir" && as_dir=.
25213   for as_base in sh bash ksh sh5; do
25214          case $as_dir in
25215          /*)
25216            if ("$as_dir/$as_base" -c '
25217   as_lineno_1=$LINENO
25218   as_lineno_2=$LINENO
25219   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25220   test "x$as_lineno_1" != "x$as_lineno_2" &&
25221   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25222              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25223              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25224              CONFIG_SHELL=$as_dir/$as_base
25225              export CONFIG_SHELL
25226              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25227            fi;;
25228          esac
25229        done
25230 done
25231 ;;
25232   esac
25233
25234   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25235   # uniformly replaced by the line number.  The first 'sed' inserts a
25236   # line-number line before each line; the second 'sed' does the real
25237   # work.  The second script uses 'N' to pair each line-number line
25238   # with the numbered line, and appends trailing '-' during
25239   # substitution so that $LINENO is not a special case at line end.
25240   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25241   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25242   sed '=' <$as_myself |
25243     sed '
25244       N
25245       s,$,-,
25246       : loop
25247       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25248       t loop
25249       s,-$,,
25250       s,^['$as_cr_digits']*\n,,
25251     ' >$as_me.lineno &&
25252   chmod +x $as_me.lineno ||
25253     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25254 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25255    { (exit 1); exit 1; }; }
25256
25257   # Don't try to exec as it changes $[0], causing all sort of problems
25258   # (the dirname of $[0] is not the place where we might find the
25259   # original and so on.  Autoconf is especially sensible to this).
25260   . ./$as_me.lineno
25261   # Exit status is that of the last command.
25262   exit
25263 }
25264
25265
25266 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25267   *c*,-n*) ECHO_N= ECHO_C='
25268 ' ECHO_T='      ' ;;
25269   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25270   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25271 esac
25272
25273 if expr a : '\(a\)' >/dev/null 2>&1; then
25274   as_expr=expr
25275 else
25276   as_expr=false
25277 fi
25278
25279 rm -f conf$$ conf$$.exe conf$$.file
25280 echo >conf$$.file
25281 if ln -s conf$$.file conf$$ 2>/dev/null; then
25282   # We could just check for DJGPP; but this test a) works b) is more generic
25283   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25284   if test -f conf$$.exe; then
25285     # Don't use ln at all; we don't have any links
25286     as_ln_s='cp -p'
25287   else
25288     as_ln_s='ln -s'
25289   fi
25290 elif ln conf$$.file conf$$ 2>/dev/null; then
25291   as_ln_s=ln
25292 else
25293   as_ln_s='cp -p'
25294 fi
25295 rm -f conf$$ conf$$.exe conf$$.file
25296
25297 if mkdir -p . 2>/dev/null; then
25298   as_mkdir_p=:
25299 else
25300   test -d ./-p && rmdir ./-p
25301   as_mkdir_p=false
25302 fi
25303
25304 as_executable_p="test -f"
25305
25306 # Sed expression to map a string onto a valid CPP name.
25307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25308
25309 # Sed expression to map a string onto a valid variable name.
25310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25311
25312
25313 # IFS
25314 # We need space, tab and new line, in precisely that order.
25315 as_nl='
25316 '
25317 IFS="   $as_nl"
25318
25319 # CDPATH.
25320 $as_unset CDPATH
25321
25322 exec 6>&1
25323
25324 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25325 # report actual input values of CONFIG_FILES etc. instead of their
25326 # values after options handling.  Logging --version etc. is OK.
25327 exec 5>>config.log
25328 {
25329   echo
25330   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25331 ## Running $as_me. ##
25332 _ASBOX
25333 } >&5
25334 cat >&5 <<_CSEOF
25335
25336 This file was extended by $as_me, which was
25337 generated by GNU Autoconf 2.59.  Invocation command line was
25338
25339   CONFIG_FILES    = $CONFIG_FILES
25340   CONFIG_HEADERS  = $CONFIG_HEADERS
25341   CONFIG_LINKS    = $CONFIG_LINKS
25342   CONFIG_COMMANDS = $CONFIG_COMMANDS
25343   $ $0 $@
25344
25345 _CSEOF
25346 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25347 echo >&5
25348 _ACEOF
25349
25350 # Files that config.status was made for.
25351 if test -n "$ac_config_files"; then
25352   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25353 fi
25354
25355 if test -n "$ac_config_headers"; then
25356   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25357 fi
25358
25359 if test -n "$ac_config_links"; then
25360   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25361 fi
25362
25363 if test -n "$ac_config_commands"; then
25364   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25365 fi
25366
25367 cat >>$CONFIG_STATUS <<\_ACEOF
25368
25369 ac_cs_usage="\
25370 \`$as_me' instantiates files from templates according to the
25371 current configuration.
25372
25373 Usage: $0 [OPTIONS] [FILE]...
25374
25375   -h, --help       print this help, then exit
25376   -V, --version    print version number, then exit
25377   -q, --quiet      do not print progress messages
25378   -d, --debug      don't remove temporary files
25379       --recheck    update $as_me by reconfiguring in the same conditions
25380   --file=FILE[:TEMPLATE]
25381                    instantiate the configuration file FILE
25382   --header=FILE[:TEMPLATE]
25383                    instantiate the configuration header FILE
25384
25385 Configuration files:
25386 $config_files
25387
25388 Configuration headers:
25389 $config_headers
25390
25391 Configuration commands:
25392 $config_commands
25393
25394 Report bugs to <bug-autoconf@gnu.org>."
25395 _ACEOF
25396
25397 cat >>$CONFIG_STATUS <<_ACEOF
25398 ac_cs_version="\\
25399 config.status
25400 configured by $0, generated by GNU Autoconf 2.59,
25401   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25402
25403 Copyright (C) 2003 Free Software Foundation, Inc.
25404 This config.status script is free software; the Free Software Foundation
25405 gives unlimited permission to copy, distribute and modify it."
25406 srcdir=$srcdir
25407 _ACEOF
25408
25409 cat >>$CONFIG_STATUS <<\_ACEOF
25410 # If no file are specified by the user, then we need to provide default
25411 # value.  By we need to know if files were specified by the user.
25412 ac_need_defaults=:
25413 while test $# != 0
25414 do
25415   case $1 in
25416   --*=*)
25417     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25418     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25419     ac_shift=:
25420     ;;
25421   -*)
25422     ac_option=$1
25423     ac_optarg=$2
25424     ac_shift=shift
25425     ;;
25426   *) # This is not an option, so the user has probably given explicit
25427      # arguments.
25428      ac_option=$1
25429      ac_need_defaults=false;;
25430   esac
25431
25432   case $ac_option in
25433   # Handling of the options.
25434 _ACEOF
25435 cat >>$CONFIG_STATUS <<\_ACEOF
25436   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25437     ac_cs_recheck=: ;;
25438   --version | --vers* | -V )
25439     echo "$ac_cs_version"; exit 0 ;;
25440   --he | --h)
25441     # Conflict between --help and --header
25442     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25443 Try \`$0 --help' for more information." >&5
25444 echo "$as_me: error: ambiguous option: $1
25445 Try \`$0 --help' for more information." >&2;}
25446    { (exit 1); exit 1; }; };;
25447   --help | --hel | -h )
25448     echo "$ac_cs_usage"; exit 0 ;;
25449   --debug | --d* | -d )
25450     debug=: ;;
25451   --file | --fil | --fi | --f )
25452     $ac_shift
25453     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25454     ac_need_defaults=false;;
25455   --header | --heade | --head | --hea )
25456     $ac_shift
25457     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25458     ac_need_defaults=false;;
25459   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25460   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25461     ac_cs_silent=: ;;
25462
25463   # This is an error.
25464   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25465 Try \`$0 --help' for more information." >&5
25466 echo "$as_me: error: unrecognized option: $1
25467 Try \`$0 --help' for more information." >&2;}
25468    { (exit 1); exit 1; }; } ;;
25469
25470   *) ac_config_targets="$ac_config_targets $1" ;;
25471
25472   esac
25473   shift
25474 done
25475
25476 ac_configure_extra_args=
25477
25478 if $ac_cs_silent; then
25479   exec 6>/dev/null
25480   ac_configure_extra_args="$ac_configure_extra_args --silent"
25481 fi
25482
25483 _ACEOF
25484 cat >>$CONFIG_STATUS <<_ACEOF
25485 if \$ac_cs_recheck; then
25486   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25487   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25488 fi
25489
25490 _ACEOF
25491
25492 cat >>$CONFIG_STATUS <<_ACEOF
25493 #
25494 # INIT-COMMANDS section.
25495 #
25496
25497 subdirs='$subdirs'
25498
25499 _ACEOF
25500
25501
25502
25503 cat >>$CONFIG_STATUS <<\_ACEOF
25504 for ac_config_target in $ac_config_targets
25505 do
25506   case "$ac_config_target" in
25507   # Handling of arguments.
25508   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25509   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25510   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25511   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25512   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25513   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25514   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25516    { (exit 1); exit 1; }; };;
25517   esac
25518 done
25519
25520 # If the user did not use the arguments to specify the items to instantiate,
25521 # then the envvar interface is used.  Set only those that are not.
25522 # We use the long form for the default assignment because of an extremely
25523 # bizarre bug on SunOS 4.1.3.
25524 if $ac_need_defaults; then
25525   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25526   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25527   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25528 fi
25529
25530 # Have a temporary directory for convenience.  Make it in the build tree
25531 # simply because there is no reason to put it here, and in addition,
25532 # creating and moving files from /tmp can sometimes cause problems.
25533 # Create a temporary directory, and hook for its removal unless debugging.
25534 $debug ||
25535 {
25536   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25537   trap '{ (exit 1); exit 1; }' 1 2 13 15
25538 }
25539
25540 # Create a (secure) tmp directory for tmp files.
25541
25542 {
25543   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25544   test -n "$tmp" && test -d "$tmp"
25545 }  ||
25546 {
25547   tmp=./confstat$$-$RANDOM
25548   (umask 077 && mkdir $tmp)
25549 } ||
25550 {
25551    echo "$me: cannot create a temporary directory in ." >&2
25552    { (exit 1); exit 1; }
25553 }
25554
25555 _ACEOF
25556
25557 cat >>$CONFIG_STATUS <<_ACEOF
25558
25559 #
25560 # CONFIG_FILES section.
25561 #
25562
25563 # No need to generate the scripts if there are no CONFIG_FILES.
25564 # This happens for instance when ./config.status config.h
25565 if test -n "\$CONFIG_FILES"; then
25566   # Protect against being on the right side of a sed subst in config.status.
25567   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25568    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25569 s,@SHELL@,$SHELL,;t t
25570 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25571 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25572 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25573 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25574 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25575 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25576 s,@exec_prefix@,$exec_prefix,;t t
25577 s,@prefix@,$prefix,;t t
25578 s,@program_transform_name@,$program_transform_name,;t t
25579 s,@bindir@,$bindir,;t t
25580 s,@sbindir@,$sbindir,;t t
25581 s,@libexecdir@,$libexecdir,;t t
25582 s,@datadir@,$datadir,;t t
25583 s,@sysconfdir@,$sysconfdir,;t t
25584 s,@sharedstatedir@,$sharedstatedir,;t t
25585 s,@localstatedir@,$localstatedir,;t t
25586 s,@libdir@,$libdir,;t t
25587 s,@includedir@,$includedir,;t t
25588 s,@oldincludedir@,$oldincludedir,;t t
25589 s,@infodir@,$infodir,;t t
25590 s,@mandir@,$mandir,;t t
25591 s,@build_alias@,$build_alias,;t t
25592 s,@host_alias@,$host_alias,;t t
25593 s,@target_alias@,$target_alias,;t t
25594 s,@DEFS@,$DEFS,;t t
25595 s,@ECHO_C@,$ECHO_C,;t t
25596 s,@ECHO_N@,$ECHO_N,;t t
25597 s,@ECHO_T@,$ECHO_T,;t t
25598 s,@LIBS@,$LIBS,;t t
25599 s,@build@,$build,;t t
25600 s,@build_cpu@,$build_cpu,;t t
25601 s,@build_vendor@,$build_vendor,;t t
25602 s,@build_os@,$build_os,;t t
25603 s,@host@,$host,;t t
25604 s,@host_cpu@,$host_cpu,;t t
25605 s,@host_vendor@,$host_vendor,;t t
25606 s,@host_os@,$host_os,;t t
25607 s,@target@,$target,;t t
25608 s,@target_cpu@,$target_cpu,;t t
25609 s,@target_vendor@,$target_vendor,;t t
25610 s,@target_os@,$target_os,;t t
25611 s,@target_noncanonical@,$target_noncanonical,;t t
25612 s,@build_libsubdir@,$build_libsubdir,;t t
25613 s,@build_subdir@,$build_subdir,;t t
25614 s,@host_subdir@,$host_subdir,;t t
25615 s,@target_subdir@,$target_subdir,;t t
25616 s,@GENINSRC@,$GENINSRC,;t t
25617 s,@CC@,$CC,;t t
25618 s,@CFLAGS@,$CFLAGS,;t t
25619 s,@LDFLAGS@,$LDFLAGS,;t t
25620 s,@CPPFLAGS@,$CPPFLAGS,;t t
25621 s,@ac_ct_CC@,$ac_ct_CC,;t t
25622 s,@EXEEXT@,$EXEEXT,;t t
25623 s,@OBJEXT@,$OBJEXT,;t t
25624 s,@GNATBIND@,$GNATBIND,;t t
25625 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25626 s,@GNATMAKE@,$GNATMAKE,;t t
25627 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25628 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25629 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25630 s,@CPP@,$CPP,;t t
25631 s,@EGREP@,$EGREP,;t t
25632 s,@loose_warn@,$loose_warn,;t t
25633 s,@strict_warn@,$strict_warn,;t t
25634 s,@warn_cflags@,$warn_cflags,;t t
25635 s,@nocommon_flag@,$nocommon_flag,;t t
25636 s,@TREEBROWSER@,$TREEBROWSER,;t t
25637 s,@valgrind_path@,$valgrind_path,;t t
25638 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25639 s,@valgrind_command@,$valgrind_command,;t t
25640 s,@coverage_flags@,$coverage_flags,;t t
25641 s,@enable_multilib@,$enable_multilib,;t t
25642 s,@enable_decimal_float@,$enable_decimal_float,;t t
25643 s,@enable_fixed_point@,$enable_fixed_point,;t t
25644 s,@enable_shared@,$enable_shared,;t t
25645 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25646 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25647 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25648 s,@onestep@,$onestep,;t t
25649 s,@PKGVERSION@,$PKGVERSION,;t t
25650 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25651 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25652 s,@datarootdir@,$datarootdir,;t t
25653 s,@docdir@,$docdir,;t t
25654 s,@htmldir@,$htmldir,;t t
25655 s,@SET_MAKE@,$SET_MAKE,;t t
25656 s,@AWK@,$AWK,;t t
25657 s,@LN_S@,$LN_S,;t t
25658 s,@LN@,$LN,;t t
25659 s,@RANLIB@,$RANLIB,;t t
25660 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25661 s,@ranlib_flags@,$ranlib_flags,;t t
25662 s,@INSTALL@,$INSTALL,;t t
25663 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25664 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25665 s,@make_compare_target@,$make_compare_target,;t t
25666 s,@have_mktemp_command@,$have_mktemp_command,;t t
25667 s,@MAKEINFO@,$MAKEINFO,;t t
25668 s,@BUILD_INFO@,$BUILD_INFO,;t t
25669 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25670 s,@FLEX@,$FLEX,;t t
25671 s,@BISON@,$BISON,;t t
25672 s,@NM@,$NM,;t t
25673 s,@AR@,$AR,;t t
25674 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25675 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25676 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25677 s,@LIBICONV@,$LIBICONV,;t t
25678 s,@LTLIBICONV@,$LTLIBICONV,;t t
25679 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25680 s,@manext@,$manext,;t t
25681 s,@objext@,$objext,;t t
25682 s,@gthread_flags@,$gthread_flags,;t t
25683 s,@extra_modes_file@,$extra_modes_file,;t t
25684 s,@extra_opt_files@,$extra_opt_files,;t t
25685 s,@USE_NLS@,$USE_NLS,;t t
25686 s,@LIBINTL@,$LIBINTL,;t t
25687 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25688 s,@INCINTL@,$INCINTL,;t t
25689 s,@XGETTEXT@,$XGETTEXT,;t t
25690 s,@GMSGFMT@,$GMSGFMT,;t t
25691 s,@POSUB@,$POSUB,;t t
25692 s,@CATALOGS@,$CATALOGS,;t t
25693 s,@DATADIRNAME@,$DATADIRNAME,;t t
25694 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25695 s,@GENCAT@,$GENCAT,;t t
25696 s,@CATOBJEXT@,$CATOBJEXT,;t t
25697 s,@CROSS@,$CROSS,;t t
25698 s,@ALL@,$ALL,;t t
25699 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25700 s,@inhibit_libc@,$inhibit_libc,;t t
25701 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25702 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25703 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25704 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25705 s,@collect2@,$collect2,;t t
25706 s,@LIBTOOL@,$LIBTOOL,;t t
25707 s,@SED@,$SED,;t t
25708 s,@FGREP@,$FGREP,;t t
25709 s,@GREP@,$GREP,;t t
25710 s,@LD@,$LD,;t t
25711 s,@DUMPBIN@,$DUMPBIN,;t t
25712 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25713 s,@OBJDUMP@,$OBJDUMP,;t t
25714 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25715 s,@ac_ct_AR@,$ac_ct_AR,;t t
25716 s,@STRIP@,$STRIP,;t t
25717 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25718 s,@lt_ECHO@,$lt_ECHO,;t t
25719 s,@DSYMUTIL@,$DSYMUTIL,;t t
25720 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25721 s,@NMEDIT@,$NMEDIT,;t t
25722 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25723 s,@LIPO@,$LIPO,;t t
25724 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25725 s,@OTOOL@,$OTOOL,;t t
25726 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25727 s,@OTOOL64@,$OTOOL64,;t t
25728 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25729 s,@objdir@,$objdir,;t t
25730 s,@enable_fast_install@,$enable_fast_install,;t t
25731 s,@gcc_cv_as@,$gcc_cv_as,;t t
25732 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25733 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25734 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25735 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25736 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25737 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25738 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25739 s,@libgcc_visibility@,$libgcc_visibility,;t t
25740 s,@GGC@,$GGC,;t t
25741 s,@zlibdir@,$zlibdir,;t t
25742 s,@zlibinc@,$zlibinc,;t t
25743 s,@MAINT@,$MAINT,;t t
25744 s,@gcc_tooldir@,$gcc_tooldir,;t t
25745 s,@dollar@,$dollar,;t t
25746 s,@slibdir@,$slibdir,;t t
25747 s,@subdirs@,$subdirs,;t t
25748 s,@srcdir@,$srcdir,;t t
25749 s,@all_compilers@,$all_compilers,;t t
25750 s,@all_gtfiles@,$all_gtfiles,;t t
25751 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25752 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25753 s,@all_languages@,$all_languages,;t t
25754 s,@all_selected_languages@,$all_selected_languages,;t t
25755 s,@build_exeext@,$build_exeext,;t t
25756 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25757 s,@build_xm_file_list@,$build_xm_file_list,;t t
25758 s,@build_xm_include_list@,$build_xm_include_list,;t t
25759 s,@build_xm_defines@,$build_xm_defines,;t t
25760 s,@build_file_translate@,$build_file_translate,;t t
25761 s,@check_languages@,$check_languages,;t t
25762 s,@cpp_install_dir@,$cpp_install_dir,;t t
25763 s,@xmake_file@,$xmake_file,;t t
25764 s,@tmake_file@,$tmake_file,;t t
25765 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
25766 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
25767 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
25768 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25769 s,@extra_headers_list@,$extra_headers_list,;t t
25770 s,@extra_objs@,$extra_objs,;t t
25771 s,@extra_parts@,$extra_parts,;t t
25772 s,@extra_passes@,$extra_passes,;t t
25773 s,@extra_programs@,$extra_programs,;t t
25774 s,@float_h_file@,$float_h_file,;t t
25775 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25776 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25777 s,@host_exeext@,$host_exeext,;t t
25778 s,@host_xm_file_list@,$host_xm_file_list,;t t
25779 s,@host_xm_include_list@,$host_xm_include_list,;t t
25780 s,@host_xm_defines@,$host_xm_defines,;t t
25781 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25782 s,@install@,$install,;t t
25783 s,@lang_opt_files@,$lang_opt_files,;t t
25784 s,@lang_specs_files@,$lang_specs_files,;t t
25785 s,@lang_tree_files@,$lang_tree_files,;t t
25786 s,@local_prefix@,$local_prefix,;t t
25787 s,@md_file@,$md_file,;t t
25788 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25789 s,@out_file@,$out_file,;t t
25790 s,@out_object_file@,$out_object_file,;t t
25791 s,@thread_file@,$thread_file,;t t
25792 s,@tm_file_list@,$tm_file_list,;t t
25793 s,@tm_include_list@,$tm_include_list,;t t
25794 s,@tm_defines@,$tm_defines,;t t
25795 s,@tm_p_file_list@,$tm_p_file_list,;t t
25796 s,@tm_p_include_list@,$tm_p_include_list,;t t
25797 s,@xm_file_list@,$xm_file_list,;t t
25798 s,@xm_include_list@,$xm_include_list,;t t
25799 s,@xm_defines@,$xm_defines,;t t
25800 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25801 s,@c_target_objs@,$c_target_objs,;t t
25802 s,@cxx_target_objs@,$cxx_target_objs,;t t
25803 s,@fortran_target_objs@,$fortran_target_objs,;t t
25804 s,@target_cpu_default@,$target_cpu_default,;t t
25805 s,@GMPLIBS@,$GMPLIBS,;t t
25806 s,@GMPINC@,$GMPINC,;t t
25807 s,@PPLLIBS@,$PPLLIBS,;t t
25808 s,@PPLINC@,$PPLINC,;t t
25809 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25810 s,@CLOOGINC@,$CLOOGINC,;t t
25811 s,@pluginlibs@,$pluginlibs,;t t
25812 s,@enable_plugin@,$enable_plugin,;t t
25813 s,@LIBOBJS@,$LIBOBJS,;t t
25814 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25815 /@language_hooks@/r $language_hooks
25816 s,@language_hooks@,,;t t
25817 CEOF
25818
25819 _ACEOF
25820
25821   cat >>$CONFIG_STATUS <<\_ACEOF
25822   # Split the substitutions into bite-sized pieces for seds with
25823   # small command number limits, like on Digital OSF/1 and HP-UX.
25824   ac_max_sed_lines=48
25825   ac_sed_frag=1 # Number of current file.
25826   ac_beg=1 # First line for current file.
25827   ac_end=$ac_max_sed_lines # Line after last line for current file.
25828   ac_more_lines=:
25829   ac_sed_cmds=
25830   while $ac_more_lines; do
25831     if test $ac_beg -gt 1; then
25832       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25833     else
25834       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25835     fi
25836     if test ! -s $tmp/subs.frag; then
25837       ac_more_lines=false
25838     else
25839       # The purpose of the label and of the branching condition is to
25840       # speed up the sed processing (if there are no `@' at all, there
25841       # is no need to browse any of the substitutions).
25842       # These are the two extra sed commands mentioned above.
25843       (echo ':t
25844   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25845       if test -z "$ac_sed_cmds"; then
25846         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25847       else
25848         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25849       fi
25850       ac_sed_frag=`expr $ac_sed_frag + 1`
25851       ac_beg=$ac_end
25852       ac_end=`expr $ac_end + $ac_max_sed_lines`
25853     fi
25854   done
25855   if test -z "$ac_sed_cmds"; then
25856     ac_sed_cmds=cat
25857   fi
25858 fi # test -n "$CONFIG_FILES"
25859
25860 _ACEOF
25861 cat >>$CONFIG_STATUS <<\_ACEOF
25862 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25863   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25864   case $ac_file in
25865   - | *:- | *:-:* ) # input from stdin
25866         cat >$tmp/stdin
25867         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25868         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25869   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25870         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25871   * )   ac_file_in=$ac_file.in ;;
25872   esac
25873
25874   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25875   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25877          X"$ac_file" : 'X\(//\)[^/]' \| \
25878          X"$ac_file" : 'X\(//\)$' \| \
25879          X"$ac_file" : 'X\(/\)' \| \
25880          .     : '\(.\)' 2>/dev/null ||
25881 echo X"$ac_file" |
25882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25884           /^X\(\/\/\)$/{ s//\1/; q; }
25885           /^X\(\/\).*/{ s//\1/; q; }
25886           s/.*/./; q'`
25887   { if $as_mkdir_p; then
25888     mkdir -p "$ac_dir"
25889   else
25890     as_dir="$ac_dir"
25891     as_dirs=
25892     while test ! -d "$as_dir"; do
25893       as_dirs="$as_dir $as_dirs"
25894       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25896          X"$as_dir" : 'X\(//\)[^/]' \| \
25897          X"$as_dir" : 'X\(//\)$' \| \
25898          X"$as_dir" : 'X\(/\)' \| \
25899          .     : '\(.\)' 2>/dev/null ||
25900 echo X"$as_dir" |
25901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25902           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25903           /^X\(\/\/\)$/{ s//\1/; q; }
25904           /^X\(\/\).*/{ s//\1/; q; }
25905           s/.*/./; q'`
25906     done
25907     test ! -n "$as_dirs" || mkdir $as_dirs
25908   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25909 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25910    { (exit 1); exit 1; }; }; }
25911
25912   ac_builddir=.
25913
25914 if test "$ac_dir" != .; then
25915   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25916   # A "../" for each directory in $ac_dir_suffix.
25917   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25918 else
25919   ac_dir_suffix= ac_top_builddir=
25920 fi
25921
25922 case $srcdir in
25923   .)  # No --srcdir option.  We are building in place.
25924     ac_srcdir=.
25925     if test -z "$ac_top_builddir"; then
25926        ac_top_srcdir=.
25927     else
25928        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25929     fi ;;
25930   [\\/]* | ?:[\\/]* )  # Absolute path.
25931     ac_srcdir=$srcdir$ac_dir_suffix;
25932     ac_top_srcdir=$srcdir ;;
25933   *) # Relative path.
25934     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25935     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25936 esac
25937
25938 # Do not use `cd foo && pwd` to compute absolute paths, because
25939 # the directories may not exist.
25940 case `pwd` in
25941 .) ac_abs_builddir="$ac_dir";;
25942 *)
25943   case "$ac_dir" in
25944   .) ac_abs_builddir=`pwd`;;
25945   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25946   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25947   esac;;
25948 esac
25949 case $ac_abs_builddir in
25950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25951 *)
25952   case ${ac_top_builddir}. in
25953   .) ac_abs_top_builddir=$ac_abs_builddir;;
25954   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25955   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25956   esac;;
25957 esac
25958 case $ac_abs_builddir in
25959 .) ac_abs_srcdir=$ac_srcdir;;
25960 *)
25961   case $ac_srcdir in
25962   .) ac_abs_srcdir=$ac_abs_builddir;;
25963   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25964   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25965   esac;;
25966 esac
25967 case $ac_abs_builddir in
25968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25969 *)
25970   case $ac_top_srcdir in
25971   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25972   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25973   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25974   esac;;
25975 esac
25976
25977
25978
25979   if test x"$ac_file" != x-; then
25980     { echo "$as_me:$LINENO: creating $ac_file" >&5
25981 echo "$as_me: creating $ac_file" >&6;}
25982     rm -f "$ac_file"
25983   fi
25984   # Let's still pretend it is `configure' which instantiates (i.e., don't
25985   # use $as_me), people would be surprised to read:
25986   #    /* config.h.  Generated by config.status.  */
25987   if test x"$ac_file" = x-; then
25988     configure_input=
25989   else
25990     configure_input="$ac_file.  "
25991   fi
25992   configure_input=$configure_input"Generated from `echo $ac_file_in |
25993                                      sed 's,.*/,,'` by configure."
25994
25995   # First look for the input files in the build tree, otherwise in the
25996   # src tree.
25997   ac_file_inputs=`IFS=:
25998     for f in $ac_file_in; do
25999       case $f in
26000       -) echo $tmp/stdin ;;
26001       [\\/$]*)
26002          # Absolute (can't be DOS-style, as IFS=:)
26003          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26004 echo "$as_me: error: cannot find input file: $f" >&2;}
26005    { (exit 1); exit 1; }; }
26006          echo "$f";;
26007       *) # Relative
26008          if test -f "$f"; then
26009            # Build tree
26010            echo "$f"
26011          elif test -f "$srcdir/$f"; then
26012            # Source tree
26013            echo "$srcdir/$f"
26014          else
26015            # /dev/null tree
26016            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26017 echo "$as_me: error: cannot find input file: $f" >&2;}
26018    { (exit 1); exit 1; }; }
26019          fi;;
26020       esac
26021     done` || { (exit 1); exit 1; }
26022 _ACEOF
26023 cat >>$CONFIG_STATUS <<_ACEOF
26024   sed "$ac_vpsub
26025 $extrasub
26026 _ACEOF
26027 cat >>$CONFIG_STATUS <<\_ACEOF
26028 :t
26029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26030 s,@configure_input@,$configure_input,;t t
26031 s,@srcdir@,$ac_srcdir,;t t
26032 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26033 s,@top_srcdir@,$ac_top_srcdir,;t t
26034 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26035 s,@builddir@,$ac_builddir,;t t
26036 s,@abs_builddir@,$ac_abs_builddir,;t t
26037 s,@top_builddir@,$ac_top_builddir,;t t
26038 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26039 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26040   rm -f $tmp/stdin
26041   if test x"$ac_file" != x-; then
26042     mv $tmp/out $ac_file
26043   else
26044     cat $tmp/out
26045     rm -f $tmp/out
26046   fi
26047
26048   # Run the commands associated with the file.
26049   case $ac_file in
26050     as ) chmod +x as ;;
26051     collect-ld ) chmod +x collect-ld ;;
26052     nm ) chmod +x nm ;;
26053   esac
26054 done
26055 _ACEOF
26056 cat >>$CONFIG_STATUS <<\_ACEOF
26057
26058 #
26059 # CONFIG_HEADER section.
26060 #
26061
26062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26064 #
26065 # ac_d sets the value in "#define NAME VALUE" lines.
26066 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26067 ac_dB='[         ].*$,\1#\2'
26068 ac_dC=' '
26069 ac_dD=',;t'
26070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26071 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26072 ac_uB='$,\1#\2define\3'
26073 ac_uC=' '
26074 ac_uD=',;t'
26075
26076 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26077   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26078   case $ac_file in
26079   - | *:- | *:-:* ) # input from stdin
26080         cat >$tmp/stdin
26081         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26082         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26083   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26084         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26085   * )   ac_file_in=$ac_file.in ;;
26086   esac
26087
26088   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26089 echo "$as_me: creating $ac_file" >&6;}
26090
26091   # First look for the input files in the build tree, otherwise in the
26092   # src tree.
26093   ac_file_inputs=`IFS=:
26094     for f in $ac_file_in; do
26095       case $f in
26096       -) echo $tmp/stdin ;;
26097       [\\/$]*)
26098          # Absolute (can't be DOS-style, as IFS=:)
26099          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26100 echo "$as_me: error: cannot find input file: $f" >&2;}
26101    { (exit 1); exit 1; }; }
26102          # Do quote $f, to prevent DOS paths from being IFS'd.
26103          echo "$f";;
26104       *) # Relative
26105          if test -f "$f"; then
26106            # Build tree
26107            echo "$f"
26108          elif test -f "$srcdir/$f"; then
26109            # Source tree
26110            echo "$srcdir/$f"
26111          else
26112            # /dev/null tree
26113            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26114 echo "$as_me: error: cannot find input file: $f" >&2;}
26115    { (exit 1); exit 1; }; }
26116          fi;;
26117       esac
26118     done` || { (exit 1); exit 1; }
26119   # Remove the trailing spaces.
26120   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26121
26122 _ACEOF
26123
26124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26125 # `conftest.undefs', that substitutes the proper values into
26126 # config.h.in to produce config.h.  The first handles `#define'
26127 # templates, and the second `#undef' templates.
26128 # And first: Protect against being on the right side of a sed subst in
26129 # config.status.  Protect against being in an unquoted here document
26130 # in config.status.
26131 rm -f conftest.defines conftest.undefs
26132 # Using a here document instead of a string reduces the quoting nightmare.
26133 # Putting comments in sed scripts is not portable.
26134 #
26135 # `end' is used to avoid that the second main sed command (meant for
26136 # 0-ary CPP macros) applies to n-ary macro definitions.
26137 # See the Autoconf documentation for `clear'.
26138 cat >confdef2sed.sed <<\_ACEOF
26139 s/[\\&,]/\\&/g
26140 s,[\\$`],\\&,g
26141 t clear
26142 : clear
26143 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26144 t end
26145 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26146 : end
26147 _ACEOF
26148 # If some macros were called several times there might be several times
26149 # the same #defines, which is useless.  Nevertheless, we may not want to
26150 # sort them, since we want the *last* AC-DEFINE to be honored.
26151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26153 rm -f confdef2sed.sed
26154
26155 # This sed command replaces #undef with comments.  This is necessary, for
26156 # example, in the case of _POSIX_SOURCE, which is predefined and required
26157 # on some systems where configure will not decide to define it.
26158 cat >>conftest.undefs <<\_ACEOF
26159 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26160 _ACEOF
26161
26162 # Break up conftest.defines because some shells have a limit on the size
26163 # of here documents, and old seds have small limits too (100 cmds).
26164 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26165 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26166 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26167 echo '  :' >>$CONFIG_STATUS
26168 rm -f conftest.tail
26169 while grep . conftest.defines >/dev/null
26170 do
26171   # Write a limited-size here document to $tmp/defines.sed.
26172   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26173   # Speed up: don't consider the non `#define' lines.
26174   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26175   # Work around the forget-to-reset-the-flag bug.
26176   echo 't clr' >>$CONFIG_STATUS
26177   echo ': clr' >>$CONFIG_STATUS
26178   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26179   echo 'CEOF
26180   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26181   rm -f $tmp/in
26182   mv $tmp/out $tmp/in
26183 ' >>$CONFIG_STATUS
26184   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26185   rm -f conftest.defines
26186   mv conftest.tail conftest.defines
26187 done
26188 rm -f conftest.defines
26189 echo '  fi # grep' >>$CONFIG_STATUS
26190 echo >>$CONFIG_STATUS
26191
26192 # Break up conftest.undefs because some shells have a limit on the size
26193 # of here documents, and old seds have small limits too (100 cmds).
26194 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26195 rm -f conftest.tail
26196 while grep . conftest.undefs >/dev/null
26197 do
26198   # Write a limited-size here document to $tmp/undefs.sed.
26199   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26200   # Speed up: don't consider the non `#undef'
26201   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26202   # Work around the forget-to-reset-the-flag bug.
26203   echo 't clr' >>$CONFIG_STATUS
26204   echo ': clr' >>$CONFIG_STATUS
26205   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26206   echo 'CEOF
26207   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26208   rm -f $tmp/in
26209   mv $tmp/out $tmp/in
26210 ' >>$CONFIG_STATUS
26211   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26212   rm -f conftest.undefs
26213   mv conftest.tail conftest.undefs
26214 done
26215 rm -f conftest.undefs
26216
26217 cat >>$CONFIG_STATUS <<\_ACEOF
26218   # Let's still pretend it is `configure' which instantiates (i.e., don't
26219   # use $as_me), people would be surprised to read:
26220   #    /* config.h.  Generated by config.status.  */
26221   if test x"$ac_file" = x-; then
26222     echo "/* Generated by configure.  */" >$tmp/config.h
26223   else
26224     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26225   fi
26226   cat $tmp/in >>$tmp/config.h
26227   rm -f $tmp/in
26228   if test x"$ac_file" != x-; then
26229     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26230       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26231 echo "$as_me: $ac_file is unchanged" >&6;}
26232     else
26233       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26235          X"$ac_file" : 'X\(//\)[^/]' \| \
26236          X"$ac_file" : 'X\(//\)$' \| \
26237          X"$ac_file" : 'X\(/\)' \| \
26238          .     : '\(.\)' 2>/dev/null ||
26239 echo X"$ac_file" |
26240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26242           /^X\(\/\/\)$/{ s//\1/; q; }
26243           /^X\(\/\).*/{ s//\1/; q; }
26244           s/.*/./; q'`
26245       { if $as_mkdir_p; then
26246     mkdir -p "$ac_dir"
26247   else
26248     as_dir="$ac_dir"
26249     as_dirs=
26250     while test ! -d "$as_dir"; do
26251       as_dirs="$as_dir $as_dirs"
26252       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26254          X"$as_dir" : 'X\(//\)[^/]' \| \
26255          X"$as_dir" : 'X\(//\)$' \| \
26256          X"$as_dir" : 'X\(/\)' \| \
26257          .     : '\(.\)' 2>/dev/null ||
26258 echo X"$as_dir" |
26259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26261           /^X\(\/\/\)$/{ s//\1/; q; }
26262           /^X\(\/\).*/{ s//\1/; q; }
26263           s/.*/./; q'`
26264     done
26265     test ! -n "$as_dirs" || mkdir $as_dirs
26266   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26268    { (exit 1); exit 1; }; }; }
26269
26270       rm -f $ac_file
26271       mv $tmp/config.h $ac_file
26272     fi
26273   else
26274     cat $tmp/config.h
26275     rm -f $tmp/config.h
26276   fi
26277 done
26278 _ACEOF
26279 cat >>$CONFIG_STATUS <<\_ACEOF
26280
26281 #
26282 # CONFIG_COMMANDS section.
26283 #
26284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26285   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26286   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26287   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26289          X"$ac_dest" : 'X\(//\)[^/]' \| \
26290          X"$ac_dest" : 'X\(//\)$' \| \
26291          X"$ac_dest" : 'X\(/\)' \| \
26292          .     : '\(.\)' 2>/dev/null ||
26293 echo X"$ac_dest" |
26294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26296           /^X\(\/\/\)$/{ s//\1/; q; }
26297           /^X\(\/\).*/{ s//\1/; q; }
26298           s/.*/./; q'`
26299   { if $as_mkdir_p; then
26300     mkdir -p "$ac_dir"
26301   else
26302     as_dir="$ac_dir"
26303     as_dirs=
26304     while test ! -d "$as_dir"; do
26305       as_dirs="$as_dir $as_dirs"
26306       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26308          X"$as_dir" : 'X\(//\)[^/]' \| \
26309          X"$as_dir" : 'X\(//\)$' \| \
26310          X"$as_dir" : 'X\(/\)' \| \
26311          .     : '\(.\)' 2>/dev/null ||
26312 echo X"$as_dir" |
26313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26314           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26315           /^X\(\/\/\)$/{ s//\1/; q; }
26316           /^X\(\/\).*/{ s//\1/; q; }
26317           s/.*/./; q'`
26318     done
26319     test ! -n "$as_dirs" || mkdir $as_dirs
26320   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26322    { (exit 1); exit 1; }; }; }
26323
26324   ac_builddir=.
26325
26326 if test "$ac_dir" != .; then
26327   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26328   # A "../" for each directory in $ac_dir_suffix.
26329   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26330 else
26331   ac_dir_suffix= ac_top_builddir=
26332 fi
26333
26334 case $srcdir in
26335   .)  # No --srcdir option.  We are building in place.
26336     ac_srcdir=.
26337     if test -z "$ac_top_builddir"; then
26338        ac_top_srcdir=.
26339     else
26340        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26341     fi ;;
26342   [\\/]* | ?:[\\/]* )  # Absolute path.
26343     ac_srcdir=$srcdir$ac_dir_suffix;
26344     ac_top_srcdir=$srcdir ;;
26345   *) # Relative path.
26346     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26347     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26348 esac
26349
26350 # Do not use `cd foo && pwd` to compute absolute paths, because
26351 # the directories may not exist.
26352 case `pwd` in
26353 .) ac_abs_builddir="$ac_dir";;
26354 *)
26355   case "$ac_dir" in
26356   .) ac_abs_builddir=`pwd`;;
26357   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26358   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26359   esac;;
26360 esac
26361 case $ac_abs_builddir in
26362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26363 *)
26364   case ${ac_top_builddir}. in
26365   .) ac_abs_top_builddir=$ac_abs_builddir;;
26366   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26367   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26368   esac;;
26369 esac
26370 case $ac_abs_builddir in
26371 .) ac_abs_srcdir=$ac_srcdir;;
26372 *)
26373   case $ac_srcdir in
26374   .) ac_abs_srcdir=$ac_abs_builddir;;
26375   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26376   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26377   esac;;
26378 esac
26379 case $ac_abs_builddir in
26380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26381 *)
26382   case $ac_top_srcdir in
26383   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26384   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26385   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26386   esac;;
26387 esac
26388
26389
26390   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26391 echo "$as_me: executing $ac_dest commands" >&6;}
26392   case $ac_dest in
26393     default )
26394 case ${CONFIG_HEADERS} in
26395   *auto-host.h:config.in*)
26396   echo > cstamp-h ;;
26397 esac
26398 # Make sure all the subdirs exist.
26399 for d in $subdirs doc build
26400 do
26401     test -d $d || mkdir $d
26402 done
26403  ;;
26404   esac
26405 done
26406 _ACEOF
26407
26408 cat >>$CONFIG_STATUS <<\_ACEOF
26409
26410 { (exit 0); exit 0; }
26411 _ACEOF
26412 chmod +x $CONFIG_STATUS
26413 ac_clean_files=$ac_clean_files_save
26414
26415
26416 # configure is writing to config.log, and then calls config.status.
26417 # config.status does its own redirection, appending to config.log.
26418 # Unfortunately, on DOS this fails, as config.log is still kept open
26419 # by configure, so config.status won't be able to write to it; its
26420 # output is simply discarded.  So we exec the FD to /dev/null,
26421 # effectively closing config.log, so it can be properly (re)opened and
26422 # appended to by config.status.  When coming back to configure, we
26423 # need to make the FD available again.
26424 if test "$no_create" != yes; then
26425   ac_cs_success=:
26426   ac_config_status_args=
26427   test "$silent" = yes &&
26428     ac_config_status_args="$ac_config_status_args --quiet"
26429   exec 5>/dev/null
26430   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26431   exec 5>>config.log
26432   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26433   # would make configure fail if this is the last instruction.
26434   $ac_cs_success || { (exit 1); exit 1; }
26435 fi
26436