2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libctf library 1.2.0-pre.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libctf library'
579 PACKAGE_TARNAME
='libctf-library'
580 PACKAGE_VERSION
='1.2.0-pre'
581 PACKAGE_STRING
='libctf library 1.2.0-pre'
585 ac_unique_file
="ctf-impl.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='am__EXEEXT_FALSE
629 ac_libctf_warn_cflags
631 MAINTAINER_MODE_FALSE
662 INSTALL_STRIP_PROGRAM
714 program_transform_name
727 enable_option_checking
728 enable_dependency_tracking
732 enable_maintainer_mode
735 ac_precious_vars
='build_alias
746 # Initialize some variables set by options.
748 ac_init_version
=false
749 ac_unrecognized_opts
=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name
=s
,x
,x
,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir
='${exec_prefix}/bin'
775 sbindir
='${exec_prefix}/sbin'
776 libexecdir
='${exec_prefix}/libexec'
777 datarootdir
='${prefix}/share'
778 datadir
='${datarootdir}'
779 sysconfdir
='${prefix}/etc'
780 sharedstatedir
='${prefix}/com'
781 localstatedir
='${prefix}/var'
782 includedir
='${prefix}/include'
783 oldincludedir
='/usr/include'
784 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir
='${datarootdir}/info'
790 libdir
='${exec_prefix}/lib'
791 localedir
='${datarootdir}/locale'
792 mandir
='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\
$ac_option
806 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
853 as_fn_error $?
"invalid feature name: $ac_useropt"
854 ac_useropt_orig
=$ac_useropt
855 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep
=', ';;
863 eval enable_
$ac_useropt=no
;;
865 -docdir |
--docdir |
--docdi |
--doc |
--do)
867 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
870 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
872 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
875 -enable-* |
--enable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 as_fn_error $?
"invalid feature name: $ac_useropt"
880 ac_useropt_orig
=$ac_useropt
881 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep
=', ';;
889 eval enable_
$ac_useropt=\
$ac_optarg ;;
891 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
892 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
893 |
--exec |
--exe |
--ex)
894 ac_prev
=exec_prefix
;;
895 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
896 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
897 |
--exec=* |
--exe=* |
--ex=*)
898 exec_prefix
=$ac_optarg ;;
900 -gas |
--gas |
--ga |
--g)
901 # Obsolete; use --with-gas.
904 -help |
--help |
--hel |
--he |
-h)
906 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
907 ac_init_help
=recursive
;;
908 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
909 ac_init_help
=short
;;
911 -host |
--host |
--hos |
--ho)
912 ac_prev
=host_alias
;;
913 -host=* |
--host=* |
--hos=* |
--ho=*)
914 host_alias
=$ac_optarg ;;
916 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
918 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
920 htmldir
=$ac_optarg ;;
922 -includedir |
--includedir |
--includedi |
--included |
--include \
923 |
--includ |
--inclu |
--incl |
--inc)
924 ac_prev
=includedir
;;
925 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
926 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
927 includedir
=$ac_optarg ;;
929 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
931 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
932 infodir
=$ac_optarg ;;
934 -libdir |
--libdir |
--libdi |
--libd)
936 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
939 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
940 |
--libexe |
--libex |
--libe)
941 ac_prev
=libexecdir
;;
942 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
943 |
--libexe=* |
--libex=* |
--libe=*)
944 libexecdir
=$ac_optarg ;;
946 -localedir |
--localedir |
--localedi |
--localed |
--locale)
948 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
949 localedir
=$ac_optarg ;;
951 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
952 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
953 ac_prev
=localstatedir
;;
954 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
955 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
956 localstatedir
=$ac_optarg ;;
958 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
960 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
964 # Obsolete; use --without-fp.
967 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
968 |
--no-cr |
--no-c |
-n)
971 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
972 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
975 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
976 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
977 |
--oldin |
--oldi |
--old |
--ol |
--o)
978 ac_prev
=oldincludedir
;;
979 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
980 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
981 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
982 oldincludedir
=$ac_optarg ;;
984 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
986 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
989 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
990 |
--program-pre |
--program-pr |
--program-p)
991 ac_prev
=program_prefix
;;
992 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
993 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
994 program_prefix
=$ac_optarg ;;
996 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
997 |
--program-suf |
--program-su |
--program-s)
998 ac_prev
=program_suffix
;;
999 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1000 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1001 program_suffix
=$ac_optarg ;;
1003 -program-transform-name |
--program-transform-name \
1004 |
--program-transform-nam |
--program-transform-na \
1005 |
--program-transform-n |
--program-transform- \
1006 |
--program-transform |
--program-transfor \
1007 |
--program-transfo |
--program-transf \
1008 |
--program-trans |
--program-tran \
1009 |
--progr-tra |
--program-tr |
--program-t)
1010 ac_prev
=program_transform_name
;;
1011 -program-transform-name=* |
--program-transform-name=* \
1012 |
--program-transform-nam=* |
--program-transform-na=* \
1013 |
--program-transform-n=* |
--program-transform-=* \
1014 |
--program-transform=* |
--program-transfor=* \
1015 |
--program-transfo=* |
--program-transf=* \
1016 |
--program-trans=* |
--program-tran=* \
1017 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1018 program_transform_name
=$ac_optarg ;;
1020 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1022 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1023 pdfdir
=$ac_optarg ;;
1025 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1027 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1030 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1031 |
-silent |
--silent |
--silen |
--sile |
--sil)
1034 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1036 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1038 sbindir
=$ac_optarg ;;
1040 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1041 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1042 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1044 ac_prev
=sharedstatedir
;;
1045 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1046 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1047 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1049 sharedstatedir
=$ac_optarg ;;
1051 -site |
--site |
--sit)
1053 -site=* |
--site=* |
--sit=*)
1056 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1058 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1059 srcdir
=$ac_optarg ;;
1061 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1062 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1063 ac_prev
=sysconfdir
;;
1064 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1065 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1066 sysconfdir
=$ac_optarg ;;
1068 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1069 ac_prev
=target_alias
;;
1070 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1071 target_alias
=$ac_optarg ;;
1073 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1076 -version |
--version |
--versio |
--versi |
--vers |
-V)
1077 ac_init_version
=: ;;
1080 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error $?
"invalid package name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval with_
$ac_useropt=\
$ac_optarg ;;
1095 -without-* |
--without-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error $?
"invalid package name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval with_
$ac_useropt=no
;;
1112 # Obsolete; use --with-x.
1115 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1116 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1117 ac_prev
=x_includes
;;
1118 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1119 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1120 x_includes
=$ac_optarg ;;
1122 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1123 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1124 ac_prev
=x_libraries
;;
1125 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1126 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1127 x_libraries
=$ac_optarg ;;
1129 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1134 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 case $ac_envvar in #(
1137 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1138 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1140 eval $ac_envvar=\
$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 if test -n "$ac_prev"; then
1155 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1156 as_fn_error $?
"missing argument to $ac_option"
1159 if test -n "$ac_unrecognized_opts"; then
1160 case $enable_option_checking in
1162 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 # Check all directory arguments for consistency.
1168 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val
=\$
$ac_var
1174 # Remove trailing slashes.
1177 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178 eval $ac_var=\
$ac_val;;
1180 # Be sure to have absolute directory names.
1182 [\\/$
]* | ?
:[\\/]* ) continue;;
1183 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1185 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target
=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x
; then
1197 if test "x$build_alias" = x
; then
1198 cross_compiling
=maybe
1199 elif test "x$build_alias" != "x$host_alias"; then
1205 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1207 test "$silent" = yes && exec 6>/dev
/null
1210 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di
=`ls -di .` &&
1212 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error $?
"working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error $?
"pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted
=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir
=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1250 ac_srcdir_defaulted
=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1254 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1256 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1268 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 for ac_var
in $ac_precious_vars; do
1271 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1273 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1284 \`configure' configures libctf library 1.2.0-pre to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking ...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf-library]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive
) echo "Configuration of libctf library 1.2.0-pre:";;
1355 --disable-option-checking ignore unrecognized
--enable/--with options
1356 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1357 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1358 --enable-dependency-tracking
1359 do not reject slow dependency extractors
1360 --disable-dependency-tracking
1361 speeds up one-time build
1362 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1363 --disable-silent-rules verbose build output
(undo
: "make V=0")
1364 --disable-largefile omit support
for large files
1365 --enable-werror-always enable -Werror despite compiler version
1366 --enable-maintainer-mode
1367 enable make rules and dependencies not useful
(and
1368 sometimes confusing
) to the casual installer
1371 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1372 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1373 --with-system-zlib use installed libz
1375 Some influential environment variables
:
1376 CC C compiler
command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1379 nonstandard directory
<lib dir
>
1380 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1381 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1382 you have headers
in a nonstandard directory
<include dir
>
1385 Use these variables to override the choices made by
`configure' or to help
1386 it to find libraries and programs with nonstandard names/locations.
1388 Report bugs to the package provider.
1393 if test "$ac_init_help" = "recursive"; then
1394 # If there are subdirs, report their specific --help.
1395 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1396 test -d "$ac_dir" ||
1397 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1405 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1407 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 ac_abs_top_builddir=$ac_pwd
1413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir=$ac_top_build_prefix
1418 .) # We are building in place.
1420 ac_top_srcdir=$ac_top_builddir_sub
1421 ac_abs_top_srcdir=$ac_pwd ;;
1422 [\\/]* | ?:[\\/]* ) # Absolute name.
1423 ac_srcdir=$srcdir$ac_dir_suffix;
1424 ac_top_srcdir=$srcdir
1425 ac_abs_top_srcdir=$srcdir ;;
1427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428 ac_top_srcdir=$ac_top_build_prefix$srcdir
1429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433 cd "$ac_dir" || { ac_status=$?; continue; }
1434 # Check for guested configure.
1435 if test -f "$ac_srcdir/configure.gnu"; then
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then
1440 $SHELL "$ac_srcdir/configure" --help=recursive
1442 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 cd "$ac_pwd" || { ac_status=$?; break; }
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1451 libctf library configure 1.2.0-pre
1452 generated by GNU Autoconf 2.69
1454 Copyright (C) 2012 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1461 ## ------------------------ ##
1462 ## Autoconf initialization. ##
1463 ## ------------------------ ##
1465 # ac_fn_c_try_compile LINENO
1466 # --------------------------
1467 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1468 ac_fn_c_try_compile ()
1470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1471 rm -f conftest.$ac_objext
1472 if { { ac_try="$ac_compile"
1474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1475 *) ac_try_echo
=$ac_try;;
1477 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_compile") 2>conftest.err
1481 if test -s conftest.err
; then
1482 grep -v '^ *+' conftest.err
>conftest.er1
1483 cat conftest.er1
>&5
1484 mv -f conftest.er1 conftest.err
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; } && {
1488 test -z "$ac_c_werror_flag" ||
1489 test ! -s conftest.err
1490 } && test -s conftest.
$ac_objext; then :
1493 $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.
$ac_ext >&5
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status
$ac_retval
1501 } # ac_fn_c_try_compile
1503 # ac_fn_c_try_cpp LINENO
1504 # ----------------------
1505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1508 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1509 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } > conftest.i && {
1525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1541 # -------------------------------------------------------
1542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1543 # the include files in INCLUDES and setting the cache variable VAR
1545 ac_fn_c_check_header_mongrel ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if eval \${$3+:} false; then :
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 $as_echo_n "checking for $2... " >&6; }
1551 if eval \${$3+:} false; then :
1552 $as_echo_n "(cached) " >&6
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 $as_echo "$ac_res" >&6; }
1558 # Is the header compilable?
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1560 $as_echo_n "checking $2 usability... " >&6; }
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1566 if ac_fn_c_try_compile "$LINENO"; then :
1567 ac_header_compiler=yes
1569 ac_header_compiler=no
1571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1573 $as_echo "$ac_header_compiler" >&6; }
1575 # Is the header present?
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1577 $as_echo_n "checking $2 presence... " >&6; }
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1582 if ac_fn_c_try_cpp "$LINENO"; then :
1583 ac_header_preproc=yes
1585 ac_header_preproc=no
1587 rm -f conftest.err conftest.i conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1589 $as_echo "$ac_header_preproc" >&6; }
1591 # So? What about this header?
1592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1603 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1607 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1617 eval "$3=\$ac_header_compiler"
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 } # ac_fn_c_check_header_mongrel
1627 # ac_fn_c_try_run LINENO
1628 # ----------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1630 # that executables *can* be run.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_link"
1636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1637 *) ac_try_echo
=$ac_try;;
1639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>&5
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1645 { { case "(($ac_try" in
1646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_try") 2>&5
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; }; }; then :
1657 $as_echo "$as_me: program exited with status $ac_status" >&5
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1661 ac_retval=$ac_status
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile "$LINENO"; then :
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 } # ac_fn_c_check_header_compile
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest$ac_exeext
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1710 *) ac_try_echo
=$ac_try;;
1712 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>conftest.err
1716 if test -s conftest.err
; then
1717 grep -v '^ *+' conftest.err
>conftest.er1
1718 cat conftest.er1
>&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest
$ac_exeext && {
1726 test "$cross_compiling" = yes ||
1727 test -x conftest
$ac_exeext
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.
$ac_ext >&5
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1744 } # ac_fn_c_try_link
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func
()
1751 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \
${$3+:} false
; then :
1755 $as_echo_n "(cached) " >&6
1757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1769 # include <limits.h>
1771 # include <assert.h>
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1798 if ac_fn_c_try_link
"$LINENO"; then :
1803 rm -f core conftest.err conftest.
$ac_objext \
1804 conftest
$ac_exeext conftest.
$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 } # ac_fn_c_check_func
1813 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1814 # ---------------------------------------------
1815 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1817 ac_fn_c_check_decl
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1821 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1823 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1824 if eval \
${$3+:} false
; then :
1825 $as_echo_n "(cached) " >&6
1827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1833 #ifndef $as_decl_name
1835 (void) $as_decl_use;
1837 (void) $as_decl_name;
1845 if ac_fn_c_try_compile
"$LINENO"; then :
1850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_decl
1858 cat >config.log
<<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by libctf library $as_me 1.2.0-pre, which was
1863 generated by GNU Autoconf 2.69. Invocation command line was
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir
=.
1899 $as_echo "PATH: $as_dir"
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_must_keep_next
=false
1929 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1930 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1931 |
-silent |
--silent |
--silen |
--sile |
--sil)
1934 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1939 as_fn_append ac_configure_args1
" '$ac_arg'"
1940 if test $ac_must_keep_next = true
; then
1941 ac_must_keep_next
=false
# Got value, back to normal.
1944 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1945 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1946 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1947 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 -* ) ac_must_keep_next
=true
;;
1955 as_fn_append ac_configure_args
" '$ac_arg'"
1960 { ac_configure_args0
=; unset ac_configure_args0
;}
1961 { ac_configure_args1
=; unset ac_configure_args1
;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1973 $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2013 for ac_var in $ac_subst_vars
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -n "$ac_subst_files"; then
2024 $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2028 for ac_var
in $ac_subst_files
2030 eval ac_val
=\$
$ac_var
2032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 $as_echo "$ac_var='\''$ac_val'\''"
2039 if test -s confdefs.h; then
2040 $as_echo "## ----------- ##
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 for ac_signal
in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest
* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h
<<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 cat >>confdefs.h
<<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 cat >>confdefs.h
<<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h
<<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h
<<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 cat >>confdefs.h
<<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2096 if test -n "$CONFIG_SITE"; then
2097 # We do not want a PATH search for config.site.
2098 case $CONFIG_SITE in #((
2099 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2100 */*) ac_site_file1
=$CONFIG_SITE;;
2101 *) ac_site_file1
=.
/$CONFIG_SITE;;
2103 elif test "x$prefix" != xNONE
; then
2104 ac_site_file1
=$prefix/share
/config.site
2105 ac_site_file2
=$prefix/etc
/config.site
2107 ac_site_file1
=$ac_default_prefix/share
/config.site
2108 ac_site_file2
=$ac_default_prefix/etc
/config.site
2110 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE
&& continue
2113 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2118 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $?
"failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2133 *) .
"./$cache_file";;
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 as_fn_append ac_header_list
" stdlib.h"
2143 as_fn_append ac_header_list
" unistd.h"
2144 as_fn_append ac_header_list
" sys/param.h"
2145 # Check that the precious variables saved in the cache have kept the same
2147 ac_cache_corrupted
=false
2148 for ac_var
in $ac_precious_vars; do
2149 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2150 eval ac_new_set
=\
$ac_env_${ac_var}_set
2151 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2152 eval ac_new_val
=\
$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted
=: ;;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted
=: ;;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w
=`echo x $ac_old_val`
2167 ac_new_val_w
=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted
=:
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\
$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2186 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg
=$ac_var=$ac_new_val ;;
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2207 ac_cpp
='$CPP $CPPFLAGS'
2208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2219 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2220 if test -f "$ac_dir/install-sh"; then
2222 ac_install_sh
="$ac_aux_dir/install-sh -c"
2224 elif test -f "$ac_dir/install.sh"; then
2226 ac_install_sh
="$ac_aux_dir/install.sh -c"
2228 elif test -f "$ac_dir/shtool"; then
2230 ac_install_sh
="$ac_aux_dir/shtool install -c"
2234 if test -z "$ac_aux_dir"; then
2235 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Expand $ac_aux_dir to an absolute path.
2248 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2251 ac_cpp
='$CPP $CPPFLAGS'
2252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2257 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2259 $as_echo_n "checking for $ac_word... " >&6; }
2260 if ${ac_cv_prog_CC+:} false
; then :
2261 $as_echo_n "(cached) " >&6
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC
="$CC" # Let the user override the test.
2266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir
=.
2271 for ac_exec_ext
in '' $ac_executable_extensions; do
2272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 if test -n "$CC"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2286 $as_echo "$CC" >&6; }
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2289 $as_echo "no" >&6; }
2294 if test -z "$ac_cv_prog_CC"; then
2296 # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc
; ac_word
=$2
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299 $as_echo_n "checking for $ac_word... " >&6; }
2300 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2301 $as_echo_n "(cached) " >&6
2303 if test -n "$ac_ct_CC"; then
2304 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir
=.
2311 for ac_exec_ext
in '' $ac_executable_extensions; do
2312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_ac_ct_CC
="gcc"
2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2326 $as_echo "$ac_ct_CC" >&6; }
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2332 if test "x$ac_ct_CC" = x
; then
2335 case $cross_compiling:$ac_tool_warned in
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2339 ac_tool_warned
=yes ;;
2347 if test -z "$CC"; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2350 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_CC+:} false
; then :
2354 $as_echo_n "(cached) " >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC
="$CC" # Let the user override the test.
2359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir
=.
2364 for ac_exec_ext
in '' $ac_executable_extensions; do
2365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test -n "$CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2388 if test -z "$CC"; then
2389 # Extract the first word of "cc", so it can be a program name with args.
2390 set dummy cc
; ac_word
=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_CC+:} false
; then :
2394 $as_echo_n "(cached) " >&6
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC
="$CC" # Let the user override the test.
2400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir
=.
2405 for ac_exec_ext
in '' $ac_executable_extensions; do
2406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2408 ac_prog_rejected
=yes
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test $ac_prog_rejected = yes; then
2420 # We found a bogon in the path, so make sure we never use it.
2421 set dummy
$ac_cv_prog_CC
2423 if test $# != 0; then
2424 # We chose a different compiler from the bogus one.
2425 # However, it has the same basename, so the bogon will be chosen
2426 # first if we set CC to just the basename; use the full file name.
2428 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2444 if test -z "$CC"; then
2445 if test -n "$ac_tool_prefix"; then
2446 for ac_prog
in cl.exe
2448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2449 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if ${ac_cv_prog_CC+:} false
; then :
2453 $as_echo_n "(cached) " >&6
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC
="$CC" # Let the user override the test.
2458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir
=.
2463 for ac_exec_ext
in '' $ac_executable_extensions; do
2464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2465 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2485 test -n "$CC" && break
2488 if test -z "$CC"; then
2490 for ac_prog
in cl.exe
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy
$ac_prog; ac_word
=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2497 $as_echo_n "(cached) " >&6
2499 if test -n "$ac_ct_CC"; then
2500 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir
=.
2507 for ac_exec_ext
in '' $ac_executable_extensions; do
2508 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_ac_ct_CC
="$ac_prog"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522 $as_echo "$ac_ct_CC" >&6; }
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2529 test -n "$ac_ct_CC" && break
2532 if test "x$ac_ct_CC" = x
; then
2535 case $cross_compiling:$ac_tool_warned in
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned
=yes ;;
2548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error $?
"no acceptable C compiler found in \$PATH
2551 See \`config.log' for more details" "$LINENO" 5; }
2553 # Provide some information about the compiler.
2554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2557 for ac_option
in --version -v -V -qversion; do
2558 { { ac_try
="$ac_compiler $ac_option >&5"
2560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2567 if test -s conftest.err; then
2569 ... rest of stderr output deleted ...
2570 10q' conftest.err >conftest.er1
2571 cat conftest.er1 >&5
2573 rm -f conftest.er1 conftest.err
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2595 $as_echo_n "checking whether the C compiler works... " >&6; }
2596 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2598 # The possible output files:
2599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2602 for ac_file in $ac_files
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2611 if { { ac_try="$ac_link_default"
2613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2614 *) ac_try_echo
=$ac_try;;
2616 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_link_default") 2>&5
2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; }; then :
2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2625 # so that the user can short-circuit this test for compilers unknown to
2627 for ac_file
in $ac_files ''
2629 test -f "$ac_file" ||
continue
2631 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2634 # We found the default executable, but exeext='' is most
2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2640 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642 # We set ac_cv_exeext here because the later test for it is not
2643 # safe: cross compilers may not add the suffix if given an `-o'
2644 # argument, so we may need to know it at that point already.
2645 # Even if this section looks crufty: it has the advantage of
2652 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2657 if test -z "$ac_file"; then :
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.
$ac_ext >&5
2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error
77 "C compiler cannot create executables
2666 See \`config.log' for more details" "$LINENO" 5; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672 $as_echo_n "checking for C compiler default output file name... " >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 ac_exeext
=$ac_cv_exeext
2677 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2678 ac_clean_files
=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { { ac_try
="$ac_link"
2683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; then :
2692 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2693 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2696 for ac_file
in conftest.exe conftest conftest.
*; do
2697 test -f "$ac_file" ||
continue
2699 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2700 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details" "$LINENO" 5; }
2711 rm -f conftest conftest
$ac_cv_exeext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713 $as_echo "$ac_cv_exeext" >&6; }
2715 rm -f conftest.
$ac_ext
2716 EXEEXT
=$ac_cv_exeext
2718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 FILE *f = fopen ("conftest.out", "w");
2725 return ferror (f) || fclose (f) != 0;
2731 ac_clean_files
="$ac_clean_files conftest.out"
2732 # Check that the compiler produces executables we can run. If not, either
2733 # the compiler is broken, or we cross compile.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735 $as_echo_n "checking whether we are cross compiling... " >&6; }
2736 if test "$cross_compiling" != yes; then
2737 { { ac_try
="$ac_link"
2739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }
2748 if { ac_try='./conftest$ac_cv_exeext'
2749 { { case "(($ac_try" in
2750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2751 *) ac_try_echo
=$ac_try;;
2753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_try") 2>&5
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }; }; then
2761 if test "$cross_compiling" = maybe
; then
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $?
"cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details" "$LINENO" 5; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773 $as_echo "$cross_compiling" >&6; }
2775 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2776 ac_clean_files
=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778 $as_echo_n "checking for suffix of object files... " >&6; }
2779 if ${ac_cv_objext+:} false
; then :
2780 $as_echo_n "(cached) " >&6
2782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2793 rm -f conftest.o conftest.obj
2794 if { { ac_try
="$ac_compile"
2796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_compile") 2>&5
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 for ac_file in conftest.o conftest.obj conftest.*; do
2806 test -f "$ac_file" || continue;
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2820 See \
`config.log' for more details" "$LINENO" 5; }
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825 $as_echo "$ac_cv_objext" >&6; }
2826 OBJEXT=$ac_cv_objext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830 if ${ac_cv_c_compiler_gnu+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2847 if ac_fn_c_try_compile "$LINENO"; then :
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858 if test $ac_compiler_gnu = yes; then
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2867 if ${ac_cv_prog_cc_g+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 ac_save_c_werror_flag=$ac_c_werror_flag
2871 ac_c_werror_flag=yes
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2885 if ac_fn_c_try_compile "$LINENO"; then :
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2916 if ac_fn_c_try_compile "$LINENO"; then :
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 ac_c_werror_flag=$ac_save_c_werror_flag
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927 $as_echo "$ac_cv_prog_cc_g" >&6; }
2928 if test "$ac_test_CFLAGS" = set; then
2929 CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931 if test "$GCC" = yes; then
2937 if test "$GCC" = yes; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945 if ${ac_cv_prog_cc_c89+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 ac_cv_prog_cc_c89=no
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2969 s = g (p, va_arg (v,int));
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
2977 as 'x'. The following induces an error, until -std is added to get
2978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
2980 that's true only with -std. */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 CC="$ac_save_CC $ac_arg"
3006 if ac_fn_c_try_compile "$LINENO"; then :
3007 ac_cv_prog_cc_c89=$ac_arg
3009 rm -f core conftest.err conftest.$ac_objext
3010 test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 rm -f conftest.$ac_ext
3017 case "x$ac_cv_prog_cc_c89" in
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3020 $as_echo "none needed" >&6; } ;;
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3023 $as_echo "unsupported" >&6; } ;;
3025 CC="$CC $ac_cv_prog_cc_c89"
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3027 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029 if test "x$ac_cv_prog_cc_c89" != xno; then :
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3045 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3046 if ${am_cv_prog_cc_c_o+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3060 # Make sure it works both with $CC and with simple cc.
3061 # Following AC_PROG_CC_C_O, we do the test twice because some
3062 # compilers refuse to overwrite an existing .o file with -o,
3063 # though they will create one.
3064 am_cv_prog_cc_c_o=yes
3066 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3067 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } \
3071 && test -f conftest2.$ac_objext; then
3074 am_cv_prog_cc_c_o=no
3078 rm -f core conftest*
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3082 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3083 if test "$am_cv_prog_cc_c_o" != yes; then
3084 # Losing compiler, so override with the script.
3085 # FIXME: It is wrong to rewrite CC.
3086 # But if we don't then we get into trouble of one sort or another.
3087 # A longer-term fix would be to have automake use am__CC in this case,
3088 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3089 CC="$am_aux_dir/compile $CC"
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3105 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if ${ac_cv_prog_CPP+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3129 # include <limits.h>
3131 # include <assert.h>
3135 if ac_fn_c_try_cpp "$LINENO"; then :
3138 # Broken: fails on valid input.
3141 rm -f conftest.err conftest.i conftest.$ac_ext
3143 # OK, works on sane cases. Now check whether nonexistent headers
3144 # can be detected and how.
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3147 #include <ac_nonexistent.h>
3149 if ac_fn_c_try_cpp "$LINENO"; then :
3150 # Broken: success on invalid input.
3153 # Passes both tests.
3157 rm -f conftest.err conftest.i conftest.$ac_ext
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.i conftest.err conftest.
$ac_ext
3162 if $ac_preproc_ok; then :
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3175 $as_echo "$CPP" >&6; }
3177 for ac_c_preproc_warn_flag
in '' yes
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3188 # include <limits.h>
3190 # include <assert.h>
3194 if ac_fn_c_try_cpp
"$LINENO"; then :
3197 # Broken: fails on valid input.
3200 rm -f conftest.err conftest.i conftest.
$ac_ext
3202 # OK, works on sane cases. Now check whether nonexistent headers
3203 # can be detected and how.
3204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <ac_nonexistent.h>
3208 if ac_fn_c_try_cpp
"$LINENO"; then :
3209 # Broken: success on invalid input.
3212 # Passes both tests.
3216 rm -f conftest.err conftest.i conftest.
$ac_ext
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.i conftest.err conftest.
$ac_ext
3221 if $ac_preproc_ok; then :
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3227 See \`config.log' for more details" "$LINENO" 5; }
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3239 if ${ac_cv_path_GREP+:} false
; then :
3240 $as_echo_n "(cached) " >&6
3242 if test -z "$GREP"; then
3243 ac_path_GREP_found
=false
3244 # Loop through the user's path and test for each of PROGNAME-LIST
3245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3246 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3249 test -z "$as_dir" && as_dir
=.
3250 for ac_prog
in grep ggrep
; do
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3253 as_fn_executable_p
"$ac_path_GREP" ||
continue
3254 # Check for GNU ac_path_GREP and select it if it is found.
3255 # Check for GNU $ac_path_GREP
3256 case `"$ac_path_GREP" --version 2>&1` in
3258 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3261 $as_echo_n 0123456789 >"conftest.in"
3264 cat "conftest.in" "conftest.in" >"conftest.tmp"
3265 mv "conftest.tmp" "conftest.in"
3266 cp "conftest.in" "conftest.nl"
3267 $as_echo 'GREP' >> "conftest.nl"
3268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3269 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3270 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3272 # Best one so far, save it but keep looking for a better one
3273 ac_cv_path_GREP
="$ac_path_GREP"
3274 ac_path_GREP_max
=$ac_count
3276 # 10*(2^10) chars as input seems more than enough
3277 test $ac_count -gt 10 && break
3279 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3282 $ac_path_GREP_found && break 3
3287 if test -z "$ac_cv_path_GREP"; then
3288 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3291 ac_cv_path_GREP
=$GREP
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3296 $as_echo "$ac_cv_path_GREP" >&6; }
3297 GREP
="$ac_cv_path_GREP"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3301 $as_echo_n "checking for egrep... " >&6; }
3302 if ${ac_cv_path_EGREP+:} false
; then :
3303 $as_echo_n "(cached) " >&6
3305 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3306 then ac_cv_path_EGREP
="$GREP -E"
3308 if test -z "$EGREP"; then
3309 ac_path_EGREP_found
=false
3310 # Loop through the user's path and test for each of PROGNAME-LIST
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3312 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_prog
in egrep; do
3317 for ac_exec_ext
in '' $ac_executable_extensions; do
3318 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3319 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3320 # Check for GNU ac_path_EGREP and select it if it is found.
3321 # Check for GNU $ac_path_EGREP
3322 case `"$ac_path_EGREP" --version 2>&1` in
3324 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3327 $as_echo_n 0123456789 >"conftest.in"
3330 cat "conftest.in" "conftest.in" >"conftest.tmp"
3331 mv "conftest.tmp" "conftest.in"
3332 cp "conftest.in" "conftest.nl"
3333 $as_echo 'EGREP' >> "conftest.nl"
3334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3335 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3336 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3338 # Best one so far, save it but keep looking for a better one
3339 ac_cv_path_EGREP
="$ac_path_EGREP"
3340 ac_path_EGREP_max
=$ac_count
3342 # 10*(2^10) chars as input seems more than enough
3343 test $ac_count -gt 10 && break
3345 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3348 $ac_path_EGREP_found && break 3
3353 if test -z "$ac_cv_path_EGREP"; then
3354 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3357 ac_cv_path_EGREP
=$EGREP
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3363 $as_echo "$ac_cv_path_EGREP" >&6; }
3364 EGREP
="$ac_cv_path_EGREP"
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3368 $as_echo_n "checking for ANSI C header files... " >&6; }
3369 if ${ac_cv_header_stdc+:} false
; then :
3370 $as_echo_n "(cached) " >&6
3372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3387 if ac_fn_c_try_compile
"$LINENO"; then :
3388 ac_cv_header_stdc
=yes
3390 ac_cv_header_stdc
=no
3392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3394 if test $ac_cv_header_stdc = yes; then
3395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "memchr" >/dev
/null
2>&1; then :
3405 ac_cv_header_stdc
=no
3411 if test $ac_cv_header_stdc = yes; then
3412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev
/null
2>&1; then :
3422 ac_cv_header_stdc
=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then :
3433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3437 #if ((' ' & 0x0FF) == 0x020)
3438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3441 # define ISLOWER(c) \
3442 (('a' <= (c) && (c) <= 'i') \
3443 || ('j' <= (c) && (c) <= 'r') \
3444 || ('s' <= (c) && (c) <= 'z'))
3445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3453 for (i = 0; i < 256; i++)
3454 if (XOR (islower (i), ISLOWER (i))
3455 || toupper (i) != TOUPPER (i))
3460 if ac_fn_c_try_run
"$LINENO"; then :
3463 ac_cv_header_stdc
=no
3465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3466 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3472 $as_echo "$ac_cv_header_stdc" >&6; }
3473 if test $ac_cv_header_stdc = yes; then
3475 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3480 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3481 inttypes.h stdint.h unistd.h
3483 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3486 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3487 cat >>confdefs.h
<<_ACEOF
3488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3497 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3498 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3505 if test "$MINIX" = yes; then
3507 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3510 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3513 $as_echo "#define _MINIX 1" >>confdefs.h
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3519 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3520 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3521 $as_echo_n "(cached) " >&6
3523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3526 # define __EXTENSIONS__ 1
3527 $ac_includes_default
3536 if ac_fn_c_try_compile
"$LINENO"; then :
3537 ac_cv_safe_to_define___extensions__
=yes
3539 ac_cv_safe_to_define___extensions__
=no
3541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3544 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3545 test $ac_cv_safe_to_define___extensions__ = yes &&
3546 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3548 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3550 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3552 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3554 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3557 am__api_version
='1.15'
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # OS/2's system install, which has a completely different semantic
3571 # ./install, which can be erroneously created by make from ./install.sh.
3572 # Reject install programs that cannot install multiple files.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3575 if test -z "$INSTALL"; then
3576 if ${ac_cv_path_install+:} false
; then :
3577 $as_echo_n "(cached) " >&6
3579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir
=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in #((
3586 .
/ | .
// |
/[cC
]/* | \
3587 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3588 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3594 for ac_prog
in ginstall scoinst
install; do
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3597 if test $ac_prog = install &&
3598 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3601 elif test $ac_prog = install &&
3602 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3606 rm -rf conftest.one conftest.two conftest.dir
3607 echo one
> conftest.one
3608 echo two
> conftest.two
3610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3611 test -s conftest.one
&& test -s conftest.two
&&
3612 test -s conftest.dir
/conftest.one
&&
3613 test -s conftest.dir
/conftest.two
3615 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3628 rm -rf conftest.one conftest.two conftest.dir
3631 if test "${ac_cv_path_install+set}" = set; then
3632 INSTALL
=$ac_cv_path_install
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for INSTALL within a source directory, because that will
3636 # break other packages using the cache if that directory is
3637 # removed, or if the value is a relative name.
3638 INSTALL
=$ac_install_sh
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3642 $as_echo "$INSTALL" >&6; }
3644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3645 # It thinks the first close brace ends the variable substitution.
3646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3650 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3653 $as_echo_n "checking whether build environment is sane... " >&6; }
3654 # Reject unsafe characters in $srcdir or the absolute working directory
3655 # name. Accept space and tab only in the latter.
3659 *[\\\"\
#\$\&\'\`$am_lf]*)
3660 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3663 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3664 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3667 # Do 'set' in a subshell so we don't clobber the current shell's
3668 # arguments. Must try -L first in case configure is actually a
3669 # symlink; some systems play weird games with the mod time of symlinks
3670 # (eg FreeBSD returns the mod time of the symlink's containing
3674 for am_try
in 1 2; do
3675 echo "timestamp, slept: $am_has_slept" > conftest.
file
3676 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3677 if test "$*" = "X"; then
3679 set X
`ls -t "$srcdir/configure" conftest.file`
3681 if test "$*" != "X $srcdir/configure conftest.file" \
3682 && test "$*" != "X conftest.file $srcdir/configure"; then
3684 # If neither matched, then we have a broken ls. This can happen
3685 # if, for instance, CONFIG_SHELL is bash and it inherits a
3686 # broken ls alias from the environment. This has actually
3687 # happened. Such a system could not be considered "sane".
3688 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3689 alias in your environment" "$LINENO" 5
3691 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3698 test "$2" = conftest.
file
3704 as_fn_error $?
"newly created file is older than distributed files!
3705 Check your system clock" "$LINENO" 5
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 # If we didn't sleep, we still need to ensure time stamps of config.status and
3710 # generated files are strictly newer.
3712 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3719 test "$program_prefix" != NONE
&&
3720 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3721 # Use a double $ so make ignores it.
3722 test "$program_suffix" != NONE
&&
3723 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3724 # Double any \ or $.
3725 # By default was `s,x,x', remove it if useless.
3726 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3727 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3729 if test x
"${MISSING+set}" != xset
; then
3732 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3734 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3737 # Use eval to expand $SHELL
3738 if eval "$MISSING --is-lightweight"; then
3739 am_missing_run
="$MISSING "
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3743 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3746 if test x
"${install_sh+set}" != xset
; then
3749 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3751 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3755 # Installed binaries are usually stripped using 'strip' when the user
3756 # run "make install-strip". However 'strip' might not be the right
3757 # tool to use in cross-compilation environments, therefore Automake
3758 # will honor the 'STRIP' environment variable to overrule this program.
3759 if test "$cross_compiling" != no
; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3762 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_STRIP+:} false
; then :
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$STRIP"; then
3769 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir
=.
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 STRIP
=$ac_cv_prog_STRIP
3789 if test -n "$STRIP"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3791 $as_echo "$STRIP" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$ac_cv_prog_STRIP"; then
3801 # Extract the first word of "strip", so it can be a program name with args.
3802 set dummy strip
; ac_word
=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$ac_ct_STRIP"; then
3809 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir
=.
3816 for ac_exec_ext
in '' $ac_executable_extensions; do
3817 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_ac_ct_STRIP
="strip"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3829 if test -n "$ac_ct_STRIP"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3831 $as_echo "$ac_ct_STRIP" >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3837 if test "x$ac_ct_STRIP" = x
; then
3840 case $cross_compiling:$ac_tool_warned in
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned
=yes ;;
3849 STRIP
="$ac_cv_prog_STRIP"
3853 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3856 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3857 if test -z "$MKDIR_P"; then
3858 if ${ac_cv_path_mkdir+:} false
; then :
3859 $as_echo_n "(cached) " >&6
3861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3862 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3865 test -z "$as_dir" && as_dir
=.
3866 for ac_prog
in mkdir gmkdir
; do
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3869 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3870 'mkdir (GNU coreutils) '* | \
3871 'mkdir (coreutils) '* | \
3872 'mkdir (fileutils) '4.1*)
3873 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3883 test -d .
/--version && rmdir .
/--version
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P
="$ac_cv_path_mkdir -p"
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 MKDIR_P
="$ac_install_sh -d"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3895 $as_echo "$MKDIR_P" >&6; }
3897 for ac_prog
in gawk mawk nawk
awk
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy
$ac_prog; ac_word
=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_AWK+:} false
; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$AWK"; then
3907 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir
=.
3914 for ac_exec_ext
in '' $ac_executable_extensions; do
3915 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_AWK
="$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$AWK"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3929 $as_echo "$AWK" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3936 test -n "$AWK" && break
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3940 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3942 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3943 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3944 $as_echo_n "(cached) " >&6
3946 cat >conftest.
make <<\_ACEOF
3949 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3952 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3954 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3956 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3960 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 $as_echo "yes" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 SET_MAKE
="MAKE=${MAKE-make}"
3970 rm -rf .tst
2>/dev
/null
3971 mkdir .tst
2>/dev
/null
3972 if test -d .tst
; then
3977 rmdir .tst
2>/dev
/null
3979 DEPDIR
="${am__leading_dot}deps"
3981 ac_config_commands
="$ac_config_commands depfiles"
3984 am_make
=${MAKE-make}
3985 cat > confinc
<< 'END'
3987 @
echo this is the am__doit target
3990 # If we don't find an include directive, just comment out the code.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3996 # First try GNU make style include.
3997 echo "include confinc" > confmf
3998 # Ignore all kinds of additional output from 'make'.
3999 case `$am_make -s -f confmf 2> /dev/null` in #(
4000 *the\ am__doit\ target
*)
4006 # Now try BSD make style include.
4007 if test "$am__include" = "#"; then
4008 echo '.include "confinc"' > confmf
4009 case `$am_make -s -f confmf 2> /dev/null` in #(
4010 *the\ am__doit\ target
*)
4011 am__include
=.include
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4020 $as_echo "$_am_result" >&6; }
4021 rm -f confinc confmf
4023 # Check whether --enable-dependency-tracking was given.
4024 if test "${enable_dependency_tracking+set}" = set; then :
4025 enableval
=$enable_dependency_tracking;
4028 if test "x$enable_dependency_tracking" != xno
; then
4029 am_depcomp
="$ac_aux_dir/depcomp"
4033 if test "x$enable_dependency_tracking" != xno; then
4042 # Check whether --enable-silent-rules was given.
4043 if test "${enable_silent_rules+set}" = set; then :
4044 enableval
=$enable_silent_rules;
4047 case $enable_silent_rules in # (((
4048 yes) AM_DEFAULT_VERBOSITY
=0;;
4049 no
) AM_DEFAULT_VERBOSITY
=1;;
4050 *) AM_DEFAULT_VERBOSITY
=1;;
4052 am_make
=${MAKE-make}
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4054 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4055 if ${am_cv_make_support_nested_variables+:} false
; then :
4056 $as_echo_n "(cached) " >&6
4058 if $as_echo 'TRUE=$(BAR$(V))
4064 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4065 am_cv_make_support_nested_variables
=yes
4067 am_cv_make_support_nested_variables
=no
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4071 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4072 if test $am_cv_make_support_nested_variables = yes; then
4074 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4076 AM_V
=$AM_DEFAULT_VERBOSITY
4077 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4081 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4082 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4083 # is not polluted with repeated "-I."
4084 am__isrc
=' -I$(srcdir)'
4085 # test to see if srcdir already configured
4086 if test -f $srcdir/config.status
; then
4087 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4091 # test whether we have cygpath
4092 if test -z "$CYGPATH_W"; then
4093 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4094 CYGPATH_W
='cygpath -w'
4101 # Define the identity of the package.
4102 PACKAGE
='libctf-library'
4106 cat >>confdefs.h
<<_ACEOF
4107 #define PACKAGE "$PACKAGE"
4111 cat >>confdefs.h
<<_ACEOF
4112 #define VERSION "$VERSION"
4115 # Some tools Automake needs.
4117 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4120 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4123 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4126 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4129 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4131 # For better backward compatibility. To be removed once Automake 1.9.x
4132 # dies out for good. For more background, see:
4133 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4134 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4135 mkdir_p
='$(MKDIR_P)'
4137 # We need awk for the "check" target (and possibly the TAP driver). The
4138 # system "awk" is bad on some platforms.
4139 # Always define AMTAR for backward compatibility. Yes, it's still used
4140 # in the wild :-( We should find a proper way to deprecate it ...
4144 # We'll loop over all known methods to create a tar archive until one works.
4145 _am_tools
='gnutar pax cpio none'
4147 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4153 depcc
="$CC" am_compiler_list
=
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4156 $as_echo_n "checking dependency style of $depcc... " >&6; }
4157 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4158 $as_echo_n "(cached) " >&6
4160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161 # We make a subdir and do the tests there. Otherwise we can end up
4162 # making bogus files that we don't know about and never remove. For
4163 # instance it was reported that on HP-UX the gcc test will end up
4164 # making a dummy file named 'D' -- because '-MD' means "put the output
4168 # Copy depcomp to subdir because otherwise we won't find it if we're
4169 # using a relative directory.
4170 cp "$am_depcomp" conftest.dir
4172 # We will build objects and dependencies in a subdirectory because
4173 # it helps to detect inapplicable dependency modes. For instance
4174 # both Tru64's cc and ICC support -MD to output dependencies as a
4175 # side effect of compilation, but ICC will put the dependencies in
4176 # the current directory while Tru64 will put them in the object
4180 am_cv_CC_dependencies_compiler_type
=none
4181 if test "$am_compiler_list" = ""; then
4182 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4185 case " $depcc " in #(
4186 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4189 for depmode
in $am_compiler_list; do
4190 # Setup a source with many dependencies, because some compilers
4191 # like to wrap large dependency lists on column 80 (with \), and
4192 # we should not choose a depcomp mode which is confused by this.
4194 # We need to recreate these files for each test, as the compiler may
4195 # overwrite some of them when testing with obscure command lines.
4196 # This happens at least with the AIX C compiler.
4198 for i
in 1 2 3 4 5 6; do
4199 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4200 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4201 # Solaris 10 /bin/sh.
4202 echo '/* dummy */' > sub
/conftst
$i.h
4204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4207 # mode. It turns out that the SunPro C++ compiler does not properly
4208 # handle '-M -o', and we need to detect this. Also, some Intel
4209 # versions had trouble with output in subdirs.
4210 am__obj
=sub
/conftest.
${OBJEXT-o}
4211 am__minus_obj
="-o $am__obj"
4214 # This depmode causes a compiler race in universal mode.
4215 test "$am__universal" = false ||
continue
4218 # After this tag, mechanisms are not by side-effect, so they'll
4219 # only be used when explicitly requested.
4220 if test "x$enable_dependency_tracking" = xyes
; then
4226 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4227 # This compiler won't grok '-c -o', but also, the minuso test has
4228 # not run yet. These depmodes are late enough in the game, and
4229 # so weak that their functioning should not be impacted.
4230 am__obj
=conftest.
${OBJEXT-o}
4235 if depmode
=$depmode \
4236 source=sub
/conftest.c object
=$am__obj \
4237 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4238 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4239 >/dev
/null
2>conftest.err
&&
4240 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4241 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4242 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4243 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4244 # icc doesn't choke on unknown options, it will just issue warnings
4245 # or remarks (even with -Werror). So we grep stderr for any message
4246 # that says an option was ignored or not supported.
4247 # When given -MP, icc 7.0 and 7.1 complain thusly:
4248 # icc: Command line warning: ignoring option '-M'; no argument required
4249 # The diagnosis changed in icc 8.0:
4250 # icc: Command line remark: option '-MP' not supported
4251 if (grep 'ignoring option' conftest.err ||
4252 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4253 am_cv_CC_dependencies_compiler_type
=$depmode
4262 am_cv_CC_dependencies_compiler_type
=none
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4267 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4268 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4271 test "x$enable_dependency_tracking" != xno \
4272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4274 am__fastdepCC_FALSE
='#'
4276 am__fastdepCC_TRUE
='#'
4277 am__fastdepCC_FALSE
=
4282 # POSIX will say in a future version that running "rm -f" with no argument
4283 # is OK; and we want to be able to make that assumption in our Makefile
4284 # recipes. So use an aggressive probe to check that the usage we want is
4285 # actually supported "in the wild" to an acceptable degree.
4286 # See automake bug#10828.
4287 # To make any issue more visible, cause the running configure to be aborted
4288 # by default if the 'rm' program in use doesn't match our expectations; the
4289 # user can still override this though.
4290 if rm -f && rm -fr && rm -rf; then : OK
; else
4294 Your 'rm' program seems unable to run without file operands specified
4295 on the command line, even when the '-f' option is present. This is contrary
4296 to the behaviour of most rm programs out there, and not conforming with
4297 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4299 Please tell bug-automake@gnu.org about your system, including the value
4300 of your $PATH and any error possibly output before this message. This
4301 can help us improve future automake versions.
4304 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4305 echo 'Configuration will proceed anyway, since you have set the' >&2
4306 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4310 Aborting the configuration process, to ensure you take notice of the issue.
4312 You can download and install GNU coreutils to get an 'rm' implementation
4313 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4315 If you want to complete the configuration process using your problematic
4316 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4317 to "yes", and re-run configure.
4320 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4325 # Checks for programs.
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4329 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4330 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4331 $as_echo_n "(cached) " >&6
4333 cat >conftest.
make <<\_ACEOF
4336 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4338 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4341 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4343 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4347 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 SET_MAKE
="MAKE=${MAKE-make}"
4358 ac_cpp
='$CPP $CPPFLAGS'
4359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4362 if test -n "$ac_tool_prefix"; then
4363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4364 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_CC+:} false
; then :
4368 $as_echo_n "(cached) " >&6
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC
="$CC" # Let the user override the test.
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_exec_ext
in '' $ac_executable_extensions; do
4379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 if test -n "$CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4393 $as_echo "$CC" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4401 if test -z "$ac_cv_prog_CC"; then
4403 # Extract the first word of "gcc", so it can be a program name with args.
4404 set dummy gcc
; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$ac_ct_CC"; then
4411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_CC
="gcc"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4431 if test -n "$ac_ct_CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433 $as_echo "$ac_ct_CC" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4439 if test "x$ac_ct_CC" = x
; then
4442 case $cross_compiling:$ac_tool_warned in
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446 ac_tool_warned
=yes ;;
4454 if test -z "$CC"; then
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4457 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_CC+:} false
; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC
="$CC" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 $as_echo "$CC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4495 if test -z "$CC"; then
4496 # Extract the first word of "cc", so it can be a program name with args.
4497 set dummy cc
; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_CC+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$CC"; then
4504 ac_cv_prog_CC
="$CC" # Let the user override the test.
4507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir
=.
4512 for ac_exec_ext
in '' $ac_executable_extensions; do
4513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4515 ac_prog_rejected
=yes
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 if test $ac_prog_rejected = yes; then
4527 # We found a bogon in the path, so make sure we never use it.
4528 set dummy
$ac_cv_prog_CC
4530 if test $# != 0; then
4531 # We chose a different compiler from the bogus one.
4532 # However, it has the same basename, so the bogon will be chosen
4533 # first if we set CC to just the basename; use the full file name.
4535 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4541 if test -n "$CC"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4543 $as_echo "$CC" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4551 if test -z "$CC"; then
4552 if test -n "$ac_tool_prefix"; then
4553 for ac_prog
in cl.exe
4555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_CC+:} false
; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC
="$CC" # Let the user override the test.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 if test -n "$CC"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4585 $as_echo "$CC" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$CC" && break
4595 if test -z "$CC"; then
4597 for ac_prog
in cl.exe
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy
$ac_prog; ac_word
=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$ac_ct_CC"; then
4607 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir
=.
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_ac_ct_CC
="$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4627 if test -n "$ac_ct_CC"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4629 $as_echo "$ac_ct_CC" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 test -n "$ac_ct_CC" && break
4639 if test "x$ac_ct_CC" = x
; then
4642 case $cross_compiling:$ac_tool_warned in
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646 ac_tool_warned
=yes ;;
4655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $?
"no acceptable C compiler found in \$PATH
4658 See \`config.log' for more details" "$LINENO" 5; }
4660 # Provide some information about the compiler.
4661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4664 for ac_option
in --version -v -V -qversion; do
4665 { { ac_try
="$ac_compiler $ac_option >&5"
4667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4674 if test -s conftest.err; then
4676 ... rest of stderr output deleted ...
4677 10q' conftest.err >conftest.er1
4678 cat conftest.er1 >&5
4680 rm -f conftest.er1 conftest.err
4681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4686 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4687 if ${ac_cv_c_compiler_gnu+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4704 if ac_fn_c_try_compile "$LINENO"; then :
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4714 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4715 if test $ac_compiler_gnu = yes; then
4720 ac_test_CFLAGS=${CFLAGS+set}
4721 ac_save_CFLAGS=$CFLAGS
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4723 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4724 if ${ac_cv_prog_cc_g+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_save_c_werror_flag=$ac_c_werror_flag
4728 ac_c_werror_flag=yes
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 if ac_fn_c_try_compile "$LINENO"; then :
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_c_werror_flag=$ac_save_c_werror_flag
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4773 if ac_fn_c_try_compile "$LINENO"; then :
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 ac_c_werror_flag=$ac_save_c_werror_flag
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4784 $as_echo "$ac_cv_prog_cc_g" >&6; }
4785 if test "$ac_test_CFLAGS" = set; then
4786 CFLAGS=$ac_save_CFLAGS
4787 elif test $ac_cv_prog_cc_g = yes; then
4788 if test "$GCC" = yes; then
4794 if test "$GCC" = yes; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4801 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4802 if ${ac_cv_prog_cc_c89+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 ac_cv_prog_cc_c89=no
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4813 struct buf { int x; };
4814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4815 static char *e (p, i)
4821 static char *f (char * (*g) (char **, int), char **p, ...)
4826 s = g (p, va_arg (v,int));
4831 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4832 function prototypes and stuff, but not '\xHH' hex character constants.
4833 These don't provoke an error unfortunately, instead are silently treated
4834 as 'x'. The following induces an error, until -std is added to get
4835 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4836 array size at least. It's necessary to write '\x00'==0 to get something
4837 that's true only with -std. */
4838 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4840 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4841 inside strings and character constants. */
4843 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4845 int test (int i, double x);
4846 struct s1 {int (*f) (int a);};
4847 struct s2 {int (*f) (double a);};
4848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4854 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4859 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4860 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4862 CC="$ac_save_CC $ac_arg"
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_cv_prog_cc_c89=$ac_arg
4866 rm -f core conftest.err conftest.$ac_objext
4867 test "x$ac_cv_prog_cc_c89" != "xno" && break
4869 rm -f conftest.$ac_ext
4874 case "x$ac_cv_prog_cc_c89" in
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4877 $as_echo "none needed" >&6; } ;;
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4880 $as_echo "unsupported" >&6; } ;;
4882 CC="$CC $ac_cv_prog_cc_c89"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4884 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4886 if test "x$ac_cv_prog_cc_c89" != xno; then :
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4902 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4903 if ${am_cv_prog_cc_c_o+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4917 # Make sure it works both with $CC and with simple cc.
4918 # Following AC_PROG_CC_C_O, we do the test twice because some
4919 # compilers refuse to overwrite an existing .o file with -o,
4920 # though they will create one.
4921 am_cv_prog_cc_c_o=yes
4923 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4924 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } \
4928 && test -f conftest2.$ac_objext; then
4931 am_cv_prog_cc_c_o=no
4935 rm -f core conftest*
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4939 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4940 if test "$am_cv_prog_cc_c_o" != yes; then
4941 # Losing compiler, so override with the script.
4942 # FIXME: It is wrong to rewrite CC.
4943 # But if we don't then we get into trouble of one sort or another.
4944 # A longer-term fix would be to have automake use am__CC in this case,
4945 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4946 CC="$am_aux_dir/compile $CC"
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_RANLIB+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$RANLIB"; then
4964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 RANLIB=$ac_cv_prog_RANLIB
4984 if test -n "$RANLIB"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4986 $as_echo "$RANLIB" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4994 if test -z "$ac_cv_prog_RANLIB"; then
4995 ac_ct_RANLIB=$RANLIB
4996 # Extract the first word of "ranlib", so it can be a program name with args.
4997 set dummy ranlib; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5001 $as_echo_n "(cached) " >&6
5003 if test -n "$ac_ct_RANLIB"; then
5004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_RANLIB="ranlib"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5024 if test -n "$ac_ct_RANLIB"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5026 $as_echo "$ac_ct_RANLIB" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5032 if test "x$ac_ct_RANLIB" = x; then
5035 case $cross_compiling:$ac_tool_warned in
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5041 RANLIB=$ac_ct_RANLIB
5044 RANLIB="$ac_cv_prog_RANLIB"
5047 if test -n "$ac_tool_prefix"; then
5048 for ac_prog in ar lib "link -lib"
5050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_AR+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$AR"; then
5058 ac_cv_prog_AR="$AR" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 if test -n "$AR"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5080 $as_echo "$AR" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 test -n "$AR" && break
5090 if test -z "$AR"; then
5092 for ac_prog in ar lib "link -lib"
5094 # Extract the first word of "$ac_prog", so it can be a program name with args.
5095 set dummy $ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$ac_ct_AR"; then
5102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_AR="$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5122 if test -n "$ac_ct_AR"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5124 $as_echo "$ac_ct_AR" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$ac_ct_AR" && break
5134 if test "x$ac_ct_AR" = x; then
5137 case $cross_compiling:$ac_tool_warned in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5150 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5151 if ${am_cv_ar_interface+:} false; then :
5152 $as_echo_n "(cached) " >&6
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160 am_cv_ar_interface=ar
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int some_variable = 0;
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5168 (eval $am_ar_try) 2>&5
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }
5172 if test "$ac_status" -eq 0; then
5173 am_cv_ar_interface=ar
5175 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5177 (eval $am_ar_try) 2>&5
5179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5180 test $ac_status = 0; }
5181 if test "$ac_status" -eq 0; then
5182 am_cv_ar_interface=lib
5184 am_cv_ar_interface=unknown
5187 rm -f conftest.lib libconftest.a
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5199 $as_echo "$am_cv_ar_interface" >&6; }
5201 case $am_cv_ar_interface in
5205 # Microsoft lib, so override with the ar-lib wrapper script.
5206 # FIXME: It is wrong to rewrite AR.
5207 # But if we don't then we get into trouble of one sort or another.
5208 # A longer-term fix would be to have automake use am__AR in this case,
5209 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5211 AR="$am_aux_dir/ar-lib $AR"
5214 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5219 # Check whether --enable-largefile was given.
5220 if test "${enable_largefile+set}" = set; then :
5221 enableval=$enable_largefile;
5224 if test "$enable_largefile" != no; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5227 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5228 if ${ac_cv_sys_largefile_CC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 ac_cv_sys_largefile_CC=no
5232 if test "$GCC" != yes; then
5235 # IRIX 6.2 and later do not support large files by default,
5236 # so use the C compiler's -n32 option if that helps.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <sys/types.h>
5240 /* Check that off_t can represent 2**63 - 1 correctly.
5241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5242 since some C++ compilers masquerading as C compilers
5243 incorrectly reject 9223372036854775807. */
5244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5246 && LARGE_OFF_T % 2147483647 == 1)
5256 if ac_fn_c_try_compile "$LINENO"; then :
5259 rm -f core conftest.err conftest.$ac_objext
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 ac_cv_sys_largefile_CC=' -n32'; break
5264 rm -f core conftest.err conftest.$ac_objext
5268 rm -f conftest.$ac_ext
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5272 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5273 if test "$ac_cv_sys_largefile_CC" != no; then
5274 CC=$CC$ac_cv_sys_largefile_CC
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5278 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5279 if ${ac_cv_sys_file_offset_bits+:} false; then :
5280 $as_echo_n "(cached) " >&6
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_sys_file_offset_bits=no; break
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 #define _FILE_OFFSET_BITS 64
5309 #include <sys/types.h>
5310 /* Check that off_t can represent 2**63 - 1 correctly.
5311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5312 since some C++ compilers masquerading as C compilers
5313 incorrectly reject 9223372036854775807. */
5314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5316 && LARGE_OFF_T % 2147483647 == 1)
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_sys_file_offset_bits=64; break
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cv_sys_file_offset_bits=unknown
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5335 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5336 case $ac_cv_sys_file_offset_bits in #(
5339 cat >>confdefs.h <<_ACEOF
5340 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5345 if test $ac_cv_sys_file_offset_bits = unknown; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5347 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5348 if ${ac_cv_sys_large_files+:} false; then :
5349 $as_echo_n "(cached) " >&6
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <sys/types.h>
5355 /* Check that off_t can represent 2**63 - 1 correctly.
5356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5357 since some C++ compilers masquerading as C compilers
5358 incorrectly reject 9223372036854775807. */
5359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5361 && LARGE_OFF_T % 2147483647 == 1)
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_sys_large_files=no; break
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #define _LARGE_FILES 1
5378 #include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381 since some C++ compilers masquerading as C compilers
5382 incorrectly reject 9223372036854775807. */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385 && LARGE_OFF_T % 2147483647 == 1)
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_sys_large_files=1; break
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_sys_large_files=unknown
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5404 $as_echo "$ac_cv_sys_large_files" >&6; }
5405 case $ac_cv_sys_large_files in #(
5408 cat >>confdefs.h <<_ACEOF
5409 #define _LARGE_FILES $ac_cv_sys_large_files
5420 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5421 for ac_prog in aclocal
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ACLOCAL+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ACLOCAL"; then
5431 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ACLOCAL="$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ACLOCAL=$ac_cv_prog_ACLOCAL
5451 if test -n "$ACLOCAL"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5453 $as_echo "$ACLOCAL" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$ACLOCAL" && break
5462 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
5464 for ac_prog in autoconf
5466 # Extract the first word of "$ac_prog", so it can be a program name with args.
5467 set dummy $ac_prog; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_AUTOCONF+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 if test -n "$AUTOCONF"; then
5474 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_AUTOCONF="$ac_prog"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 AUTOCONF=$ac_cv_prog_AUTOCONF
5494 if test -n "$AUTOCONF"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5496 $as_echo "$AUTOCONF" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5503 test -n "$AUTOCONF" && break
5505 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
5507 for ac_prog in autoheader
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_AUTOHEADER+:} false; then :
5514 $as_echo_n "(cached) " >&6
5516 if test -n "$AUTOHEADER"; then
5517 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_AUTOHEADER="$ac_prog"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 AUTOHEADER=$ac_cv_prog_AUTOHEADER
5537 if test -n "$AUTOHEADER"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5539 $as_echo "$AUTOHEADER" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5546 test -n "$AUTOHEADER" && break
5548 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
5551 # Figure out what compiler warnings we can enable.
5552 # See config/warnings.m4 for details.
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 save_CFLAGS="$CFLAGS"
5562 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
5563 -Wmissing-format-attribute; do
5564 # Do the check with the no- prefix removed since gcc silently
5565 # accepts any -Wno-* option on purpose
5566 case $real_option in
5567 -Wno-*) option=-W`expr x
$real_option : 'x-Wno-\(.*\)'` ;;
5568 *) option=$real_option ;;
5570 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" |
$as_tr_sh`
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5573 $as_echo_n "checking whether $CC supports $option... " >&6; }
5574 if eval \${$as_acx_Woption+:} false; then :
5575 $as_echo_n "(cached) " >&6
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 eval "$as_acx_Woption=yes"
5592 eval "$as_acx_Woption=no"
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 eval ac_res=\$$as_acx_Woption
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5599 $as_echo "$ac_res" >&6; }
5600 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5601 warn="$warn${warn:+ }$real_option"
5604 CFLAGS="$save_CFLAGS"
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619 save_CFLAGS="$CFLAGS"
5620 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5621 -Wold-style-definition; do
5622 # Do the check with the no- prefix removed since gcc silently
5623 # accepts any -Wno-* option on purpose
5624 case $real_option in
5625 -Wno-*) option=-W`expr x
$real_option : 'x-Wno-\(.*\)'` ;;
5626 *) option=$real_option ;;
5628 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" |
$as_tr_sh`
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5631 $as_echo_n "checking whether $CC supports $option... " >&6; }
5632 if eval \${$as_acx_Woption+:} false; then :
5633 $as_echo_n "(cached) " >&6
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 eval "$as_acx_Woption=yes"
5650 eval "$as_acx_Woption=no"
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 eval ac_res=\$$as_acx_Woption
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5657 $as_echo "$ac_res" >&6; }
5658 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5659 c_warn="$c_warn${c_warn:+ }$real_option"
5662 CFLAGS="$save_CFLAGS"
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 # Do the check with the no- prefix removed from the warning options
5678 # since gcc silently accepts any -Wno-* option on purpose
5679 if test "$GCC" = yes; then :
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5681 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5682 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 save_CFLAGS="$CFLAGS"
5686 CFLAGS="-pedantic -Wlong-long"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5698 if ac_fn_c_try_compile "$LINENO"; then :
5699 acx_cv_prog_cc_pedantic__Wlong_long=yes
5701 acx_cv_prog_cc_pedantic__Wlong_long=no
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 CFLAGS="$save_CFLAGS"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5707 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5708 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5709 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721 # Only enable with --enable-werror-always until existing warnings are
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730 # Check whether --enable-werror-always was given.
5731 if test "${enable_werror_always+set}" = set; then :
5732 enableval=$enable_werror_always;
5734 enable_werror_always=no
5737 if test $enable_werror_always = yes; then :
5738 WERROR="$WERROR${WERROR:+ }-Werror"
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5752 # Check whether --enable-maintainer-mode was given.
5753 if test "${enable_maintainer_mode+set}" = set; then :
5754 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5756 USE_MAINTAINER_MODE=no
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5761 if test $USE_MAINTAINER_MODE = yes; then
5762 MAINTAINER_MODE_TRUE=
5763 MAINTAINER_MODE_FALSE='#'
5765 MAINTAINER_MODE_TRUE='#'
5766 MAINTAINER_MODE_FALSE=
5769 MAINT=$MAINTAINER_MODE_TRUE
5773 ac_cpp='$CPP $CPPFLAGS'
5774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778 ac_libctf_warn_cflags=
5779 save_CFLAGS="$CFLAGS"
5780 for real_option in -Wall; do
5781 # Do the check with the no- prefix removed since gcc silently
5782 # accepts any -Wno-* option on purpose
5783 case $real_option in
5784 -Wno-*) option=-W`expr x
$real_option : 'x-Wno-\(.*\)'` ;;
5785 *) option=$real_option ;;
5787 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" |
$as_tr_sh`
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5790 $as_echo_n "checking whether $CC supports $option... " >&6; }
5791 if eval \${$as_acx_Woption+:} false; then :
5792 $as_echo_n "(cached) " >&6
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 eval "$as_acx_Woption=yes"
5809 eval "$as_acx_Woption=no"
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 eval ac_res=\$$as_acx_Woption
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5816 $as_echo "$ac_res" >&6; }
5817 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5818 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
5821 CFLAGS="$save_CFLAGS"
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833 for ac_header in $ac_header_list
5835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5836 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5838 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5839 cat >>confdefs.h <<_ACEOF
5840 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5854 for ac_func in getpagesize
5856 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5857 if test "x$ac_cv_func_getpagesize" = xyes; then :
5858 cat >>confdefs.h <<_ACEOF
5859 #define HAVE_GETPAGESIZE 1
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5866 $as_echo_n "checking for working mmap... " >&6; }
5867 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5868 $as_echo_n "(cached) " >&6
5870 if test "$cross_compiling" = yes; then :
5871 ac_cv_func_mmap_fixed_mapped=no
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 /* malloc might have been renamed as rpl_malloc. */
5879 /* Thanks to Mike Haertel and Jim Avera for this test.
5880 Here is a matrix of mmap possibilities:
5881 mmap private not fixed
5882 mmap private fixed at somewhere currently unmapped
5883 mmap private fixed at somewhere already mapped
5884 mmap shared not fixed
5885 mmap shared fixed at somewhere currently unmapped
5886 mmap shared fixed at somewhere already mapped
5887 For private mappings, we should verify that changes cannot be read()
5888 back from the file, nor mmap's back from the file at a different
5889 address. (There have been systems where private was not correctly
5890 implemented like the infamous i386 svr4.0, and systems where the
5891 VM page cache was not coherent with the file system buffer cache
5892 like early versions of FreeBSD and possibly contemporary NetBSD.)
5893 For shared mappings, we should conversely verify that changes get
5894 propagated back to all the places they're supposed to be.
5896 Grep wants private fixed already mapped.
5897 The main things grep needs to know about mmap are:
5898 * does it exist and is it safe to write into the mmap'd area
5899 * how to use it (BSD variants) */
5902 #include <sys/mman.h>
5904 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5908 /* This mess was copied from the GNU getpagesize.h. */
5909 #ifndef HAVE_GETPAGESIZE
5910 # ifdef _SC_PAGESIZE
5911 # define getpagesize() sysconf(_SC_PAGESIZE)
5912 # else /* no _SC_PAGESIZE */
5913 # ifdef HAVE_SYS_PARAM_H
5914 # include <sys/param.h>
5915 # ifdef EXEC_PAGESIZE
5916 # define getpagesize() EXEC_PAGESIZE
5917 # else /* no EXEC_PAGESIZE */
5919 # define getpagesize() NBPG * CLSIZE
5922 # endif /* no CLSIZE */
5923 # else /* no NBPG */
5925 # define getpagesize() NBPC
5926 # else /* no NBPC */
5928 # define getpagesize() PAGESIZE
5929 # endif /* PAGESIZE */
5930 # endif /* no NBPC */
5931 # endif /* no NBPG */
5932 # endif /* no EXEC_PAGESIZE */
5933 # else /* no HAVE_SYS_PARAM_H */
5934 # define getpagesize() 8192 /* punt totally */
5935 # endif /* no HAVE_SYS_PARAM_H */
5936 # endif /* no _SC_PAGESIZE */
5938 #endif /* no HAVE_GETPAGESIZE */
5943 char *data, *data2, *data3;
5948 pagesize = getpagesize ();
5950 /* First, make a file with some known garbage in it. */
5951 data = (char *) malloc (pagesize);
5954 for (i = 0; i < pagesize; ++i)
5955 *(data + i) = rand ();
5957 fd = creat ("conftest.mmap", 0600);
5960 if (write (fd, data, pagesize) != pagesize)
5964 /* Next, check that the tail of a page is zero-filled. File must have
5965 non-zero length, otherwise we risk SIGBUS for entire page. */
5966 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5970 if (write (fd2, cdata2, 1) != 1)
5972 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5973 if (data2 == MAP_FAILED)
5975 for (i = 0; i < pagesize; ++i)
5979 if (munmap (data2, pagesize))
5982 /* Next, try to mmap the file at a fixed address which already has
5983 something else allocated at it. If we can, also make sure that
5984 we see the same garbage. */
5985 fd = open ("conftest.mmap", O_RDWR);
5988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5991 for (i = 0; i < pagesize; ++i)
5992 if (*(data + i) != *(data2 + i))
5995 /* Finally, make sure that changes to the mapped area do not
5996 percolate back to the file as seen by read(). (This is a bug on
5997 some variants of i386 svr4.0.) */
5998 for (i = 0; i < pagesize; ++i)
5999 *(data2 + i) = *(data2 + i) + 1;
6000 data3 = (char *) malloc (pagesize);
6003 if (read (fd, data3, pagesize) != pagesize)
6005 for (i = 0; i < pagesize; ++i)
6006 if (*(data + i) != *(data3 + i))
6012 if ac_fn_c_try_run "$LINENO"; then :
6013 ac_cv_func_mmap_fixed_mapped=yes
6015 ac_cv_func_mmap_fixed_mapped=no
6017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6018 conftest.$ac_objext conftest.beam conftest.$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6023 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6026 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6029 rm -f conftest.mmap conftest.txt
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6032 $as_echo_n "checking for library containing dlopen... " >&6; }
6033 if ${ac_cv_search_dlopen+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 ac_func_search_save_LIBS=$LIBS
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6040 /* Override any GCC internal prototype to avoid an error.
6041 Use char because int might match the return type of a GCC
6042 builtin and then its argument prototype would still apply. */
6055 for ac_lib in '' dl; do
6056 if test -z "$ac_lib"; then
6057 ac_res="none required"
6060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6062 if ac_fn_c_try_link "$LINENO"; then :
6063 ac_cv_search_dlopen=$ac_res
6065 rm -f core conftest.err conftest.$ac_objext \
6067 if ${ac_cv_search_dlopen+:} false; then :
6071 if ${ac_cv_search_dlopen+:} false; then :
6074 ac_cv_search_dlopen=no
6077 LIBS=$ac_func_search_save_LIBS
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6080 $as_echo "$ac_cv_search_dlopen" >&6; }
6081 ac_res=$ac_cv_search_dlopen
6082 if test "$ac_res" != no; then :
6083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6088 # Use the system's zlib library.
6089 zlibdir="-L\$(top_builddir)/../zlib"
6090 zlibinc="-I\$(top_srcdir)/../zlib"
6092 # Check whether --with-system-zlib was given.
6093 if test "${with_system_zlib+set}" = set; then :
6094 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6105 # Similar to GDB_AC_CHECK_BFD.
6107 OLD_LDFLAGS=$LDFLAGS
6109 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
6110 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
6111 # always want our bfd.
6112 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
6113 ZLIBDIR=`echo $zlibdir |
sed 's,\$(top_builddir)/,,g'`
6114 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
6115 intl=`echo $LIBINTL |
sed 's,${top_builddir}/,,g'`
6116 LIBS="-lbfd -liberty -lz $intl $LIBS"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
6118 $as_echo_n "checking for ELF support in BFD... " >&6; }
6119 if ${ac_cv_libctf_bfd_elf+:} false; then :
6120 $as_echo_n "(cached) " >&6
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6126 #include "elf-bfd.h"
6130 (void) bfd_section_from_elf_index (NULL, 0);
6136 if ac_fn_c_try_link "$LINENO"; then :
6137 ac_cv_libctf_bfd_elf=yes
6139 ac_cv_libctf_bfd_elf=no
6141 rm -f core conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
6145 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
6147 LDFLAGS=$OLD_LDFLAGS
6150 if test $ac_cv_libctf_bfd_elf = yes; then
6152 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6157 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6158 if ${ac_cv_c_bigendian+:} false; then :
6159 $as_echo_n "(cached) " >&6
6161 ac_cv_c_bigendian=unknown
6162 # See if we're dealing with a universal compiler.
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 #ifndef __APPLE_CC__
6166 not a universal capable compiler
6171 if ac_fn_c_try_compile "$LINENO"; then :
6173 # Check for potential -arch flags. It is not universal unless
6174 # there are at least two -arch flags with different values.
6177 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6178 if test -n "$ac_prev"; then
6180 i?86 | x86_64 | ppc | ppc64)
6181 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6184 ac_cv_c_bigendian=universal
6190 elif test "x$ac_word" = "x-arch"; then
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test $ac_cv_c_bigendian = unknown; then
6197 # See if sys/param.h defines the BYTE_ORDER macro.
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 #include <sys/types.h>
6201 #include <sys/param.h>
6206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6207 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 # It does; now see whether it defined to BIG_ENDIAN or not.
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <sys/types.h>
6221 #include <sys/param.h>
6226 #if BYTE_ORDER != BIG_ENDIAN
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 ac_cv_c_bigendian=yes
6237 ac_cv_c_bigendian=no
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 if test $ac_cv_c_bigendian = unknown; then
6244 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6252 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 # It does; now see whether it defined to _BIG_ENDIAN or not.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6277 if ac_fn_c_try_compile "$LINENO"; then :
6278 ac_cv_c_bigendian=yes
6280 ac_cv_c_bigendian=no
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 if test $ac_cv_c_bigendian = unknown; then
6287 # Compile a test program.
6288 if test "$cross_compiling" = yes; then :
6289 # Try to guess by grepping values from an object file.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 short int ascii_mm[] =
6293 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6294 short int ascii_ii[] =
6295 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6296 int use_ascii (int i) {
6297 return ascii_mm[i] + ascii_ii[i];
6299 short int ebcdic_ii[] =
6300 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6301 short int ebcdic_mm[] =
6302 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6303 int use_ebcdic (int i) {
6304 return ebcdic_mm[i] + ebcdic_ii[i];
6311 return use_ascii (foo) == use_ebcdic (foo);
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6318 ac_cv_c_bigendian=yes
6320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6321 if test "$ac_cv_c_bigendian" = unknown; then
6322 ac_cv_c_bigendian=no
6324 # finding both strings is unlikely to happen, but who knows?
6325 ac_cv_c_bigendian=unknown
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 $ac_includes_default
6338 /* Are we little or big endian? From Harbison&Steele. */
6342 char c[sizeof (long int)];
6345 return u.c[sizeof (long int) - 1] == 1;
6351 if ac_fn_c_try_run "$LINENO"; then :
6352 ac_cv_c_bigendian=no
6354 ac_cv_c_bigendian=yes
6356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6357 conftest.$ac_objext conftest.beam conftest.$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6363 $as_echo "$ac_cv_c_bigendian" >&6; }
6364 case $ac_cv_c_bigendian in #(
6366 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6372 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6376 as_fn_error $? "unknown endianness
6377 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6380 for ac_header in byteswap.h endian.h
6382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6383 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6385 cat >>confdefs.h <<_ACEOF
6386 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6393 for ac_func in pread
6395 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
6396 if test "x$ac_cv_func_pread" = xyes; then :
6397 cat >>confdefs.h <<_ACEOF
6398 #define HAVE_PREAD 1
6404 ac_fn_c_check_decl "$LINENO" "qsort_r" "ac_cv_have_decl_qsort_r" "$ac_includes_default"
6405 if test "x$ac_cv_have_decl_qsort_r" = xyes; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_DECL_QSORT_R $ac_have_decl
6415 case " $LIBOBJS " in
6416 *" qsort_r.$ac_objext "* ) ;;
6417 *) LIBOBJS="$LIBOBJS qsort_r.$ac_objext"
6422 ac_config_files="$ac_config_files Makefile"
6424 ac_config_headers="$ac_config_headers config.h"
6426 cat >confcache <<\_ACEOF
6427 # This file is a shell script that caches the results of configure
6428 # tests run on this system so they can be shared between configure
6429 # scripts and configure runs, see configure's option --config-cache.
6430 # It is not useful on other systems. If it contains results you don't
6431 # want to keep, you may remove or edit it.
6433 # config.status only pays attention to the cache file if you give it
6434 # the --recheck option to rerun configure.
6436 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
6437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6442 # The following way of writing the cache mishandles newlines in values,
6443 # but we know of no workaround that is simple, portable, and efficient.
6444 # So, we kill variables containing newlines.
6445 # Ultrix sh set writes to stderr and can't be redirected directly,
6446 # and sets the high bit in the cache file unless we assign to the vars.
6448 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6449 eval ac_val
=\$
$ac_var
6453 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6457 _ | IFS | as_nl
) ;; #(
6458 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6459 *) { eval $ac_var=; unset $ac_var;} ;;
6465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6466 *${as_nl}ac_space
=\
*)
6467 # `set' does not quote correctly, so add quotes: double-quote
6468 # substitution turns \\\\ into \\, and sed turns \\ into \.
6471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6474 # `set' quotes correctly as required by POSIX, so do not add quotes.
6475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6488 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6489 if test -w "$cache_file"; then
6490 if test "x$cache_file" != "x/dev/null"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6492 $as_echo "$as_me: updating cache $cache_file" >&6;}
6493 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6494 cat confcache
>"$cache_file"
6496 case $cache_file in #(
6498 mv -f confcache
"$cache_file"$$
&&
6499 mv -f "$cache_file"$$
"$cache_file" ;; #(
6501 mv -f confcache
"$cache_file" ;;
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6512 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6513 # Let make expand exec_prefix.
6514 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6516 DEFS
=-DHAVE_CONFIG_H
6521 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6522 # 1. Remove the extension, and $U if already installed.
6523 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6524 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6526 # will be set to the directory where LIBOBJS objects are built.
6527 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6528 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6532 LTLIBOBJS
=$ac_ltlibobjs
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6536 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6537 if test -n "$am_sleep_pid"; then
6538 # Hide warnings about reused PIDs.
6539 wait $am_sleep_pid 2>/dev
/null
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6542 $as_echo "done" >&6; }
6543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6544 as_fn_error $?
"conditional \"AMDEP\" was never defined.
6545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6548 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
6549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6551 if test -n "$EXEEXT"; then
6553 am__EXEEXT_FALSE
='#'
6559 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6560 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
6561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6565 : "${CONFIG_STATUS=./config.status}"
6567 ac_clean_files_save
=$ac_clean_files
6568 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6574 # Generated by $as_me.
6575 # Run this file to recreate the current configuration.
6576 # Compiler output produced by configure, useful for debugging
6577 # configure, is in config.log if it exists.
6583 SHELL=\${CONFIG_SHELL-$SHELL}
6586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6587 ## -------------------- ##
6588 ## M4sh Initialization. ##
6589 ## -------------------- ##
6591 # Be more Bourne compatible
6592 DUALCASE
=1; export DUALCASE
# for MKS sh
6593 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6597 # is contrary to our usage. Disable this feature.
6598 alias -g '${1+"$@"}'='"$@"'
6599 setopt NO_GLOB_SUBST
6601 case `(set -o) 2>/dev/null` in #(
6613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6614 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6617 # Prefer a ksh shell builtin over an external printf program on Solaris,
6618 # but without wasting forks for bash or zsh.
6619 if test -z "$BASH_VERSION$ZSH_VERSION" \
6620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6621 as_echo='print
-r --'
6622 as_echo_n='print
-rn --'
6623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6624 as_echo='printf %s
\n'
6625 as_echo_n='printf %s
'
6627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6628 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6629 as_echo_n='/usr
/ucb
/echo -n'
6631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6632 as_echo_n_body='eval
6636 expr "X$arg" : "X\\(.*\\)$as_nl";
6637 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6639 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6641 export as_echo_n_body
6642 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6645 as_echo='sh
-c $as_echo_body as_echo
'
6648 # The user is always right.
6649 if test "${PATH_SEPARATOR+set}" != set; then
6651 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6652 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6659 # We need space, tab and new line, in precisely that order. Quoting is
6660 # there to prevent editors from complaining about space-tab.
6661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6662 # splitting by setting IFS to empty value.)
6665 # Find who we are. Look in the path if we contain no directory separator.
6668 *[\\/]* ) as_myself=$0 ;;
6669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6680 # We did not find ourselves, most probably we were run as `sh COMMAND'
6681 # in which case we are not to be found in the path.
6682 if test "x$as_myself" = x
; then
6685 if test ! -f "$as_myself"; then
6686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6690 # Unset variables that we do not need and which cause bugs (e.g. in
6691 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6692 # suppresses any "Segmentation fault" message there. '((' could
6693 # trigger a bug in pdksh 5.2.14.
6694 for as_var
in BASH_ENV ENV MAIL MAILPATH
6695 do eval test x\
${$as_var+set} = xset \
6696 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6709 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6713 # ----------------------------------------
6714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6716 # script with STATUS, using 1 if that was 0.
6719 as_status
=$1; test $as_status -eq 0 && as_status
=1
6721 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6724 $as_echo "$as_me: error: $2" >&2
6725 as_fn_exit
$as_status
6729 # as_fn_set_status STATUS
6730 # -----------------------
6731 # Set $? to STATUS, without forking.
6735 } # as_fn_set_status
6739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6749 # Portably unset VAR.
6752 { eval $1=; unset $1;}
6754 as_unset
=as_fn_unset
6755 # as_fn_append VAR VALUE
6756 # ----------------------
6757 # Append the text in VALUE to the end of the definition contained in VAR. Take
6758 # advantage of any shell optimizations that allow amortized linear growth over
6759 # repeated appends, instead of the typical quadratic growth present in naive
6761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6762 eval 'as_fn_append ()
6773 # as_fn_arith ARG...
6774 # ------------------
6775 # Perform arithmetic evaluation on the ARGs, and store the result in the
6776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6777 # must be portable across $(()) and expr.
6778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6779 eval 'as_fn_arith ()
6786 as_val
=`expr "$@" || test $? -eq 1`
6791 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6792 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6798 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6799 as_basename
=basename
6804 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6810 as_me
=`$as_basename -- "$0" ||
6811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6812 X"$0" : 'X\(//\)$' \| \
6813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6815 sed '/^.*\/\([^/][^/]*\)\/*$/{
6829 # Avoid depending upon Character Ranges.
6830 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6831 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6832 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6833 as_cr_digits
='0123456789'
6834 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6836 ECHO_C
= ECHO_N
= ECHO_T
=
6837 case `echo -n x` in #(((((
6839 case `echo 'xy\c'` in
6840 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6842 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6849 rm -f conf$$ conf$$.exe conf$$.
file
6850 if test -d conf$$.dir
; then
6851 rm -f conf$$.dir
/conf$$.
file
6854 mkdir conf$$.dir
2>/dev
/null
6856 if (echo >conf$$.
file) 2>/dev
/null
; then
6857 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6859 # ... but there are two gotchas:
6860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6862 # In both cases, we have to default to `cp -pR'.
6863 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6865 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6873 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6874 rmdir conf$$.dir
2>/dev
/null
6879 # Create "$as_dir" as a directory, including parents if necessary.
6884 -*) as_dir
=.
/$as_dir;;
6886 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6890 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6891 *) as_qdir
=$as_dir;;
6893 as_dirs
="'$as_qdir' $as_dirs"
6894 as_dir
=`$as_dirname -- "$as_dir" ||
6895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6896 X"$as_dir" : 'X\(//\)[^/]' \| \
6897 X"$as_dir" : 'X\(//\)$' \| \
6898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6899 $as_echo X"$as_dir" |
6900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6917 test -d "$as_dir" && break
6919 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6920 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6924 if mkdir
-p .
2>/dev
/null
; then
6925 as_mkdir_p
='mkdir -p "$as_dir"'
6927 test -d .
/-p && rmdir .
/-p
6932 # as_fn_executable_p FILE
6933 # -----------------------
6934 # Test if FILE is an executable regular file.
6935 as_fn_executable_p
()
6937 test -f "$1" && test -x "$1"
6938 } # as_fn_executable_p
6940 as_executable_p
=as_fn_executable_p
6942 # Sed expression to map a string onto a valid CPP name.
6943 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6945 # Sed expression to map a string onto a valid variable name.
6946 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6950 ## ----------------------------------- ##
6951 ## Main body of $CONFIG_STATUS script. ##
6952 ## ----------------------------------- ##
6954 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6957 # Save the log message, to keep $0 and so on meaningful, and to
6958 # report actual input values of CONFIG_FILES etc. instead of their
6959 # values after options handling.
6961 This file was extended by libctf library $as_me 1.2.0-pre, which was
6962 generated by GNU Autoconf 2.69. Invocation command line was
6964 CONFIG_FILES = $CONFIG_FILES
6965 CONFIG_HEADERS = $CONFIG_HEADERS
6966 CONFIG_LINKS = $CONFIG_LINKS
6967 CONFIG_COMMANDS = $CONFIG_COMMANDS
6970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6975 case $ac_config_files in *"
6976 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6979 case $ac_config_headers in *"
6980 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6985 # Files that config.status was made for.
6986 config_files="$ac_config_files"
6987 config_headers="$ac_config_headers"
6988 config_commands="$ac_config_commands"
6992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6994 \`$as_me' instantiates files and other configuration actions
6995 from templates according to the current configuration. Unless the files
6996 and actions are specified as TAGs, all are instantiated by default.
6998 Usage: $0 [OPTION]... [TAG]...
7000 -h, --help print this help, then exit
7001 -V, --version print version number and configuration settings, then exit
7002 --config print configuration, then exit
7003 -q, --quiet, --silent
7004 do not print progress messages
7005 -d, --debug don't remove temporary files
7006 --recheck update $as_me by reconfiguring in the same conditions
7007 --file=FILE[:TEMPLATE]
7008 instantiate the configuration file FILE
7009 --header=FILE[:TEMPLATE]
7010 instantiate the configuration header FILE
7012 Configuration files:
7015 Configuration headers:
7018 Configuration commands:
7021 Report bugs to the package provider."
7024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7027 libctf library config.status 1.2.0-pre
7028 configured by $0, generated by GNU Autoconf 2.69,
7029 with options \\"\$ac_cs_config\\"
7031 Copyright (C) Free Software Foundation, Inc.
7032 This config.status script is free software; the Free Software Foundation
7033 gives unlimited permission to copy, distribute and modify it."
7040 test -n "\$AWK" || AWK=awk
7043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7044 # The default lists apply if the user does not specify any file.
7050 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7051 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7055 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7067 # Handling of the options.
7068 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7070 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7071 $as_echo "$ac_cs_version"; exit ;;
7072 --config |
--confi |
--conf |
--con |
--co |
--c )
7073 $as_echo "$ac_cs_config"; exit ;;
7074 --debug |
--debu |
--deb |
--de |
--d |
-d )
7076 --file |
--fil |
--fi |
--f )
7079 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7080 '') as_fn_error $?
"missing file argument" ;;
7082 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7083 ac_need_defaults
=false
;;
7084 --header |
--heade |
--head |
--hea )
7087 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7089 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7090 ac_need_defaults
=false
;;
7092 # Conflict between --help and --header
7093 as_fn_error $?
"ambiguous option: \`$1'
7094 Try \`$0 --help' for more information.";;
7095 --help |
--hel |
-h )
7096 $as_echo "$ac_cs_usage"; exit ;;
7097 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7098 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7102 -*) as_fn_error $?
"unrecognized option: \`$1'
7103 Try \`$0 --help' for more information." ;;
7105 *) as_fn_append ac_config_targets
" $1"
7106 ac_need_defaults
=false
;;
7112 ac_configure_extra_args
=
7114 if $ac_cs_silent; then
7116 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7121 if \$ac_cs_recheck; then
7122 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7124 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7125 CONFIG_SHELL='$SHELL'
7131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7135 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7136 ## Running $as_me. ##
7142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7146 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7152 # Handling of arguments.
7153 for ac_config_target
in $ac_config_targets
7155 case $ac_config_target in
7156 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7157 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7158 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7160 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7165 # If the user did not use the arguments to specify the items to instantiate,
7166 # then the envvar interface is used. Set only those that are not.
7167 # We use the long form for the default assignment because of an extremely
7168 # bizarre bug on SunOS 4.1.3.
7169 if $ac_need_defaults; then
7170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7175 # Have a temporary directory for convenience. Make it in the build tree
7176 # simply because there is no reason against having it here, and in addition,
7177 # creating and moving files from /tmp can sometimes cause problems.
7178 # Hook for its removal unless debugging.
7179 # Note that there is a small window in which the directory will not be cleaned:
7180 # after its creation but before its name has been assigned to `$tmp'.
7184 trap 'exit_status=$?
7186 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7188 trap 'as_fn_exit 1' 1 2 13 15
7190 # Create a (secure) tmp directory for tmp files.
7193 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7197 tmp
=.
/conf$$
-$RANDOM
7198 (umask 077 && mkdir
"$tmp")
7199 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7202 # Set up the scripts for CONFIG_FILES section.
7203 # No need to generate them if there are no CONFIG_FILES.
7204 # This happens for instance with `./config.status config.h'.
7205 if test -n "$CONFIG_FILES"; then
7208 ac_cr
=`echo X | tr X '\015'`
7209 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7210 # But we know of no other shell where ac_cr would be empty at this
7211 # point, so we can use a bashism as a fallback.
7212 if test "x$ac_cr" = x
; then
7213 eval ac_cr
=\$
\'\\r
\'
7215 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7216 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7222 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7227 echo "cat >conf$$subs.awk <<_ACEOF" &&
7228 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7231 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7234 for ac_last_try in false false false false false :; do
7235 . ./conf$$subs.sh ||
7236 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7238 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7239 if test $ac_delim_n = $ac_delim_num; then
7241 elif $ac_last_try; then
7242 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7244 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7250 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7254 s/^/S["/; s
/!.
*/"]=/
7264 s/\(.\{148\}\)..*/\1/
7266 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7271 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7278 s/\(.\{148\}\)..*/\1/
7280 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7284 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7289 ' <conf$$subs.awk | sed '
7294 ' >>$CONFIG_STATUS || ac_write_fail=1
7295 rm -f conf$$subs.awk
7296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7298 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7299 for (key in S) S_is_set[key] = 1
7305 nfields = split(line, field, "@
")
7307 len = length(field[1])
7308 for (i = 2; i < nfields; i++) {
7310 keylen = length(key)
7311 if (S_is_set[key]) {
7313 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7314 len += length(value) + length(field[++i])
7325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7326 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7327 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7330 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7331 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7334 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7335 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7336 # trailing colons and then remove the whole line if VPATH becomes empty
7337 # (actually we leave an empty line to preserve line numbers).
7338 if test "x
$srcdir" = x.; then
7339 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7358 fi # test -n "$CONFIG_FILES"
7360 # Set up the scripts for CONFIG_HEADERS section.
7361 # No need to generate them if there are no CONFIG_HEADERS.
7362 # This happens for instance with `./config.status Makefile'.
7363 if test -n "$CONFIG_HEADERS"; then
7364 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7368 # Transform confdefs.h into an awk script `defines.awk', embedded as
7369 # here-document in config.status, that substitutes the proper values into
7370 # config.h.in to produce config.h.
7372 # Create a delimiter string that does not exist in confdefs.h, to ease
7373 # handling of long lines.
7375 for ac_last_try in false false :; do
7376 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7377 if test -z "$ac_tt"; then
7379 elif $ac_last_try; then
7380 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7382 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7386 # For the awk script, D is an array of macro values keyed by name,
7387 # likewise P contains macro parameters if any. Preserve backslash
7388 # newline sequences.
7390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7392 s/.\{148\}/&'"$ac_delim"'/g
7395 s/^[ ]*#[ ]*define[ ][ ]*/ /
7402 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7404 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7409 D["\
1"]=" \
3\\\\\\n
"\\/p
7411 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7416 s/.\{148\}/&'"$ac_delim"'/g
7421 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7424 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7426 ' <confdefs.h | sed '
7427 s/'"$ac_delim"'/"\\\
7428 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7431 for (key in D) D_is_set[key] = 1
7434 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7436 split(line, arg, " ")
7437 if (arg[1] == "#") {
7441 defundef
= substr
(arg
[1], 2)
7444 split(mac1
, mac2
, "(") #)
7446 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7447 if (D_is_set
[macro
]) {
7448 # Preserve the white space surrounding the "#".
7449 print prefix
"define", macro P
[macro
] D
[macro
]
7452 # Replace #undef with comments. This is necessary, for example,
7453 # in the case of _POSIX_SOURCE, which is predefined and required
7454 # on some systems where configure will not decide to define it.
7455 if (defundef
== "undef") {
7456 print
"/*", prefix defundef
, macro
, "*/"
7464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7465 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7466 fi # test -n "$CONFIG_HEADERS"
7469 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7474 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7476 case $ac_mode$ac_tag in
7478 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7479 :[FH
]-) ac_tag
=-:-;;
7480 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7497 -) ac_f
="$ac_tmp/stdin";;
7498 *) # Look for the file first in the build tree, then in the source tree
7499 # (if the path is not absolute). The absolute path cannot be DOS-style,
7500 # because $ac_f cannot contain `:'.
7504 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7506 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7508 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7509 as_fn_append ac_file_inputs
" '$ac_f'"
7512 # Let's still pretend it is `configure' which instantiates (i.e., don't
7513 # use $as_me), people would be surprised to read:
7514 # /* config.h. Generated by config.status. */
7515 configure_input
='Generated from '`
7516 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7518 if test x
"$ac_file" != x-
; then
7519 configure_input
="$ac_file. $configure_input"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7521 $as_echo "$as_me: creating $ac_file" >&6;}
7523 # Neutralize special characters interpreted by sed in replacement strings.
7524 case $configure_input in #(
7525 *\
&* |
*\|
* |
*\\* )
7526 ac_sed_conf_input
=`$as_echo "$configure_input" |
7527 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7528 *) ac_sed_conf_input
=$configure_input;;
7532 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7533 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7538 ac_dir
=`$as_dirname -- "$ac_file" ||
7539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7540 X"$ac_file" : 'X\(//\)[^/]' \| \
7541 X"$ac_file" : 'X\(//\)$' \| \
7542 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7543 $as_echo X"$ac_file" |
7544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7561 as_dir
="$ac_dir"; as_fn_mkdir_p
7565 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7567 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7568 # A ".." for each directory in $ac_dir_suffix.
7569 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7570 case $ac_top_builddir_sub in
7571 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7572 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7575 ac_abs_top_builddir
=$ac_pwd
7576 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7577 # for backward compatibility:
7578 ac_top_builddir
=$ac_top_build_prefix
7581 .
) # We are building in place.
7583 ac_top_srcdir
=$ac_top_builddir_sub
7584 ac_abs_top_srcdir
=$ac_pwd ;;
7585 [\\/]* | ?
:[\\/]* ) # Absolute name.
7586 ac_srcdir
=$srcdir$ac_dir_suffix;
7587 ac_top_srcdir
=$srcdir
7588 ac_abs_top_srcdir
=$srcdir ;;
7590 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7591 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7592 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7594 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7604 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7605 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7609 [\\/$
]* | ?
:[\\/]* ) ;;
7610 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
7614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7615 # If the template does not know about datarootdir, expand it.
7616 # FIXME: This hack should be removed a few years after 2.60.
7617 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7628 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7629 *datarootdir
*) ac_datarootdir_seen
=yes;;
7630 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7632 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7635 ac_datarootdir_hack='
7636 s&@datadir@&$datadir&g
7637 s&@docdir@&$docdir&g
7638 s&@infodir@&$infodir&g
7639 s&@localedir@&$localedir&g
7640 s&@mandir@&$mandir&g
7641 s&\\\${datarootdir}&$datarootdir&g' ;;
7645 # Neutralize VPATH when `$srcdir' = `.'.
7646 # Shell code in configure.ac might set extrasub.
7647 # FIXME: do we really want to maintain this feature?
7648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7649 ac_sed_extra="$ac_vpsub
7652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7654 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7655 s|@configure_input@|
$ac_sed_conf_input|
;t t
7656 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7657 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7658 s
&@srcdir@
&$ac_srcdir&;t t
7659 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7660 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7661 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7662 s
&@builddir@
&$ac_builddir&;t t
7663 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7664 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7665 s
&@INSTALL@
&$ac_INSTALL&;t t
7666 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7667 $ac_datarootdir_hack
7669 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7670 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7675 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7677 which seems to be undefined. Please make sure it is defined" >&5
7678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7679 which seems to be undefined. Please make sure it is defined" >&2;}
7681 rm -f "$ac_tmp/stdin"
7683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7692 if test x"$ac_file" != x-; then
7694 $as_echo "/* $configure_input */" \
7695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7696 } >"$ac_tmp/config.h" \
7697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7703 mv "$ac_tmp/config.h" "$ac_file" \
7704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7707 $as_echo "/* $configure_input */" \
7708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7709 || as_fn_error $? "could not create -" "$LINENO" 5
7711 # Compute "$ac_file"'s index
in $config_headers.
7714 for _am_header
in $config_headers :; do
7716 $_am_arg |
$_am_arg:* )
7719 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
7722 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7723 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7724 X"$_am_arg" : 'X\(//\)[^/]' \| \
7725 X"$_am_arg" : 'X\(//\)$' \| \
7726 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7727 $as_echo X"$_am_arg" |
7728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7744 s/.*/./; q'`/stamp-h
$_am_stamp_count
7747 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7748 $as_echo "$as_me: executing $ac_file commands" >&6;}
7753 case $ac_file$ac_mode in
7754 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
7755 # Older Autoconf quotes --file arguments for eval, but not when files
7756 # are listed without --file. Let's play safe and only enable the eval
7757 # if we detect the quoting.
7758 case $CONFIG_FILES in
7759 *\'*) eval set x
"$CONFIG_FILES" ;;
7760 *) set x
$CONFIG_FILES ;;
7765 # Strip MF so we end up with the name of the file.
7766 mf
=`echo "$mf" | sed -e 's/:.*$//'`
7767 # Check whether this is an Automake generated Makefile or not.
7768 # We used to match only the files named 'Makefile.in', but
7769 # some people rename them; so instead we look at the file content.
7770 # Grep'ing the first line is not enough: some people post-process
7771 # each Makefile.in and add a new line on top of each file to say so.
7772 # Grep'ing the whole file is not good either: AIX grep has a line
7773 # limit of 2048, but all sed's we know have understand at least 4000.
7774 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
7775 dirpart
=`$as_dirname -- "$mf" ||
7776 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7777 X"$mf" : 'X\(//\)[^/]' \| \
7778 X"$mf" : 'X\(//\)$' \| \
7779 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7801 # Extract the definition of DEPDIR, am__include, and am__quote
7802 # from the Makefile without running 'make'.
7803 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
7804 test -z "$DEPDIR" && continue
7805 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
7806 test -z "$am__include" && continue
7807 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
7808 # Find all dependency output files, they are included files with
7809 # $(DEPDIR) in their names. We invoke sed twice because it is the
7810 # simplest approach to changing $(DEPDIR) to its actual value in the
7812 for file in `sed -n "
7813 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7814 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7815 # Make sure the directory exists.
7816 test -f "$dirpart/$file" && continue
7817 fdir
=`$as_dirname -- "$file" ||
7818 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7819 X"$file" : 'X\(//\)[^/]' \| \
7820 X"$file" : 'X\(//\)$' \| \
7821 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7840 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
7841 # echo "creating $dirpart/$file"
7842 echo '# dummy' > "$dirpart/$file"
7854 ac_clean_files
=$ac_clean_files_save
7856 test $ac_write_fail = 0 ||
7857 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7860 # configure is writing to config.log, and then calls config.status.
7861 # config.status does its own redirection, appending to config.log.
7862 # Unfortunately, on DOS this fails, as config.log is still kept open
7863 # by configure, so config.status won't be able to write to it; its
7864 # output is simply discarded. So we exec the FD to /dev/null,
7865 # effectively closing config.log, so it can be properly (re)opened and
7866 # appended to by config.status. When coming back to configure, we
7867 # need to make the FD available again.
7868 if test "$no_create" != yes; then
7870 ac_config_status_args
=
7871 test "$silent" = yes &&
7872 ac_config_status_args
="$ac_config_status_args --quiet"
7874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7877 # would make configure fail if this is the last instruction.
7878 $ac_cs_success || as_fn_exit
1
7880 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7882 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}