Skip gcc.target/i386/pr65523.c for x32
[official-gcc.git] / libiberty / configure
blobb06cab24efa57a9bc6aff387d47833188b796e53
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="xmalloc.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 INSTALL_DEST
593 pexecute
594 target_header_dir
595 CHECK
596 LIBOBJS
597 NOASANFLAG
598 PICFLAG
599 INSTALL_DATA
600 INSTALL_SCRIPT
601 INSTALL_PROGRAM
602 EGREP
603 GREP
604 OUTPUT_OPTION
605 NO_MINUS_C_MINUS_O
606 ac_libiberty_warn_cflags
608 OBJEXT
609 EXEEXT
610 ac_ct_CC
611 CPPFLAGS
612 LDFLAGS
613 CFLAGS
615 RANLIB
617 host_os
618 host_vendor
619 host_cpu
620 host
621 build_os
622 build_vendor
623 build_cpu
624 build
625 HAVE_PERL
626 PERL
627 BUILD_INFO
628 MAKEINFO
629 NOTMAINT
630 MAINT
631 libiberty_topdir
632 target_alias
633 host_alias
634 build_alias
635 LIBS
636 ECHO_T
637 ECHO_N
638 ECHO_C
639 DEFS
640 mandir
641 localedir
642 libdir
643 psdir
644 pdfdir
645 dvidir
646 htmldir
647 infodir
648 docdir
649 oldincludedir
650 includedir
651 localstatedir
652 sharedstatedir
653 sysconfdir
654 datadir
655 datarootdir
656 libexecdir
657 sbindir
658 bindir
659 program_transform_name
660 prefix
661 exec_prefix
662 PACKAGE_URL
663 PACKAGE_BUGREPORT
664 PACKAGE_STRING
665 PACKAGE_VERSION
666 PACKAGE_TARNAME
667 PACKAGE_NAME
668 PATH_SEPARATOR
669 SHELL'
670 ac_subst_files='host_makefile_frag'
671 ac_user_opts='
672 enable_option_checking
673 with_target_subdir
674 with_build_subdir
675 with_cross_host
676 with_newlib
677 enable_maintainer_mode
678 enable_multilib
679 enable_install_libiberty
680 enable_largefile
682 ac_precious_vars='build_alias
683 host_alias
684 target_alias
686 CFLAGS
687 LDFLAGS
688 LIBS
689 CPPFLAGS
690 CPP'
693 # Initialize some variables set by options.
694 ac_init_help=
695 ac_init_version=false
696 ac_unrecognized_opts=
697 ac_unrecognized_sep=
698 # The variables have the same names as the options, with
699 # dashes changed to underlines.
700 cache_file=/dev/null
701 exec_prefix=NONE
702 no_create=
703 no_recursion=
704 prefix=NONE
705 program_prefix=NONE
706 program_suffix=NONE
707 program_transform_name=s,x,x,
708 silent=
709 site=
710 srcdir=
711 verbose=
712 x_includes=NONE
713 x_libraries=NONE
715 # Installation directory options.
716 # These are left unexpanded so users can "make install exec_prefix=/foo"
717 # and all the variables that are supposed to be based on exec_prefix
718 # by default will actually change.
719 # Use braces instead of parens because sh, perl, etc. also accept them.
720 # (The list follows the same order as the GNU Coding Standards.)
721 bindir='${exec_prefix}/bin'
722 sbindir='${exec_prefix}/sbin'
723 libexecdir='${exec_prefix}/libexec'
724 datarootdir='${prefix}/share'
725 datadir='${datarootdir}'
726 sysconfdir='${prefix}/etc'
727 sharedstatedir='${prefix}/com'
728 localstatedir='${prefix}/var'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
741 ac_prev=
742 ac_dashdash=
743 for ac_option
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
752 case $ac_option in
753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *) ac_optarg=yes ;;
755 esac
757 # Accept the important Cygnus configure options, so we can diagnose typos.
759 case $ac_dashdash$ac_option in
761 ac_dashdash=yes ;;
763 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 ac_prev=bindir ;;
765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
766 bindir=$ac_optarg ;;
768 -build | --build | --buil | --bui | --bu)
769 ac_prev=build_alias ;;
770 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
771 build_alias=$ac_optarg ;;
773 -cache-file | --cache-file | --cache-fil | --cache-fi \
774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
775 ac_prev=cache_file ;;
776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
778 cache_file=$ac_optarg ;;
780 --config-cache | -C)
781 cache_file=config.cache ;;
783 -datadir | --datadir | --datadi | --datad)
784 ac_prev=datadir ;;
785 -datadir=* | --datadir=* | --datadi=* | --datad=*)
786 datadir=$ac_optarg ;;
788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
789 | --dataroo | --dataro | --datar)
790 ac_prev=datarootdir ;;
791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
793 datarootdir=$ac_optarg ;;
795 -disable-* | --disable-*)
796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
804 "enable_$ac_useropt"
805 "*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=no ;;
811 -docdir | --docdir | --docdi | --doc | --do)
812 ac_prev=docdir ;;
813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
814 docdir=$ac_optarg ;;
816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 ac_prev=dvidir ;;
818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
819 dvidir=$ac_optarg ;;
821 -enable-* | --enable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=\$ac_optarg ;;
837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
839 | --exec | --exe | --ex)
840 ac_prev=exec_prefix ;;
841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
843 | --exec=* | --exe=* | --ex=*)
844 exec_prefix=$ac_optarg ;;
846 -gas | --gas | --ga | --g)
847 # Obsolete; use --with-gas.
848 with_gas=yes ;;
850 -help | --help | --hel | --he | -h)
851 ac_init_help=long ;;
852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
853 ac_init_help=recursive ;;
854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
855 ac_init_help=short ;;
857 -host | --host | --hos | --ho)
858 ac_prev=host_alias ;;
859 -host=* | --host=* | --hos=* | --ho=*)
860 host_alias=$ac_optarg ;;
862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 ac_prev=htmldir ;;
864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 | --ht=*)
866 htmldir=$ac_optarg ;;
868 -includedir | --includedir | --includedi | --included | --include \
869 | --includ | --inclu | --incl | --inc)
870 ac_prev=includedir ;;
871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
872 | --includ=* | --inclu=* | --incl=* | --inc=*)
873 includedir=$ac_optarg ;;
875 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 ac_prev=infodir ;;
877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
878 infodir=$ac_optarg ;;
880 -libdir | --libdir | --libdi | --libd)
881 ac_prev=libdir ;;
882 -libdir=* | --libdir=* | --libdi=* | --libd=*)
883 libdir=$ac_optarg ;;
885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
886 | --libexe | --libex | --libe)
887 ac_prev=libexecdir ;;
888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
889 | --libexe=* | --libex=* | --libe=*)
890 libexecdir=$ac_optarg ;;
892 -localedir | --localedir | --localedi | --localed | --locale)
893 ac_prev=localedir ;;
894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
895 localedir=$ac_optarg ;;
897 -localstatedir | --localstatedir | --localstatedi | --localstated \
898 | --localstate | --localstat | --localsta | --localst | --locals)
899 ac_prev=localstatedir ;;
900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
902 localstatedir=$ac_optarg ;;
904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 ac_prev=mandir ;;
906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
907 mandir=$ac_optarg ;;
909 -nfp | --nfp | --nf)
910 # Obsolete; use --without-fp.
911 with_fp=no ;;
913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
914 | --no-cr | --no-c | -n)
915 no_create=yes ;;
917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
919 no_recursion=yes ;;
921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
923 | --oldin | --oldi | --old | --ol | --o)
924 ac_prev=oldincludedir ;;
925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
928 oldincludedir=$ac_optarg ;;
930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 ac_prev=prefix ;;
932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
933 prefix=$ac_optarg ;;
935 -program-prefix | --program-prefix | --program-prefi | --program-pref \
936 | --program-pre | --program-pr | --program-p)
937 ac_prev=program_prefix ;;
938 -program-prefix=* | --program-prefix=* | --program-prefi=* \
939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
940 program_prefix=$ac_optarg ;;
942 -program-suffix | --program-suffix | --program-suffi | --program-suff \
943 | --program-suf | --program-su | --program-s)
944 ac_prev=program_suffix ;;
945 -program-suffix=* | --program-suffix=* | --program-suffi=* \
946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
947 program_suffix=$ac_optarg ;;
949 -program-transform-name | --program-transform-name \
950 | --program-transform-nam | --program-transform-na \
951 | --program-transform-n | --program-transform- \
952 | --program-transform | --program-transfor \
953 | --program-transfo | --program-transf \
954 | --program-trans | --program-tran \
955 | --progr-tra | --program-tr | --program-t)
956 ac_prev=program_transform_name ;;
957 -program-transform-name=* | --program-transform-name=* \
958 | --program-transform-nam=* | --program-transform-na=* \
959 | --program-transform-n=* | --program-transform-=* \
960 | --program-transform=* | --program-transfor=* \
961 | --program-transfo=* | --program-transf=* \
962 | --program-trans=* | --program-tran=* \
963 | --progr-tra=* | --program-tr=* | --program-t=*)
964 program_transform_name=$ac_optarg ;;
966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 ac_prev=pdfdir ;;
968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969 pdfdir=$ac_optarg ;;
971 -psdir | --psdir | --psdi | --psd | --ps)
972 ac_prev=psdir ;;
973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974 psdir=$ac_optarg ;;
976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
977 | -silent | --silent | --silen | --sile | --sil)
978 silent=yes ;;
980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 ac_prev=sbindir ;;
982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 | --sbi=* | --sb=*)
984 sbindir=$ac_optarg ;;
986 -sharedstatedir | --sharedstatedir | --sharedstatedi \
987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
988 | --sharedst | --shareds | --shared | --share | --shar \
989 | --sha | --sh)
990 ac_prev=sharedstatedir ;;
991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 | --sha=* | --sh=*)
995 sharedstatedir=$ac_optarg ;;
997 -site | --site | --sit)
998 ac_prev=site ;;
999 -site=* | --site=* | --sit=*)
1000 site=$ac_optarg ;;
1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 ac_prev=srcdir ;;
1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1005 srcdir=$ac_optarg ;;
1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1008 | --syscon | --sysco | --sysc | --sys | --sy)
1009 ac_prev=sysconfdir ;;
1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1012 sysconfdir=$ac_optarg ;;
1014 -target | --target | --targe | --targ | --tar | --ta | --t)
1015 ac_prev=target_alias ;;
1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1017 target_alias=$ac_optarg ;;
1019 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1020 verbose=yes ;;
1022 -version | --version | --versio | --versi | --vers | -V)
1023 ac_init_version=: ;;
1025 -with-* | --with-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "with_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "with_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval with_$ac_useropt=no ;;
1057 --x)
1058 # Obsolete; use --with-x.
1059 with_x=yes ;;
1061 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1062 | --x-incl | --x-inc | --x-in | --x-i)
1063 ac_prev=x_includes ;;
1064 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1065 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1066 x_includes=$ac_optarg ;;
1068 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1069 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1070 ac_prev=x_libraries ;;
1071 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1072 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1073 x_libraries=$ac_optarg ;;
1075 -*) as_fn_error "unrecognized option: \`$ac_option'
1076 Try \`$0 --help' for more information."
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 case $ac_envvar in #(
1083 '' | [0-9]* | *[!_$as_cr_alnum]* )
1084 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1085 esac
1086 eval $ac_envvar=\$ac_optarg
1087 export $ac_envvar ;;
1090 # FIXME: should be removed in autoconf 3.0.
1091 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1092 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1094 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 esac
1098 done
1100 if test -n "$ac_prev"; then
1101 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1102 as_fn_error "missing argument to $ac_option"
1105 if test -n "$ac_unrecognized_opts"; then
1106 case $enable_option_checking in
1107 no) ;;
1108 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1109 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1110 esac
1113 # Check all directory arguments for consistency.
1114 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
1119 eval ac_val=\$$ac_var
1120 # Remove trailing slashes.
1121 case $ac_val in
1122 */ )
1123 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1124 eval $ac_var=\$ac_val;;
1125 esac
1126 # Be sure to have absolute directory names.
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1132 done
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 as_fn_error "working directory cannot be determined"
1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 as_fn_error "pwd does not report name of working directory"
1166 # Find the source files, if location was not specified.
1167 if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$as_myself" ||
1171 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$as_myself" : 'X\(//\)[^/]' \| \
1173 X"$as_myself" : 'X\(//\)$' \| \
1174 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1175 $as_echo X"$as_myself" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1184 /^X\(\/\/\)$/{
1185 s//\1/
1188 /^X\(\/\).*/{
1189 s//\1/
1192 s/.*/./; q'`
1193 srcdir=$ac_confdir
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 srcdir=..
1197 else
1198 ac_srcdir_defaulted=no
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 ac_abs_confdir=`(
1206 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1207 pwd)`
1208 # When building in place, set srcdir=.
1209 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1212 # Remove unnecessary trailing slashes from srcdir.
1213 # Double slashes in file names in object file debugging info
1214 # mess up M-x gdb in Emacs.
1215 case $srcdir in
1216 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 esac
1218 for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 done
1226 # Report the --help message.
1228 if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232 \`configure' configures this package to adapt to many kinds of systems.
1234 Usage: $0 [OPTION]... [VAR=VALUE]...
1236 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237 VAR=VALUE. See below for descriptions of some of the useful variables.
1239 Defaults for the options are specified in brackets.
1241 Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252 Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
1254 [$ac_default_prefix]
1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 [PREFIX]
1258 By default, \`make install' will install all the files in
1259 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261 for instance \`--prefix=\$HOME'.
1263 For better control, use the options below.
1265 Fine tuning of the installation directories:
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
1285 _ACEOF
1287 cat <<\_ACEOF
1289 System types:
1290 --build=BUILD configure for building on BUILD [guessed]
1291 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1292 _ACEOF
1295 if test -n "$ac_init_help"; then
1297 cat <<\_ACEOF
1299 Optional Features:
1300 --disable-option-checking ignore unrecognized --enable/--with options
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --enable-maintainer-mode
1304 enable make rules and dependencies not useful
1305 (and sometimes confusing) to the casual installer
1306 --enable-multilib build many library versions (default)
1307 --enable-install-libiberty Install headers and library for end users
1308 --disable-largefile omit support for large files
1310 Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1313 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1314 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
1315 --with-cross-host=HOST Configuring with a cross compiler
1316 --with-newlib Configuring with newlib
1318 Some influential environment variables:
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322 nonstandard directory <lib dir>
1323 LIBS libraries to pass to the linker, e.g. -l<library>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1326 CPP C preprocessor
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1331 Report bugs to the package provider.
1332 _ACEOF
1333 ac_status=$?
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" ||
1340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1341 continue
1342 ac_builddir=.
1344 case "$ac_dir" in
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 esac ;;
1354 esac
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1360 case $srcdir in
1361 .) # We are building in place.
1362 ac_srcdir=.
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
1366 ac_srcdir=$srcdir$ac_dir_suffix;
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1369 *) # Relative name.
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1373 esac
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1379 echo &&
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure" --help=recursive
1384 else
1385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1386 fi || ac_status=$?
1387 cd "$ac_pwd" || { ac_status=$?; break; }
1388 done
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1393 cat <<\_ACEOF
1394 configure
1395 generated by GNU Autoconf 2.64
1397 Copyright (C) 2009 Free Software Foundation, Inc.
1398 This configure script is free software; the Free Software Foundation
1399 gives unlimited permission to copy, distribute and modify it.
1400 _ACEOF
1401 exit
1404 ## ------------------------ ##
1405 ## Autoconf initialization. ##
1406 ## ------------------------ ##
1408 # ac_fn_c_try_compile LINENO
1409 # --------------------------
1410 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1411 ac_fn_c_try_compile ()
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext
1415 if { { ac_try="$ac_compile"
1416 case "(($ac_try" in
1417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418 *) ac_try_echo=$ac_try;;
1419 esac
1420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421 $as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_compile") 2>conftest.err
1423 ac_status=$?
1424 if test -s conftest.err; then
1425 grep -v '^ *+' conftest.err >conftest.er1
1426 cat conftest.er1 >&5
1427 mv -f conftest.er1 conftest.err
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest.$ac_objext; then :
1434 ac_retval=0
1435 else
1436 $as_echo "$as_me: failed program was:" >&5
1437 sed 's/^/| /' conftest.$ac_ext >&5
1439 ac_retval=1
1441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1442 return $ac_retval
1444 } # ac_fn_c_try_compile
1446 # ac_fn_c_try_cpp LINENO
1447 # ----------------------
1448 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_c_try_cpp ()
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 if { { ac_try="$ac_cpp conftest.$ac_ext"
1453 case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456 esac
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } >/dev/null && {
1468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 }; then :
1471 ac_retval=0
1472 else
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1476 ac_retval=1
1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 return $ac_retval
1481 } # ac_fn_c_try_cpp
1483 # ac_fn_c_try_run LINENO
1484 # ----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1486 # that executables *can* be run.
1487 ac_fn_c_try_run ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 if { { ac_try="$ac_link"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>&5
1498 ac_status=$?
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1501 { { case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_try") 2>&5
1508 ac_status=$?
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; }; }; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: program exited with status $ac_status" >&5
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1517 ac_retval=$ac_status
1519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 return $ac_retval
1523 } # ac_fn_c_try_run
1525 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1526 # ----------------------------------------------
1527 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1528 ac_fn_c_check_header_preproc ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532 $as_echo_n "checking for $2... " >&6; }
1533 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1534 $as_echo_n "(cached) " >&6
1535 else
1536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537 /* end confdefs.h. */
1538 #include <$2>
1539 _ACEOF
1540 if ac_fn_c_try_cpp "$LINENO"; then :
1541 eval "$3=yes"
1542 else
1543 eval "$3=no"
1545 rm -f conftest.err conftest.$ac_ext
1547 eval ac_res=\$$3
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1549 $as_echo "$ac_res" >&6; }
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 } # ac_fn_c_check_header_preproc
1554 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1555 # --------------------------------------------
1556 # Tries to find the compile-time value of EXPR in a program that includes
1557 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1558 # computed
1559 ac_fn_c_compute_int ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if test "$cross_compiling" = yes; then
1563 # Depending upon the size, compute the lo and hi bounds.
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1568 main ()
1570 static int test_array [1 - 2 * !(($2) >= 0)];
1571 test_array [0] = 0
1574 return 0;
1576 _ACEOF
1577 if ac_fn_c_try_compile "$LINENO"; then :
1578 ac_lo=0 ac_mid=0
1579 while :; do
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1584 main ()
1586 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1587 test_array [0] = 0
1590 return 0;
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594 ac_hi=$ac_mid; break
1595 else
1596 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1597 if test $ac_lo -le $ac_mid; then
1598 ac_lo= ac_hi=
1599 break
1601 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 done
1605 else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1610 main ()
1612 static int test_array [1 - 2 * !(($2) < 0)];
1613 test_array [0] = 0
1616 return 0;
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 ac_hi=-1 ac_mid=-1
1621 while :; do
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1626 main ()
1628 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1629 test_array [0] = 0
1632 return 0;
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_lo=$ac_mid; break
1637 else
1638 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1639 if test $ac_mid -le $ac_hi; then
1640 ac_lo= ac_hi=
1641 break
1643 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 done
1647 else
1648 ac_lo= ac_hi=
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 # Binary search between lo and hi bounds.
1654 while test "x$ac_lo" != "x$ac_hi"; do
1655 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1660 main ()
1662 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1663 test_array [0] = 0
1666 return 0;
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 ac_hi=$ac_mid
1671 else
1672 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 done
1676 case $ac_lo in #((
1677 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1678 '') ac_retval=1 ;;
1679 esac
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1684 static long int longval () { return $2; }
1685 static unsigned long int ulongval () { return $2; }
1686 #include <stdio.h>
1687 #include <stdlib.h>
1689 main ()
1692 FILE *f = fopen ("conftest.val", "w");
1693 if (! f)
1694 return 1;
1695 if (($2) < 0)
1697 long int i = longval ();
1698 if (i != ($2))
1699 return 1;
1700 fprintf (f, "%ld", i);
1702 else
1704 unsigned long int i = ulongval ();
1705 if (i != ($2))
1706 return 1;
1707 fprintf (f, "%lu", i);
1709 /* Do not output a trailing newline, as this causes \r\n confusion
1710 on some platforms. */
1711 return ferror (f) || fclose (f) != 0;
1714 return 0;
1716 _ACEOF
1717 if ac_fn_c_try_run "$LINENO"; then :
1718 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1719 else
1720 ac_retval=1
1722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1723 conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 rm -f conftest.val
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_compute_int
1732 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1733 # -------------------------------------------
1734 # Tests whether TYPE exists after having included INCLUDES, setting cache
1735 # variable VAR accordingly.
1736 ac_fn_c_check_type ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 eval "$3=no"
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 main ()
1751 if (sizeof ($2))
1752 return 0;
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 main ()
1764 if (sizeof (($2)))
1765 return 0;
1767 return 0;
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1772 else
1773 eval "$3=yes"
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 } # ac_fn_c_check_type
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 if test x$gcc_no_link = xyes; then
1844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1863 #undef $2
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1880 main ()
1882 return $2 ();
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 } # ac_fn_c_check_func
1902 # ac_fn_c_check_decl LINENO SYMBOL VAR
1903 # ------------------------------------
1904 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1905 ac_fn_c_check_decl ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 as_decl_name=`echo $2|sed 's/ *(.*//'`
1909 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 main ()
1921 #ifndef $as_decl_name
1922 #ifdef __cplusplus
1923 (void) $as_decl_use;
1924 #else
1925 (void) $as_decl_name;
1926 #endif
1927 #endif
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 } # ac_fn_c_check_decl
1946 cat >config.log <<_ACEOF
1947 This file contains any messages produced by compilers while
1948 running configure, to aid debugging if configure makes a mistake.
1950 It was created by $as_me, which was
1951 generated by GNU Autoconf 2.64. Invocation command line was
1953 $ $0 $@
1955 _ACEOF
1956 exec 5>>config.log
1958 cat <<_ASUNAME
1959 ## --------- ##
1960 ## Platform. ##
1961 ## --------- ##
1963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1975 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980 _ASUNAME
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 $as_echo "PATH: $as_dir"
1988 done
1989 IFS=$as_save_IFS
1991 } >&5
1993 cat >&5 <<_ACEOF
1996 ## ----------- ##
1997 ## Core tests. ##
1998 ## ----------- ##
2000 _ACEOF
2003 # Keep a trace of the command line.
2004 # Strip out --no-create and --no-recursion so they do not pile up.
2005 # Strip out --silent because we don't want to record it for future runs.
2006 # Also quote any args containing shell meta-characters.
2007 # Make two passes to allow for proper duplicate-argument suppression.
2008 ac_configure_args=
2009 ac_configure_args0=
2010 ac_configure_args1=
2011 ac_must_keep_next=false
2012 for ac_pass in 1 2
2014 for ac_arg
2016 case $ac_arg in
2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 continue ;;
2021 *\'*)
2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 esac
2024 case $ac_pass in
2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027 as_fn_append ac_configure_args1 " '$ac_arg'"
2028 if test $ac_must_keep_next = true; then
2029 ac_must_keep_next=false # Got value, back to normal.
2030 else
2031 case $ac_arg in
2032 *=* | --config-cache | -C | -disable-* | --disable-* \
2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2035 | -with-* | --with-* | -without-* | --without-* | --x)
2036 case "$ac_configure_args0 " in
2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 esac
2040 -* ) ac_must_keep_next=true ;;
2041 esac
2043 as_fn_append ac_configure_args " '$ac_arg'"
2045 esac
2046 done
2047 done
2048 { ac_configure_args0=; unset ac_configure_args0;}
2049 { ac_configure_args1=; unset ac_configure_args1;}
2051 # When interrupted or exit'd, cleanup temporary files, and complete
2052 # config.log. We remove comments because anyway the quotes in there
2053 # would cause problems or look ugly.
2054 # WARNING: Use '\'' to represent an apostrophe within the trap.
2055 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2056 trap 'exit_status=$?
2057 # Save into config.log some information that might help in debugging.
2059 echo
2061 cat <<\_ASBOX
2062 ## ---------------- ##
2063 ## Cache variables. ##
2064 ## ---------------- ##
2065 _ASBOX
2066 echo
2067 # The following way of writing the cache mishandles newlines in values,
2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in #(
2072 *${as_nl}*)
2073 case $ac_var in #(
2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076 esac
2077 case $ac_var in #(
2078 _ | IFS | as_nl) ;; #(
2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080 *) { eval $ac_var=; unset $ac_var;} ;;
2081 esac ;;
2082 esac
2083 done
2084 (set) 2>&1 |
2085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
2087 sed -n \
2088 "s/'\''/'\''\\\\'\'''\''/g;
2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090 ;; #(
2092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 esac |
2095 sort
2097 echo
2099 cat <<\_ASBOX
2100 ## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##
2103 _ASBOX
2104 echo
2105 for ac_var in $ac_subst_vars
2107 eval ac_val=\$$ac_var
2108 case $ac_val in
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 esac
2111 $as_echo "$ac_var='\''$ac_val'\''"
2112 done | sort
2113 echo
2115 if test -n "$ac_subst_files"; then
2116 cat <<\_ASBOX
2117 ## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##
2120 _ASBOX
2121 echo
2122 for ac_var in $ac_subst_files
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2133 if test -s confdefs.h; then
2134 cat <<\_ASBOX
2135 ## ----------- ##
2136 ## confdefs.h. ##
2137 ## ----------- ##
2138 _ASBOX
2139 echo
2140 cat confdefs.h
2141 echo
2143 test "$ac_signal" != 0 &&
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
2146 } >&5
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 exit $exit_status
2151 for ac_signal in 1 2 13 15; do
2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2159 $as_echo "/* confdefs.h */" > confdefs.h
2161 # Predefined preprocessor variables.
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
2192 if test -n "$CONFIG_SITE"; then
2193 ac_site_file1=$CONFIG_SITE
2194 elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197 else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 test "x$ac_site_file" = xNONE && continue
2204 if test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2208 . "$ac_site_file"
2210 done
2212 if test -r "$cache_file"; then
2213 # Some versions of bash will fail to source /dev/null (special
2214 # files actually), so we avoid doing that.
2215 if test -f "$cache_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218 case $cache_file in
2219 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220 *) . "./$cache_file";;
2221 esac
2223 else
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225 $as_echo "$as_me: creating cache $cache_file" >&6;}
2226 >$cache_file
2229 # Check that the precious variables saved in the cache have kept the same
2230 # value.
2231 ac_cache_corrupted=false
2232 for ac_var in $ac_precious_vars; do
2233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
2235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
2237 case $ac_old_set,$ac_new_set in
2238 set,)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,set)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,);;
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
2249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2265 fi;;
2266 esac
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2269 case $ac_new_val in
2270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 *) ac_arg=$ac_var=$ac_new_val ;;
2272 esac
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2276 esac
2278 done
2279 if $ac_cache_corrupted; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2284 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 ## -------------------- ##
2287 ## Main body of script. ##
2288 ## -------------------- ##
2290 ac_ext=c
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 # This works around the fact that libtool configuration may change LD
2303 # for this particular configuration, but some shells, instead of
2304 # keeping the changes in LD private, export them just because LD is
2305 # exported. We don't use libtool yet, but some day we might, so...
2306 ORIGINAL_LD_FOR_MULTILIBS=$LD
2309 # Check whether --with-target-subdir was given.
2310 if test "${with_target_subdir+set}" = set; then :
2311 withval=$with_target_subdir;
2315 # Check whether --with-build-subdir was given.
2316 if test "${with_build_subdir+set}" = set; then :
2317 withval=$with_build_subdir;
2321 # Check whether --with-cross-host was given.
2322 if test "${with_cross_host+set}" = set; then :
2323 withval=$with_cross_host;
2327 # Check whether --with-newlib was given.
2328 if test "${with_newlib+set}" = set; then :
2329 withval=$with_newlib;
2333 if test "${srcdir}" = "."; then
2334 if test -n "${with_build_subdir}"; then
2335 libiberty_topdir="${srcdir}/../.."
2336 with_target_subdir=
2337 elif test -z "${with_target_subdir}"; then
2338 libiberty_topdir="${srcdir}/.."
2339 else
2340 if test "${with_target_subdir}" != "."; then
2341 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
2342 else
2343 libiberty_topdir="${srcdir}/${with_multisrctop}.."
2346 else
2347 libiberty_topdir="${srcdir}/.."
2350 ac_aux_dir=
2351 for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
2352 for ac_t in install-sh install.sh shtool; do
2353 if test -f "$ac_dir/$ac_t"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/$ac_t -c"
2356 break 2
2358 done
2359 done
2360 if test -z "$ac_aux_dir"; then
2361 as_fn_error "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
2364 # These three variables are undocumented and unsupported,
2365 # and are intended to be withdrawn in a future Autoconf release.
2366 # They can cause serious problems if a builder's source tree is in a directory
2367 # whose full name contains unusual characters.
2368 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2369 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2370 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2376 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2377 # Check whether --enable-maintainer-mode was given.
2378 if test "${enable_maintainer_mode+set}" = set; then :
2379 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
2380 else
2381 maintainer_mode=no
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2386 $as_echo "$maintainer_mode" >&6; }
2388 if test "$maintainer_mode" = "yes"; then
2389 MAINT=''
2390 NOTMAINT='#'
2391 else
2392 MAINT='#'
2393 NOTMAINT=''
2396 # Do we have a single-tree copy of texinfo? Even if we do, we can't
2397 # rely on it - libiberty is built before texinfo.
2398 # Extract the first word of "makeinfo", so it can be a program name with args.
2399 set dummy makeinfo; ac_word=$2
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 if test -n "$MAKEINFO"; then
2406 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_MAKEINFO="makeinfo"
2416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2419 done
2420 done
2421 IFS=$as_save_IFS
2425 MAKEINFO=$ac_cv_prog_MAKEINFO
2426 if test -n "$MAKEINFO"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2428 $as_echo "$MAKEINFO" >&6; }
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431 $as_echo "no" >&6; }
2435 if test "x$MAKEINFO" = "x"; then
2436 MAKEINFO="@echo makeinfo missing; true"
2437 BUILD_INFO=
2438 else
2439 BUILD_INFO=info
2440 case "$MAKEINFO" in
2441 */missing\ makeinfo*)
2442 BUILD_INFO=
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2444 *** Makeinfo is missing. Info documentation will not be built." >&5
2445 $as_echo "$as_me: WARNING:
2446 *** Makeinfo is missing. Info documentation will not be built." >&2;}
2449 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
2450 x*\ [1-3].* )
2451 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
2452 BUILD_INFO=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2454 *** Makeinfo is too old. Info documentation will not be built." >&5
2455 $as_echo "$as_me: WARNING:
2456 *** Makeinfo is too old. Info documentation will not be built." >&2;}
2458 esac
2460 esac
2465 # Extract the first word of "perl", so it can be a program name with args.
2466 set dummy perl; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if test "${ac_cv_prog_PERL+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$PERL"; then
2473 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_PERL="perl"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2486 done
2487 done
2488 IFS=$as_save_IFS
2492 PERL=$ac_cv_prog_PERL
2493 if test -n "$PERL"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2495 $as_echo "$PERL" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2502 if test x"$PERL" = x""; then
2503 HAVE_PERL='#'
2504 else
2505 HAVE_PERL=''
2509 # Make sure we can run config.sub.
2510 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2511 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2514 $as_echo_n "checking build system type... " >&6; }
2515 if test "${ac_cv_build+set}" = set; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 ac_build_alias=$build_alias
2519 test "x$ac_build_alias" = x &&
2520 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2521 test "x$ac_build_alias" = x &&
2522 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2523 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2524 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2528 $as_echo "$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2530 *-*-*) ;;
2531 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2532 esac
2533 build=$ac_cv_build
2534 ac_save_IFS=$IFS; IFS='-'
2535 set x $ac_cv_build
2536 shift
2537 build_cpu=$1
2538 build_vendor=$2
2539 shift; shift
2540 # Remember, the first character of IFS is used to create $*,
2541 # except with old shells:
2542 build_os=$*
2543 IFS=$ac_save_IFS
2544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2548 $as_echo_n "checking host system type... " >&6; }
2549 if test "${ac_cv_host+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test "x$host_alias" = x; then
2553 ac_cv_host=$ac_cv_build
2554 else
2555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2556 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2561 $as_echo "$ac_cv_host" >&6; }
2562 case $ac_cv_host in
2563 *-*-*) ;;
2564 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2565 esac
2566 host=$ac_cv_host
2567 ac_save_IFS=$IFS; IFS='-'
2568 set x $ac_cv_host
2569 shift
2570 host_cpu=$1
2571 host_vendor=$2
2572 shift; shift
2573 # Remember, the first character of IFS is used to create $*,
2574 # except with old shells:
2575 host_os=$*
2576 IFS=$ac_save_IFS
2577 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}ar; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if test "${ac_cv_prog_AR+set}" = set; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test -n "$AR"; then
2591 ac_cv_prog_AR="$AR" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_AR="${ac_tool_prefix}ar"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2604 done
2605 done
2606 IFS=$as_save_IFS
2610 AR=$ac_cv_prog_AR
2611 if test -n "$AR"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2613 $as_echo "$AR" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2621 if test -z "$ac_cv_prog_AR"; then
2622 ac_ct_AR=$AR
2623 # Extract the first word of "ar", so it can be a program name with args.
2624 set dummy ar; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$ac_ct_AR"; then
2631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_AR="ar"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2644 done
2645 done
2646 IFS=$as_save_IFS
2650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2651 if test -n "$ac_ct_AR"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2653 $as_echo "$ac_ct_AR" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2659 if test "x$ac_ct_AR" = x; then
2660 AR=""
2661 else
2662 case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666 ac_tool_warned=yes ;;
2667 esac
2668 AR=$ac_ct_AR
2670 else
2671 AR="$ac_cv_prog_AR"
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$RANLIB"; then
2683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 RANLIB=$ac_cv_prog_RANLIB
2703 if test -n "$RANLIB"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2705 $as_echo "$RANLIB" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_RANLIB"; then
2714 ac_ct_RANLIB=$RANLIB
2715 # Extract the first word of "ranlib", so it can be a program name with args.
2716 set dummy ranlib; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_RANLIB"; then
2723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_RANLIB="ranlib"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2743 if test -n "$ac_ct_RANLIB"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2745 $as_echo "$ac_ct_RANLIB" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_RANLIB" = x; then
2752 RANLIB=":"
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 RANLIB=$ac_ct_RANLIB
2762 else
2763 RANLIB="$ac_cv_prog_RANLIB"
2767 # Add --enable-multilib to configure.
2768 # Default to --enable-multilib
2769 # Check whether --enable-multilib was given.
2770 if test "${enable_multilib+set}" = set; then :
2771 enableval=$enable_multilib; case "$enableval" in
2772 yes) multilib=yes ;;
2773 no) multilib=no ;;
2774 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2775 esac
2776 else
2777 multilib=yes
2781 # Even if the default multilib is not a cross compilation,
2782 # it may be that some of the other multilibs are.
2783 if test $cross_compiling = no && test $multilib = yes \
2784 && test "x${with_multisubdir}" != x ; then
2785 cross_compiling=maybe
2788 # We may wish to install the target headers somewhere.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
2790 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
2792 # Check whether --enable-install-libiberty was given.
2793 if test "${enable_install_libiberty+set}" = set; then :
2794 enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
2795 else
2796 enable_install_libiberty=no
2799 # Option parsed, now set things appropriately.
2800 case x"$enable_install_libiberty" in
2801 xyes|x)
2802 target_header_dir=libiberty
2804 xno)
2805 target_header_dir=
2808 # This could be sanity-checked in various ways...
2809 target_header_dir="${enable_install_libiberty}"
2811 esac
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
2813 $as_echo "$enable_install_libiberty" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
2815 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2847 IFS=$as_save_IFS
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2862 if test -z "$ac_cv_prog_CC"; then
2863 ac_ct_CC=$CC
2864 # Extract the first word of "gcc", so it can be a program name with args.
2865 set dummy gcc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$ac_ct_CC"; then
2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_ac_ct_CC="gcc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2894 $as_echo "$ac_ct_CC" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2900 if test "x$ac_ct_CC" = x; then
2901 CC=""
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909 CC=$ac_ct_CC
2911 else
2912 CC="$ac_cv_prog_CC"
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="${ac_tool_prefix}cc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2956 if test -z "$CC"; then
2957 # Extract the first word of "cc", so it can be a program name with args.
2958 set dummy cc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 ac_prog_rejected=no
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976 ac_prog_rejected=yes
2977 continue
2979 ac_cv_prog_CC="cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2987 if test $ac_prog_rejected = yes; then
2988 # We found a bogon in the path, so make sure we never use it.
2989 set dummy $ac_cv_prog_CC
2990 shift
2991 if test $# != 0; then
2992 # We chose a different compiler from the bogus one.
2993 # However, it has the same basename, so the bogon will be chosen
2994 # first if we set CC to just the basename; use the full file name.
2995 shift
2996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 for ac_prog in cl.exe
3016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3053 test -n "$CC" && break
3054 done
3056 if test -z "$CC"; then
3057 ac_ct_CC=$CC
3058 for ac_prog in cl.exe
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_ac_ct_CC="$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 $as_echo "$ac_ct_CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3097 test -n "$ac_ct_CC" && break
3098 done
3100 if test "x$ac_ct_CC" = x; then
3101 CC=""
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104 yes:)
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109 CC=$ac_ct_CC
3116 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error "no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." "$LINENO" 5; }
3121 # Provide some information about the compiler.
3122 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3123 set X $ac_compile
3124 ac_compiler=$2
3125 for ac_option in --version -v -V -qversion; do
3126 { { ac_try="$ac_compiler $ac_option >&5"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3134 ac_status=$?
3135 if test -s conftest.err; then
3136 sed '10a\
3137 ... rest of stderr output deleted ...
3138 10q' conftest.err >conftest.er1
3139 cat conftest.er1 >&5
3140 rm -f conftest.er1 conftest.err
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }
3144 done
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3150 main ()
3154 return 0;
3156 _ACEOF
3157 # FIXME: Cleanup?
3158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3159 (eval $ac_link) 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; then :
3163 gcc_no_link=no
3164 else
3165 gcc_no_link=yes
3167 if test x$gcc_no_link = xyes; then
3168 # Setting cross_compile will disable run tests; it will
3169 # also disable AC_CHECK_FILE but that's generally
3170 # correct if we can't link.
3171 cross_compiling=yes
3172 EXEEXT=
3173 else
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3178 main ()
3182 return 0;
3184 _ACEOF
3185 ac_clean_files_save=$ac_clean_files
3186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3187 # Try to create an executable without -o first, disregard a.out.
3188 # It will help us diagnose broken compilers, and finding out an intuition
3189 # of exeext.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3191 $as_echo_n "checking for C compiler default output file name... " >&6; }
3192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194 # The possible output files:
3195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197 ac_rmfiles=
3198 for ac_file in $ac_files
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 esac
3204 done
3205 rm -f $ac_rmfiles
3207 if { { ac_try="$ac_link_default"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link_default") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3222 # Autoconf.
3223 for ac_file in $ac_files ''
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229 [ab].out )
3230 # We found the default executable, but exeext='' is most
3231 # certainly right.
3232 break;;
3233 *.* )
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 then :; else
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3242 # actually working.
3243 break;;
3245 break;;
3246 esac
3247 done
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 else
3251 ac_file=''
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3254 $as_echo "$ac_file" >&6; }
3255 if test -z "$ac_file"; then :
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 { as_fn_set_status 77
3262 as_fn_error "C compiler cannot create executables
3263 See \`config.log' for more details." "$LINENO" 5; }; }
3265 ac_exeext=$ac_cv_exeext
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 # If not cross compiling, check that we can run a simple program.
3272 if test "$cross_compiling" != yes; then
3273 if { ac_try='./$ac_file'
3274 { { case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; }; then
3284 cross_compiling=no
3285 else
3286 if test "$cross_compiling" = maybe; then
3287 cross_compiling=yes
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error "cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details." "$LINENO" 5; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3301 ac_clean_files=$ac_clean_files_save
3302 # Check that the compiler produces executables we can run. If not, either
3303 # the compiler is broken, or we cross compile.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3305 $as_echo_n "checking whether we are cross compiling... " >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307 $as_echo "$cross_compiling" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 $as_echo_n "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 # `rm'.
3326 for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 break;;
3332 * ) break;;
3333 esac
3334 done
3335 else
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details." "$LINENO" 5; }
3341 rm -f conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3347 ac_exeext=$EXEEXT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3350 $as_echo_n "checking for suffix of object files... " >&6; }
3351 if test "${ac_cv_objext+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3358 main ()
3362 return 0;
3364 _ACEOF
3365 rm -f conftest.o conftest.obj
3366 if { { ac_try="$ac_compile"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compile") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; then :
3377 for ac_file in conftest.o conftest.obj conftest.*; do
3378 test -f "$ac_file" || continue;
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382 break;;
3383 esac
3384 done
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "cannot compute suffix of object files: cannot compile
3392 See \`config.log' for more details." "$LINENO" 5; }
3394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3397 $as_echo "$ac_cv_objext" >&6; }
3398 OBJEXT=$ac_cv_objext
3399 ac_objext=$OBJEXT
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3402 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3409 main ()
3411 #ifndef __GNUC__
3412 choke me
3413 #endif
3416 return 0;
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_compiler_gnu=yes
3421 else
3422 ac_compiler_gnu=no
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3430 if test $ac_compiler_gnu = yes; then
3431 GCC=yes
3432 else
3433 GCC=
3435 ac_test_CFLAGS=${CFLAGS+set}
3436 ac_save_CFLAGS=$CFLAGS
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3439 if test "${ac_cv_prog_cc_g+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_save_c_werror_flag=$ac_c_werror_flag
3443 ac_c_werror_flag=yes
3444 ac_cv_prog_cc_g=no
3445 CFLAGS="-g"
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3450 main ()
3454 return 0;
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_cv_prog_cc_g=yes
3459 else
3460 CFLAGS=""
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3465 main ()
3469 return 0;
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3474 else
3475 ac_c_werror_flag=$ac_save_c_werror_flag
3476 CFLAGS="-g"
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 main ()
3485 return 0;
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_cv_prog_cc_g=yes
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3499 $as_echo "$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_cv_prog_cc_c89=no
3521 ac_save_CC=$CC
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524 #include <stdarg.h>
3525 #include <stdio.h>
3526 #include <sys/types.h>
3527 #include <sys/stat.h>
3528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3529 struct buf { int x; };
3530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3531 static char *e (p, i)
3532 char **p;
3533 int i;
3535 return p[i];
3537 static char *f (char * (*g) (char **, int), char **p, ...)
3539 char *s;
3540 va_list v;
3541 va_start (v,p);
3542 s = g (p, va_arg (v,int));
3543 va_end (v);
3544 return s;
3547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3548 function prototypes and stuff, but not '\xHH' hex character constants.
3549 These don't provoke an error unfortunately, instead are silently treated
3550 as 'x'. The following induces an error, until -std is added to get
3551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3552 array size at least. It's necessary to write '\x00'==0 to get something
3553 that's true only with -std. */
3554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3557 inside strings and character constants. */
3558 #define FOO(x) 'x'
3559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561 int test (int i, double x);
3562 struct s1 {int (*f) (int a);};
3563 struct s2 {int (*f) (double a);};
3564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 int argc;
3566 char **argv;
3568 main ()
3570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3572 return 0;
3574 _ACEOF
3575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3578 CC="$ac_save_CC $ac_arg"
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_cv_prog_cc_c89=$ac_arg
3582 rm -f core conftest.err conftest.$ac_objext
3583 test "x$ac_cv_prog_cc_c89" != "xno" && break
3584 done
3585 rm -f conftest.$ac_ext
3586 CC=$ac_save_CC
3589 # AC_CACHE_VAL
3590 case "x$ac_cv_prog_cc_c89" in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3593 $as_echo "none needed" >&6; } ;;
3594 xno)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3596 $as_echo "unsupported" >&6; } ;;
3598 CC="$CC $ac_cv_prog_cc_c89"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3600 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3601 esac
3602 if test "x$ac_cv_prog_cc_c89" != xno; then :
3606 ac_ext=c
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 # Check whether --enable-largefile was given.
3614 if test "${enable_largefile+set}" = set; then :
3615 enableval=$enable_largefile;
3618 if test "$enable_largefile" != no; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3622 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 ac_cv_sys_largefile_CC=no
3626 if test "$GCC" != yes; then
3627 ac_save_CC=$CC
3628 while :; do
3629 # IRIX 6.2 and later do not support large files by default,
3630 # so use the C compiler's -n32 option if that helps.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <sys/types.h>
3634 /* Check that off_t can represent 2**63 - 1 correctly.
3635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3636 since some C++ compilers masquerading as C compilers
3637 incorrectly reject 9223372036854775807. */
3638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3640 && LARGE_OFF_T % 2147483647 == 1)
3641 ? 1 : -1];
3643 main ()
3647 return 0;
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 break
3653 rm -f core conftest.err conftest.$ac_objext
3654 CC="$CC -n32"
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_sys_largefile_CC=' -n32'; break
3658 rm -f core conftest.err conftest.$ac_objext
3659 break
3660 done
3661 CC=$ac_save_CC
3662 rm -f conftest.$ac_ext
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3667 if test "$ac_cv_sys_largefile_CC" != no; then
3668 CC=$CC$ac_cv_sys_largefile_CC
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 while :; do
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 /* Check that off_t can represent 2**63 - 1 correctly.
3681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3682 since some C++ compilers masquerading as C compilers
3683 incorrectly reject 9223372036854775807. */
3684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3686 && LARGE_OFF_T % 2147483647 == 1)
3687 ? 1 : -1];
3689 main ()
3693 return 0;
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_sys_file_offset_bits=no; break
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702 #define _FILE_OFFSET_BITS 64
3703 #include <sys/types.h>
3704 /* Check that off_t can represent 2**63 - 1 correctly.
3705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3706 since some C++ compilers masquerading as C compilers
3707 incorrectly reject 9223372036854775807. */
3708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3710 && LARGE_OFF_T % 2147483647 == 1)
3711 ? 1 : -1];
3713 main ()
3717 return 0;
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_sys_file_offset_bits=64; break
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cv_sys_file_offset_bits=unknown
3725 break
3726 done
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3730 case $ac_cv_sys_file_offset_bits in #(
3731 no | unknown) ;;
3733 cat >>confdefs.h <<_ACEOF
3734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3735 _ACEOF
3737 esac
3738 rm -rf conftest*
3739 if test $ac_cv_sys_file_offset_bits = unknown; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3742 if test "${ac_cv_sys_large_files+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 while :; do
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <sys/types.h>
3749 /* Check that off_t can represent 2**63 - 1 correctly.
3750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3751 since some C++ compilers masquerading as C compilers
3752 incorrectly reject 9223372036854775807. */
3753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3755 && LARGE_OFF_T % 2147483647 == 1)
3756 ? 1 : -1];
3758 main ()
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_sys_large_files=no; break
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #define _LARGE_FILES 1
3772 #include <sys/types.h>
3773 /* Check that off_t can represent 2**63 - 1 correctly.
3774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3775 since some C++ compilers masquerading as C compilers
3776 incorrectly reject 9223372036854775807. */
3777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3779 && LARGE_OFF_T % 2147483647 == 1)
3780 ? 1 : -1];
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_sys_large_files=1; break
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_cv_sys_large_files=unknown
3794 break
3795 done
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3798 $as_echo "$ac_cv_sys_large_files" >&6; }
3799 case $ac_cv_sys_large_files in #(
3800 no | unknown) ;;
3802 cat >>confdefs.h <<_ACEOF
3803 #define _LARGE_FILES $ac_cv_sys_large_files
3804 _ACEOF
3806 esac
3807 rm -rf conftest*
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3820 CPP=
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #ifdef __STDC__
3841 # include <limits.h>
3842 #else
3843 # include <assert.h>
3844 #endif
3845 Syntax error
3846 _ACEOF
3847 if ac_fn_c_try_cpp "$LINENO"; then :
3849 else
3850 # Broken: fails on valid input.
3851 continue
3853 rm -f conftest.err conftest.$ac_ext
3855 # OK, works on sane cases. Now check whether nonexistent headers
3856 # can be detected and how.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3860 _ACEOF
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3862 # Broken: success on invalid input.
3863 continue
3864 else
3865 # Passes both tests.
3866 ac_preproc_ok=:
3867 break
3869 rm -f conftest.err conftest.$ac_ext
3871 done
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then :
3875 break
3878 done
3879 ac_cv_prog_CPP=$CPP
3882 CPP=$ac_cv_prog_CPP
3883 else
3884 ac_cv_prog_CPP=$CPP
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3887 $as_echo "$CPP" >&6; }
3888 ac_preproc_ok=false
3889 for ac_c_preproc_warn_flag in '' yes
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #ifdef __STDC__
3900 # include <limits.h>
3901 #else
3902 # include <assert.h>
3903 #endif
3904 Syntax error
3905 _ACEOF
3906 if ac_fn_c_try_cpp "$LINENO"; then :
3908 else
3909 # Broken: fails on valid input.
3910 continue
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if ac_fn_c_try_cpp "$LINENO"; then :
3921 # Broken: success on invalid input.
3922 continue
3923 else
3924 # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3928 rm -f conftest.err conftest.$ac_ext
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then :
3935 else
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3939 See \`config.log' for more details." "$LINENO" 5; }
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 ac_c_preproc_warn_flag=yes
3951 ac_libiberty_warn_cflags=
3952 save_CFLAGS="$CFLAGS"
3953 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
3954 -Wstrict-prototypes; do
3955 # Do the check with the no- prefix removed since gcc silently
3956 # accepts any -Wno-* option on purpose
3957 case $real_option in
3958 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
3959 *) option=$real_option ;;
3960 esac
3961 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3964 $as_echo_n "checking whether $CC supports $option... " >&6; }
3965 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 CFLAGS="$option"
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3973 main ()
3977 return 0;
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 eval "$as_acx_Woption=yes"
3982 else
3983 eval "$as_acx_Woption=no"
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 eval ac_res=\$$as_acx_Woption
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3990 $as_echo "$ac_res" >&6; }
3991 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
3992 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
3994 done
3995 CFLAGS="$save_CFLAGS"
3997 # Do the check with the no- prefix removed from the warning options
3998 # since gcc silently accepts any -Wno-* option on purpose
3999 if test "$GCC" = yes; then :
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
4001 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
4002 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 save_CFLAGS="$CFLAGS"
4006 CFLAGS="-pedantic "
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 acx_cv_prog_cc_pedantic_=yes
4020 else
4021 acx_cv_prog_cc_pedantic_=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 CFLAGS="$save_CFLAGS"
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
4027 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
4028 if test $acx_cv_prog_cc_pedantic_ = yes; then :
4029 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
4035 if test "x$CC" != xcc; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4037 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4040 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4042 set dummy $CC; ac_cc=`$as_echo "$2" |
4043 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4044 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 # Make sure it works both with $CC and with simple cc.
4059 # We do the test twice because some compilers refuse to overwrite an
4060 # existing .o file with -o, though they will create one.
4061 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4062 rm -f conftest2.*
4063 if { { case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; } &&
4073 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; };
4083 then
4084 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4085 if test "x$CC" != xcc; then
4086 # Test first that cc exists at all.
4087 if { ac_try='cc -c conftest.$ac_ext >&5'
4088 { { case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }; }; then
4098 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4099 rm -f conftest2.*
4100 if { { case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; } &&
4110 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; };
4120 then
4121 # cc works too.
4123 else
4124 # cc exists but doesn't like -o.
4125 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4129 else
4130 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4132 rm -f core conftest*
4135 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4142 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4146 # autoconf is lame and doesn't give us any substitution variable for this.
4147 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4148 NO_MINUS_C_MINUS_O=yes
4149 else
4150 OUTPUT_OPTION='-o $@'
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4156 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4157 if test "${ac_cv_c_const+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4164 main ()
4166 /* FIXME: Include the comments suggested by Paul. */
4167 #ifndef __cplusplus
4168 /* Ultrix mips cc rejects this. */
4169 typedef int charset[2];
4170 const charset cs;
4171 /* SunOS 4.1.1 cc rejects this. */
4172 char const *const *pcpcc;
4173 char **ppc;
4174 /* NEC SVR4.0.2 mips cc rejects this. */
4175 struct point {int x, y;};
4176 static struct point const zero = {0,0};
4177 /* AIX XL C 1.02.0.0 rejects this.
4178 It does not let you subtract one const X* pointer from another in
4179 an arm of an if-expression whose if-part is not a constant
4180 expression */
4181 const char *g = "string";
4182 pcpcc = &g + (g ? g-g : 0);
4183 /* HPUX 7.0 cc rejects these. */
4184 ++pcpcc;
4185 ppc = (char**) pcpcc;
4186 pcpcc = (char const *const *) ppc;
4187 { /* SCO 3.2v4 cc rejects this. */
4188 char *t;
4189 char const *s = 0 ? (char *) 0 : (char const *) 0;
4191 *t++ = 0;
4192 if (s) return 0;
4194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4195 int x[] = {25, 17};
4196 const int *foo = &x[0];
4197 ++foo;
4199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4200 typedef const int *iptr;
4201 iptr p = 0;
4202 ++p;
4204 { /* AIX XL C 1.02.0.0 rejects this saying
4205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4206 struct s { int j; const int *ap[3]; };
4207 struct s *b; b->j = 5;
4209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4210 const int foo = 10;
4211 if (!foo) return 0;
4213 return !cs[0] && !zero.x;
4214 #endif
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_c_const=yes
4222 else
4223 ac_cv_c_const=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4228 $as_echo "$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no; then
4231 $as_echo "#define const /**/" >>confdefs.h
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4236 $as_echo_n "checking for inline... " >&6; }
4237 if test "${ac_cv_c_inline+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_cv_c_inline=no
4241 for ac_kw in inline __inline__ __inline; do
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #ifndef __cplusplus
4245 typedef int foo_t;
4246 static $ac_kw foo_t static_foo () {return 0; }
4247 $ac_kw foo_t foo () {return 0; }
4248 #endif
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_c_inline=$ac_kw
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 test "$ac_cv_c_inline" != no && break
4256 done
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4260 $as_echo "$ac_cv_c_inline" >&6; }
4262 case $ac_cv_c_inline in
4263 inline | yes) ;;
4265 case $ac_cv_c_inline in
4266 no) ac_val=;;
4267 *) ac_val=$ac_cv_c_inline;;
4268 esac
4269 cat >>confdefs.h <<_ACEOF
4270 #ifndef __cplusplus
4271 #define inline $ac_val
4272 #endif
4273 _ACEOF
4275 esac
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if test "${ac_cv_path_GREP+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 else
4332 ac_cv_path_GREP=$GREP
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 else
4398 ac_cv_path_EGREP=$EGREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if test "${ac_cv_header_stdc+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430 else
4431 ac_cv_header_stdc=no
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <string.h>
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4445 else
4446 ac_cv_header_stdc=no
4448 rm -f conftest*
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdlib.h>
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4462 else
4463 ac_cv_header_stdc=no
4465 rm -f conftest*
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ctype.h>
4477 #include <stdlib.h>
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 #else
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487 #endif
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4491 main ()
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4500 _ACEOF
4501 if ac_fn_c_try_run "$LINENO"; then :
4503 else
4504 ac_cv_header_stdc=no
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523 do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4526 eval as_val=\$$as_ac_Header
4527 if test "x$as_val" = x""yes; then :
4528 cat >>confdefs.h <<_ACEOF
4529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 _ACEOF
4533 done
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4537 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4538 if test "${ac_cv_c_bigendian+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 ac_cv_c_bigendian=unknown
4542 # See if we're dealing with a universal compiler.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #ifndef __APPLE_CC__
4546 not a universal capable compiler
4547 #endif
4548 typedef int dummy;
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4553 # Check for potential -arch flags. It is not universal unless
4554 # there are at least two -arch flags with different values.
4555 ac_arch=
4556 ac_prev=
4557 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4558 if test -n "$ac_prev"; then
4559 case $ac_word in
4560 i?86 | x86_64 | ppc | ppc64)
4561 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4562 ac_arch=$ac_word
4563 else
4564 ac_cv_c_bigendian=universal
4565 break
4568 esac
4569 ac_prev=
4570 elif test "x$ac_word" = "x-arch"; then
4571 ac_prev=arch
4573 done
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 if test $ac_cv_c_bigendian = unknown; then
4577 # See if sys/param.h defines the BYTE_ORDER macro.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <sys/types.h>
4581 #include <sys/param.h>
4584 main ()
4586 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4587 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4588 && LITTLE_ENDIAN)
4589 bogus endian macros
4590 #endif
4593 return 0;
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 # It does; now see whether it defined to BIG_ENDIAN or not.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <sys/types.h>
4601 #include <sys/param.h>
4604 main ()
4606 #if BYTE_ORDER != BIG_ENDIAN
4607 not big endian
4608 #endif
4611 return 0;
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_cv_c_bigendian=yes
4616 else
4617 ac_cv_c_bigendian=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 if test $ac_cv_c_bigendian = unknown; then
4624 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <limits.h>
4630 main ()
4632 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4633 bogus endian macros
4634 #endif
4637 return 0;
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 # It does; now see whether it defined to _BIG_ENDIAN or not.
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <limits.h>
4647 main ()
4649 #ifndef _BIG_ENDIAN
4650 not big endian
4651 #endif
4654 return 0;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_c_bigendian=yes
4659 else
4660 ac_cv_c_bigendian=no
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $ac_cv_c_bigendian = unknown; then
4667 # Compile a test program.
4668 if test "$cross_compiling" = yes; then :
4669 # Try to guess by grepping values from an object file.
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 short int ascii_mm[] =
4673 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4674 short int ascii_ii[] =
4675 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4676 int use_ascii (int i) {
4677 return ascii_mm[i] + ascii_ii[i];
4679 short int ebcdic_ii[] =
4680 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4681 short int ebcdic_mm[] =
4682 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4683 int use_ebcdic (int i) {
4684 return ebcdic_mm[i] + ebcdic_ii[i];
4686 extern int foo;
4689 main ()
4691 return use_ascii (foo) == use_ebcdic (foo);
4693 return 0;
4695 _ACEOF
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4698 ac_cv_c_bigendian=yes
4700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4701 if test "$ac_cv_c_bigendian" = unknown; then
4702 ac_cv_c_bigendian=no
4703 else
4704 # finding both strings is unlikely to happen, but who knows?
4705 ac_cv_c_bigendian=unknown
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 $ac_includes_default
4715 main ()
4718 /* Are we little or big endian? From Harbison&Steele. */
4719 union
4721 long int l;
4722 char c[sizeof (long int)];
4723 } u;
4724 u.l = 1;
4725 return u.c[sizeof (long int) - 1] == 1;
4728 return 0;
4730 _ACEOF
4731 if ac_fn_c_try_run "$LINENO"; then :
4732 ac_cv_c_bigendian=no
4733 else
4734 ac_cv_c_bigendian=yes
4736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4737 conftest.$ac_objext conftest.beam conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4743 $as_echo "$ac_cv_c_bigendian" >&6; }
4744 case $ac_cv_c_bigendian in #(
4745 yes)
4746 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4747 ;; #(
4749 ;; #(
4750 universal)
4752 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4754 ;; #(
4756 as_fn_error "unknown endianness
4757 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4758 esac
4763 ac_config_headers="$ac_config_headers config.h:config.in"
4767 # Find a good install program. We prefer a C program (faster),
4768 # so one script is as good as another. But avoid the broken or
4769 # incompatible versions:
4770 # SysV /etc/install, /usr/sbin/install
4771 # SunOS /usr/etc/install
4772 # IRIX /sbin/install
4773 # AIX /bin/install
4774 # AmigaOS /C/install, which installs bootblocks on floppy discs
4775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4778 # OS/2's system install, which has a completely different semantic
4779 # ./install, which can be erroneously created by make from ./install.sh.
4780 # Reject install programs that cannot install multiple files.
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4783 if test -z "$INSTALL"; then
4784 if test "${ac_cv_path_install+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 # Account for people who put trailing slashes in PATH elements.
4793 case $as_dir/ in #((
4794 ./ | .// | /[cC]/* | \
4795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4797 /usr/ucb/* ) ;;
4799 # OSF1 and SCO ODT 3.0 have their own names for install.
4800 # Don't use installbsd from OSF since it installs stuff as root
4801 # by default.
4802 for ac_prog in ginstall scoinst install; do
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4805 if test $ac_prog = install &&
4806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4807 # AIX install. It has an incompatible calling convention.
4809 elif test $ac_prog = install &&
4810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811 # program-specific install script used by HP pwplus--don't use.
4813 else
4814 rm -rf conftest.one conftest.two conftest.dir
4815 echo one > conftest.one
4816 echo two > conftest.two
4817 mkdir conftest.dir
4818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4819 test -s conftest.one && test -s conftest.two &&
4820 test -s conftest.dir/conftest.one &&
4821 test -s conftest.dir/conftest.two
4822 then
4823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4824 break 3
4828 done
4829 done
4831 esac
4833 done
4834 IFS=$as_save_IFS
4836 rm -rf conftest.one conftest.two conftest.dir
4839 if test "${ac_cv_path_install+set}" = set; then
4840 INSTALL=$ac_cv_path_install
4841 else
4842 # As a last resort, use the slow shell script. Don't cache a
4843 # value for INSTALL within a source directory, because that will
4844 # break other packages using the cache if that directory is
4845 # removed, or if the value is a relative name.
4846 INSTALL=$ac_install_sh
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4850 $as_echo "$INSTALL" >&6; }
4852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4853 # It thinks the first close brace ends the variable substitution.
4854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4861 # Don't build the shared library for build.
4862 if [ -n "${with_build_subdir}" ]; then
4863 enable_shared=no
4866 frag=
4867 case "${host}" in
4868 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
4869 frag=mh-aix ;;
4870 *-*-cxux7*) frag=mh-cxux7 ;;
4871 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
4872 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
4873 i370-*-opened*) frag=mh-openedition ;;
4874 i[34567]86-*-windows*) frag=mh-windows ;;
4875 esac
4877 if [ -n "${frag}" ]; then
4878 frag=${libiberty_topdir}/libiberty/config/$frag
4885 case "${host}" in
4886 # PIC is the default on some targets or must not be used.
4887 *-*-darwin*)
4888 # For darwin, common symbols are not allowed in MH_DYLIB files
4889 case "${CFLAGS}" in
4890 # If we are using a compiler supporting mdynamic-no-pic
4891 # and the option has been tested as safe to add, then cancel
4892 # it here, since the code generated is incompatible with shared
4893 # libs.
4894 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
4895 *) PICFLAG=-fno-common ;;
4896 esac
4898 alpha*-dec-osf5*)
4899 # PIC is the default.
4901 hppa*64*-*-hpux*)
4902 # PIC is the default for 64-bit PA HP-UX.
4904 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4906 i[34567]86-*-mingw* | x86_64-*-mingw*)
4908 i[34567]86-*-interix[3-9]*)
4909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4910 # Instead, we relocate shared libraries at runtime.
4912 i[34567]86-*-nto-qnx*)
4913 # QNX uses GNU C++, but need to define -shared option too, otherwise
4914 # it will coredump.
4915 PICFLAG='-fPIC -shared'
4917 i[34567]86-pc-msdosdjgpp*)
4918 # DJGPP does not support shared libraries at all.
4920 ia64*-*-hpux*)
4921 # On IA64 HP-UX, PIC is the default but the pic flag
4922 # sets the default TLS model and affects inlining.
4923 PICFLAG=-fPIC
4925 mips-sgi-irix6*)
4926 # PIC is the default.
4928 rs6000-ibm-aix* | powerpc-ibm-aix*)
4929 # All AIX code is PIC.
4932 # Some targets support both -fPIC and -fpic, but prefer the latter.
4933 # FIXME: Why?
4934 i[34567]86-*-* | x86_64-*-*)
4935 PICFLAG=-fpic
4937 # FIXME: Override -fPIC default in libgcc only?
4938 sh-*-linux* | sh[2346lbe]*-*-linux*)
4939 PICFLAG=-fpic
4941 # FIXME: Simplify to sh*-*-netbsd*?
4942 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4943 sh64-*-netbsd* | sh64l*-*-netbsd*)
4944 PICFLAG=-fpic
4946 # Default to -fPIC unless specified otherwise.
4948 PICFLAG=-fPIC
4950 esac
4952 # If the user explicitly uses -fpic/-fPIC, keep that.
4953 case "${CFLAGS}" in
4954 *-fpic*)
4955 PICFLAG=-fpic
4957 *-fPIC*)
4958 PICFLAG=-fPIC
4960 esac
4963 # If they didn't specify --enable-shared, don't generate shared libs.
4964 case "${enable_shared}" in
4965 yes) shared=yes ;;
4966 no) shared=no ;;
4967 "") shared=no ;;
4968 *) shared=yes ;;
4969 esac
4971 # ...unless --enable-host-shared was passed from top-level config:
4972 if [ "${enable_host_shared}" = "yes" ]; then
4973 shared=yes
4976 if [ "${shared}" != "yes" ]; then
4977 PICFLAG=
4981 NOASANFLAG=
4982 case " ${CFLAGS} " in
4983 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
4984 esac
4987 echo "# Warning: this fragment is automatically generated" > temp-frag
4989 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
4990 echo "Appending ${frag} to xhost-mkfrag"
4991 echo "# Following fragment copied from ${frag}" >> temp-frag
4992 cat ${frag} >> temp-frag
4995 # record if we want to build shared libs.
4996 if [ "${shared}" = "yes" ]; then
4997 echo enable_shared = yes >> temp-frag
4998 else
4999 echo enable_shared = no >> temp-frag
5002 frag=xhost-mkfrag
5003 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
5005 host_makefile_frag=${frag}
5008 # It's OK to check for header files. Although the compiler may not be
5009 # able to link anything, it had better be able to at least compile
5010 # something.
5011 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
5012 do :
5013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
5015 eval as_val=\$$as_ac_Header
5016 if test "x$as_val" = x""yes; then :
5017 cat >>confdefs.h <<_ACEOF
5018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5022 done
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5025 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5026 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 #include <sys/types.h>
5032 #include <sys/wait.h>
5033 #ifndef WEXITSTATUS
5034 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5035 #endif
5036 #ifndef WIFEXITED
5037 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5038 #endif
5041 main ()
5043 int s;
5044 wait (&s);
5045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5047 return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_header_sys_wait_h=yes
5052 else
5053 ac_cv_header_sys_wait_h=no
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5058 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5059 if test $ac_cv_header_sys_wait_h = yes; then
5061 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5066 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5067 if test "${ac_cv_header_time+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 #include <sys/types.h>
5073 #include <sys/time.h>
5074 #include <time.h>
5077 main ()
5079 if ((struct tm *) 0)
5080 return 0;
5082 return 0;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 ac_cv_header_time=yes
5087 else
5088 ac_cv_header_time=no
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5093 $as_echo "$ac_cv_header_time" >&6; }
5094 if test $ac_cv_header_time = yes; then
5096 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
5102 $as_echo_n "checking whether errno must be declared... " >&6; }
5103 if test "${libiberty_cv_declare_errno+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <errno.h>
5110 main ()
5112 int x = errno;
5114 return 0;
5116 _ACEOF
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118 libiberty_cv_declare_errno=no
5119 else
5120 libiberty_cv_declare_errno=yes
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
5125 $as_echo "$libiberty_cv_declare_errno" >&6; }
5126 if test $libiberty_cv_declare_errno = yes
5127 then
5128 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
5133 # Determine sizes of some types.
5134 # The cast to long int works around a bug in the HP C Compiler
5135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5137 # This bug is HP SR number 8606223364.
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5139 $as_echo_n "checking size of int... " >&6; }
5140 if test "${ac_cv_sizeof_int+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5145 else
5146 if test "$ac_cv_type_int" = yes; then
5147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5149 { as_fn_set_status 77
5150 as_fn_error "cannot compute sizeof (int)
5151 See \`config.log' for more details." "$LINENO" 5; }; }
5152 else
5153 ac_cv_sizeof_int=0
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5159 $as_echo "$ac_cv_sizeof_int" >&6; }
5163 cat >>confdefs.h <<_ACEOF
5164 #define SIZEOF_INT $ac_cv_sizeof_int
5165 _ACEOF
5168 # The cast to long int works around a bug in the HP C Compiler
5169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5171 # This bug is HP SR number 8606223364.
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5173 $as_echo_n "checking size of long... " >&6; }
5174 if test "${ac_cv_sizeof_long+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5179 else
5180 if test "$ac_cv_type_long" = yes; then
5181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 { as_fn_set_status 77
5184 as_fn_error "cannot compute sizeof (long)
5185 See \`config.log' for more details." "$LINENO" 5; }; }
5186 else
5187 ac_cv_sizeof_long=0
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5193 $as_echo "$ac_cv_sizeof_long" >&6; }
5197 cat >>confdefs.h <<_ACEOF
5198 #define SIZEOF_LONG $ac_cv_sizeof_long
5199 _ACEOF
5203 # Check for presense of long long
5204 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5205 if test "x$ac_cv_type_long_long" = x""yes; then :
5207 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5208 # The cast to long int works around a bug in the HP C Compiler
5209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5211 # This bug is HP SR number 8606223364.
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5213 $as_echo_n "checking size of long long... " >&6; }
5214 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5219 else
5220 if test "$ac_cv_type_long_long" = yes; then
5221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 { as_fn_set_status 77
5224 as_fn_error "cannot compute sizeof (long long)
5225 See \`config.log' for more details." "$LINENO" 5; }; }
5226 else
5227 ac_cv_sizeof_long_long=0
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5233 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5237 cat >>confdefs.h <<_ACEOF
5238 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5239 _ACEOF
5245 # Look for a 64-bit type.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
5247 $as_echo_n "checking for a 64-bit type... " >&6; }
5248 if test "${liberty_cv_uint64+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #ifdef HAVE_STDINT_H
5254 #include <stdint.h>
5255 #endif
5257 main ()
5259 extern uint64_t foo;
5261 return 0;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 liberty_cv_uint64=uint64_t
5266 else
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 #ifdef HAVE_LIMITS_H
5270 #include <limits.h>
5271 #endif
5272 #ifndef CHAR_BIT
5273 #define CHAR_BIT 8
5274 #endif
5276 main ()
5278 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 liberty_cv_uint64="unsigned long"
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #ifdef HAVE_LIMITS_H
5289 #include <limits.h>
5290 #endif
5291 #ifndef CHAR_BIT
5292 #define CHAR_BIT 8
5293 #endif
5295 main ()
5297 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 liberty_cv_uint64="unsigned long long"
5304 else
5305 liberty_cv_uint64=none
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
5315 $as_echo "$liberty_cv_uint64" >&6; }
5316 if test "$liberty_cv_uint64" != none; then
5318 cat >>confdefs.h <<_ACEOF
5319 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5320 _ACEOF
5325 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5326 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5328 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5330 else
5331 for ac_type in 'int' 'long int' 'long long int'; do
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 $ac_includes_default
5336 main ()
5338 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5339 test_array [0] = 0
5342 return 0;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5347 cat >>confdefs.h <<_ACEOF
5348 #define intptr_t $ac_type
5349 _ACEOF
5351 ac_type=
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 test -z "$ac_type" && break
5355 done
5360 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5361 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5363 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5365 else
5366 for ac_type in 'unsigned int' 'unsigned long int' \
5367 'unsigned long long int'; do
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 $ac_includes_default
5372 main ()
5374 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5375 test_array [0] = 0
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define uintptr_t $ac_type
5385 _ACEOF
5387 ac_type=
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 test -z "$ac_type" && break
5391 done
5395 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5396 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5398 else
5400 cat >>confdefs.h <<_ACEOF
5401 #define ssize_t int
5402 _ACEOF
5407 # Given the above check, we always have uintptr_t or a fallback
5408 # definition. So define HAVE_UINTPTR_T in case any imported code
5409 # relies on it.
5411 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5414 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5415 if test "x$ac_cv_type_pid_t" = x""yes; then :
5417 else
5419 cat >>confdefs.h <<_ACEOF
5420 #define pid_t int
5421 _ACEOF
5426 # This is the list of functions which libiberty will provide if they
5427 # are not available on the host.
5429 funcs="asprintf"
5430 funcs="$funcs atexit"
5431 funcs="$funcs basename"
5432 funcs="$funcs bcmp"
5433 funcs="$funcs bcopy"
5434 funcs="$funcs bsearch"
5435 funcs="$funcs bzero"
5436 funcs="$funcs calloc"
5437 funcs="$funcs clock"
5438 funcs="$funcs ffs"
5439 funcs="$funcs getcwd"
5440 funcs="$funcs getpagesize"
5441 funcs="$funcs gettimeofday"
5442 funcs="$funcs index"
5443 funcs="$funcs insque"
5444 funcs="$funcs memchr"
5445 funcs="$funcs memcmp"
5446 funcs="$funcs memcpy"
5447 funcs="$funcs memmem"
5448 funcs="$funcs memmove"
5449 funcs="$funcs mempcpy"
5450 funcs="$funcs memset"
5451 funcs="$funcs mkstemps"
5452 funcs="$funcs putenv"
5453 funcs="$funcs random"
5454 funcs="$funcs rename"
5455 funcs="$funcs rindex"
5456 funcs="$funcs setenv"
5457 funcs="$funcs snprintf"
5458 funcs="$funcs sigsetmask"
5459 funcs="$funcs stpcpy"
5460 funcs="$funcs stpncpy"
5461 funcs="$funcs strcasecmp"
5462 funcs="$funcs strchr"
5463 funcs="$funcs strdup"
5464 funcs="$funcs strncasecmp"
5465 funcs="$funcs strndup"
5466 funcs="$funcs strnlen"
5467 funcs="$funcs strrchr"
5468 funcs="$funcs strstr"
5469 funcs="$funcs strtod"
5470 funcs="$funcs strtol"
5471 funcs="$funcs strtoul"
5472 funcs="$funcs strtoll"
5473 funcs="$funcs strtoull"
5474 funcs="$funcs strverscmp"
5475 funcs="$funcs tmpnam"
5476 funcs="$funcs vasprintf"
5477 funcs="$funcs vfprintf"
5478 funcs="$funcs vprintf"
5479 funcs="$funcs vsnprintf"
5480 funcs="$funcs vsprintf"
5481 funcs="$funcs waitpid"
5482 funcs="$funcs setproctitle"
5484 # Also in the old function.def file: alloca, vfork, getopt.
5486 vars="sys_errlist sys_nerr sys_siglist"
5488 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
5489 getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
5490 realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
5491 sysmp table times wait3 wait4"
5493 # These are neither executed nor required, but they help keep
5494 # autoheader happy without adding a bunch of text to acconfig.h.
5495 if test "x" = "y"; then
5496 for ac_func in asprintf atexit \
5497 basename bcmp bcopy bsearch bzero \
5498 calloc canonicalize_file_name clock \
5499 dup3 \
5500 ffs __fsetlocking \
5501 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
5502 index insque \
5503 memchr memcmp memcpy memmem memmove memset mkstemps \
5504 on_exit \
5505 psignal pstat_getdynamic pstat_getstatic putenv \
5506 random realpath rename rindex \
5507 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
5508 stpcpy stpncpy strcasecmp strchr strdup \
5509 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
5510 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
5511 table times tmpnam \
5512 vasprintf vfprintf vprintf vsprintf \
5513 wait3 wait4 waitpid
5514 do :
5515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5517 eval as_val=\$$as_ac_var
5518 if test "x$as_val" = x""yes; then :
5519 cat >>confdefs.h <<_ACEOF
5520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5521 _ACEOF
5524 done
5526 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5527 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5528 ac_have_decl=1
5529 else
5530 ac_have_decl=0
5533 cat >>confdefs.h <<_ACEOF
5534 #define HAVE_DECL_BASENAME $ac_have_decl
5535 _ACEOF
5536 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
5537 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
5538 ac_have_decl=1
5539 else
5540 ac_have_decl=0
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_DECL_FFS $ac_have_decl
5545 _ACEOF
5546 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5547 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5548 ac_have_decl=1
5549 else
5550 ac_have_decl=0
5553 cat >>confdefs.h <<_ACEOF
5554 #define HAVE_DECL_ASPRINTF $ac_have_decl
5555 _ACEOF
5556 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5557 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5558 ac_have_decl=1
5559 else
5560 ac_have_decl=0
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_DECL_VASPRINTF $ac_have_decl
5565 _ACEOF
5566 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
5567 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
5568 ac_have_decl=1
5569 else
5570 ac_have_decl=0
5573 cat >>confdefs.h <<_ACEOF
5574 #define HAVE_DECL_SNPRINTF $ac_have_decl
5575 _ACEOF
5576 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5577 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5578 ac_have_decl=1
5579 else
5580 ac_have_decl=0
5583 cat >>confdefs.h <<_ACEOF
5584 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5585 _ACEOF
5586 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
5587 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
5588 ac_have_decl=1
5589 else
5590 ac_have_decl=0
5593 cat >>confdefs.h <<_ACEOF
5594 #define HAVE_DECL_STRTOL $ac_have_decl
5595 _ACEOF
5596 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
5597 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
5598 ac_have_decl=1
5599 else
5600 ac_have_decl=0
5603 cat >>confdefs.h <<_ACEOF
5604 #define HAVE_DECL_STRTOUL $ac_have_decl
5605 _ACEOF
5606 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
5607 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
5608 ac_have_decl=1
5609 else
5610 ac_have_decl=0
5613 cat >>confdefs.h <<_ACEOF
5614 #define HAVE_DECL_STRTOLL $ac_have_decl
5615 _ACEOF
5616 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
5617 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
5618 ac_have_decl=1
5619 else
5620 ac_have_decl=0
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_DECL_STRTOULL $ac_have_decl
5625 _ACEOF
5628 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
5631 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
5634 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
5638 # For each of these functions, if the host does not provide the
5639 # function we want to put FN.o in LIBOBJS, and if the host does
5640 # provide the function, we want to define HAVE_FN in config.h.
5642 setobjs=
5643 CHECK=
5644 if test -n "${with_target_subdir}"; then
5646 # We are being configured as a target library. AC_REPLACE_FUNCS
5647 # may not work correctly, because the compiler may not be able to
5648 # link executables. Note that we may still be being configured
5649 # native.
5651 # If we are being configured for newlib, we know which functions
5652 # newlib provide and which ones we will be expected to provide.
5654 if test "x${with_newlib}" = "xyes"; then
5655 case " $LIBOBJS " in
5656 *" asprintf.$ac_objext "* ) ;;
5657 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5659 esac
5661 case " $LIBOBJS " in
5662 *" basename.$ac_objext "* ) ;;
5663 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
5665 esac
5667 case " $LIBOBJS " in
5668 *" insque.$ac_objext "* ) ;;
5669 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
5671 esac
5673 case " $LIBOBJS " in
5674 *" random.$ac_objext "* ) ;;
5675 *) LIBOBJS="$LIBOBJS random.$ac_objext"
5677 esac
5679 case " $LIBOBJS " in
5680 *" strdup.$ac_objext "* ) ;;
5681 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
5683 esac
5685 case " $LIBOBJS " in
5686 *" vasprintf.$ac_objext "* ) ;;
5687 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
5689 esac
5692 for f in $funcs; do
5693 case "$f" in
5694 asprintf | basename | insque | random | strdup | vasprintf)
5697 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5698 cat >>confdefs.h <<_ACEOF
5699 #define $n 1
5700 _ACEOF
5703 esac
5704 done
5706 # newlib doesnt provide any of the variables in $vars, so we
5707 # dont have to check them here.
5709 # Of the functions in $checkfuncs, newlib only has strerror.
5710 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
5713 setobjs=yes
5717 # If we are being configured for Mingw, we know which functions
5718 # Mingw provides and which ones we will be expected to provide.
5720 case "${host}" in
5721 *-*-mingw*)
5722 case " $LIBOBJS " in
5723 *" asprintf.$ac_objext "* ) ;;
5724 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5726 esac
5728 case " $LIBOBJS " in
5729 *" basename.$ac_objext "* ) ;;
5730 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
5732 esac
5734 case " $LIBOBJS " in
5735 *" bcmp.$ac_objext "* ) ;;
5736 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
5738 esac
5740 case " $LIBOBJS " in
5741 *" bcopy.$ac_objext "* ) ;;
5742 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
5744 esac
5746 case " $LIBOBJS " in
5747 *" bzero.$ac_objext "* ) ;;
5748 *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
5750 esac
5752 case " $LIBOBJS " in
5753 *" clock.$ac_objext "* ) ;;
5754 *) LIBOBJS="$LIBOBJS clock.$ac_objext"
5756 esac
5758 case " $LIBOBJS " in
5759 *" ffs.$ac_objext "* ) ;;
5760 *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
5762 esac
5764 case " $LIBOBJS " in
5765 *" getpagesize.$ac_objext "* ) ;;
5766 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
5768 esac
5770 case " $LIBOBJS " in
5771 *" index.$ac_objext "* ) ;;
5772 *) LIBOBJS="$LIBOBJS index.$ac_objext"
5774 esac
5776 case " $LIBOBJS " in
5777 *" insque.$ac_objext "* ) ;;
5778 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
5780 esac
5782 case " $LIBOBJS " in
5783 *" mempcpy.$ac_objext "* ) ;;
5784 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
5786 esac
5788 case " $LIBOBJS " in
5789 *" mkstemps.$ac_objext "* ) ;;
5790 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
5792 esac
5794 case " $LIBOBJS " in
5795 *" random.$ac_objext "* ) ;;
5796 *) LIBOBJS="$LIBOBJS random.$ac_objext"
5798 esac
5800 case " $LIBOBJS " in
5801 *" rindex.$ac_objext "* ) ;;
5802 *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
5804 esac
5806 case " $LIBOBJS " in
5807 *" sigsetmask.$ac_objext "* ) ;;
5808 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
5810 esac
5812 case " $LIBOBJS " in
5813 *" stpcpy.$ac_objext "* ) ;;
5814 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
5816 esac
5818 case " $LIBOBJS " in
5819 *" stpncpy.$ac_objext "* ) ;;
5820 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
5822 esac
5824 case " $LIBOBJS " in
5825 *" strndup.$ac_objext "* ) ;;
5826 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
5828 esac
5830 case " $LIBOBJS " in
5831 *" strnlen.$ac_objext "* ) ;;
5832 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
5834 esac
5836 case " $LIBOBJS " in
5837 *" strverscmp.$ac_objext "* ) ;;
5838 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
5840 esac
5842 case " $LIBOBJS " in
5843 *" vasprintf.$ac_objext "* ) ;;
5844 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
5846 esac
5848 case " $LIBOBJS " in
5849 *" waitpid.$ac_objext "* ) ;;
5850 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
5852 esac
5855 for f in $funcs; do
5856 case "$f" in
5857 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
5860 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >>confdefs.h <<_ACEOF
5862 #define $n 1
5863 _ACEOF
5866 esac
5867 done
5869 # Mingw doesnt provide any of the variables in $vars, so we
5870 # dont have to check them here.
5872 # Of the functions in $checkfuncs, Mingw only has strerror.
5873 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
5876 setobjs=yes
5879 *-*-msdosdjgpp)
5880 case " $LIBOBJS " in
5881 *" vasprintf.$ac_objext "* ) ;;
5882 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
5884 esac
5886 case " $LIBOBJS " in
5887 *" vsnprintf.$ac_objext "* ) ;;
5888 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
5890 esac
5892 case " $LIBOBJS " in
5893 *" snprintf.$ac_objext "* ) ;;
5894 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5896 esac
5898 case " $LIBOBJS " in
5899 *" asprintf.$ac_objext "* ) ;;
5900 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5902 esac
5905 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
5906 getcwd getpagesize getrusage gettimeofday \
5907 index insque memchr memcmp memcpy memmove memset psignal \
5908 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
5909 strchr strdup strerror strncasecmp strrchr strstr strtod \
5910 strtol strtoul sysconf times tmpnam vfprintf vprintf \
5911 vsprintf waitpid
5913 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5914 cat >>confdefs.h <<_ACEOF
5915 #define $n 1
5916 _ACEOF
5918 done
5921 setobjs=yes
5924 esac
5926 else
5928 # Not a target library, so we set things up to run the test suite.
5929 CHECK=really-check
5936 case "${host}" in
5937 *-*-cygwin* | *-*-mingw*)
5938 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
5940 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
5943 esac
5945 if test -z "${setobjs}"; then
5946 case "${host}" in
5948 *-*-vxworks*)
5949 # Handle VxWorks configuration specially, since on VxWorks the
5950 # libraries are actually on the target board, not in the file
5951 # system.
5952 case " $LIBOBJS " in
5953 *" basename.$ac_objext "* ) ;;
5954 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
5956 esac
5958 case " $LIBOBJS " in
5959 *" getpagesize.$ac_objext "* ) ;;
5960 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
5962 esac
5964 case " $LIBOBJS " in
5965 *" insque.$ac_objext "* ) ;;
5966 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
5968 esac
5970 case " $LIBOBJS " in
5971 *" random.$ac_objext "* ) ;;
5972 *) LIBOBJS="$LIBOBJS random.$ac_objext"
5974 esac
5976 case " $LIBOBJS " in
5977 *" strcasecmp.$ac_objext "* ) ;;
5978 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
5980 esac
5982 case " $LIBOBJS " in
5983 *" strncasecmp.$ac_objext "* ) ;;
5984 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
5986 esac
5988 case " $LIBOBJS " in
5989 *" strdup.$ac_objext "* ) ;;
5990 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
5992 esac
5994 case " $LIBOBJS " in
5995 *" vfork.$ac_objext "* ) ;;
5996 *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
5998 esac
6000 case " $LIBOBJS " in
6001 *" waitpid.$ac_objext "* ) ;;
6002 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
6004 esac
6006 case " $LIBOBJS " in
6007 *" vasprintf.$ac_objext "* ) ;;
6008 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
6010 esac
6012 for f in $funcs; do
6013 case "$f" in
6014 basename | getpagesize | insque | random | strcasecmp)
6016 strncasecmp | strdup | vfork | waitpid | vasprintf)
6019 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >>confdefs.h <<_ACEOF
6021 #define $n 1
6022 _ACEOF
6025 esac
6026 done
6028 # VxWorks doesn't provide any of the variables in $vars, so we
6029 # don't have to check them here.
6031 # Of the functions in $checkfuncs, VxWorks only has strerror.
6032 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6035 setobjs=yes
6038 esac
6041 if test -z "${setobjs}"; then
6043 case "${host}" in
6045 *-*-mingw32*)
6046 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6047 # macros, so the test below won't find them.
6048 libiberty_cv_var_sys_nerr=yes
6049 libiberty_cv_var_sys_errlist=yes
6052 *-*-msdosdjgpp*)
6053 # vfork and fork are stubs.
6054 ac_cv_func_vfork_works=no
6057 *-*-uwin*)
6058 # Under some versions of uwin, vfork is notoriously buggy and the test
6059 # can hang configure; on other versions, vfork exists just as a stub.
6060 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6061 ac_cv_func_vfork_works=no
6062 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6063 # macros (actually, these are imported from a DLL, but the end effect
6064 # is the same), so the test below won't find them.
6065 libiberty_cv_var_sys_nerr=yes
6066 libiberty_cv_var_sys_errlist=yes
6069 *-*-*vms*)
6070 # Under VMS, vfork works very different than on Unix. The standard test
6071 # won't work, and it isn't easily adaptable. It makes more sense to
6072 # just force it.
6073 ac_cv_func_vfork_works=yes
6076 esac
6078 # We haven't set the list of objects yet. Use the standard autoconf
6079 # tests. This will only work if the compiler works.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6081 $as_echo_n "checking for library containing strerror... " >&6; }
6082 if test "${ac_cv_search_strerror+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 ac_func_search_save_LIBS=$LIBS
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6089 /* Override any GCC internal prototype to avoid an error.
6090 Use char because int might match the return type of a GCC
6091 builtin and then its argument prototype would still apply. */
6092 #ifdef __cplusplus
6093 extern "C"
6094 #endif
6095 char strerror ();
6097 main ()
6099 return strerror ();
6101 return 0;
6103 _ACEOF
6104 for ac_lib in '' cposix; do
6105 if test -z "$ac_lib"; then
6106 ac_res="none required"
6107 else
6108 ac_res=-l$ac_lib
6109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6111 if test x$gcc_no_link = xyes; then
6112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 ac_cv_search_strerror=$ac_res
6117 rm -f core conftest.err conftest.$ac_objext \
6118 conftest$ac_exeext
6119 if test "${ac_cv_search_strerror+set}" = set; then :
6120 break
6122 done
6123 if test "${ac_cv_search_strerror+set}" = set; then :
6125 else
6126 ac_cv_search_strerror=no
6128 rm conftest.$ac_ext
6129 LIBS=$ac_func_search_save_LIBS
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6132 $as_echo "$ac_cv_search_strerror" >&6; }
6133 ac_res=$ac_cv_search_strerror
6134 if test "$ac_res" != no; then :
6135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6139 for ac_func in $funcs
6140 do :
6141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6143 eval as_val=\$$as_ac_var
6144 if test "x$as_val" = x""yes; then :
6145 cat >>confdefs.h <<_ACEOF
6146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6147 _ACEOF
6149 else
6150 case " $LIBOBJS " in
6151 *" $ac_func.$ac_objext "* ) ;;
6152 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6154 esac
6157 done
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
6161 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
6162 if test "${ac_cv_os_cray+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #if defined(CRAY) && ! defined(CRAY2)
6168 webecray
6169 #else
6170 wenotbecray
6171 #endif
6173 _ACEOF
6174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6175 $EGREP "webecray" >/dev/null 2>&1; then :
6176 ac_cv_os_cray=yes
6177 else
6178 ac_cv_os_cray=no
6180 rm -f conftest*
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6184 $as_echo "$ac_cv_os_cray" >&6; }
6185 if test $ac_cv_os_cray = yes; then
6186 for ac_func in _getb67 GETB67 getb67; do
6187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6189 eval as_val=\$$as_ac_var
6190 if test "x$as_val" = x""yes; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define CRAY_STACKSEG_END $ac_func
6194 _ACEOF
6195 break
6198 done
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6202 $as_echo_n "checking stack direction for C alloca... " >&6; }
6203 if test "${ac_cv_c_stack_direction+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test "$cross_compiling" = yes; then :
6207 ac_cv_c_stack_direction=0
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 find_stack_direction ()
6213 static char *addr = 0;
6214 auto char dummy;
6215 if (addr == 0)
6217 addr = &dummy;
6218 return find_stack_direction ();
6220 else
6221 return (&dummy > addr) ? 1 : -1;
6223 main ()
6225 exit (find_stack_direction() < 0);
6227 _ACEOF
6228 if ac_fn_c_try_run "$LINENO"; then :
6229 ac_cv_c_stack_direction=1
6230 else
6231 ac_cv_c_stack_direction=-1
6233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6234 conftest.$ac_objext conftest.beam conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6239 $as_echo "$ac_cv_c_stack_direction" >&6; }
6241 cat >>confdefs.h <<_ACEOF
6242 #define STACK_DIRECTION $ac_cv_c_stack_direction
6243 _ACEOF
6246 for ac_header in vfork.h
6247 do :
6248 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
6249 if test "x$ac_cv_header_vfork_h" = x""yes; then :
6250 cat >>confdefs.h <<_ACEOF
6251 #define HAVE_VFORK_H 1
6252 _ACEOF
6255 done
6257 for ac_func in fork vfork
6258 do :
6259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6261 eval as_val=\$$as_ac_var
6262 if test "x$as_val" = x""yes; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6265 _ACEOF
6268 done
6270 if test "x$ac_cv_func_fork" = xyes; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6272 $as_echo_n "checking for working fork... " >&6; }
6273 if test "${ac_cv_func_fork_works+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if test "$cross_compiling" = yes; then :
6277 ac_cv_func_fork_works=cross
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 $ac_includes_default
6283 main ()
6286 /* By Ruediger Kuhlmann. */
6287 return fork () < 0;
6290 return 0;
6292 _ACEOF
6293 if ac_fn_c_try_run "$LINENO"; then :
6294 ac_cv_func_fork_works=yes
6295 else
6296 ac_cv_func_fork_works=no
6298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6299 conftest.$ac_objext conftest.beam conftest.$ac_ext
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6304 $as_echo "$ac_cv_func_fork_works" >&6; }
6306 else
6307 ac_cv_func_fork_works=$ac_cv_func_fork
6309 if test "x$ac_cv_func_fork_works" = xcross; then
6310 case $host in
6311 *-*-amigaos* | *-*-msdosdjgpp*)
6312 # Override, as these systems have only a dummy fork() stub
6313 ac_cv_func_fork_works=no
6316 ac_cv_func_fork_works=yes
6318 esac
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6320 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6322 ac_cv_func_vfork_works=$ac_cv_func_vfork
6323 if test "x$ac_cv_func_vfork" = xyes; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6325 $as_echo_n "checking for working vfork... " >&6; }
6326 if test "${ac_cv_func_vfork_works+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test "$cross_compiling" = yes; then :
6330 ac_cv_func_vfork_works=cross
6331 else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 /* Thanks to Paul Eggert for this test. */
6335 $ac_includes_default
6336 #include <sys/wait.h>
6337 #ifdef HAVE_VFORK_H
6338 # include <vfork.h>
6339 #endif
6340 /* On some sparc systems, changes by the child to local and incoming
6341 argument registers are propagated back to the parent. The compiler
6342 is told about this with #include <vfork.h>, but some compilers
6343 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6344 static variable whose address is put into a register that is
6345 clobbered by the vfork. */
6346 static void
6347 #ifdef __cplusplus
6348 sparc_address_test (int arg)
6349 # else
6350 sparc_address_test (arg) int arg;
6351 #endif
6353 static pid_t child;
6354 if (!child) {
6355 child = vfork ();
6356 if (child < 0) {
6357 perror ("vfork");
6358 _exit(2);
6360 if (!child) {
6361 arg = getpid();
6362 write(-1, "", 0);
6363 _exit (arg);
6369 main ()
6371 pid_t parent = getpid ();
6372 pid_t child;
6374 sparc_address_test (0);
6376 child = vfork ();
6378 if (child == 0) {
6379 /* Here is another test for sparc vfork register problems. This
6380 test uses lots of local variables, at least as many local
6381 variables as main has allocated so far including compiler
6382 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6383 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6384 reuse the register of parent for one of the local variables,
6385 since it will think that parent can't possibly be used any more
6386 in this routine. Assigning to the local variable will thus
6387 munge parent in the parent process. */
6388 pid_t
6389 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6390 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6391 /* Convince the compiler that p..p7 are live; otherwise, it might
6392 use the same hardware register for all 8 local variables. */
6393 if (p != p1 || p != p2 || p != p3 || p != p4
6394 || p != p5 || p != p6 || p != p7)
6395 _exit(1);
6397 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6398 from child file descriptors. If the child closes a descriptor
6399 before it execs or exits, this munges the parent's descriptor
6400 as well. Test for this by closing stdout in the child. */
6401 _exit(close(fileno(stdout)) != 0);
6402 } else {
6403 int status;
6404 struct stat st;
6406 while (wait(&status) != child)
6408 return (
6409 /* Was there some problem with vforking? */
6410 child < 0
6412 /* Did the child fail? (This shouldn't happen.) */
6413 || status
6415 /* Did the vfork/compiler bug occur? */
6416 || parent != getpid()
6418 /* Did the file descriptor bug occur? */
6419 || fstat(fileno(stdout), &st) != 0
6423 _ACEOF
6424 if ac_fn_c_try_run "$LINENO"; then :
6425 ac_cv_func_vfork_works=yes
6426 else
6427 ac_cv_func_vfork_works=no
6429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6430 conftest.$ac_objext conftest.beam conftest.$ac_ext
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6435 $as_echo "$ac_cv_func_vfork_works" >&6; }
6438 if test "x$ac_cv_func_fork_works" = xcross; then
6439 ac_cv_func_vfork_works=$ac_cv_func_vfork
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6441 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6444 if test "x$ac_cv_func_vfork_works" = xyes; then
6446 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6448 else
6450 $as_echo "#define vfork fork" >>confdefs.h
6453 if test "x$ac_cv_func_fork_works" = xyes; then
6455 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6459 if test $ac_cv_func_vfork_works = no; then
6460 case " $LIBOBJS " in
6461 *" vfork.$ac_objext "* ) ;;
6462 *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
6464 esac
6467 # We only need _doprnt if we might use it to implement v*printf.
6468 if test $ac_cv_func_vprintf != yes \
6469 || test $ac_cv_func_vfprintf != yes \
6470 || test $ac_cv_func_vsprintf != yes; then
6471 for ac_func in _doprnt
6472 do :
6473 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6474 if test "x$ac_cv_func__doprnt" = x""yes; then :
6475 cat >>confdefs.h <<_ACEOF
6476 #define HAVE__DOPRNT 1
6477 _ACEOF
6479 else
6480 case " $LIBOBJS " in
6481 *" $ac_func.$ac_objext "* ) ;;
6482 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6484 esac
6487 done
6490 else
6491 for ac_func in _doprnt
6492 do :
6493 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6494 if test "x$ac_cv_func__doprnt" = x""yes; then :
6495 cat >>confdefs.h <<_ACEOF
6496 #define HAVE__DOPRNT 1
6497 _ACEOF
6500 done
6504 for v in $vars; do
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
6506 $as_echo_n "checking for $v... " >&6; }
6507 if { as_var=libiberty_cv_var_$v; eval "test \"\${$as_var+set}\" = set"; }; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test x$gcc_no_link = xyes; then
6511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 int *p;
6517 main ()
6519 extern int $v []; p = $v;
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_link "$LINENO"; then :
6525 eval "libiberty_cv_var_$v=yes"
6526 else
6527 eval "libiberty_cv_var_$v=no"
6529 rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6533 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535 $as_echo "yes" >&6; }
6536 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6537 cat >>confdefs.h <<_ACEOF
6538 #define $n 1
6539 _ACEOF
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6545 done
6547 # special check for _system_configuration because AIX <4.3.2 do not
6548 # contain the `physmem' member.
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
6550 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #include <sys/systemcfg.h>
6555 main ()
6557 double x = _system_configuration.physmem;
6559 return 0;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6564 $as_echo "yes" >&6; }
6566 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 for ac_func in $checkfuncs
6575 do :
6576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6578 eval as_val=\$$as_ac_var
6579 if test "x$as_val" = x""yes; then :
6580 cat >>confdefs.h <<_ACEOF
6581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6582 _ACEOF
6585 done
6587 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
6588 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6589 ac_have_decl=1
6590 else
6591 ac_have_decl=0
6594 cat >>confdefs.h <<_ACEOF
6595 #define HAVE_DECL_BASENAME $ac_have_decl
6596 _ACEOF
6597 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6598 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6599 ac_have_decl=1
6600 else
6601 ac_have_decl=0
6604 cat >>confdefs.h <<_ACEOF
6605 #define HAVE_DECL_FFS $ac_have_decl
6606 _ACEOF
6607 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6608 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6609 ac_have_decl=1
6610 else
6611 ac_have_decl=0
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_DECL_ASPRINTF $ac_have_decl
6616 _ACEOF
6617 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6618 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6619 ac_have_decl=1
6620 else
6621 ac_have_decl=0
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_DECL_VASPRINTF $ac_have_decl
6626 _ACEOF
6627 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6628 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6629 ac_have_decl=1
6630 else
6631 ac_have_decl=0
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_DECL_SNPRINTF $ac_have_decl
6636 _ACEOF
6637 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6638 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6639 ac_have_decl=1
6640 else
6641 ac_have_decl=0
6644 cat >>confdefs.h <<_ACEOF
6645 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6646 _ACEOF
6648 ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
6649 if test "x$ac_cv_have_decl_calloc" = x""yes; then :
6650 ac_have_decl=1
6651 else
6652 ac_have_decl=0
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_DECL_CALLOC $ac_have_decl
6657 _ACEOF
6658 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
6659 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
6660 ac_have_decl=1
6661 else
6662 ac_have_decl=0
6665 cat >>confdefs.h <<_ACEOF
6666 #define HAVE_DECL_GETENV $ac_have_decl
6667 _ACEOF
6668 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6669 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
6670 ac_have_decl=1
6671 else
6672 ac_have_decl=0
6675 cat >>confdefs.h <<_ACEOF
6676 #define HAVE_DECL_GETOPT $ac_have_decl
6677 _ACEOF
6678 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
6679 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
6680 ac_have_decl=1
6681 else
6682 ac_have_decl=0
6685 cat >>confdefs.h <<_ACEOF
6686 #define HAVE_DECL_MALLOC $ac_have_decl
6687 _ACEOF
6688 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
6689 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
6690 ac_have_decl=1
6691 else
6692 ac_have_decl=0
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_DECL_REALLOC $ac_have_decl
6697 _ACEOF
6698 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
6699 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
6700 ac_have_decl=1
6701 else
6702 ac_have_decl=0
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_DECL_SBRK $ac_have_decl
6707 _ACEOF
6709 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6710 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
6711 ac_have_decl=1
6712 else
6713 ac_have_decl=0
6716 cat >>confdefs.h <<_ACEOF
6717 #define HAVE_DECL_STRTOL $ac_have_decl
6718 _ACEOF
6719 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6720 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
6721 ac_have_decl=1
6722 else
6723 ac_have_decl=0
6726 cat >>confdefs.h <<_ACEOF
6727 #define HAVE_DECL_STRTOUL $ac_have_decl
6728 _ACEOF
6729 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6730 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
6731 ac_have_decl=1
6732 else
6733 ac_have_decl=0
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_DECL_STRTOLL $ac_have_decl
6738 _ACEOF
6739 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6740 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
6741 ac_have_decl=1
6742 else
6743 ac_have_decl=0
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_DECL_STRTOULL $ac_have_decl
6748 _ACEOF
6750 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6751 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6752 ac_have_decl=1
6753 else
6754 ac_have_decl=0
6757 cat >>confdefs.h <<_ACEOF
6758 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6759 _ACEOF
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
6762 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
6763 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6769 #include "confdefs.h"
6770 #include <stdio.h>
6771 #ifdef HAVE_STRING_H
6772 #include <string.h>
6773 #else
6774 #ifdef HAVE_STRINGS_H
6775 #include <strings.h>
6776 #endif
6777 #endif
6778 #ifdef HAVE_STDLIB_H
6779 #include <stdlib.h>
6780 #endif
6781 #ifdef HAVE_UNISTD_H
6782 #include <unistd.h>
6783 #endif
6785 main ()
6787 char *(*pfn) = (char *(*)) canonicalize_file_name
6789 return 0;
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 libiberty_cv_decl_needed_canonicalize_file_name=no
6794 else
6795 libiberty_cv_decl_needed_canonicalize_file_name=yes
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6801 $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
6802 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6804 $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
6810 # Figure out which version of pexecute to use.
6811 case "${host}" in
6812 *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;;
6813 *-*-msdosdjgpp*) pexecute=pex-djgpp ;;
6814 *-*-msdos*) pexecute=pex-msdos ;;
6815 *) pexecute=pex-unix ;;
6816 esac
6819 if test x$gcc_no_link = xyes; then
6820 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6821 ac_cv_func_mmap_fixed_mapped=no
6824 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
6825 for ac_header in stdlib.h unistd.h
6826 do :
6827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
6829 eval as_val=\$$as_ac_Header
6830 if test "x$as_val" = x""yes; then :
6831 cat >>confdefs.h <<_ACEOF
6832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833 _ACEOF
6836 done
6838 for ac_func in getpagesize
6839 do :
6840 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6841 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6842 cat >>confdefs.h <<_ACEOF
6843 #define HAVE_GETPAGESIZE 1
6844 _ACEOF
6847 done
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6850 $as_echo_n "checking for working mmap... " >&6; }
6851 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test "$cross_compiling" = yes; then :
6855 ac_cv_func_mmap_fixed_mapped=no
6856 else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 $ac_includes_default
6860 /* malloc might have been renamed as rpl_malloc. */
6861 #undef malloc
6863 /* Thanks to Mike Haertel and Jim Avera for this test.
6864 Here is a matrix of mmap possibilities:
6865 mmap private not fixed
6866 mmap private fixed at somewhere currently unmapped
6867 mmap private fixed at somewhere already mapped
6868 mmap shared not fixed
6869 mmap shared fixed at somewhere currently unmapped
6870 mmap shared fixed at somewhere already mapped
6871 For private mappings, we should verify that changes cannot be read()
6872 back from the file, nor mmap's back from the file at a different
6873 address. (There have been systems where private was not correctly
6874 implemented like the infamous i386 svr4.0, and systems where the
6875 VM page cache was not coherent with the file system buffer cache
6876 like early versions of FreeBSD and possibly contemporary NetBSD.)
6877 For shared mappings, we should conversely verify that changes get
6878 propagated back to all the places they're supposed to be.
6880 Grep wants private fixed already mapped.
6881 The main things grep needs to know about mmap are:
6882 * does it exist and is it safe to write into the mmap'd area
6883 * how to use it (BSD variants) */
6885 #include <fcntl.h>
6886 #include <sys/mman.h>
6888 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6889 char *malloc ();
6890 #endif
6892 /* This mess was copied from the GNU getpagesize.h. */
6893 #ifndef HAVE_GETPAGESIZE
6894 /* Assume that all systems that can run configure have sys/param.h. */
6895 # ifndef HAVE_SYS_PARAM_H
6896 # define HAVE_SYS_PARAM_H 1
6897 # endif
6899 # ifdef _SC_PAGESIZE
6900 # define getpagesize() sysconf(_SC_PAGESIZE)
6901 # else /* no _SC_PAGESIZE */
6902 # ifdef HAVE_SYS_PARAM_H
6903 # include <sys/param.h>
6904 # ifdef EXEC_PAGESIZE
6905 # define getpagesize() EXEC_PAGESIZE
6906 # else /* no EXEC_PAGESIZE */
6907 # ifdef NBPG
6908 # define getpagesize() NBPG * CLSIZE
6909 # ifndef CLSIZE
6910 # define CLSIZE 1
6911 # endif /* no CLSIZE */
6912 # else /* no NBPG */
6913 # ifdef NBPC
6914 # define getpagesize() NBPC
6915 # else /* no NBPC */
6916 # ifdef PAGESIZE
6917 # define getpagesize() PAGESIZE
6918 # endif /* PAGESIZE */
6919 # endif /* no NBPC */
6920 # endif /* no NBPG */
6921 # endif /* no EXEC_PAGESIZE */
6922 # else /* no HAVE_SYS_PARAM_H */
6923 # define getpagesize() 8192 /* punt totally */
6924 # endif /* no HAVE_SYS_PARAM_H */
6925 # endif /* no _SC_PAGESIZE */
6927 #endif /* no HAVE_GETPAGESIZE */
6930 main ()
6932 char *data, *data2, *data3;
6933 int i, pagesize;
6934 int fd;
6936 pagesize = getpagesize ();
6938 /* First, make a file with some known garbage in it. */
6939 data = (char *) malloc (pagesize);
6940 if (!data)
6941 return 1;
6942 for (i = 0; i < pagesize; ++i)
6943 *(data + i) = rand ();
6944 umask (0);
6945 fd = creat ("conftest.mmap", 0600);
6946 if (fd < 0)
6947 return 1;
6948 if (write (fd, data, pagesize) != pagesize)
6949 return 1;
6950 close (fd);
6952 /* Next, try to mmap the file at a fixed address which already has
6953 something else allocated at it. If we can, also make sure that
6954 we see the same garbage. */
6955 fd = open ("conftest.mmap", O_RDWR);
6956 if (fd < 0)
6957 return 1;
6958 data2 = (char *) malloc (2 * pagesize);
6959 if (!data2)
6960 return 1;
6961 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6962 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6963 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6964 return 1;
6965 for (i = 0; i < pagesize; ++i)
6966 if (*(data + i) != *(data2 + i))
6967 return 1;
6969 /* Finally, make sure that changes to the mapped area do not
6970 percolate back to the file as seen by read(). (This is a bug on
6971 some variants of i386 svr4.0.) */
6972 for (i = 0; i < pagesize; ++i)
6973 *(data2 + i) = *(data2 + i) + 1;
6974 data3 = (char *) malloc (pagesize);
6975 if (!data3)
6976 return 1;
6977 if (read (fd, data3, pagesize) != pagesize)
6978 return 1;
6979 for (i = 0; i < pagesize; ++i)
6980 if (*(data + i) != *(data3 + i))
6981 return 1;
6982 close (fd);
6983 return 0;
6985 _ACEOF
6986 if ac_fn_c_try_run "$LINENO"; then :
6987 ac_cv_func_mmap_fixed_mapped=yes
6988 else
6989 ac_cv_func_mmap_fixed_mapped=no
6991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6992 conftest.$ac_objext conftest.beam conftest.$ac_ext
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6997 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6998 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7000 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7003 rm -f conftest.mmap
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
7008 $as_echo_n "checking for working strncmp... " >&6; }
7009 if test "${ac_cv_func_strncmp_works+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test "$cross_compiling" = yes; then :
7013 ac_cv_func_strncmp_works=yes
7014 else
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7018 /* Test by Jim Wilson and Kaveh Ghazi.
7019 Check whether strncmp reads past the end of its string parameters. */
7020 #include <sys/types.h>
7022 #ifdef HAVE_FCNTL_H
7023 #include <fcntl.h>
7024 #endif
7026 #ifdef HAVE_SYS_MMAN_H
7027 #include <sys/mman.h>
7028 #endif
7030 #ifndef MAP_ANON
7031 #ifdef MAP_ANONYMOUS
7032 #define MAP_ANON MAP_ANONYMOUS
7033 #else
7034 #define MAP_ANON MAP_FILE
7035 #endif
7036 #endif
7038 #ifndef MAP_FILE
7039 #define MAP_FILE 0
7040 #endif
7041 #ifndef O_RDONLY
7042 #define O_RDONLY 0
7043 #endif
7045 #define MAP_LEN 0x10000
7047 main ()
7049 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7050 char *p;
7051 int dev_zero;
7053 dev_zero = open ("/dev/zero", O_RDONLY);
7054 if (dev_zero < 0)
7055 exit (1);
7057 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7058 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
7059 if (p == (char *)-1)
7060 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7061 MAP_ANON|MAP_PRIVATE, -1, 0);
7062 if (p == (char *)-1)
7063 exit (2);
7064 else
7066 char *string = "__si_type_info";
7067 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7068 char *r = (char *) p + 0xe;
7070 strcpy (q, string);
7071 strcpy (r, string);
7072 strncmp (r, q, 14);
7074 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7075 exit (0);
7078 _ACEOF
7079 if ac_fn_c_try_run "$LINENO"; then :
7080 ac_cv_func_strncmp_works=yes
7081 else
7082 ac_cv_func_strncmp_works=no
7084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7085 conftest.$ac_objext conftest.beam conftest.$ac_ext
7088 rm -f core core.* *.core
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
7091 $as_echo "$ac_cv_func_strncmp_works" >&6; }
7092 if test $ac_cv_func_strncmp_works = no ; then
7093 case " $LIBOBJS " in
7094 *" strncmp.$ac_objext "* ) ;;
7095 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
7097 esac
7102 # Install a library built with a cross compiler in $(tooldir) rather
7103 # than $(libdir).
7104 if test -z "${with_cross_host}"; then
7105 INSTALL_DEST=libdir
7106 else
7107 INSTALL_DEST=tooldir
7112 L=""
7113 for l in x $LIBOBJS; do
7114 case $l in
7115 x) ;;
7116 *) L="$L ./$l" ;;
7117 esac
7118 done
7119 LIBOBJS="$L"
7125 # We need multilib support, but only if configuring for the target.
7126 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
7128 ac_config_commands="$ac_config_commands default"
7130 cat >confcache <<\_ACEOF
7131 # This file is a shell script that caches the results of configure
7132 # tests run on this system so they can be shared between configure
7133 # scripts and configure runs, see configure's option --config-cache.
7134 # It is not useful on other systems. If it contains results you don't
7135 # want to keep, you may remove or edit it.
7137 # config.status only pays attention to the cache file if you give it
7138 # the --recheck option to rerun configure.
7140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7142 # following values.
7144 _ACEOF
7146 # The following way of writing the cache mishandles newlines in values,
7147 # but we know of no workaround that is simple, portable, and efficient.
7148 # So, we kill variables containing newlines.
7149 # Ultrix sh set writes to stderr and can't be redirected directly,
7150 # and sets the high bit in the cache file unless we assign to the vars.
7152 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7153 eval ac_val=\$$ac_var
7154 case $ac_val in #(
7155 *${as_nl}*)
7156 case $ac_var in #(
7157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7159 esac
7160 case $ac_var in #(
7161 _ | IFS | as_nl) ;; #(
7162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7163 *) { eval $ac_var=; unset $ac_var;} ;;
7164 esac ;;
7165 esac
7166 done
7168 (set) 2>&1 |
7169 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7170 *${as_nl}ac_space=\ *)
7171 # `set' does not quote correctly, so add quotes: double-quote
7172 # substitution turns \\\\ into \\, and sed turns \\ into \.
7173 sed -n \
7174 "s/'/'\\\\''/g;
7175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7176 ;; #(
7178 # `set' quotes correctly as required by POSIX, so do not add quotes.
7179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7181 esac |
7182 sort
7184 sed '
7185 /^ac_cv_env_/b end
7186 t clear
7187 :clear
7188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7189 t end
7190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7191 :end' >>confcache
7192 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7193 if test -w "$cache_file"; then
7194 test "x$cache_file" != "x/dev/null" &&
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7196 $as_echo "$as_me: updating cache $cache_file" >&6;}
7197 cat confcache >$cache_file
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7200 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7203 rm -f confcache
7205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7206 # Let make expand exec_prefix.
7207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7209 DEFS=-DHAVE_CONFIG_H
7211 ac_libobjs=
7212 ac_ltlibobjs=
7213 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7214 # 1. Remove the extension, and $U if already installed.
7215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7216 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7218 # will be set to the directory where LIBOBJS objects are built.
7219 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7220 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7221 done
7222 LIBOBJS=$ac_libobjs
7224 LTLIBOBJS=$ac_ltlibobjs
7229 : ${CONFIG_STATUS=./config.status}
7230 ac_write_fail=0
7231 ac_clean_files_save=$ac_clean_files
7232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7235 as_write_fail=0
7236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7237 #! $SHELL
7238 # Generated by $as_me.
7239 # Run this file to recreate the current configuration.
7240 # Compiler output produced by configure, useful for debugging
7241 # configure, is in config.log if it exists.
7243 debug=false
7244 ac_cs_recheck=false
7245 ac_cs_silent=false
7247 SHELL=\${CONFIG_SHELL-$SHELL}
7248 export SHELL
7249 _ASEOF
7250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7251 ## -------------------- ##
7252 ## M4sh Initialization. ##
7253 ## -------------------- ##
7255 # Be more Bourne compatible
7256 DUALCASE=1; export DUALCASE # for MKS sh
7257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7258 emulate sh
7259 NULLCMD=:
7260 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7261 # is contrary to our usage. Disable this feature.
7262 alias -g '${1+"$@"}'='"$@"'
7263 setopt NO_GLOB_SUBST
7264 else
7265 case `(set -o) 2>/dev/null` in #(
7266 *posix*) :
7267 set -o posix ;; #(
7268 *) :
7270 esac
7274 as_nl='
7276 export as_nl
7277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7281 # Prefer a ksh shell builtin over an external printf program on Solaris,
7282 # but without wasting forks for bash or zsh.
7283 if test -z "$BASH_VERSION$ZSH_VERSION" \
7284 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7285 as_echo='print -r --'
7286 as_echo_n='print -rn --'
7287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7288 as_echo='printf %s\n'
7289 as_echo_n='printf %s'
7290 else
7291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7293 as_echo_n='/usr/ucb/echo -n'
7294 else
7295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7296 as_echo_n_body='eval
7297 arg=$1;
7298 case $arg in #(
7299 *"$as_nl"*)
7300 expr "X$arg" : "X\\(.*\\)$as_nl";
7301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7302 esac;
7303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7305 export as_echo_n_body
7306 as_echo_n='sh -c $as_echo_n_body as_echo'
7308 export as_echo_body
7309 as_echo='sh -c $as_echo_body as_echo'
7312 # The user is always right.
7313 if test "${PATH_SEPARATOR+set}" != set; then
7314 PATH_SEPARATOR=:
7315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7317 PATH_SEPARATOR=';'
7322 # IFS
7323 # We need space, tab and new line, in precisely that order. Quoting is
7324 # there to prevent editors from complaining about space-tab.
7325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7326 # splitting by setting IFS to empty value.)
7327 IFS=" "" $as_nl"
7329 # Find who we are. Look in the path if we contain no directory separator.
7330 case $0 in #((
7331 *[\\/]* ) as_myself=$0 ;;
7332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7338 done
7339 IFS=$as_save_IFS
7342 esac
7343 # We did not find ourselves, most probably we were run as `sh COMMAND'
7344 # in which case we are not to be found in the path.
7345 if test "x$as_myself" = x; then
7346 as_myself=$0
7348 if test ! -f "$as_myself"; then
7349 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7350 exit 1
7353 # Unset variables that we do not need and which cause bugs (e.g. in
7354 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7355 # suppresses any "Segmentation fault" message there. '((' could
7356 # trigger a bug in pdksh 5.2.14.
7357 for as_var in BASH_ENV ENV MAIL MAILPATH
7358 do eval test x\${$as_var+set} = xset \
7359 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7360 done
7361 PS1='$ '
7362 PS2='> '
7363 PS4='+ '
7365 # NLS nuisances.
7366 LC_ALL=C
7367 export LC_ALL
7368 LANGUAGE=C
7369 export LANGUAGE
7371 # CDPATH.
7372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7375 # as_fn_error ERROR [LINENO LOG_FD]
7376 # ---------------------------------
7377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7379 # script with status $?, using 1 if that was 0.
7380 as_fn_error ()
7382 as_status=$?; test $as_status -eq 0 && as_status=1
7383 if test "$3"; then
7384 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7387 $as_echo "$as_me: error: $1" >&2
7388 as_fn_exit $as_status
7389 } # as_fn_error
7392 # as_fn_set_status STATUS
7393 # -----------------------
7394 # Set $? to STATUS, without forking.
7395 as_fn_set_status ()
7397 return $1
7398 } # as_fn_set_status
7400 # as_fn_exit STATUS
7401 # -----------------
7402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7403 as_fn_exit ()
7405 set +e
7406 as_fn_set_status $1
7407 exit $1
7408 } # as_fn_exit
7410 # as_fn_unset VAR
7411 # ---------------
7412 # Portably unset VAR.
7413 as_fn_unset ()
7415 { eval $1=; unset $1;}
7417 as_unset=as_fn_unset
7418 # as_fn_append VAR VALUE
7419 # ----------------------
7420 # Append the text in VALUE to the end of the definition contained in VAR. Take
7421 # advantage of any shell optimizations that allow amortized linear growth over
7422 # repeated appends, instead of the typical quadratic growth present in naive
7423 # implementations.
7424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7425 eval 'as_fn_append ()
7427 eval $1+=\$2
7429 else
7430 as_fn_append ()
7432 eval $1=\$$1\$2
7434 fi # as_fn_append
7436 # as_fn_arith ARG...
7437 # ------------------
7438 # Perform arithmetic evaluation on the ARGs, and store the result in the
7439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7440 # must be portable across $(()) and expr.
7441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7442 eval 'as_fn_arith ()
7444 as_val=$(( $* ))
7446 else
7447 as_fn_arith ()
7449 as_val=`expr "$@" || test $? -eq 1`
7451 fi # as_fn_arith
7454 if expr a : '\(a\)' >/dev/null 2>&1 &&
7455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7456 as_expr=expr
7457 else
7458 as_expr=false
7461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7462 as_basename=basename
7463 else
7464 as_basename=false
7467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7468 as_dirname=dirname
7469 else
7470 as_dirname=false
7473 as_me=`$as_basename -- "$0" ||
7474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7475 X"$0" : 'X\(//\)$' \| \
7476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7477 $as_echo X/"$0" |
7478 sed '/^.*\/\([^/][^/]*\)\/*$/{
7479 s//\1/
7482 /^X\/\(\/\/\)$/{
7483 s//\1/
7486 /^X\/\(\/\).*/{
7487 s//\1/
7490 s/.*/./; q'`
7492 # Avoid depending upon Character Ranges.
7493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7496 as_cr_digits='0123456789'
7497 as_cr_alnum=$as_cr_Letters$as_cr_digits
7499 ECHO_C= ECHO_N= ECHO_T=
7500 case `echo -n x` in #(((((
7501 -n*)
7502 case `echo 'xy\c'` in
7503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7504 xy) ECHO_C='\c';;
7505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7506 ECHO_T=' ';;
7507 esac;;
7509 ECHO_N='-n';;
7510 esac
7512 rm -f conf$$ conf$$.exe conf$$.file
7513 if test -d conf$$.dir; then
7514 rm -f conf$$.dir/conf$$.file
7515 else
7516 rm -f conf$$.dir
7517 mkdir conf$$.dir 2>/dev/null
7519 if (echo >conf$$.file) 2>/dev/null; then
7520 if ln -s conf$$.file conf$$ 2>/dev/null; then
7521 as_ln_s='ln -s'
7522 # ... but there are two gotchas:
7523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7525 # In both cases, we have to default to `cp -p'.
7526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7527 as_ln_s='cp -p'
7528 elif ln conf$$.file conf$$ 2>/dev/null; then
7529 as_ln_s=ln
7530 else
7531 as_ln_s='cp -p'
7533 else
7534 as_ln_s='cp -p'
7536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7537 rmdir conf$$.dir 2>/dev/null
7540 # as_fn_mkdir_p
7541 # -------------
7542 # Create "$as_dir" as a directory, including parents if necessary.
7543 as_fn_mkdir_p ()
7546 case $as_dir in #(
7547 -*) as_dir=./$as_dir;;
7548 esac
7549 test -d "$as_dir" || eval $as_mkdir_p || {
7550 as_dirs=
7551 while :; do
7552 case $as_dir in #(
7553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7554 *) as_qdir=$as_dir;;
7555 esac
7556 as_dirs="'$as_qdir' $as_dirs"
7557 as_dir=`$as_dirname -- "$as_dir" ||
7558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559 X"$as_dir" : 'X\(//\)[^/]' \| \
7560 X"$as_dir" : 'X\(//\)$' \| \
7561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7562 $as_echo X"$as_dir" |
7563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7564 s//\1/
7567 /^X\(\/\/\)[^/].*/{
7568 s//\1/
7571 /^X\(\/\/\)$/{
7572 s//\1/
7575 /^X\(\/\).*/{
7576 s//\1/
7579 s/.*/./; q'`
7580 test -d "$as_dir" && break
7581 done
7582 test -z "$as_dirs" || eval "mkdir $as_dirs"
7583 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7586 } # as_fn_mkdir_p
7587 if mkdir -p . 2>/dev/null; then
7588 as_mkdir_p='mkdir -p "$as_dir"'
7589 else
7590 test -d ./-p && rmdir ./-p
7591 as_mkdir_p=false
7594 if test -x / >/dev/null 2>&1; then
7595 as_test_x='test -x'
7596 else
7597 if ls -dL / >/dev/null 2>&1; then
7598 as_ls_L_option=L
7599 else
7600 as_ls_L_option=
7602 as_test_x='
7603 eval sh -c '\''
7604 if test -d "$1"; then
7605 test -d "$1/.";
7606 else
7607 case $1 in #(
7608 -*)set "./$1";;
7609 esac;
7610 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7611 ???[sx]*):;;*)false;;esac;fi
7612 '\'' sh
7615 as_executable_p=$as_test_x
7617 # Sed expression to map a string onto a valid CPP name.
7618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7620 # Sed expression to map a string onto a valid variable name.
7621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7624 exec 6>&1
7625 ## ----------------------------------- ##
7626 ## Main body of $CONFIG_STATUS script. ##
7627 ## ----------------------------------- ##
7628 _ASEOF
7629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7632 # Save the log message, to keep $0 and so on meaningful, and to
7633 # report actual input values of CONFIG_FILES etc. instead of their
7634 # values after options handling.
7635 ac_log="
7636 This file was extended by $as_me, which was
7637 generated by GNU Autoconf 2.64. Invocation command line was
7639 CONFIG_FILES = $CONFIG_FILES
7640 CONFIG_HEADERS = $CONFIG_HEADERS
7641 CONFIG_LINKS = $CONFIG_LINKS
7642 CONFIG_COMMANDS = $CONFIG_COMMANDS
7643 $ $0 $@
7645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7648 _ACEOF
7650 case $ac_config_files in *"
7651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7652 esac
7654 case $ac_config_headers in *"
7655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7656 esac
7659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7660 # Files that config.status was made for.
7661 config_files="$ac_config_files"
7662 config_headers="$ac_config_headers"
7663 config_commands="$ac_config_commands"
7665 _ACEOF
7667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7668 ac_cs_usage="\
7669 \`$as_me' instantiates files and other configuration actions
7670 from templates according to the current configuration. Unless the files
7671 and actions are specified as TAGs, all are instantiated by default.
7673 Usage: $0 [OPTION]... [TAG]...
7675 -h, --help print this help, then exit
7676 -V, --version print version number and configuration settings, then exit
7677 -q, --quiet, --silent
7678 do not print progress messages
7679 -d, --debug don't remove temporary files
7680 --recheck update $as_me by reconfiguring in the same conditions
7681 --file=FILE[:TEMPLATE]
7682 instantiate the configuration file FILE
7683 --header=FILE[:TEMPLATE]
7684 instantiate the configuration header FILE
7686 Configuration files:
7687 $config_files
7689 Configuration headers:
7690 $config_headers
7692 Configuration commands:
7693 $config_commands
7695 Report bugs to the package provider."
7697 _ACEOF
7698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7699 ac_cs_version="\\
7700 config.status
7701 configured by $0, generated by GNU Autoconf 2.64,
7702 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7704 Copyright (C) 2009 Free Software Foundation, Inc.
7705 This config.status script is free software; the Free Software Foundation
7706 gives unlimited permission to copy, distribute and modify it."
7708 ac_pwd='$ac_pwd'
7709 srcdir='$srcdir'
7710 INSTALL='$INSTALL'
7711 test -n "\$AWK" || AWK=awk
7712 _ACEOF
7714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7715 # The default lists apply if the user does not specify any file.
7716 ac_need_defaults=:
7717 while test $# != 0
7719 case $1 in
7720 --*=*)
7721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7722 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7723 ac_shift=:
7726 ac_option=$1
7727 ac_optarg=$2
7728 ac_shift=shift
7730 esac
7732 case $ac_option in
7733 # Handling of the options.
7734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7735 ac_cs_recheck=: ;;
7736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7737 $as_echo "$ac_cs_version"; exit ;;
7738 --debug | --debu | --deb | --de | --d | -d )
7739 debug=: ;;
7740 --file | --fil | --fi | --f )
7741 $ac_shift
7742 case $ac_optarg in
7743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7744 esac
7745 as_fn_append CONFIG_FILES " '$ac_optarg'"
7746 ac_need_defaults=false;;
7747 --header | --heade | --head | --hea )
7748 $ac_shift
7749 case $ac_optarg in
7750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7751 esac
7752 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7753 ac_need_defaults=false;;
7754 --he | --h)
7755 # Conflict between --help and --header
7756 as_fn_error "ambiguous option: \`$1'
7757 Try \`$0 --help' for more information.";;
7758 --help | --hel | -h )
7759 $as_echo "$ac_cs_usage"; exit ;;
7760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7762 ac_cs_silent=: ;;
7764 # This is an error.
7765 -*) as_fn_error "unrecognized option: \`$1'
7766 Try \`$0 --help' for more information." ;;
7768 *) as_fn_append ac_config_targets " $1"
7769 ac_need_defaults=false ;;
7771 esac
7772 shift
7773 done
7775 ac_configure_extra_args=
7777 if $ac_cs_silent; then
7778 exec 6>/dev/null
7779 ac_configure_extra_args="$ac_configure_extra_args --silent"
7782 _ACEOF
7783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7784 if \$ac_cs_recheck; then
7785 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7786 shift
7787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7788 CONFIG_SHELL='$SHELL'
7789 export CONFIG_SHELL
7790 exec "\$@"
7793 _ACEOF
7794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7795 exec 5>>config.log
7797 echo
7798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7799 ## Running $as_me. ##
7800 _ASBOX
7801 $as_echo "$ac_log"
7802 } >&5
7804 _ACEOF
7805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7807 # INIT-COMMANDS
7809 srcdir=${srcdir}
7810 host=${host}
7811 target=${target}
7812 with_target_subdir=${with_target_subdir}
7813 with_multisubdir=${with_multisubdir}
7814 ac_configure_args="--enable-multilib ${ac_configure_args}"
7815 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7816 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
7817 libiberty_topdir=${libiberty_topdir}
7820 _ACEOF
7822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7824 # Handling of arguments.
7825 for ac_config_target in $ac_config_targets
7827 case $ac_config_target in
7828 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7829 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7830 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7831 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7833 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7834 esac
7835 done
7838 # If the user did not use the arguments to specify the items to instantiate,
7839 # then the envvar interface is used. Set only those that are not.
7840 # We use the long form for the default assignment because of an extremely
7841 # bizarre bug on SunOS 4.1.3.
7842 if $ac_need_defaults; then
7843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7848 # Have a temporary directory for convenience. Make it in the build tree
7849 # simply because there is no reason against having it here, and in addition,
7850 # creating and moving files from /tmp can sometimes cause problems.
7851 # Hook for its removal unless debugging.
7852 # Note that there is a small window in which the directory will not be cleaned:
7853 # after its creation but before its name has been assigned to `$tmp'.
7854 $debug ||
7856 tmp=
7857 trap 'exit_status=$?
7858 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7860 trap 'as_fn_exit 1' 1 2 13 15
7862 # Create a (secure) tmp directory for tmp files.
7865 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7866 test -n "$tmp" && test -d "$tmp"
7867 } ||
7869 tmp=./conf$$-$RANDOM
7870 (umask 077 && mkdir "$tmp")
7871 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7873 # Set up the scripts for CONFIG_FILES section.
7874 # No need to generate them if there are no CONFIG_FILES.
7875 # This happens for instance with `./config.status config.h'.
7876 if test -n "$CONFIG_FILES"; then
7878 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
7879 ac_cs_awk_getline=:
7880 ac_cs_awk_pipe_init=
7881 ac_cs_awk_read_file='
7882 while ((getline aline < (F[key])) > 0)
7883 print(aline)
7884 close(F[key])'
7885 ac_cs_awk_pipe_fini=
7886 else
7887 ac_cs_awk_getline=false
7888 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
7889 ac_cs_awk_read_file='
7890 print "|#_!!_#|"
7891 print "cat " F[key] " &&"
7892 '$ac_cs_awk_pipe_init
7893 # The final `:' finishes the AND list.
7894 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
7896 ac_cr=`echo X | tr X '\015'`
7897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7898 # But we know of no other shell where ac_cr would be empty at this
7899 # point, so we can use a bashism as a fallback.
7900 if test "x$ac_cr" = x; then
7901 eval ac_cr=\$\'\\r\'
7903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7905 ac_cs_awk_cr='\r'
7906 else
7907 ac_cs_awk_cr=$ac_cr
7910 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7911 _ACEOF
7913 # Create commands to substitute file output variables.
7915 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
7916 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
7917 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
7918 echo "_ACAWK" &&
7919 echo "_ACEOF"
7920 } >conf$$files.sh &&
7921 . ./conf$$files.sh ||
7922 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7923 rm -f conf$$files.sh
7926 echo "cat >conf$$subs.awk <<_ACEOF" &&
7927 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7928 echo "_ACEOF"
7929 } >conf$$subs.sh ||
7930 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7932 ac_delim='%!_!# '
7933 for ac_last_try in false false false false false :; do
7934 . ./conf$$subs.sh ||
7935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7937 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7938 if test $ac_delim_n = $ac_delim_num; then
7939 break
7940 elif $ac_last_try; then
7941 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7942 else
7943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7945 done
7946 rm -f conf$$subs.sh
7948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7949 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7950 _ACEOF
7951 sed -n '
7953 s/^/S["/; s/!.*/"]=/
7956 s/^[^!]*!//
7957 :repl
7958 t repl
7959 s/'"$ac_delim"'$//
7960 t delim
7963 s/\(.\{148\}\).*/\1/
7964 t more1
7965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7968 b repl
7969 :more1
7970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7973 s/.\{148\}//
7974 t nl
7975 :delim
7977 s/\(.\{148\}\).*/\1/
7978 t more2
7979 s/["\\]/\\&/g; s/^/"/; s/$/"/
7982 :more2
7983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7986 s/.\{148\}//
7987 t delim
7988 ' <conf$$subs.awk | sed '
7989 /^[^""]/{
7991 s/\n//
7993 ' >>$CONFIG_STATUS || ac_write_fail=1
7994 rm -f conf$$subs.awk
7995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7996 _ACAWK
7997 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7998 for (key in S) S_is_set[key] = 1
7999 FS = "\a"
8000 \$ac_cs_awk_pipe_init
8003 line = $ 0
8004 nfields = split(line, field, "@")
8005 substed = 0
8006 len = length(field[1])
8007 for (i = 2; i < nfields; i++) {
8008 key = field[i]
8009 keylen = length(key)
8010 if (S_is_set[key]) {
8011 value = S[key]
8012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8013 len += length(value) + length(field[++i])
8014 substed = 1
8015 } else
8016 len += 1 + keylen
8018 if (nfields == 3 && !substed) {
8019 key = field[2]
8020 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
8021 \$ac_cs_awk_read_file
8022 next
8025 print line
8027 \$ac_cs_awk_pipe_fini
8028 _ACAWK
8029 _ACEOF
8030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8033 else
8035 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8036 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8037 _ACEOF
8039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8041 # trailing colons and then remove the whole line if VPATH becomes empty
8042 # (actually we leave an empty line to preserve line numbers).
8043 if test "x$srcdir" = x.; then
8044 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8045 s/:*\$(srcdir):*/:/
8046 s/:*\${srcdir}:*/:/
8047 s/:*@srcdir@:*/:/
8048 s/^\([^=]*=[ ]*\):*/\1/
8049 s/:*$//
8050 s/^[^=]*=[ ]*$//
8054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8055 fi # test -n "$CONFIG_FILES"
8057 # Set up the scripts for CONFIG_HEADERS section.
8058 # No need to generate them if there are no CONFIG_HEADERS.
8059 # This happens for instance with `./config.status Makefile'.
8060 if test -n "$CONFIG_HEADERS"; then
8061 cat >"$tmp/defines.awk" <<\_ACAWK ||
8062 BEGIN {
8063 _ACEOF
8065 # Transform confdefs.h into an awk script `defines.awk', embedded as
8066 # here-document in config.status, that substitutes the proper values into
8067 # config.h.in to produce config.h.
8069 # Create a delimiter string that does not exist in confdefs.h, to ease
8070 # handling of long lines.
8071 ac_delim='%!_!# '
8072 for ac_last_try in false false :; do
8073 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8074 if test -z "$ac_t"; then
8075 break
8076 elif $ac_last_try; then
8077 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8078 else
8079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8081 done
8083 # For the awk script, D is an array of macro values keyed by name,
8084 # likewise P contains macro parameters if any. Preserve backslash
8085 # newline sequences.
8087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8088 sed -n '
8089 s/.\{148\}/&'"$ac_delim"'/g
8090 t rset
8091 :rset
8092 s/^[ ]*#[ ]*define[ ][ ]*/ /
8093 t def
8095 :def
8096 s/\\$//
8097 t bsnl
8098 s/["\\]/\\&/g
8099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8100 D["\1"]=" \3"/p
8101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8103 :bsnl
8104 s/["\\]/\\&/g
8105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8106 D["\1"]=" \3\\\\\\n"\\/p
8107 t cont
8108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8109 t cont
8111 :cont
8113 s/.\{148\}/&'"$ac_delim"'/g
8114 t clear
8115 :clear
8116 s/\\$//
8117 t bsnlc
8118 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8120 :bsnlc
8121 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8122 b cont
8123 ' <confdefs.h | sed '
8124 s/'"$ac_delim"'/"\\\
8125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8128 for (key in D) D_is_set[key] = 1
8129 FS = "\a"
8131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8132 line = \$ 0
8133 split(line, arg, " ")
8134 if (arg[1] == "#") {
8135 defundef = arg[2]
8136 mac1 = arg[3]
8137 } else {
8138 defundef = substr(arg[1], 2)
8139 mac1 = arg[2]
8141 split(mac1, mac2, "(") #)
8142 macro = mac2[1]
8143 prefix = substr(line, 1, index(line, defundef) - 1)
8144 if (D_is_set[macro]) {
8145 # Preserve the white space surrounding the "#".
8146 print prefix "define", macro P[macro] D[macro]
8147 next
8148 } else {
8149 # Replace #undef with comments. This is necessary, for example,
8150 # in the case of _POSIX_SOURCE, which is predefined and required
8151 # on some systems where configure will not decide to define it.
8152 if (defundef == "undef") {
8153 print "/*", prefix defundef, macro, "*/"
8154 next
8158 { print }
8159 _ACAWK
8160 _ACEOF
8161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8162 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8163 fi # test -n "$CONFIG_HEADERS"
8166 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8167 shift
8168 for ac_tag
8170 case $ac_tag in
8171 :[FHLC]) ac_mode=$ac_tag; continue;;
8172 esac
8173 case $ac_mode$ac_tag in
8174 :[FHL]*:*);;
8175 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8176 :[FH]-) ac_tag=-:-;;
8177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8178 esac
8179 ac_save_IFS=$IFS
8180 IFS=:
8181 set x $ac_tag
8182 IFS=$ac_save_IFS
8183 shift
8184 ac_file=$1
8185 shift
8187 case $ac_mode in
8188 :L) ac_source=$1;;
8189 :[FH])
8190 ac_file_inputs=
8191 for ac_f
8193 case $ac_f in
8194 -) ac_f="$tmp/stdin";;
8195 *) # Look for the file first in the build tree, then in the source tree
8196 # (if the path is not absolute). The absolute path cannot be DOS-style,
8197 # because $ac_f cannot contain `:'.
8198 test -f "$ac_f" ||
8199 case $ac_f in
8200 [\\/$]*) false;;
8201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8202 esac ||
8203 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8204 esac
8205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8206 as_fn_append ac_file_inputs " '$ac_f'"
8207 done
8209 # Let's still pretend it is `configure' which instantiates (i.e., don't
8210 # use $as_me), people would be surprised to read:
8211 # /* config.h. Generated by config.status. */
8212 configure_input='Generated from '`
8213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8214 `' by configure.'
8215 if test x"$ac_file" != x-; then
8216 configure_input="$ac_file. $configure_input"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8218 $as_echo "$as_me: creating $ac_file" >&6;}
8220 # Neutralize special characters interpreted by sed in replacement strings.
8221 case $configure_input in #(
8222 *\&* | *\|* | *\\* )
8223 ac_sed_conf_input=`$as_echo "$configure_input" |
8224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8225 *) ac_sed_conf_input=$configure_input;;
8226 esac
8228 case $ac_tag in
8229 *:-:* | *:-) cat >"$tmp/stdin" \
8230 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8231 esac
8233 esac
8235 ac_dir=`$as_dirname -- "$ac_file" ||
8236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8237 X"$ac_file" : 'X\(//\)[^/]' \| \
8238 X"$ac_file" : 'X\(//\)$' \| \
8239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8240 $as_echo X"$ac_file" |
8241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8242 s//\1/
8245 /^X\(\/\/\)[^/].*/{
8246 s//\1/
8249 /^X\(\/\/\)$/{
8250 s//\1/
8253 /^X\(\/\).*/{
8254 s//\1/
8257 s/.*/./; q'`
8258 as_dir="$ac_dir"; as_fn_mkdir_p
8259 ac_builddir=.
8261 case "$ac_dir" in
8262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8265 # A ".." for each directory in $ac_dir_suffix.
8266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8267 case $ac_top_builddir_sub in
8268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8270 esac ;;
8271 esac
8272 ac_abs_top_builddir=$ac_pwd
8273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8274 # for backward compatibility:
8275 ac_top_builddir=$ac_top_build_prefix
8277 case $srcdir in
8278 .) # We are building in place.
8279 ac_srcdir=.
8280 ac_top_srcdir=$ac_top_builddir_sub
8281 ac_abs_top_srcdir=$ac_pwd ;;
8282 [\\/]* | ?:[\\/]* ) # Absolute name.
8283 ac_srcdir=$srcdir$ac_dir_suffix;
8284 ac_top_srcdir=$srcdir
8285 ac_abs_top_srcdir=$srcdir ;;
8286 *) # Relative name.
8287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8288 ac_top_srcdir=$ac_top_build_prefix$srcdir
8289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8290 esac
8291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8294 case $ac_mode in
8297 # CONFIG_FILE
8300 case $INSTALL in
8301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8303 esac
8304 _ACEOF
8306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8307 # If the template does not know about datarootdir, expand it.
8308 # FIXME: This hack should be removed a few years after 2.60.
8309 ac_datarootdir_hack=; ac_datarootdir_seen=
8310 ac_sed_dataroot='
8311 /datarootdir/ {
8315 /@datadir@/p
8316 /@docdir@/p
8317 /@infodir@/p
8318 /@localedir@/p
8319 /@mandir@/p'
8320 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8321 *datarootdir*) ac_datarootdir_seen=yes;;
8322 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8324 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8325 _ACEOF
8326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8327 ac_datarootdir_hack='
8328 s&@datadir@&$datadir&g
8329 s&@docdir@&$docdir&g
8330 s&@infodir@&$infodir&g
8331 s&@localedir@&$localedir&g
8332 s&@mandir@&$mandir&g
8333 s&\\\${datarootdir}&$datarootdir&g' ;;
8334 esac
8335 _ACEOF
8337 # Neutralize VPATH when `$srcdir' = `.'.
8338 # Shell code in configure.ac might set extrasub.
8339 # FIXME: do we really want to maintain this feature?
8340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8341 ac_sed_extra="$ac_vpsub
8342 $extrasub
8343 _ACEOF
8344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8347 s|@configure_input@|$ac_sed_conf_input|;t t
8348 s&@top_builddir@&$ac_top_builddir_sub&;t t
8349 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8350 s&@srcdir@&$ac_srcdir&;t t
8351 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8352 s&@top_srcdir@&$ac_top_srcdir&;t t
8353 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8354 s&@builddir@&$ac_builddir&;t t
8355 s&@abs_builddir@&$ac_abs_builddir&;t t
8356 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8357 s&@INSTALL@&$ac_INSTALL&;t t
8358 $ac_datarootdir_hack
8360 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
8361 if $ac_cs_awk_getline; then
8362 $AWK -f "$tmp/subs.awk"
8363 else
8364 $AWK -f "$tmp/subs.awk" | $SHELL
8365 fi >$tmp/out \
8366 || as_fn_error "could not create $ac_file" "$LINENO" 5
8368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8372 which seems to be undefined. Please make sure it is defined." >&5
8373 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8374 which seems to be undefined. Please make sure it is defined." >&2;}
8376 rm -f "$tmp/stdin"
8377 case $ac_file in
8378 -) cat "$tmp/out" && rm -f "$tmp/out";;
8379 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8380 esac \
8381 || as_fn_error "could not create $ac_file" "$LINENO" 5
8385 # CONFIG_HEADER
8387 if test x"$ac_file" != x-; then
8389 $as_echo "/* $configure_input */" \
8390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8391 } >"$tmp/config.h" \
8392 || as_fn_error "could not create $ac_file" "$LINENO" 5
8393 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8395 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8396 else
8397 rm -f "$ac_file"
8398 mv "$tmp/config.h" "$ac_file" \
8399 || as_fn_error "could not create $ac_file" "$LINENO" 5
8401 else
8402 $as_echo "/* $configure_input */" \
8403 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8404 || as_fn_error "could not create -" "$LINENO" 5
8408 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8409 $as_echo "$as_me: executing $ac_file commands" >&6;}
8411 esac
8414 case $ac_file$ac_mode in
8415 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
8416 if test -n "$CONFIG_FILES"; then
8417 if test -n "${with_target_subdir}"; then
8418 # FIXME: We shouldn't need to set ac_file
8419 ac_file=Makefile
8420 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
8421 . ${libiberty_topdir}/config-ml.in
8423 fi ;;
8425 esac
8426 done # for ac_tag
8429 as_fn_exit 0
8430 _ACEOF
8431 ac_clean_files=$ac_clean_files_save
8433 test $ac_write_fail = 0 ||
8434 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8437 # configure is writing to config.log, and then calls config.status.
8438 # config.status does its own redirection, appending to config.log.
8439 # Unfortunately, on DOS this fails, as config.log is still kept open
8440 # by configure, so config.status won't be able to write to it; its
8441 # output is simply discarded. So we exec the FD to /dev/null,
8442 # effectively closing config.log, so it can be properly (re)opened and
8443 # appended to by config.status. When coming back to configure, we
8444 # need to make the FD available again.
8445 if test "$no_create" != yes; then
8446 ac_cs_success=:
8447 ac_config_status_args=
8448 test "$silent" = yes &&
8449 ac_config_status_args="$ac_config_status_args --quiet"
8450 exec 5>/dev/null
8451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8452 exec 5>>config.log
8453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8454 # would make configure fail if this is the last instruction.
8455 $ac_cs_success || as_fn_exit $?
8457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}