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>
624 ac_subst_vars='am__EXEEXT_FALSE
628 NEED_CTF_QSORT_R_FALSE
629 NEED_CTF_QSORT_R_TRUE
632 ac_libctf_warn_cflags
634 MAINTAINER_MODE_FALSE
665 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
731 enable_dependency_tracking
735 enable_maintainer_mode
738 ac_precious_vars='build_alias
749 # Initialize some variables set by options.
751 ac_init_version=false
752 ac_unrecognized_opts=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name=s,x,x,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
866 eval enable_$ac_useropt=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
892 eval enable_$ac_useropt=\$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
907 -help | --help | --hel | --he | -h)
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 htmldir=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 # Obsolete; use --without-fp.
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 sbindir=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 sharedstatedir=$ac_optarg ;;
1054 -site | --site | --sit)
1056 -site=* | --site=* | --sit=*)
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval with_$ac_useropt=\$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval with_$ac_useropt=no ;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1183 # Be sure to have absolute directory names.
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210 test "$silent" = yes && exec 6>/dev/null
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1253 ac_srcdir_defaulted=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 # Report the --help message.
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1287 \`configure' configures libctf library 1.2.0-pre to adapt to many kinds of systems.
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1294 Defaults for the options are specified in brackets.
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1318 For better control, use the options below.
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf-library]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1345 --program-prefix=PREFIX prepend PREFIX to installed program names
1346 --program-suffix=SUFFIX append SUFFIX to installed program names
1347 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short | recursive ) echo "Configuration of libctf library 1.2.0-pre:";;
1358 --disable-option-checking ignore unrecognized --enable/--with options
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-dependency-tracking
1362 do not reject slow dependency extractors
1363 --disable-dependency-tracking
1364 speeds up one-time build
1365 --enable-silent-rules less verbose build output (undo: "make V=1")
1366 --disable-silent-rules verbose build output (undo: "make V=0")
1367 --disable-largefile omit support for large files
1368 --enable-werror-always enable -Werror despite compiler version
1369 --enable-maintainer-mode
1370 enable make rules and dependencies not useful (and
1371 sometimes confusing) to the casual installer
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376 --with-system-zlib use installed libz
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to the package provider.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1454 libctf library configure 1.2.0-pre
1455 generated by GNU Autoconf 2.69
1457 Copyright (C) 2012 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_try_cpp LINENO
1507 # ----------------------
1508 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } > conftest.i && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1543 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546 # the include files in INCLUDES and setting the cache variable VAR
1548 ac_fn_c_check_header_mongrel ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if eval \${$3+:} false; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 $as_echo_n "checking for $2... " >&6; }
1554 if eval \${$3+:} false; then :
1555 $as_echo_n "(cached) " >&6
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1561 # Is the header compilable?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563 $as_echo_n "checking $2 usability... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1572 ac_header_compiler=no
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576 $as_echo "$ac_header_compiler" >&6; }
1578 # Is the header present?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580 $as_echo_n "checking $2 presence... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1585 if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1588 ac_header_preproc=no
1590 rm -f conftest.err conftest.i conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592 $as_echo "$ac_header_preproc" >&6; }
1594 # So? What about this header?
1595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1620 eval "$3=\$ac_header_compiler"
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 } # ac_fn_c_check_header_mongrel
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=$ac_status
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest$ac_exeext
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_link
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1772 # include <limits.h>
1774 # include <assert.h>
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1801 if ac_fn_c_try_link "$LINENO"; then :
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_func
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1819 It was created by libctf library $as_me 1.2.0-pre, which was
1820 generated by GNU Autoconf 2.69. Invocation command line was
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_must_keep_next=false
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 -* ) ac_must_keep_next=true ;;
1912 as_fn_append ac_configure_args " '$ac_arg'"
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1930 $as_echo "## ---------------- ##
1931 ## Cache variables. ##
1932 ## ---------------- ##"
1934 # The following way of writing the cache mishandles newlines in values,
1936 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1937 eval ac_val=\$$ac_var
1941 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945 _ | IFS | as_nl) ;; #(
1946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947 *) { eval $ac_var=; unset $ac_var;} ;;
1952 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1953 *${as_nl}ac_space=\ *)
1955 "s/'\''/'\''\\\\'\'''\''/g;
1956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 $as_echo "## ----------------- ##
1967 ## Output variables. ##
1968 ## ----------------- ##"
1970 for ac_var in $ac_subst_vars
1972 eval ac_val=\$$ac_var
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 $as_echo "$ac_var='\''$ac_val'\''"
1980 if test -n "$ac_subst_files"; then
1981 $as_echo "## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##"
1985 for ac_var in $ac_subst_files
1987 eval ac_val=\$$ac_var
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 $as_echo "$ac_var='\''$ac_val'\''"
1996 if test -s confdefs.h; then
1997 $as_echo "## ----------- ##
2004 test "$ac_signal" != 0 &&
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012 for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2018 rm -f -r conftest* confdefs.h
2020 $as_echo "/* confdefs.h */" > confdefs.h
2022 # Predefined preprocessor variables.
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_NAME "$PACKAGE_NAME"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_STRING "$PACKAGE_STRING"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_URL "$PACKAGE_URL"
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2053 if test -n "$CONFIG_SITE"; then
2054 # We do not want a PATH search for config.site.
2055 case $CONFIG_SITE in #((
2056 -*) ac_site_file1=./$CONFIG_SITE;;
2057 */*) ac_site_file1=$CONFIG_SITE;;
2058 *) ac_site_file1=./$CONFIG_SITE;;
2060 elif test "x$prefix" != xNONE; then
2061 ac_site_file1=$prefix/share/config.site
2062 ac_site_file2=$prefix/etc/config.site
2064 ac_site_file1=$ac_default_prefix/share/config.site
2065 ac_site_file2=$ac_default_prefix/etc/config.site
2067 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2069 test "x$ac_site_file" = xNONE && continue
2070 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2073 sed 's/^/| /' "$ac_site_file" >&5
2075 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 as_fn_error $? "failed to load site script $ac_site_file
2078 See \`config.log' for more details" "$LINENO" 5; }
2082 if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special files
2084 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2085 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2099 as_fn_append ac_header_list " stdlib.h"
2100 as_fn_append ac_header_list " unistd.h"
2101 as_fn_append ac_header_list " sys/param.h"
2102 as_fn_append ac_func_list " qsort_r"
2103 # Check that the precious variables saved in the cache have kept the same
2105 ac_cache_corrupted=false
2106 for ac_var in $ac_precious_vars; do
2107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2108 eval ac_new_set=\$ac_env_${ac_var}_set
2109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2110 eval ac_new_val=\$ac_env_${ac_var}_value
2111 case $ac_old_set,$ac_new_set in
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2122 if test "x$ac_old_val" != "x$ac_new_val"; then
2123 # differences in whitespace do not lead to failure.
2124 ac_old_val_w=`echo x $ac_old_val`
2125 ac_new_val_w=`echo x $ac_new_val`
2126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2129 ac_cache_corrupted=:
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2133 eval $ac_var=\$ac_old_val
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 # Pass precious variables to config.status.
2142 if test "$ac_new_set" = set; then
2144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 *) ac_arg=$ac_var=$ac_new_val ;;
2147 case " $ac_configure_args " in
2148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 if $ac_cache_corrupted; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2158 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2160 ## -------------------- ##
2161 ## Main body of script. ##
2162 ## -------------------- ##
2165 ac_cpp='$CPP $CPPFLAGS'
2166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2178 if test -f "$ac_dir/install-sh"; then
2180 ac_install_sh="$ac_aux_dir/install-sh -c"
2182 elif test -f "$ac_dir/install.sh"; then
2184 ac_install_sh="$ac_aux_dir/install.sh -c"
2186 elif test -f "$ac_dir/shtool"; then
2188 ac_install_sh="$ac_aux_dir/shtool install -c"
2192 if test -z "$ac_aux_dir"; then
2193 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2196 # These three variables are undocumented and unsupported,
2197 # and are intended to be withdrawn in a future Autoconf release.
2198 # They can cause serious problems if a builder's source tree is in a directory
2199 # whose full name contains unusual characters.
2200 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2201 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2202 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2205 # Expand $ac_aux_dir to an absolute path.
2206 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217 $as_echo_n "checking for $ac_word... " >&6; }
2218 if ${ac_cv_prog_CC+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2244 $as_echo "$CC" >&6; }
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2247 $as_echo "no" >&6; }
2252 if test -z "$ac_cv_prog_CC"; then
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255 set dummy gcc; ac_word=$2
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257 $as_echo_n "checking for $ac_word... " >&6; }
2258 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2259 $as_echo_n "(cached) " >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_ac_ct_CC="gcc"
2272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2284 $as_echo "$ac_ct_CC" >&6; }
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287 $as_echo "no" >&6; }
2290 if test "x$ac_ct_CC" = x; then
2293 case $cross_compiling:$ac_tool_warned in
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2297 ac_tool_warned=yes ;;
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}cc; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_CC+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_CC="${ac_tool_prefix}cc"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 if test -n "$CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337 $as_echo "$CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2346 if test -z "$CC"; then
2347 # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if ${ac_cv_prog_CC+:} false; then :
2352 $as_echo_n "(cached) " >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366 ac_prog_rejected=yes
2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test $ac_prog_rejected = yes; then
2378 # We found a bogon in the path, so make sure we never use it.
2379 set dummy $ac_cv_prog_CC
2381 if test $# != 0; then
2382 # We chose a different compiler from the bogus one.
2383 # However, it has the same basename, so the bogon will be chosen
2384 # first if we set CC to just the basename; use the full file name.
2386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2392 if test -n "$CC"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394 $as_echo "$CC" >&6; }
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2402 if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2404 for ac_prog in cl.exe
2406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_CC+:} false; then :
2411 $as_echo_n "(cached) " >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
2443 test -n "$CC" && break
2446 if test -z "$CC"; then
2448 for ac_prog in cl.exe
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2480 $as_echo "$ac_ct_CC" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2487 test -n "$ac_ct_CC" && break
2490 if test "x$ac_ct_CC" = x; then
2493 case $cross_compiling:$ac_tool_warned in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497 ac_tool_warned=yes ;;
2506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 as_fn_error $? "no acceptable C compiler found in \$PATH
2509 See \`config.log' for more details" "$LINENO" 5; }
2511 # Provide some information about the compiler.
2512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2515 for ac_option in --version -v -V -qversion; do
2516 { { ac_try="$ac_compiler $ac_option >&5"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2525 if test -s conftest.err; then
2527 ... rest of stderr output deleted ...
2528 10q' conftest.err >conftest.er1
2529 cat conftest.er1 >&5
2531 rm -f conftest.er1 conftest.err
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; }
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2547 ac_clean_files_save=$ac_clean_files
2548 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2549 # Try to create an executable without -o first, disregard a.out.
2550 # It will help us diagnose broken compilers, and finding out an intuition
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2553 $as_echo_n "checking whether the C compiler works... " >&6; }
2554 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2556 # The possible output files:
2557 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2560 for ac_file in $ac_files
2563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2569 if { { ac_try="$ac_link_default"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link_default") 2>&5
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; then :
2580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2581 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2582 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2583 # so that the user can short-circuit this test for compilers unknown to
2585 for ac_file in $ac_files ''
2587 test -f "$ac_file" || continue
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2592 # We found the default executable, but exeext='' is most
2596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 # We set ac_cv_exeext here because the later test for it is not
2601 # safe: cross compilers may not add the suffix if given an `-o'
2602 # argument, so we may need to know it at that point already.
2603 # Even if this section looks crufty: it has the advantage of
2610 test "$ac_cv_exeext" = no && ac_cv_exeext=
2615 if test -z "$ac_file"; then :
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 $as_echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 as_fn_error 77 "C compiler cannot create executables
2624 See \`config.log' for more details" "$LINENO" 5; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2630 $as_echo_n "checking for C compiler default output file name... " >&6; }
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2632 $as_echo "$ac_file" >&6; }
2633 ac_exeext=$ac_cv_exeext
2635 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2636 ac_clean_files=$ac_clean_files_save
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2638 $as_echo_n "checking for suffix of executables... " >&6; }
2639 if { { ac_try="$ac_link"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645 $as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_link") 2>&5
2648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649 test $ac_status = 0; }; then :
2650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2652 # work properly (i.e., refer to `conftest.exe'), while it won't with
2654 for ac_file in conftest.exe conftest conftest.*; do
2655 test -f "$ac_file" || continue
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details" "$LINENO" 5; }
2669 rm -f conftest conftest$ac_cv_exeext
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2671 $as_echo "$ac_cv_exeext" >&6; }
2673 rm -f conftest.$ac_ext
2674 EXEEXT=$ac_cv_exeext
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2682 FILE *f = fopen ("conftest.out", "w");
2683 return ferror (f) || fclose (f) != 0;
2689 ac_clean_files="$ac_clean_files conftest.out"
2690 # Check that the compiler produces executables we can run. If not, either
2691 # the compiler is broken, or we cross compile.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2693 $as_echo_n "checking whether we are cross compiling... " >&6; }
2694 if test "$cross_compiling" != yes; then
2695 { { ac_try="$ac_link"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>&5
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }
2706 if { ac_try='./conftest$ac_cv_exeext'
2707 { { case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_try") 2>&5
2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; }; }; then
2719 if test "$cross_compiling" = maybe; then
2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 as_fn_error $? "cannot run C compiled programs.
2725 If you meant to cross compile, use \`--host'.
2726 See \`config.log' for more details" "$LINENO" 5; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2731 $as_echo "$cross_compiling" >&6; }
2733 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2734 ac_clean_files=$ac_clean_files_save
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2736 $as_echo_n "checking for suffix of object files... " >&6; }
2737 if ${ac_cv_objext+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2751 rm -f conftest.o conftest.obj
2752 if { { ac_try="$ac_compile"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758 $as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_compile") 2>&5
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }; then :
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772 $as_echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $? "cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details" "$LINENO" 5; }
2780 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2783 $as_echo "$ac_cv_objext" >&6; }
2784 OBJEXT=$ac_cv_objext
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2787 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2788 if ${ac_cv_c_compiler_gnu+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2805 if ac_fn_c_try_compile "$LINENO"; then :
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2815 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2816 if test $ac_compiler_gnu = yes; then
2821 ac_test_CFLAGS=${CFLAGS+set}
2822 ac_save_CFLAGS=$CFLAGS
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2824 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2825 if ${ac_cv_prog_cc_g+:} false; then :
2826 $as_echo_n "(cached) " >&6
2828 ac_save_c_werror_flag=$ac_c_werror_flag
2829 ac_c_werror_flag=yes
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2843 if ac_fn_c_try_compile "$LINENO"; then :
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2858 if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_c_werror_flag=$ac_save_c_werror_flag
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2874 if ac_fn_c_try_compile "$LINENO"; then :
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2885 $as_echo "$ac_cv_prog_cc_g" >&6; }
2886 if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2895 if test "$GCC" = yes; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2902 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903 if ${ac_cv_prog_cc_c89+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 ac_cv_prog_cc_c89=no
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909 /* end confdefs.h. */
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2927 s = g (p, va_arg (v,int));
2932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933 function prototypes and stuff, but not '\xHH' hex character constants.
2934 These don't provoke an error unfortunately, instead are silently treated
2935 as 'x'. The following induces an error, until -std is added to get
2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937 array size at least. It's necessary to write '\x00'==0 to get something
2938 that's true only with -std. */
2939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942 inside strings and character constants. */
2944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2946 int test (int i, double x);
2947 struct s1 {int (*f) (int a);};
2948 struct s2 {int (*f) (double a);};
2949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963 CC="$ac_save_CC $ac_arg"
2964 if ac_fn_c_try_compile "$LINENO"; then :
2965 ac_cv_prog_cc_c89=$ac_arg
2967 rm -f core conftest.err conftest.$ac_objext
2968 test "x$ac_cv_prog_cc_c89" != "xno" && break
2970 rm -f conftest.$ac_ext
2975 case "x$ac_cv_prog_cc_c89" in
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2978 $as_echo "none needed" >&6; } ;;
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2981 $as_echo "unsupported" >&6; } ;;
2983 CC="$CC $ac_cv_prog_cc_c89"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2987 if test "x$ac_cv_prog_cc_c89" != xno; then :
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3003 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3004 if ${am_cv_prog_cc_c_o+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3018 # Make sure it works both with $CC and with simple cc.
3019 # Following AC_PROG_CC_C_O, we do the test twice because some
3020 # compilers refuse to overwrite an existing .o file with -o,
3021 # though they will create one.
3022 am_cv_prog_cc_c_o=yes
3024 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3025 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } \
3029 && test -f conftest2.$ac_objext; then
3032 am_cv_prog_cc_c_o=no
3036 rm -f core conftest*
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3040 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3041 if test "$am_cv_prog_cc_c_o" != yes; then
3042 # Losing compiler, so override with the script.
3043 # FIXME: It is wrong to rewrite CC.
3044 # But if we don't then we get into trouble of one sort or another.
3045 # A longer-term fix would be to have automake use am__CC in this case,
3046 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3047 CC="$am_aux_dir/compile $CC"
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3064 # On Suns, sometimes $CPP names a directory.
3065 if test -n "$CPP" && test -d "$CPP"; then
3068 if test -z "$CPP"; then
3069 if ${ac_cv_prog_CPP+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 # Double quotes because CPP needs to be expanded
3073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3076 for ac_c_preproc_warn_flag in '' yes
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3087 # include <limits.h>
3089 # include <assert.h>
3093 if ac_fn_c_try_cpp "$LINENO"; then :
3096 # Broken: fails on valid input.
3099 rm -f conftest.err conftest.i conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether nonexistent headers
3102 # can be detected and how.
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105 #include <ac_nonexistent.h>
3107 if ac_fn_c_try_cpp "$LINENO"; then :
3108 # Broken: success on invalid input.
3111 # Passes both tests.
3115 rm -f conftest.err conftest.i conftest.$ac_ext
3118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119 rm -f conftest.i conftest.err conftest.$ac_ext
3120 if $ac_preproc_ok; then :
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3133 $as_echo "$CPP" >&6; }
3135 for ac_c_preproc_warn_flag in '' yes
3137 # Use a header file that comes with gcc, so configuring glibc
3138 # with a fresh cross-compiler works.
3139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140 # <limits.h> exists even on freestanding compilers.
3141 # On the NeXT, cc -E runs the code through the compiler's parser,
3142 # not just through cpp. "Syntax error" is here to catch this case.
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3146 # include <limits.h>
3148 # include <assert.h>
3152 if ac_fn_c_try_cpp "$LINENO"; then :
3155 # Broken: fails on valid input.
3158 rm -f conftest.err conftest.i conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether nonexistent headers
3161 # can be detected and how.
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <ac_nonexistent.h>
3166 if ac_fn_c_try_cpp "$LINENO"; then :
3167 # Broken: success on invalid input.
3170 # Passes both tests.
3174 rm -f conftest.err conftest.i conftest.$ac_ext
3177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178 rm -f conftest.i conftest.err conftest.$ac_ext
3179 if $ac_preproc_ok; then :
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3185 See \`config.log' for more details" "$LINENO" 5; }
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3196 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3197 if ${ac_cv_path_GREP+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -z "$GREP"; then
3201 ac_path_GREP_found=false
3202 # Loop through the user's path and test for each of PROGNAME-LIST
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3207 test -z "$as_dir" && as_dir=.
3208 for ac_prog in grep ggrep; do
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3211 as_fn_executable_p "$ac_path_GREP" || continue
3212 # Check for GNU ac_path_GREP and select it if it is found.
3213 # Check for GNU $ac_path_GREP
3214 case `"$ac_path_GREP" --version 2>&1` in
3216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3219 $as_echo_n 0123456789 >"conftest.in"
3222 cat "conftest.in" "conftest.in" >"conftest.tmp"
3223 mv "conftest.tmp" "conftest.in"
3224 cp "conftest.in" "conftest.nl"
3225 $as_echo 'GREP' >> "conftest.nl"
3226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3228 as_fn_arith $ac_count + 1 && ac_count=$as_val
3229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3230 # Best one so far, save it but keep looking for a better one
3231 ac_cv_path_GREP="$ac_path_GREP"
3232 ac_path_GREP_max=$ac_count
3234 # 10*(2^10) chars as input seems more than enough
3235 test $ac_count -gt 10 && break
3237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3240 $ac_path_GREP_found && break 3
3245 if test -z "$ac_cv_path_GREP"; then
3246 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3249 ac_cv_path_GREP=$GREP
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3254 $as_echo "$ac_cv_path_GREP" >&6; }
3255 GREP="$ac_cv_path_GREP"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3259 $as_echo_n "checking for egrep... " >&6; }
3260 if ${ac_cv_path_EGREP+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3264 then ac_cv_path_EGREP="$GREP -E"
3266 if test -z "$EGREP"; then
3267 ac_path_EGREP_found=false
3268 # Loop through the user's path and test for each of PROGNAME-LIST
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3273 test -z "$as_dir" && as_dir=.
3274 for ac_prog in egrep; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3277 as_fn_executable_p "$ac_path_EGREP" || continue
3278 # Check for GNU ac_path_EGREP and select it if it is found.
3279 # Check for GNU $ac_path_EGREP
3280 case `"$ac_path_EGREP" --version 2>&1` in
3282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3285 $as_echo_n 0123456789 >"conftest.in"
3288 cat "conftest.in" "conftest.in" >"conftest.tmp"
3289 mv "conftest.tmp" "conftest.in"
3290 cp "conftest.in" "conftest.nl"
3291 $as_echo 'EGREP' >> "conftest.nl"
3292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3294 as_fn_arith $ac_count + 1 && ac_count=$as_val
3295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3296 # Best one so far, save it but keep looking for a better one
3297 ac_cv_path_EGREP="$ac_path_EGREP"
3298 ac_path_EGREP_max=$ac_count
3300 # 10*(2^10) chars as input seems more than enough
3301 test $ac_count -gt 10 && break
3303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3306 $ac_path_EGREP_found && break 3
3311 if test -z "$ac_cv_path_EGREP"; then
3312 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3315 ac_cv_path_EGREP=$EGREP
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3321 $as_echo "$ac_cv_path_EGREP" >&6; }
3322 EGREP="$ac_cv_path_EGREP"
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3326 $as_echo_n "checking for ANSI C header files... " >&6; }
3327 if ${ac_cv_header_stdc+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_header_stdc=yes
3348 ac_cv_header_stdc=no
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 if test $ac_cv_header_stdc = yes; then
3353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 $EGREP "memchr" >/dev/null 2>&1; then :
3363 ac_cv_header_stdc=no
3369 if test $ac_cv_header_stdc = yes; then
3370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 $EGREP "free" >/dev/null 2>&1; then :
3380 ac_cv_header_stdc=no
3386 if test $ac_cv_header_stdc = yes; then
3387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3388 if test "$cross_compiling" = yes; then :
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 #if ((' ' & 0x0FF) == 0x020)
3396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3399 # define ISLOWER(c) \
3400 (('a' <= (c) && (c) <= 'i') \
3401 || ('j' <= (c) && (c) <= 'r') \
3402 || ('s' <= (c) && (c) <= 'z'))
3403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3411 for (i = 0; i < 256; i++)
3412 if (XOR (islower (i), ISLOWER (i))
3413 || toupper (i) != TOUPPER (i))
3418 if ac_fn_c_try_run "$LINENO"; then :
3421 ac_cv_header_stdc=no
3423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3424 conftest.$ac_objext conftest.beam conftest.$ac_ext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3430 $as_echo "$ac_cv_header_stdc" >&6; }
3431 if test $ac_cv_header_stdc = yes; then
3433 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3439 inttypes.h stdint.h unistd.h
3441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3442 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3445 cat >>confdefs.h <<_ACEOF
3446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3455 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3456 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3463 if test "$MINIX" = yes; then
3465 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3468 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3471 $as_echo "#define _MINIX 1" >>confdefs.h
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3477 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3478 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3484 # define __EXTENSIONS__ 1
3485 $ac_includes_default
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_safe_to_define___extensions__=yes
3497 ac_cv_safe_to_define___extensions__=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3502 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3503 test $ac_cv_safe_to_define___extensions__ = yes &&
3504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3508 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3510 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3512 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3515 am__api_version='1.15'
3517 # Find a good install program. We prefer a C program (faster),
3518 # so one script is as good as another. But avoid the broken or
3519 # incompatible versions:
3520 # SysV /etc/install, /usr/sbin/install
3521 # SunOS /usr/etc/install
3522 # IRIX /sbin/install
3524 # AmigaOS /C/install, which installs bootblocks on floppy discs
3525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3528 # OS/2's system install, which has a completely different semantic
3529 # ./install, which can be erroneously created by make from ./install.sh.
3530 # Reject install programs that cannot install multiple files.
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3533 if test -z "$INSTALL"; then
3534 if ${ac_cv_path_install+:} false; then :
3535 $as_echo_n "(cached) " >&6
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir=.
3542 # Account for people who put trailing slashes in PATH elements.
3543 case $as_dir/ in #((
3544 ./ | .// | /[cC]/* | \
3545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3549 # OSF1 and SCO ODT 3.0 have their own names for install.
3550 # Don't use installbsd from OSF since it installs stuff as root
3552 for ac_prog in ginstall scoinst install; do
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3555 if test $ac_prog = install &&
3556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3557 # AIX install. It has an incompatible calling convention.
3559 elif test $ac_prog = install &&
3560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561 # program-specific install script used by HP pwplus--don't use.
3564 rm -rf conftest.one conftest.two conftest.dir
3565 echo one > conftest.one
3566 echo two > conftest.two
3568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3569 test -s conftest.one && test -s conftest.two &&
3570 test -s conftest.dir/conftest.one &&
3571 test -s conftest.dir/conftest.two
3573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3586 rm -rf conftest.one conftest.two conftest.dir
3589 if test "${ac_cv_path_install+set}" = set; then
3590 INSTALL=$ac_cv_path_install
3592 # As a last resort, use the slow shell script. Don't cache a
3593 # value for INSTALL within a source directory, because that will
3594 # break other packages using the cache if that directory is
3595 # removed, or if the value is a relative name.
3596 INSTALL=$ac_install_sh
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3600 $as_echo "$INSTALL" >&6; }
3602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3603 # It thinks the first close brace ends the variable substitution.
3604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3611 $as_echo_n "checking whether build environment is sane... " >&6; }
3612 # Reject unsafe characters in $srcdir or the absolute working directory
3613 # name. Accept space and tab only in the latter.
3617 *[\\\"\#\$\&\'\`$am_lf]*)
3618 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3622 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3625 # Do 'set' in a subshell so we don't clobber the current shell's
3626 # arguments. Must try -L first in case configure is actually a
3627 # symlink; some systems play weird games with the mod time of symlinks
3628 # (eg FreeBSD returns the mod time of the symlink's containing
3632 for am_try in 1 2; do
3633 echo "timestamp, slept: $am_has_slept" > conftest.file
3634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3635 if test "$*" = "X"; then
3637 set X `ls -t "$srcdir/configure" conftest.file`
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
3646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3647 alias in your environment" "$LINENO" 5
3649 if test "$2" = conftest.file || test $am_try -eq 2; then
3656 test "$2" = conftest.file
3662 as_fn_error $? "newly created file is older than distributed files!
3663 Check your system clock" "$LINENO" 5
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666 $as_echo "yes" >&6; }
3667 # If we didn't sleep, we still need to ensure time stamps of config.status and
3668 # generated files are strictly newer.
3670 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3677 test "$program_prefix" != NONE &&
3678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3679 # Use a double $ so make ignores it.
3680 test "$program_suffix" != NONE &&
3681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3682 # Double any \ or $.
3683 # By default was `s,x,x', remove it if useless.
3684 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3685 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3687 if test x"${MISSING+set}" != xset; then
3690 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3692 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3695 # Use eval to expand $SHELL
3696 if eval "$MISSING --is-lightweight"; then
3697 am_missing_run="$MISSING "
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3701 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3704 if test x"${install_sh+set}" != xset; then
3707 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3709 install_sh="\${SHELL} $am_aux_dir/install-sh"
3713 # Installed binaries are usually stripped using 'strip' when the user
3714 # run "make install-strip". However 'strip' might not be the right
3715 # tool to use in cross-compilation environments, therefore Automake
3716 # will honor the 'STRIP' environment variable to overrule this program.
3717 if test "$cross_compiling" != no; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}strip; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_STRIP+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$STRIP"; then
3727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 STRIP=$ac_cv_prog_STRIP
3747 if test -n "$STRIP"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3749 $as_echo "$STRIP" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3757 if test -z "$ac_cv_prog_STRIP"; then
3759 # Extract the first word of "strip", so it can be a program name with args.
3760 set dummy strip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$ac_ct_STRIP"; then
3767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_STRIP="strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3787 if test -n "$ac_ct_STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3789 $as_echo "$ac_ct_STRIP" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3795 if test "x$ac_ct_STRIP" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3807 STRIP="$ac_cv_prog_STRIP"
3811 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3814 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3815 if test -z "$MKDIR_P"; then
3816 if ${ac_cv_path_mkdir+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3823 test -z "$as_dir" && as_dir=.
3824 for ac_prog in mkdir gmkdir; do
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3827 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3828 'mkdir (GNU coreutils) '* | \
3829 'mkdir (coreutils) '* | \
3830 'mkdir (fileutils) '4.1*)
3831 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3841 test -d ./--version && rmdir ./--version
3842 if test "${ac_cv_path_mkdir+set}" = set; then
3843 MKDIR_P="$ac_cv_path_mkdir -p"
3845 # As a last resort, use the slow shell script. Don't cache a
3846 # value for MKDIR_P within a source directory, because that will
3847 # break other packages using the cache if that directory is
3848 # removed, or if the value is a relative name.
3849 MKDIR_P="$ac_install_sh -d"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3853 $as_echo "$MKDIR_P" >&6; }
3855 for ac_prog in gawk mawk nawk awk
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_AWK+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -n "$AWK"; then
3865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_AWK="$ac_prog"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 if test -n "$AWK"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3887 $as_echo "$AWK" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3894 test -n "$AWK" && break
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3898 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3900 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3901 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3902 $as_echo_n "(cached) " >&6
3904 cat >conftest.make <<\_ACEOF
3907 @echo '@@@%%%=$(MAKE)=@@@%%%'
3909 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3910 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3912 eval ac_cv_prog_make_${ac_make}_set=yes;;
3914 eval ac_cv_prog_make_${ac_make}_set=no;;
3918 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 SET_MAKE="MAKE=${MAKE-make}"
3928 rm -rf .tst 2>/dev/null
3929 mkdir .tst 2>/dev/null
3930 if test -d .tst; then
3935 rmdir .tst 2>/dev/null
3937 DEPDIR="${am__leading_dot}deps"
3939 ac_config_commands="$ac_config_commands depfiles"
3942 am_make=${MAKE-make}
3943 cat > confinc << 'END'
3945 @echo this is the am__doit target
3948 # If we don't find an include directive, just comment out the code.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3950 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3954 # First try GNU make style include.
3955 echo "include confinc" > confmf
3956 # Ignore all kinds of additional output from 'make'.
3957 case `$am_make -s -f confmf 2> /dev/null` in #(
3958 *the\ am__doit\ target*)
3964 # Now try BSD make style include.
3965 if test "$am__include" = "#"; then
3966 echo '.include "confinc"' > confmf
3967 case `$am_make -s -f confmf 2> /dev/null` in #(
3968 *the\ am__doit\ target*)
3969 am__include=.include
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3978 $as_echo "$_am_result" >&6; }
3979 rm -f confinc confmf
3981 # Check whether --enable-dependency-tracking was given.
3982 if test "${enable_dependency_tracking+set}" = set; then :
3983 enableval=$enable_dependency_tracking;
3986 if test "x$enable_dependency_tracking" != xno; then
3987 am_depcomp="$ac_aux_dir/depcomp"
3991 if test "x$enable_dependency_tracking" != xno; then
4000 # Check whether --enable-silent-rules was given.
4001 if test "${enable_silent_rules+set}" = set; then :
4002 enableval=$enable_silent_rules;
4005 case $enable_silent_rules in # (((
4006 yes) AM_DEFAULT_VERBOSITY=0;;
4007 no) AM_DEFAULT_VERBOSITY=1;;
4008 *) AM_DEFAULT_VERBOSITY=1;;
4010 am_make=${MAKE-make}
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4012 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4013 if ${am_cv_make_support_nested_variables+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if $as_echo 'TRUE=$(BAR$(V))
4022 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4023 am_cv_make_support_nested_variables=yes
4025 am_cv_make_support_nested_variables=no
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4029 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4030 if test $am_cv_make_support_nested_variables = yes; then
4032 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4034 AM_V=$AM_DEFAULT_VERBOSITY
4035 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4041 # is not polluted with repeated "-I."
4042 am__isrc=' -I$(srcdir)'
4043 # test to see if srcdir already configured
4044 if test -f $srcdir/config.status; then
4045 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4049 # test whether we have cygpath
4050 if test -z "$CYGPATH_W"; then
4051 if (cygpath --version) >/dev/null 2>/dev/null; then
4052 CYGPATH_W='cygpath -w'
4059 # Define the identity of the package.
4060 PACKAGE='libctf-library'
4064 cat >>confdefs.h <<_ACEOF
4065 #define PACKAGE "$PACKAGE"
4069 cat >>confdefs.h <<_ACEOF
4070 #define VERSION "$VERSION"
4073 # Some tools Automake needs.
4075 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4078 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4081 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4084 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4087 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4089 # For better backward compatibility. To be removed once Automake 1.9.x
4090 # dies out for good. For more background, see:
4091 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4092 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4093 mkdir_p='$(MKDIR_P)'
4095 # We need awk for the "check" target (and possibly the TAP driver). The
4096 # system "awk" is bad on some platforms.
4097 # Always define AMTAR for backward compatibility. Yes, it's still used
4098 # in the wild :-( We should find a proper way to deprecate it ...
4102 # We'll loop over all known methods to create a tar archive until one works.
4103 _am_tools='gnutar pax cpio none'
4105 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4111 depcc="$CC" am_compiler_list=
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114 $as_echo_n "checking dependency style of $depcc... " >&6; }
4115 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119 # We make a subdir and do the tests there. Otherwise we can end up
4120 # making bogus files that we don't know about and never remove. For
4121 # instance it was reported that on HP-UX the gcc test will end up
4122 # making a dummy file named 'D' -- because '-MD' means "put the output
4126 # Copy depcomp to subdir because otherwise we won't find it if we're
4127 # using a relative directory.
4128 cp "$am_depcomp" conftest.dir
4130 # We will build objects and dependencies in a subdirectory because
4131 # it helps to detect inapplicable dependency modes. For instance
4132 # both Tru64's cc and ICC support -MD to output dependencies as a
4133 # side effect of compilation, but ICC will put the dependencies in
4134 # the current directory while Tru64 will put them in the object
4138 am_cv_CC_dependencies_compiler_type=none
4139 if test "$am_compiler_list" = ""; then
4140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4143 case " $depcc " in #(
4144 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4147 for depmode in $am_compiler_list; do
4148 # Setup a source with many dependencies, because some compilers
4149 # like to wrap large dependency lists on column 80 (with \), and
4150 # we should not choose a depcomp mode which is confused by this.
4152 # We need to recreate these files for each test, as the compiler may
4153 # overwrite some of them when testing with obscure command lines.
4154 # This happens at least with the AIX C compiler.
4156 for i in 1 2 3 4 5 6; do
4157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4158 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4159 # Solaris 10 /bin/sh.
4160 echo '/* dummy */' > sub/conftst$i.h
4162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4164 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4165 # mode. It turns out that the SunPro C++ compiler does not properly
4166 # handle '-M -o', and we need to detect this. Also, some Intel
4167 # versions had trouble with output in subdirs.
4168 am__obj=sub/conftest.${OBJEXT-o}
4169 am__minus_obj="-o $am__obj"
4172 # This depmode causes a compiler race in universal mode.
4173 test "$am__universal" = false || continue
4176 # After this tag, mechanisms are not by side-effect, so they'll
4177 # only be used when explicitly requested.
4178 if test "x$enable_dependency_tracking" = xyes; then
4184 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4185 # This compiler won't grok '-c -o', but also, the minuso test has
4186 # not run yet. These depmodes are late enough in the game, and
4187 # so weak that their functioning should not be impacted.
4188 am__obj=conftest.${OBJEXT-o}
4193 if depmode=$depmode \
4194 source=sub/conftest.c object=$am__obj \
4195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4197 >/dev/null 2>conftest.err &&
4198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4202 # icc doesn't choke on unknown options, it will just issue warnings
4203 # or remarks (even with -Werror). So we grep stderr for any message
4204 # that says an option was ignored or not supported.
4205 # When given -MP, icc 7.0 and 7.1 complain thusly:
4206 # icc: Command line warning: ignoring option '-M'; no argument required
4207 # The diagnosis changed in icc 8.0:
4208 # icc: Command line remark: option '-MP' not supported
4209 if (grep 'ignoring option' conftest.err ||
4210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4211 am_cv_CC_dependencies_compiler_type=$depmode
4220 am_cv_CC_dependencies_compiler_type=none
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4225 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4229 test "x$enable_dependency_tracking" != xno \
4230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4232 am__fastdepCC_FALSE='#'
4234 am__fastdepCC_TRUE='#'
4235 am__fastdepCC_FALSE=
4240 # POSIX will say in a future version that running "rm -f" with no argument
4241 # is OK; and we want to be able to make that assumption in our Makefile
4242 # recipes. So use an aggressive probe to check that the usage we want is
4243 # actually supported "in the wild" to an acceptable degree.
4244 # See automake bug#10828.
4245 # To make any issue more visible, cause the running configure to be aborted
4246 # by default if the 'rm' program in use doesn't match our expectations; the
4247 # user can still override this though.
4248 if rm -f && rm -fr && rm -rf; then : OK; else
4252 Your 'rm' program seems unable to run without file operands specified
4253 on the command line, even when the '-f' option is present. This is contrary
4254 to the behaviour of most rm programs out there, and not conforming with
4255 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4257 Please tell bug-automake@gnu.org about your system, including the value
4258 of your $PATH and any error possibly output before this message. This
4259 can help us improve future automake versions.
4262 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4263 echo 'Configuration will proceed anyway, since you have set the' >&2
4264 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4268 Aborting the configuration process, to ensure you take notice of the issue.
4270 You can download and install GNU coreutils to get an 'rm' implementation
4271 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4273 If you want to complete the configuration process using your problematic
4274 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4275 to "yes", and re-run configure.
4278 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4283 # Checks for programs.
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4285 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4287 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4288 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 cat >conftest.make <<\_ACEOF
4294 @echo '@@@%%%=$(MAKE)=@@@%%%'
4296 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4297 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4299 eval ac_cv_prog_make_${ac_make}_set=yes;;
4301 eval ac_cv_prog_make_${ac_make}_set=no;;
4305 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307 $as_echo "yes" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 SET_MAKE="MAKE=${MAKE-make}"
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 $as_echo "$CC" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4359 if test -z "$ac_cv_prog_CC"; then
4361 # Extract the first word of "gcc", so it can be a program name with args.
4362 set dummy gcc; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -n "$ac_ct_CC"; then
4369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_ac_ct_CC="gcc"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389 if test -n "$ac_ct_CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4391 $as_echo "$ac_ct_CC" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4397 if test "x$ac_ct_CC" = x; then
4400 case $cross_compiling:$ac_tool_warned in
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4412 if test -z "$CC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}cc; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CC="${ac_tool_prefix}cc"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4453 if test -z "$CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_CC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473 ac_prog_rejected=yes
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test $ac_prog_rejected = yes; then
4485 # We found a bogon in the path, so make sure we never use it.
4486 set dummy $ac_cv_prog_CC
4488 if test $# != 0; then
4489 # We chose a different compiler from the bogus one.
4490 # However, it has the same basename, so the bogon will be chosen
4491 # first if we set CC to just the basename; use the full file name.
4493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4499 if test -n "$CC"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4501 $as_echo "$CC" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4509 if test -z "$CC"; then
4510 if test -n "$ac_tool_prefix"; then
4511 for ac_prog in cl.exe
4513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_CC+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 if test -n "$CC"; then
4521 ac_cv_prog_CC="$CC" # Let the user override the test.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
4550 test -n "$CC" && break
4553 if test -z "$CC"; then
4555 for ac_prog in cl.exe
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 if test -n "$ac_ct_CC"; then
4565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_CC="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4585 if test -n "$ac_ct_CC"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4587 $as_echo "$ac_ct_CC" >&6; }
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4594 test -n "$ac_ct_CC" && break
4597 if test "x$ac_ct_CC" = x; then
4600 case $cross_compiling:$ac_tool_warned in
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604 ac_tool_warned=yes ;;
4613 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4615 as_fn_error $? "no acceptable C compiler found in \$PATH
4616 See \`config.log' for more details" "$LINENO" 5; }
4618 # Provide some information about the compiler.
4619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4622 for ac_option in --version -v -V -qversion; do
4623 { { ac_try="$ac_compiler $ac_option >&5"
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 $as_echo "$ac_try_echo"; } >&5
4630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4632 if test -s conftest.err; then
4634 ... rest of stderr output deleted ...
4635 10q' conftest.err >conftest.er1
4636 cat conftest.er1 >&5
4638 rm -f conftest.er1 conftest.err
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4645 if ${ac_cv_c_compiler_gnu+:} false; then :
4646 $as_echo_n "(cached) " >&6
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4673 if test $ac_compiler_gnu = yes; then
4678 ac_test_CFLAGS=${CFLAGS+set}
4679 ac_save_CFLAGS=$CFLAGS
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4682 if ${ac_cv_prog_cc_g+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 ac_save_c_werror_flag=$ac_c_werror_flag
4686 ac_c_werror_flag=yes
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4700 if ac_fn_c_try_compile "$LINENO"; then :
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4715 if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4731 if ac_fn_c_try_compile "$LINENO"; then :
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4742 $as_echo "$ac_cv_prog_cc_g" >&6; }
4743 if test "$ac_test_CFLAGS" = set; then
4744 CFLAGS=$ac_save_CFLAGS
4745 elif test $ac_cv_prog_cc_g = yes; then
4746 if test "$GCC" = yes; then
4752 if test "$GCC" = yes; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4760 if ${ac_cv_prog_cc_c89+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 ac_cv_prog_cc_c89=no
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4771 struct buf { int x; };
4772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773 static char *e (p, i)
4779 static char *f (char * (*g) (char **, int), char **p, ...)
4784 s = g (p, va_arg (v,int));
4789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4790 function prototypes and stuff, but not '\xHH' hex character constants.
4791 These don't provoke an error unfortunately, instead are silently treated
4792 as 'x'. The following induces an error, until -std is added to get
4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4794 array size at least. It's necessary to write '\x00'==0 to get something
4795 that's true only with -std. */
4796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799 inside strings and character constants. */
4801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4803 int test (int i, double x);
4804 struct s1 {int (*f) (int a);};
4805 struct s2 {int (*f) (double a);};
4806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4820 CC="$ac_save_CC $ac_arg"
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_c89=$ac_arg
4824 rm -f core conftest.err conftest.$ac_objext
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
4827 rm -f conftest.$ac_ext
4832 case "x$ac_cv_prog_cc_c89" in
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835 $as_echo "none needed" >&6; } ;;
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838 $as_echo "unsupported" >&6; } ;;
4840 CC="$CC $ac_cv_prog_cc_c89"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4844 if test "x$ac_cv_prog_cc_c89" != xno; then :
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4860 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4861 if ${am_cv_prog_cc_c_o+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4875 # Make sure it works both with $CC and with simple cc.
4876 # Following AC_PROG_CC_C_O, we do the test twice because some
4877 # compilers refuse to overwrite an existing .o file with -o,
4878 # though they will create one.
4879 am_cv_prog_cc_c_o=yes
4881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } \
4886 && test -f conftest2.$ac_objext; then
4889 am_cv_prog_cc_c_o=no
4893 rm -f core conftest*
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4897 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4898 if test "$am_cv_prog_cc_c_o" != yes; then
4899 # Losing compiler, so override with the script.
4900 # FIXME: It is wrong to rewrite CC.
4901 # But if we don't then we get into trouble of one sort or another.
4902 # A longer-term fix would be to have automake use am__CC in this case,
4903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4904 CC="$am_aux_dir/compile $CC"
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_RANLIB+:} false; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$RANLIB"; then
4922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 RANLIB=$ac_cv_prog_RANLIB
4942 if test -n "$RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4944 $as_echo "$RANLIB" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_RANLIB"; then
4953 ac_ct_RANLIB=$RANLIB
4954 # Extract the first word of "ranlib", so it can be a program name with args.
4955 set dummy ranlib; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_RANLIB"; then
4962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_RANLIB="ranlib"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4982 if test -n "$ac_ct_RANLIB"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4984 $as_echo "$ac_ct_RANLIB" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_RANLIB" = x; then
4993 case $cross_compiling:$ac_tool_warned in
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4999 RANLIB=$ac_ct_RANLIB
5002 RANLIB="$ac_cv_prog_RANLIB"
5005 if test -n "$ac_tool_prefix"; then
5006 for ac_prog in ar lib "link -lib"
5008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_AR+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$AR"; then
5016 ac_cv_prog_AR="$AR" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 if test -n "$AR"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5038 $as_echo "$AR" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5045 test -n "$AR" && break
5048 if test -z "$AR"; then
5050 for ac_prog in ar lib "link -lib"
5052 # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$ac_ct_AR"; then
5060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_ac_ct_AR="$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5080 if test -n "$ac_ct_AR"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5082 $as_echo "$ac_ct_AR" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 test -n "$ac_ct_AR" && break
5092 if test "x$ac_ct_AR" = x; then
5095 case $cross_compiling:$ac_tool_warned in
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5108 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5109 if ${am_cv_ar_interface+:} false; then :
5110 $as_echo_n "(cached) " >&6
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118 am_cv_ar_interface=ar
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int some_variable = 0;
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5126 (eval $am_ar_try) 2>&5
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5130 if test "$ac_status" -eq 0; then
5131 am_cv_ar_interface=ar
5133 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5135 (eval $am_ar_try) 2>&5
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }
5139 if test "$ac_status" -eq 0; then
5140 am_cv_ar_interface=lib
5142 am_cv_ar_interface=unknown
5145 rm -f conftest.lib libconftest.a
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5157 $as_echo "$am_cv_ar_interface" >&6; }
5159 case $am_cv_ar_interface in
5163 # Microsoft lib, so override with the ar-lib wrapper script.
5164 # FIXME: It is wrong to rewrite AR.
5165 # But if we don't then we get into trouble of one sort or another.
5166 # A longer-term fix would be to have automake use am__AR in this case,
5167 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5169 AR="$am_aux_dir/ar-lib $AR"
5172 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5177 # Check whether --enable-largefile was given.
5178 if test "${enable_largefile+set}" = set; then :
5179 enableval=$enable_largefile;
5182 if test "$enable_largefile" != no; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5185 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5186 if ${ac_cv_sys_largefile_CC+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 ac_cv_sys_largefile_CC=no
5190 if test "$GCC" != yes; then
5193 # IRIX 6.2 and later do not support large files by default,
5194 # so use the C compiler's -n32 option if that helps.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #include <sys/types.h>
5198 /* Check that off_t can represent 2**63 - 1 correctly.
5199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200 since some C++ compilers masquerading as C compilers
5201 incorrectly reject 9223372036854775807. */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204 && LARGE_OFF_T % 2147483647 == 1)
5214 if ac_fn_c_try_compile "$LINENO"; then :
5217 rm -f core conftest.err conftest.$ac_objext
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_sys_largefile_CC=' -n32'; break
5222 rm -f core conftest.err conftest.$ac_objext
5226 rm -f conftest.$ac_ext
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5230 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5231 if test "$ac_cv_sys_largefile_CC" != no; then
5232 CC=$CC$ac_cv_sys_largefile_CC
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5236 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5237 if ${ac_cv_sys_file_offset_bits+:} false; then :
5238 $as_echo_n "(cached) " >&6
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_sys_file_offset_bits=no; break
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #define _FILE_OFFSET_BITS 64
5267 #include <sys/types.h>
5268 /* Check that off_t can represent 2**63 - 1 correctly.
5269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5270 since some C++ compilers masquerading as C compilers
5271 incorrectly reject 9223372036854775807. */
5272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5274 && LARGE_OFF_T % 2147483647 == 1)
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_sys_file_offset_bits=64; break
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_sys_file_offset_bits=unknown
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5293 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5294 case $ac_cv_sys_file_offset_bits in #(
5297 cat >>confdefs.h <<_ACEOF
5298 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5303 if test $ac_cv_sys_file_offset_bits = unknown; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5305 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5306 if ${ac_cv_sys_large_files+:} false; then :
5307 $as_echo_n "(cached) " >&6
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <sys/types.h>
5313 /* Check that off_t can represent 2**63 - 1 correctly.
5314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5315 since some C++ compilers masquerading as C compilers
5316 incorrectly reject 9223372036854775807. */
5317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5319 && LARGE_OFF_T % 2147483647 == 1)
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_sys_large_files=no; break
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #define _LARGE_FILES 1
5336 #include <sys/types.h>
5337 /* Check that off_t can represent 2**63 - 1 correctly.
5338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5339 since some C++ compilers masquerading as C compilers
5340 incorrectly reject 9223372036854775807. */
5341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5343 && LARGE_OFF_T % 2147483647 == 1)
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_sys_large_files=1; break
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cv_sys_large_files=unknown
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5362 $as_echo "$ac_cv_sys_large_files" >&6; }
5363 case $ac_cv_sys_large_files in #(
5366 cat >>confdefs.h <<_ACEOF
5367 #define _LARGE_FILES $ac_cv_sys_large_files
5378 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5379 for ac_prog in aclocal
5381 # Extract the first word of "$ac_prog", so it can be a program name with args.
5382 set dummy $ac_prog; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_ACLOCAL+:} false; then :
5386 $as_echo_n "(cached) " >&6
5388 if test -n "$ACLOCAL"; then
5389 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ACLOCAL="$ac_prog"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 ACLOCAL=$ac_cv_prog_ACLOCAL
5409 if test -n "$ACLOCAL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5411 $as_echo "$ACLOCAL" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5418 test -n "$ACLOCAL" && break
5420 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
5422 for ac_prog in autoconf
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_AUTOCONF+:} false; then :
5429 $as_echo_n "(cached) " >&6
5431 if test -n "$AUTOCONF"; then
5432 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_AUTOCONF="$ac_prog"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 AUTOCONF=$ac_cv_prog_AUTOCONF
5452 if test -n "$AUTOCONF"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5454 $as_echo "$AUTOCONF" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5461 test -n "$AUTOCONF" && break
5463 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
5465 for ac_prog in autoheader
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468 set dummy $ac_prog; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_AUTOHEADER+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -n "$AUTOHEADER"; then
5475 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_AUTOHEADER="$ac_prog"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 AUTOHEADER=$ac_cv_prog_AUTOHEADER
5495 if test -n "$AUTOHEADER"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5497 $as_echo "$AUTOHEADER" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5504 test -n "$AUTOHEADER" && break
5506 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
5509 # Figure out what compiler warnings we can enable.
5510 # See config/warnings.m4 for details.
5513 ac_cpp='$CPP $CPPFLAGS'
5514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519 save_CFLAGS="$CFLAGS"
5520 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
5521 -Wmissing-format-attribute; do
5522 # Do the check with the no- prefix removed since gcc silently
5523 # accepts any -Wno-* option on purpose
5524 case $real_option in
5525 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5526 *) option=$real_option ;;
5528 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5531 $as_echo_n "checking whether $CC supports $option... " >&6; }
5532 if eval \${$as_acx_Woption+:} false; then :
5533 $as_echo_n "(cached) " >&6
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 eval "$as_acx_Woption=yes"
5550 eval "$as_acx_Woption=no"
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 eval ac_res=\$$as_acx_Woption
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5557 $as_echo "$ac_res" >&6; }
5558 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5559 warn="$warn${warn:+ }$real_option"
5562 CFLAGS="$save_CFLAGS"
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577 save_CFLAGS="$CFLAGS"
5578 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5579 -Wold-style-definition; do
5580 # Do the check with the no- prefix removed since gcc silently
5581 # accepts any -Wno-* option on purpose
5582 case $real_option in
5583 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5584 *) option=$real_option ;;
5586 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5589 $as_echo_n "checking whether $CC supports $option... " >&6; }
5590 if eval \${$as_acx_Woption+:} false; then :
5591 $as_echo_n "(cached) " >&6
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 eval "$as_acx_Woption=yes"
5608 eval "$as_acx_Woption=no"
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 eval ac_res=\$$as_acx_Woption
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5615 $as_echo "$ac_res" >&6; }
5616 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5617 c_warn="$c_warn${c_warn:+ }$real_option"
5620 CFLAGS="$save_CFLAGS"
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 # Do the check with the no- prefix removed from the warning options
5636 # since gcc silently accepts any -Wno-* option on purpose
5637 if test "$GCC" = yes; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5639 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5640 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5641 $as_echo_n "(cached) " >&6
5643 save_CFLAGS="$CFLAGS"
5644 CFLAGS="-pedantic -Wlong-long"
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 acx_cv_prog_cc_pedantic__Wlong_long=yes
5659 acx_cv_prog_cc_pedantic__Wlong_long=no
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 CFLAGS="$save_CFLAGS"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5665 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5666 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5667 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679 # Only enable with --enable-werror-always until existing warnings are
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688 # Check whether --enable-werror-always was given.
5689 if test "${enable_werror_always+set}" = set; then :
5690 enableval=$enable_werror_always;
5692 enable_werror_always=no
5695 if test $enable_werror_always = yes; then :
5696 WERROR="$WERROR${WERROR:+ }-Werror"
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5709 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5710 # Check whether --enable-maintainer-mode was given.
5711 if test "${enable_maintainer_mode+set}" = set; then :
5712 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5714 USE_MAINTAINER_MODE=no
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5718 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5719 if test $USE_MAINTAINER_MODE = yes; then
5720 MAINTAINER_MODE_TRUE=
5721 MAINTAINER_MODE_FALSE='#'
5723 MAINTAINER_MODE_TRUE='#'
5724 MAINTAINER_MODE_FALSE=
5727 MAINT=$MAINTAINER_MODE_TRUE
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 ac_libctf_warn_cflags=
5737 save_CFLAGS="$CFLAGS"
5738 for real_option in -Wall; do
5739 # Do the check with the no- prefix removed since gcc silently
5740 # accepts any -Wno-* option on purpose
5741 case $real_option in
5742 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5743 *) option=$real_option ;;
5745 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5748 $as_echo_n "checking whether $CC supports $option... " >&6; }
5749 if eval \${$as_acx_Woption+:} false; then :
5750 $as_echo_n "(cached) " >&6
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 eval "$as_acx_Woption=yes"
5767 eval "$as_acx_Woption=no"
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 eval ac_res=\$$as_acx_Woption
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5774 $as_echo "$ac_res" >&6; }
5775 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5776 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
5779 CFLAGS="$save_CFLAGS"
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791 for ac_header in $ac_header_list
5793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 for ac_func in getpagesize
5814 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5815 if test "x$ac_cv_func_getpagesize" = xyes; then :
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_GETPAGESIZE 1
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5824 $as_echo_n "checking for working mmap... " >&6; }
5825 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5826 $as_echo_n "(cached) " >&6
5828 if test "$cross_compiling" = yes; then :
5829 ac_cv_func_mmap_fixed_mapped=no
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 $ac_includes_default
5834 /* malloc might have been renamed as rpl_malloc. */
5837 /* Thanks to Mike Haertel and Jim Avera for this test.
5838 Here is a matrix of mmap possibilities:
5839 mmap private not fixed
5840 mmap private fixed at somewhere currently unmapped
5841 mmap private fixed at somewhere already mapped
5842 mmap shared not fixed
5843 mmap shared fixed at somewhere currently unmapped
5844 mmap shared fixed at somewhere already mapped
5845 For private mappings, we should verify that changes cannot be read()
5846 back from the file, nor mmap's back from the file at a different
5847 address. (There have been systems where private was not correctly
5848 implemented like the infamous i386 svr4.0, and systems where the
5849 VM page cache was not coherent with the file system buffer cache
5850 like early versions of FreeBSD and possibly contemporary NetBSD.)
5851 For shared mappings, we should conversely verify that changes get
5852 propagated back to all the places they're supposed to be.
5854 Grep wants private fixed already mapped.
5855 The main things grep needs to know about mmap are:
5856 * does it exist and is it safe to write into the mmap'd area
5857 * how to use it (BSD variants) */
5860 #include <sys/mman.h>
5862 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5866 /* This mess was copied from the GNU getpagesize.h. */
5867 #ifndef HAVE_GETPAGESIZE
5868 # ifdef _SC_PAGESIZE
5869 # define getpagesize() sysconf(_SC_PAGESIZE)
5870 # else /* no _SC_PAGESIZE */
5871 # ifdef HAVE_SYS_PARAM_H
5872 # include <sys/param.h>
5873 # ifdef EXEC_PAGESIZE
5874 # define getpagesize() EXEC_PAGESIZE
5875 # else /* no EXEC_PAGESIZE */
5877 # define getpagesize() NBPG * CLSIZE
5880 # endif /* no CLSIZE */
5881 # else /* no NBPG */
5883 # define getpagesize() NBPC
5884 # else /* no NBPC */
5886 # define getpagesize() PAGESIZE
5887 # endif /* PAGESIZE */
5888 # endif /* no NBPC */
5889 # endif /* no NBPG */
5890 # endif /* no EXEC_PAGESIZE */
5891 # else /* no HAVE_SYS_PARAM_H */
5892 # define getpagesize() 8192 /* punt totally */
5893 # endif /* no HAVE_SYS_PARAM_H */
5894 # endif /* no _SC_PAGESIZE */
5896 #endif /* no HAVE_GETPAGESIZE */
5901 char *data, *data2, *data3;
5906 pagesize = getpagesize ();
5908 /* First, make a file with some known garbage in it. */
5909 data = (char *) malloc (pagesize);
5912 for (i = 0; i < pagesize; ++i)
5913 *(data + i) = rand ();
5915 fd = creat ("conftest.mmap", 0600);
5918 if (write (fd, data, pagesize) != pagesize)
5922 /* Next, check that the tail of a page is zero-filled. File must have
5923 non-zero length, otherwise we risk SIGBUS for entire page. */
5924 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5928 if (write (fd2, cdata2, 1) != 1)
5930 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5931 if (data2 == MAP_FAILED)
5933 for (i = 0; i < pagesize; ++i)
5937 if (munmap (data2, pagesize))
5940 /* Next, try to mmap the file at a fixed address which already has
5941 something else allocated at it. If we can, also make sure that
5942 we see the same garbage. */
5943 fd = open ("conftest.mmap", O_RDWR);
5946 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5947 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5949 for (i = 0; i < pagesize; ++i)
5950 if (*(data + i) != *(data2 + i))
5953 /* Finally, make sure that changes to the mapped area do not
5954 percolate back to the file as seen by read(). (This is a bug on
5955 some variants of i386 svr4.0.) */
5956 for (i = 0; i < pagesize; ++i)
5957 *(data2 + i) = *(data2 + i) + 1;
5958 data3 = (char *) malloc (pagesize);
5961 if (read (fd, data3, pagesize) != pagesize)
5963 for (i = 0; i < pagesize; ++i)
5964 if (*(data + i) != *(data3 + i))
5970 if ac_fn_c_try_run "$LINENO"; then :
5971 ac_cv_func_mmap_fixed_mapped=yes
5973 ac_cv_func_mmap_fixed_mapped=no
5975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5976 conftest.$ac_objext conftest.beam conftest.$ac_ext
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5981 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5984 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5987 rm -f conftest.mmap conftest.txt
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5990 $as_echo_n "checking for library containing dlopen... " >&6; }
5991 if ${ac_cv_search_dlopen+:} false; then :
5992 $as_echo_n "(cached) " >&6
5994 ac_func_search_save_LIBS=$LIBS
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6013 for ac_lib in '' dl; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6020 if ac_fn_c_try_link "$LINENO"; then :
6021 ac_cv_search_dlopen=$ac_res
6023 rm -f core conftest.err conftest.$ac_objext \
6025 if ${ac_cv_search_dlopen+:} false; then :
6029 if ${ac_cv_search_dlopen+:} false; then :
6032 ac_cv_search_dlopen=no
6035 LIBS=$ac_func_search_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6038 $as_echo "$ac_cv_search_dlopen" >&6; }
6039 ac_res=$ac_cv_search_dlopen
6040 if test "$ac_res" != no; then :
6041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6046 # Use the system's zlib library.
6047 zlibdir="-L\$(top_builddir)/../zlib"
6048 zlibinc="-I\$(top_srcdir)/../zlib"
6050 # Check whether --with-system-zlib was given.
6051 if test "${with_system_zlib+set}" = set; then :
6052 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6063 # Similar to GDB_AC_CHECK_BFD.
6065 OLD_LDFLAGS=$LDFLAGS
6067 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
6068 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
6069 # always want our bfd.
6070 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
6071 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
6072 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
6073 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
6074 LIBS="-lbfd -liberty -lz $intl $LIBS"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
6076 $as_echo_n "checking for ELF support in BFD... " >&6; }
6077 if ${ac_cv_libctf_bfd_elf+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6084 #include "elf-bfd.h"
6088 (void) bfd_section_from_elf_index (NULL, 0);
6094 if ac_fn_c_try_link "$LINENO"; then :
6095 ac_cv_libctf_bfd_elf=yes
6097 ac_cv_libctf_bfd_elf=no
6099 rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
6103 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
6105 LDFLAGS=$OLD_LDFLAGS
6108 if test $ac_cv_libctf_bfd_elf = yes; then
6110 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6115 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6116 if ${ac_cv_c_bigendian+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 ac_cv_c_bigendian=unknown
6120 # See if we're dealing with a universal compiler.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #ifndef __APPLE_CC__
6124 not a universal capable compiler
6129 if ac_fn_c_try_compile "$LINENO"; then :
6131 # Check for potential -arch flags. It is not universal unless
6132 # there are at least two -arch flags with different values.
6135 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6136 if test -n "$ac_prev"; then
6138 i?86 | x86_64 | ppc | ppc64)
6139 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6142 ac_cv_c_bigendian=universal
6148 elif test "x$ac_word" = "x-arch"; then
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 if test $ac_cv_c_bigendian = unknown; then
6155 # See if sys/param.h defines the BYTE_ORDER macro.
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 #include <sys/types.h>
6159 #include <sys/param.h>
6164 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6165 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 # It does; now see whether it defined to BIG_ENDIAN or not.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #include <sys/types.h>
6179 #include <sys/param.h>
6184 #if BYTE_ORDER != BIG_ENDIAN
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_c_bigendian=yes
6195 ac_cv_c_bigendian=no
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 if test $ac_cv_c_bigendian = unknown; then
6202 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6210 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 # It does; now see whether it defined to _BIG_ENDIAN or not.
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 ac_cv_c_bigendian=yes
6238 ac_cv_c_bigendian=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 if test $ac_cv_c_bigendian = unknown; then
6245 # Compile a test program.
6246 if test "$cross_compiling" = yes; then :
6247 # Try to guess by grepping values from an object file.
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 short int ascii_mm[] =
6251 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6252 short int ascii_ii[] =
6253 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6254 int use_ascii (int i) {
6255 return ascii_mm[i] + ascii_ii[i];
6257 short int ebcdic_ii[] =
6258 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6259 short int ebcdic_mm[] =
6260 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6261 int use_ebcdic (int i) {
6262 return ebcdic_mm[i] + ebcdic_ii[i];
6269 return use_ascii (foo) == use_ebcdic (foo);
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6276 ac_cv_c_bigendian=yes
6278 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6279 if test "$ac_cv_c_bigendian" = unknown; then
6280 ac_cv_c_bigendian=no
6282 # finding both strings is unlikely to happen, but who knows?
6283 ac_cv_c_bigendian=unknown
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 $ac_includes_default
6296 /* Are we little or big endian? From Harbison&Steele. */
6300 char c[sizeof (long int)];
6303 return u.c[sizeof (long int) - 1] == 1;
6309 if ac_fn_c_try_run "$LINENO"; then :
6310 ac_cv_c_bigendian=no
6312 ac_cv_c_bigendian=yes
6314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6315 conftest.$ac_objext conftest.beam conftest.$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6321 $as_echo "$ac_cv_c_bigendian" >&6; }
6322 case $ac_cv_c_bigendian in #(
6324 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6330 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6334 as_fn_error $? "unknown endianness
6335 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6338 for ac_header in byteswap.h endian.h
6340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6343 cat >>confdefs.h <<_ACEOF
6344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 for ac_func in pread
6353 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
6354 if test "x$ac_cv_func_pread" = xyes; then :
6355 cat >>confdefs.h <<_ACEOF
6356 #define HAVE_PREAD 1
6366 for ac_func in $ac_func_list
6368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6371 cat >>confdefs.h <<_ACEOF
6372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6381 if test $ac_cv_func_qsort_r = yes; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
6383 $as_echo_n "checking for qsort_r signature... " >&6; }
6384 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
6385 $as_echo_n "(cached) " >&6
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6391 void qsort_r (void *, size_t, size_t,
6392 int (*) (void const *, void const *,
6395 void (*p) (void *, size_t, size_t,
6396 int (*) (void const *, void const *,
6408 if ac_fn_c_try_link "$LINENO"; then :
6409 ac_cv_libctf_qsort_r_signature=GNU
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6415 void qsort_r (void *, size_t, size_t, void *,
6419 void (*p) (void *, size_t, size_t, void *,
6420 int (*) (void *, void const *,
6421 void const *)) = qsort_r;
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_libctf_qsort_r_signature=BSD
6434 ac_cv_libctf_qsort_r_signature=unknown
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6439 rm -f core conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext conftest.$ac_ext
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
6443 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
6446 case x$ac_cv_libctf_qsort_r_signature in
6448 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
6451 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
6453 *) ac_cv_libctf_qsort_r_signature=unknown;;
6456 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
6457 NEED_CTF_QSORT_R_TRUE=
6458 NEED_CTF_QSORT_R_FALSE='#'
6460 NEED_CTF_QSORT_R_TRUE='#'
6461 NEED_CTF_QSORT_R_FALSE=
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
6466 $as_echo_n "checking for O_CLOEXEC... " >&6; }
6467 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6485 if ac_fn_c_try_link "$LINENO"; then :
6486 ac_cv_libctf_macro_O_CLOEXEC=yes
6488 ac_cv_libctf_macro_O_CLOEXEC=no
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
6494 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
6496 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
6498 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
6502 ac_config_files="$ac_config_files Makefile"
6504 ac_config_headers="$ac_config_headers config.h"
6506 cat >confcache <<\_ACEOF
6507 # This file is a shell script that caches the results of configure
6508 # tests run on this system so they can be shared between configure
6509 # scripts and configure runs, see configure's option --config-cache.
6510 # It is not useful on other systems. If it contains results you don't
6511 # want to keep, you may remove or edit it.
6513 # config.status only pays attention to the cache file if you give it
6514 # the --recheck option to rerun configure.
6516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6522 # The following way of writing the cache mishandles newlines in values,
6523 # but we know of no workaround that is simple, portable, and efficient.
6524 # So, we kill variables containing newlines.
6525 # Ultrix sh set writes to stderr and can't be redirected directly,
6526 # and sets the high bit in the cache file unless we assign to the vars.
6528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6529 eval ac_val=\$$ac_var
6533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6537 _ | IFS | as_nl) ;; #(
6538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6539 *) { eval $ac_var=; unset $ac_var;} ;;
6545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6546 *${as_nl}ac_space=\ *)
6547 # `set' does not quote correctly, so add quotes: double-quote
6548 # substitution turns \\\\ into \\, and sed turns \\ into \.
6551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6554 # `set' quotes correctly as required by POSIX, so do not add quotes.
6555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6569 if test -w "$cache_file"; then
6570 if test "x$cache_file" != "x/dev/null"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6572 $as_echo "$as_me: updating cache $cache_file" >&6;}
6573 if test ! -f "$cache_file" || test -h "$cache_file"; then
6574 cat confcache >"$cache_file"
6576 case $cache_file in #(
6578 mv -f confcache "$cache_file"$$ &&
6579 mv -f "$cache_file"$$ "$cache_file" ;; #(
6581 mv -f confcache "$cache_file" ;;
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6593 # Let make expand exec_prefix.
6594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6596 DEFS=-DHAVE_CONFIG_H
6601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6602 # 1. Remove the extension, and $U if already installed.
6603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6606 # will be set to the directory where LIBOBJS objects are built.
6607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6612 LTLIBOBJS=$ac_ltlibobjs
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6616 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6617 if test -n "$am_sleep_pid"; then
6618 # Hide warnings about reused PIDs.
6619 wait $am_sleep_pid 2>/dev/null
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6622 $as_echo "done" >&6; }
6623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6624 as_fn_error $? "conditional \"AMDEP\" was never defined.
6625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6627 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6628 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6631 if test -n "$EXEEXT"; then
6633 am__EXEEXT_FALSE='#'
6639 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6640 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6644 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
6645 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
6646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6649 : "${CONFIG_STATUS=./config.status}"
6651 ac_clean_files_save=$ac_clean_files
6652 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6654 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6656 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6658 # Generated by $as_me.
6659 # Run this file to recreate the current configuration.
6660 # Compiler output produced by configure, useful for debugging
6661 # configure, is in config.log if it exists.
6667 SHELL=\${CONFIG_SHELL-$SHELL}
6670 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6671 ## -------------------- ##
6672 ## M4sh Initialization. ##
6673 ## -------------------- ##
6675 # Be more Bourne compatible
6676 DUALCASE=1; export DUALCASE # for MKS sh
6677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6680 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6681 # is contrary to our usage. Disable this feature.
6682 alias -g '${1+"$@"}'='"$@"'
6683 setopt NO_GLOB_SUBST
6685 case `(set -o) 2>/dev/null` in #(
6697 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6698 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6700 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6701 # Prefer a ksh shell builtin over an external printf program on Solaris,
6702 # but without wasting forks for bash or zsh.
6703 if test -z "$BASH_VERSION$ZSH_VERSION" \
6704 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6705 as_echo='print -r --'
6706 as_echo_n='print -rn --'
6707 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6708 as_echo='printf %s\n'
6709 as_echo_n='printf %s'
6711 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6712 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6713 as_echo_n='/usr/ucb/echo -n'
6715 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6716 as_echo_n_body='eval
6720 expr "X$arg" : "X\\(.*\\)$as_nl";
6721 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6723 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6725 export as_echo_n_body
6726 as_echo_n='sh -c $as_echo_n_body as_echo'
6729 as_echo='sh -c $as_echo_body as_echo'
6732 # The user is always right.
6733 if test "${PATH_SEPARATOR+set}" != set; then
6735 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6736 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6743 # We need space, tab and new line, in precisely that order. Quoting is
6744 # there to prevent editors from complaining about space-tab.
6745 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6746 # splitting by setting IFS to empty value.)
6749 # Find who we are. Look in the path if we contain no directory separator.
6752 *[\\/]* ) as_myself=$0 ;;
6753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6764 # We did not find ourselves, most probably we were run as `sh COMMAND'
6765 # in which case we are not to be found in the path.
6766 if test "x$as_myself" = x; then
6769 if test ! -f "$as_myself"; then
6770 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6774 # Unset variables that we do not need and which cause bugs (e.g. in
6775 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6776 # suppresses any "Segmentation fault" message there. '((' could
6777 # trigger a bug in pdksh 5.2.14.
6778 for as_var in BASH_ENV ENV MAIL MAILPATH
6779 do eval test x\${$as_var+set} = xset \
6780 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6793 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6796 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6797 # ----------------------------------------
6798 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6799 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6800 # script with STATUS, using 1 if that was 0.
6803 as_status=$1; test $as_status -eq 0 && as_status=1
6805 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6806 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6808 $as_echo "$as_me: error: $2" >&2
6809 as_fn_exit $as_status
6813 # as_fn_set_status STATUS
6814 # -----------------------
6815 # Set $? to STATUS, without forking.
6819 } # as_fn_set_status
6823 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6833 # Portably unset VAR.
6836 { eval $1=; unset $1;}
6838 as_unset=as_fn_unset
6839 # as_fn_append VAR VALUE
6840 # ----------------------
6841 # Append the text in VALUE to the end of the definition contained in VAR. Take
6842 # advantage of any shell optimizations that allow amortized linear growth over
6843 # repeated appends, instead of the typical quadratic growth present in naive
6845 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6846 eval 'as_fn_append ()
6857 # as_fn_arith ARG...
6858 # ------------------
6859 # Perform arithmetic evaluation on the ARGs, and store the result in the
6860 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6861 # must be portable across $(()) and expr.
6862 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6863 eval 'as_fn_arith ()
6870 as_val=`expr "$@" || test $? -eq 1`
6875 if expr a : '\(a\)' >/dev/null 2>&1 &&
6876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6883 as_basename=basename
6888 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6894 as_me=`$as_basename -- "$0" ||
6895 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6896 X"$0" : 'X\(//\)$' \| \
6897 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6899 sed '/^.*\/\([^/][^/]*\)\/*$/{
6913 # Avoid depending upon Character Ranges.
6914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6917 as_cr_digits='0123456789'
6918 as_cr_alnum=$as_cr_Letters$as_cr_digits
6920 ECHO_C= ECHO_N= ECHO_T=
6921 case `echo -n x` in #(((((
6923 case `echo 'xy\c'` in
6924 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6926 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6933 rm -f conf$$ conf$$.exe conf$$.file
6934 if test -d conf$$.dir; then
6935 rm -f conf$$.dir/conf$$.file
6938 mkdir conf$$.dir 2>/dev/null
6940 if (echo >conf$$.file) 2>/dev/null; then
6941 if ln -s conf$$.file conf$$ 2>/dev/null; then
6943 # ... but there are two gotchas:
6944 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6945 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6946 # In both cases, we have to default to `cp -pR'.
6947 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6949 elif ln conf$$.file conf$$ 2>/dev/null; then
6957 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6958 rmdir conf$$.dir 2>/dev/null
6963 # Create "$as_dir" as a directory, including parents if necessary.
6968 -*) as_dir=./$as_dir;;
6970 test -d "$as_dir" || eval $as_mkdir_p || {
6974 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6975 *) as_qdir=$as_dir;;
6977 as_dirs="'$as_qdir' $as_dirs"
6978 as_dir=`$as_dirname -- "$as_dir" ||
6979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6980 X"$as_dir" : 'X\(//\)[^/]' \| \
6981 X"$as_dir" : 'X\(//\)$' \| \
6982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6983 $as_echo X"$as_dir" |
6984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7001 test -d "$as_dir" && break
7003 test -z "$as_dirs" || eval "mkdir $as_dirs"
7004 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7008 if mkdir -p . 2>/dev/null; then
7009 as_mkdir_p='mkdir -p "$as_dir"'
7011 test -d ./-p && rmdir ./-p
7016 # as_fn_executable_p FILE
7017 # -----------------------
7018 # Test if FILE is an executable regular file.
7019 as_fn_executable_p ()
7021 test -f "$1" && test -x "$1"
7022 } # as_fn_executable_p
7024 as_executable_p=as_fn_executable_p
7026 # Sed expression to map a string onto a valid CPP name.
7027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7029 # Sed expression to map a string onto a valid variable name.
7030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7034 ## ----------------------------------- ##
7035 ## Main body of $CONFIG_STATUS script. ##
7036 ## ----------------------------------- ##
7038 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7041 # Save the log message, to keep $0 and so on meaningful, and to
7042 # report actual input values of CONFIG_FILES etc. instead of their
7043 # values after options handling.
7045 This file was extended by libctf library $as_me 1.2.0-pre, which was
7046 generated by GNU Autoconf 2.69. Invocation command line was
7048 CONFIG_FILES = $CONFIG_FILES
7049 CONFIG_HEADERS = $CONFIG_HEADERS
7050 CONFIG_LINKS = $CONFIG_LINKS
7051 CONFIG_COMMANDS = $CONFIG_COMMANDS
7054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7059 case $ac_config_files in *"
7060 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7063 case $ac_config_headers in *"
7064 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7069 # Files that config.status was made for.
7070 config_files="$ac_config_files"
7071 config_headers="$ac_config_headers"
7072 config_commands="$ac_config_commands"
7076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7078 \`$as_me' instantiates files and other configuration actions
7079 from templates according to the current configuration. Unless the files
7080 and actions are specified as TAGs, all are instantiated by default.
7082 Usage: $0 [OPTION]... [TAG]...
7084 -h, --help print this help, then exit
7085 -V, --version print version number and configuration settings, then exit
7086 --config print configuration, then exit
7087 -q, --quiet, --silent
7088 do not print progress messages
7089 -d, --debug don't remove temporary files
7090 --recheck update $as_me by reconfiguring in the same conditions
7091 --file=FILE[:TEMPLATE]
7092 instantiate the configuration file FILE
7093 --header=FILE[:TEMPLATE]
7094 instantiate the configuration header FILE
7096 Configuration files:
7099 Configuration headers:
7102 Configuration commands:
7105 Report bugs to the package provider."
7108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7109 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7111 libctf library config.status 1.2.0-pre
7112 configured by $0, generated by GNU Autoconf 2.69,
7113 with options \\"\$ac_cs_config\\"
7115 Copyright (C) 2012 Free Software Foundation, Inc.
7116 This config.status script is free software; the Free Software Foundation
7117 gives unlimited permission to copy, distribute and modify it."
7124 test -n "\$AWK" || AWK=awk
7127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7128 # The default lists apply if the user does not specify any file.
7134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7151 # Handling of the options.
7152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7155 $as_echo "$ac_cs_version"; exit ;;
7156 --config | --confi | --conf | --con | --co | --c )
7157 $as_echo "$ac_cs_config"; exit ;;
7158 --debug | --debu | --deb | --de | --d | -d )
7160 --file | --fil | --fi | --f )
7163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7164 '') as_fn_error $? "missing file argument" ;;
7166 as_fn_append CONFIG_FILES " '$ac_optarg'"
7167 ac_need_defaults=false;;
7168 --header | --heade | --head | --hea )
7171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7173 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7174 ac_need_defaults=false;;
7176 # Conflict between --help and --header
7177 as_fn_error $? "ambiguous option: \`$1'
7178 Try \`$0 --help' for more information.";;
7179 --help | --hel | -h )
7180 $as_echo "$ac_cs_usage"; exit ;;
7181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7186 -*) as_fn_error $? "unrecognized option: \`$1'
7187 Try \`$0 --help' for more information." ;;
7189 *) as_fn_append ac_config_targets " $1"
7190 ac_need_defaults=false ;;
7196 ac_configure_extra_args=
7198 if $ac_cs_silent; then
7200 ac_configure_extra_args="$ac_configure_extra_args --silent"
7204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7205 if \$ac_cs_recheck; then
7206 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7209 CONFIG_SHELL='$SHELL'
7215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7220 ## Running $as_me. ##
7226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7236 # Handling of arguments.
7237 for ac_config_target in $ac_config_targets
7239 case $ac_config_target in
7240 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7242 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7249 # If the user did not use the arguments to specify the items to instantiate,
7250 # then the envvar interface is used. Set only those that are not.
7251 # We use the long form for the default assignment because of an extremely
7252 # bizarre bug on SunOS 4.1.3.
7253 if $ac_need_defaults; then
7254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7259 # Have a temporary directory for convenience. Make it in the build tree
7260 # simply because there is no reason against having it here, and in addition,
7261 # creating and moving files from /tmp can sometimes cause problems.
7262 # Hook for its removal unless debugging.
7263 # Note that there is a small window in which the directory will not be cleaned:
7264 # after its creation but before its name has been assigned to `$tmp'.
7268 trap 'exit_status=$?
7270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7272 trap 'as_fn_exit 1' 1 2 13 15
7274 # Create a (secure) tmp directory for tmp files.
7277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7281 tmp=./conf$$-$RANDOM
7282 (umask 077 && mkdir "$tmp")
7283 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7286 # Set up the scripts for CONFIG_FILES section.
7287 # No need to generate them if there are no CONFIG_FILES.
7288 # This happens for instance with `./config.status config.h'.
7289 if test -n "$CONFIG_FILES"; then
7292 ac_cr=`echo X | tr X '\015'`
7293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7294 # But we know of no other shell where ac_cr would be empty at this
7295 # point, so we can use a bashism as a fallback.
7296 if test "x$ac_cr" = x; then
7297 eval ac_cr=\$\'\\r\'
7299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7311 echo "cat >conf$$subs.awk <<_ACEOF" &&
7312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7318 for ac_last_try in false false false false false :; do
7319 . ./conf$$subs.sh ||
7320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7323 if test $ac_delim_n = $ac_delim_num; then
7325 elif $ac_last_try; then
7326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7338 s/^/S["/; s/!.*/"]=/
7348 s/\(.\{148\}\)..*/\1/
7350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7362 s/\(.\{148\}\)..*/\1/
7364 s/["\\]/\\&/g; s/^/"/; s/$/"/
7368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7373 ' <conf$$subs.awk | sed '
7378 ' >>$CONFIG_STATUS || ac_write_fail=1
7379 rm -f conf$$subs.awk
7380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7383 for (key in S) S_is_set[key] = 1
7389 nfields = split(line, field, "@")
7391 len = length(field[1])
7392 for (i = 2; i < nfields; i++) {
7394 keylen = length(key)
7395 if (S_is_set[key]) {
7397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7398 len += length(value) + length(field[++i])
7409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7414 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7418 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7419 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7420 # trailing colons and then remove the whole line if VPATH becomes empty
7421 # (actually we leave an empty line to preserve line numbers).
7422 if test "x$srcdir" = x.; then
7423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7442 fi # test -n "$CONFIG_FILES"
7444 # Set up the scripts for CONFIG_HEADERS section.
7445 # No need to generate them if there are no CONFIG_HEADERS.
7446 # This happens for instance with `./config.status Makefile'.
7447 if test -n "$CONFIG_HEADERS"; then
7448 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7452 # Transform confdefs.h into an awk script `defines.awk', embedded as
7453 # here-document in config.status, that substitutes the proper values into
7454 # config.h.in to produce config.h.
7456 # Create a delimiter string that does not exist in confdefs.h, to ease
7457 # handling of long lines.
7459 for ac_last_try in false false :; do
7460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7461 if test -z "$ac_tt"; then
7463 elif $ac_last_try; then
7464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7470 # For the awk script, D is an array of macro values keyed by name,
7471 # likewise P contains macro parameters if any. Preserve backslash
7472 # newline sequences.
7474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7476 s/.\{148\}/&'"$ac_delim"'/g
7479 s/^[ ]*#[ ]*define[ ][ ]*/ /
7486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7493 D["\1"]=" \3\\\\\\n"\\/p
7495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7500 s/.\{148\}/&'"$ac_delim"'/g
7505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7510 ' <confdefs.h | sed '
7511 s/'"$ac_delim"'/"\\\
7512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7515 for (key in D) D_is_set[key] = 1
7518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7520 split(line, arg, " ")
7521 if (arg[1] == "#") {
7525 defundef = substr(arg[1], 2)
7528 split(mac1, mac2, "(") #)
7530 prefix = substr(line, 1, index(line, defundef) - 1)
7531 if (D_is_set[macro]) {
7532 # Preserve the white space surrounding the "#".
7533 print prefix "define", macro P[macro] D[macro]
7536 # Replace #undef with comments. This is necessary, for example,
7537 # in the case of _POSIX_SOURCE, which is predefined and required
7538 # on some systems where configure will not decide to define it.
7539 if (defundef == "undef") {
7540 print "/*", prefix defundef, macro, "*/"
7548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7550 fi # test -n "$CONFIG_HEADERS"
7553 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7558 :[FHLC]) ac_mode=$ac_tag; continue;;
7560 case $ac_mode$ac_tag in
7562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7563 :[FH]-) ac_tag=-:-;;
7564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7581 -) ac_f="$ac_tmp/stdin";;
7582 *) # Look for the file first in the build tree, then in the source tree
7583 # (if the path is not absolute). The absolute path cannot be DOS-style,
7584 # because $ac_f cannot contain `:'.
7588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7593 as_fn_append ac_file_inputs " '$ac_f'"
7596 # Let's still pretend it is `configure' which instantiates (i.e., don't
7597 # use $as_me), people would be surprised to read:
7598 # /* config.h. Generated by config.status. */
7599 configure_input='Generated from '`
7600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7602 if test x"$ac_file" != x-; then
7603 configure_input="$ac_file. $configure_input"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7605 $as_echo "$as_me: creating $ac_file" >&6;}
7607 # Neutralize special characters interpreted by sed in replacement strings.
7608 case $configure_input in #(
7609 *\&* | *\|* | *\\* )
7610 ac_sed_conf_input=`$as_echo "$configure_input" |
7611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7612 *) ac_sed_conf_input=$configure_input;;
7616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7622 ac_dir=`$as_dirname -- "$ac_file" ||
7623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7624 X"$ac_file" : 'X\(//\)[^/]' \| \
7625 X"$ac_file" : 'X\(//\)$' \| \
7626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7627 $as_echo X"$ac_file" |
7628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7645 as_dir="$ac_dir"; as_fn_mkdir_p
7649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7652 # A ".." for each directory in $ac_dir_suffix.
7653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7654 case $ac_top_builddir_sub in
7655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7659 ac_abs_top_builddir=$ac_pwd
7660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7661 # for backward compatibility:
7662 ac_top_builddir=$ac_top_build_prefix
7665 .) # We are building in place.
7667 ac_top_srcdir=$ac_top_builddir_sub
7668 ac_abs_top_srcdir=$ac_pwd ;;
7669 [\\/]* | ?:[\\/]* ) # Absolute name.
7670 ac_srcdir=$srcdir$ac_dir_suffix;
7671 ac_top_srcdir=$srcdir
7672 ac_abs_top_srcdir=$srcdir ;;
7674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7675 ac_top_srcdir=$ac_top_build_prefix$srcdir
7676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7693 [\\/$]* | ?:[\\/]* ) ;;
7694 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7699 # If the template does not know about datarootdir, expand it.
7700 # FIXME: This hack should be removed a few years after 2.60.
7701 ac_datarootdir_hack=; ac_datarootdir_seen=
7712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7713 *datarootdir*) ac_datarootdir_seen=yes;;
7714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7719 ac_datarootdir_hack='
7720 s&@datadir@&$datadir&g
7721 s&@docdir@&$docdir&g
7722 s&@infodir@&$infodir&g
7723 s&@localedir@&$localedir&g
7724 s&@mandir@&$mandir&g
7725 s&\\\${datarootdir}&$datarootdir&g' ;;
7729 # Neutralize VPATH when `$srcdir' = `.'.
7730 # Shell code in configure.ac might set extrasub.
7731 # FIXME: do we really want to maintain this feature?
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 ac_sed_extra="$ac_vpsub
7736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7739 s|@configure_input@|$ac_sed_conf_input|;t t
7740 s&@top_builddir@&$ac_top_builddir_sub&;t t
7741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7742 s&@srcdir@&$ac_srcdir&;t t
7743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7744 s&@top_srcdir@&$ac_top_srcdir&;t t
7745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7746 s&@builddir@&$ac_builddir&;t t
7747 s&@abs_builddir@&$ac_abs_builddir&;t t
7748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7749 s&@INSTALL@&$ac_INSTALL&;t t
7750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7751 $ac_datarootdir_hack
7753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7756 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7761 which seems to be undefined. Please make sure it is defined" >&5
7762 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7763 which seems to be undefined. Please make sure it is defined" >&2;}
7765 rm -f "$ac_tmp/stdin"
7767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7776 if test x"$ac_file" != x-; then
7778 $as_echo "/* $configure_input */" \
7779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7780 } >"$ac_tmp/config.h" \
7781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7784 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7787 mv "$ac_tmp/config.h" "$ac_file" \
7788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7791 $as_echo "/* $configure_input */" \
7792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7793 || as_fn_error $? "could not create -" "$LINENO" 5
7795 # Compute "$ac_file"'s index in $config_headers.
7798 for _am_header in $config_headers :; do
7800 $_am_arg | $_am_arg:* )
7803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7806 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7807 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808 X"$_am_arg" : 'X\(//\)[^/]' \| \
7809 X"$_am_arg" : 'X\(//\)$' \| \
7810 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7811 $as_echo X"$_am_arg" |
7812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7828 s/.*/./; q'`/stamp-h$_am_stamp_count
7831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7832 $as_echo "$as_me: executing $ac_file commands" >&6;}
7837 case $ac_file$ac_mode in
7838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7839 # Older Autoconf quotes --file arguments for eval, but not when files
7840 # are listed without --file. Let's play safe and only enable the eval
7841 # if we detect the quoting.
7842 case $CONFIG_FILES in
7843 *\'*) eval set x "$CONFIG_FILES" ;;
7844 *) set x $CONFIG_FILES ;;
7849 # Strip MF so we end up with the name of the file.
7850 mf=`echo "$mf" | sed -e 's/:.*$//'`
7851 # Check whether this is an Automake generated Makefile or not.
7852 # We used to match only the files named 'Makefile.in', but
7853 # some people rename them; so instead we look at the file content.
7854 # Grep'ing the first line is not enough: some people post-process
7855 # each Makefile.in and add a new line on top of each file to say so.
7856 # Grep'ing the whole file is not good either: AIX grep has a line
7857 # limit of 2048, but all sed's we know have understand at least 4000.
7858 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7859 dirpart=`$as_dirname -- "$mf" ||
7860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7861 X"$mf" : 'X\(//\)[^/]' \| \
7862 X"$mf" : 'X\(//\)$' \| \
7863 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7885 # Extract the definition of DEPDIR, am__include, and am__quote
7886 # from the Makefile without running 'make'.
7887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7888 test -z "$DEPDIR" && continue
7889 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7890 test -z "$am__include" && continue
7891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7892 # Find all dependency output files, they are included files with
7893 # $(DEPDIR) in their names. We invoke sed twice because it is the
7894 # simplest approach to changing $(DEPDIR) to its actual value in the
7896 for file in `sed -n "
7897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7899 # Make sure the directory exists.
7900 test -f "$dirpart/$file" && continue
7901 fdir=`$as_dirname -- "$file" ||
7902 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7903 X"$file" : 'X\(//\)[^/]' \| \
7904 X"$file" : 'X\(//\)$' \| \
7905 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7924 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7925 # echo "creating $dirpart/$file"
7926 echo '# dummy' > "$dirpart/$file"
7938 ac_clean_files=$ac_clean_files_save
7940 test $ac_write_fail = 0 ||
7941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7944 # configure is writing to config.log, and then calls config.status.
7945 # config.status does its own redirection, appending to config.log.
7946 # Unfortunately, on DOS this fails, as config.log is still kept open
7947 # by configure, so config.status won't be able to write to it; its
7948 # output is simply discarded. So we exec the FD to /dev/null,
7949 # effectively closing config.log, so it can be properly (re)opened and
7950 # appended to by config.status. When coming back to configure, we
7951 # need to make the FD available again.
7952 if test "$no_create" != yes; then
7954 ac_config_status_args=
7955 test "$silent" = yes &&
7956 ac_config_status_args="$ac_config_status_args --quiet"
7958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7961 # would make configure fail if this is the last instruction.
7962 $ac_cs_success || as_fn_exit 1
7964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7966 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}