2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psmisc 23.0.
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='psmisc'
579 PACKAGE_TARNAME='psmisc'
580 PACKAGE_VERSION='23.0'
581 PACKAGE_STRING='psmisc 23.0'
585 ac_unique_file="src/comm.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars='am__EXEEXT_FALSE
628 WANT_PEEKFD_M68K_FALSE
629 WANT_PEEKFD_M68K_TRUE
630 WANT_PEEKFD_MIPS_FALSE
631 WANT_PEEKFD_MIPS_TRUE
632 WANT_PEEKFD_ARM_FALSE
634 WANT_PEEKFD_PPC_FALSE
636 WANT_PEEKFD_X86_64_FALSE
637 WANT_PEEKFD_X86_64_TRUE
638 WANT_PEEKFD_I386_FALSE
639 WANT_PEEKFD_I386_TRUE
657 XGETTEXT_EXTRA_OPTIONS
665 GETTEXT_MACRO_VERSION
673 WANT_TIMEOUT_STAT_FALSE
674 WANT_TIMEOUT_STAT_TRUE
717 INSTALL_STRIP_PROGRAM
760 program_transform_name
773 enable_option_checking
775 enable_dependency_tracking
778 enable_mountinfo_list
788 ac_precious_vars='build_alias
802 # Initialize some variables set by options.
804 ac_init_version=false
805 ac_unrecognized_opts=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=no ;;
1178 # Obsolete; use --with-x.
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1246 # Be sure to have absolute directory names.
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures psmisc 23.0 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/psmisc]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of psmisc 23.0:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --enable-selinux Enable Security-Enhanced Linux features
1436 --enable-timeout-stat Use a timeout on stat calls (optional with argument
1437 "static" for a static background process)
1438 --enable-mountinfo-list Use the list in /proc/self/mountinfo to replace
1439 stat(2) syscall on network file systems shares
1440 --disable-harden-flags disable hardened compilier and linker flags
1441 --disable-ipv6 Disable IPv6 checks (for uClibc)
1442 --disable-nls do not use Native Language Support
1443 --disable-rpath do not hardcode runtime library paths
1444 --disable-largefile omit support for large files
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1451 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1452 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1453 --without-libintl-prefix don't search for libintl in includedir and libdir
1455 Some influential environment variables:
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
1460 LIBS libraries to pass to the linker, e.g. -l<library>
1461 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to the package provider.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 psmisc configure 23.0
1534 generated by GNU Autoconf 2.69
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1583 } # ac_fn_c_try_compile
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } > conftest.i && {
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1622 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625 # the include files in INCLUDES and setting the cache variable VAR
1627 ac_fn_c_check_header_mongrel ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if eval \${$3+:} false; then :
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1640 # Is the header compilable?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642 $as_echo_n "checking $2 usability... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1648 if ac_fn_c_try_compile "$LINENO"; then :
1649 ac_header_compiler=yes
1651 ac_header_compiler=no
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655 $as_echo "$ac_header_compiler" >&6; }
1657 # Is the header present?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659 $as_echo_n "checking $2 presence... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1664 if ac_fn_c_try_cpp "$LINENO"; then :
1665 ac_header_preproc=yes
1667 ac_header_preproc=no
1669 rm -f conftest.err conftest.i conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671 $as_echo "$ac_header_preproc" >&6; }
1673 # So? What about this header?
1674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1685 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1689 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1699 eval "$3=\$ac_header_compiler"
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 } # ac_fn_c_check_header_mongrel
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } # ac_fn_c_check_header_compile
1782 # ac_fn_cxx_try_compile LINENO
1783 # ----------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_cxx_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1818 } # ac_fn_cxx_try_compile
1820 # ac_fn_c_try_link LINENO
1821 # -----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext conftest$ac_exeext
1827 if { { ac_try="$ac_link"
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest$ac_exeext && {
1846 test "$cross_compiling" = yes ||
1847 test -x conftest$ac_exeext
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_link
1866 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867 # -------------------------------------------
1868 # Tests whether TYPE exists after having included INCLUDES, setting cache
1869 # variable VAR accordingly.
1870 ac_fn_c_check_type ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1904 if ac_fn_c_try_compile "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_type
1920 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1921 # ----------------------------------------------------
1922 # Tries to find if the field MEMBER exists in type AGGR, after including
1923 # INCLUDES, setting cache variable VAR accordingly.
1924 ac_fn_c_check_member ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1928 $as_echo_n "checking for $2.$3... " >&6; }
1929 if eval \${$4+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1955 if (sizeof ac_aggr.$3)
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_member
1977 # ac_fn_c_check_func LINENO FUNC VAR
1978 # ----------------------------------
1979 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1980 ac_fn_c_check_func ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992 #define $2 innocuous_$2
1994 /* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char $2 (); below.
1996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997 <limits.h> exists even on freestanding compilers. */
2000 # include <limits.h>
2002 # include <assert.h>
2007 /* Override any GCC internal prototype to avoid an error.
2008 Use char because int might match the return type of a GCC
2009 builtin and then its argument prototype would still apply. */
2014 /* The GNU C library defines this for functions which it implements
2015 to always fail with ENOSYS. Some functions are actually named
2016 something starting with __ and the normal name is an alias. */
2017 #if defined __stub_$2 || defined __stub___$2
2029 if ac_fn_c_try_link "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext \
2035 conftest$ac_exeext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_func
2043 cat >config.log <<_ACEOF
2044 This file contains any messages produced by compilers while
2045 running configure, to aid debugging if configure makes a mistake.
2047 It was created by psmisc $as_me 23.0, which was
2048 generated by GNU Autoconf 2.69. Invocation command line was
2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2070 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2073 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2074 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2075 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 $as_echo "PATH: $as_dir"
2100 # Keep a trace of the command line.
2101 # Strip out --no-create and --no-recursion so they do not pile up.
2102 # Strip out --silent because we don't want to record it for future runs.
2103 # Also quote any args containing shell meta-characters.
2104 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_must_keep_next=false
2114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116 | -silent | --silent | --silen | --sile | --sil)
2119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124 as_fn_append ac_configure_args1 " '$ac_arg'"
2125 if test $ac_must_keep_next = true; then
2126 ac_must_keep_next=false # Got value, back to normal.
2129 *=* | --config-cache | -C | -disable-* | --disable-* \
2130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132 | -with-* | --with-* | -without-* | --without-* | --x)
2133 case "$ac_configure_args0 " in
2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2137 -* ) ac_must_keep_next=true ;;
2140 as_fn_append ac_configure_args " '$ac_arg'"
2145 { ac_configure_args0=; unset ac_configure_args0;}
2146 { ac_configure_args1=; unset ac_configure_args1;}
2148 # When interrupted or exit'd, cleanup temporary files, and complete
2149 # config.log. We remove comments because anyway the quotes in there
2150 # would cause problems or look ugly.
2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153 trap 'exit_status=$?
2154 # Save into config.log some information that might help in debugging.
2158 $as_echo "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2162 # The following way of writing the cache mishandles newlines in values,
2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165 eval ac_val=\$$ac_var
2169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2173 _ | IFS | as_nl) ;; #(
2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175 *) { eval $ac_var=; unset $ac_var;} ;;
2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181 *${as_nl}ac_space=\ *)
2183 "s/'\''/'\''\\\\'\'''\''/g;
2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194 $as_echo "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2198 for ac_var in $ac_subst_vars
2200 eval ac_val=\$$ac_var
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 $as_echo "$ac_var='\''$ac_val'\''"
2208 if test -n "$ac_subst_files"; then
2209 $as_echo "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2213 for ac_var in $ac_subst_files
2215 eval ac_val=\$$ac_var
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -s confdefs.h; then
2225 $as_echo "## ----------- ##
2232 test "$ac_signal" != 0 &&
2233 $as_echo "$as_me: caught signal $ac_signal"
2234 $as_echo "$as_me: exit $exit_status"
2236 rm -f core *.core core.conftest.* &&
2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2240 for ac_signal in 1 2 13 15; do
2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest* confdefs.h
2248 $as_echo "/* confdefs.h */" > confdefs.h
2250 # Predefined preprocessor variables.
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_NAME "$PACKAGE_NAME"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_STRING "$PACKAGE_STRING"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_URL "$PACKAGE_URL"
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2281 if test -n "$CONFIG_SITE"; then
2282 # We do not want a PATH search for config.site.
2283 case $CONFIG_SITE in #((
2284 -*) ac_site_file1=./$CONFIG_SITE;;
2285 */*) ac_site_file1=$CONFIG_SITE;;
2286 *) ac_site_file1=./$CONFIG_SITE;;
2288 elif test "x$prefix" != xNONE; then
2289 ac_site_file1=$prefix/share/config.site
2290 ac_site_file2=$prefix/etc/config.site
2292 ac_site_file1=$ac_default_prefix/share/config.site
2293 ac_site_file2=$ac_default_prefix/etc/config.site
2295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297 test "x$ac_site_file" = xNONE && continue
2298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301 sed 's/^/| /' "$ac_site_file" >&5
2303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 as_fn_error $? "failed to load site script $ac_site_file
2306 See \`config.log' for more details" "$LINENO" 5; }
2310 if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special files
2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318 *) . "./$cache_file";;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 gt_needs="$gt_needs "
2328 # Check that the precious variables saved in the cache have kept the same
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x $ac_old_val`
2350 ac_new_val_w=`echo x $ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354 ac_cache_corrupted=:
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378 if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 am__api_version='1.15'
2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400 if test -f "$ac_dir/install-sh"; then
2402 ac_install_sh="$ac_aux_dir/install-sh -c"
2404 elif test -f "$ac_dir/install.sh"; then
2406 ac_install_sh="$ac_aux_dir/install.sh -c"
2408 elif test -f "$ac_dir/shtool"; then
2410 ac_install_sh="$ac_aux_dir/shtool install -c"
2414 if test -z "$ac_aux_dir"; then
2415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2423 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2424 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2427 # Find a good install program. We prefer a C program (faster),
2428 # so one script is as good as another. But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 # Reject install programs that cannot install multiple files.
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2442 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2443 if test -z "$INSTALL"; then
2444 if ${ac_cv_path_install+:} false; then :
2445 $as_echo_n "(cached) " >&6
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 # Account for people who put trailing slashes in PATH elements.
2453 case $as_dir/ in #((
2454 ./ | .// | /[cC]/* | \
2455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2459 # OSF1 and SCO ODT 3.0 have their own names for install.
2460 # Don't use installbsd from OSF since it installs stuff as root
2462 for ac_prog in ginstall scoinst install; do
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2465 if test $ac_prog = install &&
2466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467 # AIX install. It has an incompatible calling convention.
2469 elif test $ac_prog = install &&
2470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471 # program-specific install script used by HP pwplus--don't use.
2474 rm -rf conftest.one conftest.two conftest.dir
2475 echo one > conftest.one
2476 echo two > conftest.two
2478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2479 test -s conftest.one && test -s conftest.two &&
2480 test -s conftest.dir/conftest.one &&
2481 test -s conftest.dir/conftest.two
2483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496 rm -rf conftest.one conftest.two conftest.dir
2499 if test "${ac_cv_path_install+set}" = set; then
2500 INSTALL=$ac_cv_path_install
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for INSTALL within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 INSTALL=$ac_install_sh
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510 $as_echo "$INSTALL" >&6; }
2512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513 # It thinks the first close brace ends the variable substitution.
2514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2521 $as_echo_n "checking whether build environment is sane... " >&6; }
2522 # Reject unsafe characters in $srcdir or the absolute working directory
2523 # name. Accept space and tab only in the latter.
2527 *[\\\"\#\$\&\'\`$am_lf]*)
2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2532 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535 # Do 'set' in a subshell so we don't clobber the current shell's
2536 # arguments. Must try -L first in case configure is actually a
2537 # symlink; some systems play weird games with the mod time of symlinks
2538 # (eg FreeBSD returns the mod time of the symlink's containing
2542 for am_try in 1 2; do
2543 echo "timestamp, slept: $am_has_slept" > conftest.file
2544 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2545 if test "$*" = "X"; then
2547 set X `ls -t "$srcdir/configure" conftest.file`
2549 if test "$*" != "X $srcdir/configure conftest.file" \
2550 && test "$*" != "X conftest.file $srcdir/configure"; then
2552 # If neither matched, then we have a broken ls. This can happen
2553 # if, for instance, CONFIG_SHELL is bash and it inherits a
2554 # broken ls alias from the environment. This has actually
2555 # happened. Such a system could not be considered "sane".
2556 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2557 alias in your environment" "$LINENO" 5
2559 if test "$2" = conftest.file || test $am_try -eq 2; then
2566 test "$2" = conftest.file
2572 as_fn_error $? "newly created file is older than distributed files!
2573 Check your system clock" "$LINENO" 5
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 # If we didn't sleep, we still need to ensure time stamps of config.status and
2578 # generated files are strictly newer.
2580 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2587 test "$program_prefix" != NONE &&
2588 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589 # Use a double $ so make ignores it.
2590 test "$program_suffix" != NONE &&
2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592 # Double any \ or $.
2593 # By default was `s,x,x', remove it if useless.
2594 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2597 # Expand $ac_aux_dir to an absolute path.
2598 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2600 if test x"${MISSING+set}" != xset; then
2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2605 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 # Use eval to expand $SHELL
2609 if eval "$MISSING --is-lightweight"; then
2610 am_missing_run="$MISSING "
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2614 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2617 if test x"${install_sh+set}" != xset; then
2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2622 install_sh="\${SHELL} $am_aux_dir/install-sh"
2626 # Installed binaries are usually stripped using 'strip' when the user
2627 # run "make install-strip". However 'strip' might not be the right
2628 # tool to use in cross-compilation environments, therefore Automake
2629 # will honor the 'STRIP' environment variable to overrule this program.
2630 if test "$cross_compiling" != no; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_STRIP+:} false; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$STRIP"; then
2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 STRIP=$ac_cv_prog_STRIP
2660 if test -n "$STRIP"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662 $as_echo "$STRIP" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2670 if test -z "$ac_cv_prog_STRIP"; then
2672 # Extract the first word of "strip", so it can be a program name with args.
2673 set dummy strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$ac_ct_STRIP"; then
2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_STRIP="strip"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700 if test -n "$ac_ct_STRIP"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702 $as_echo "$ac_ct_STRIP" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2708 if test "x$ac_ct_STRIP" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2720 STRIP="$ac_cv_prog_STRIP"
2724 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728 if test -z "$MKDIR_P"; then
2729 if ${ac_cv_path_mkdir+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736 test -z "$as_dir" && as_dir=.
2737 for ac_prog in mkdir gmkdir; do
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741 'mkdir (GNU coreutils) '* | \
2742 'mkdir (coreutils) '* | \
2743 'mkdir (fileutils) '4.1*)
2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2754 test -d ./--version && rmdir ./--version
2755 if test "${ac_cv_path_mkdir+set}" = set; then
2756 MKDIR_P="$ac_cv_path_mkdir -p"
2758 # As a last resort, use the slow shell script. Don't cache a
2759 # value for MKDIR_P within a source directory, because that will
2760 # break other packages using the cache if that directory is
2761 # removed, or if the value is a relative name.
2762 MKDIR_P="$ac_install_sh -d"
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766 $as_echo "$MKDIR_P" >&6; }
2768 for ac_prog in gawk mawk nawk awk
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_AWK+:} false; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$AWK"; then
2778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_AWK="$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$AWK"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$AWK" && break
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2815 $as_echo_n "(cached) " >&6
2817 cat >conftest.make <<\_ACEOF
2820 @echo '@@@%%%=$(MAKE)=@@@%%%'
2822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2825 eval ac_cv_prog_make_${ac_make}_set=yes;;
2827 eval ac_cv_prog_make_${ac_make}_set=no;;
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 SET_MAKE="MAKE=${MAKE-make}"
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2848 rmdir .tst 2>/dev/null
2850 # Check whether --enable-silent-rules was given.
2851 if test "${enable_silent_rules+set}" = set; then :
2852 enableval=$enable_silent_rules;
2855 case $enable_silent_rules in # (((
2856 yes) AM_DEFAULT_VERBOSITY=0;;
2857 no) AM_DEFAULT_VERBOSITY=1;;
2858 *) AM_DEFAULT_VERBOSITY=1;;
2860 am_make=${MAKE-make}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2862 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2863 if ${am_cv_make_support_nested_variables+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if $as_echo 'TRUE=$(BAR$(V))
2872 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2873 am_cv_make_support_nested_variables=yes
2875 am_cv_make_support_nested_variables=no
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2879 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2880 if test $am_cv_make_support_nested_variables = yes; then
2882 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2884 AM_V=$AM_DEFAULT_VERBOSITY
2885 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2889 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891 # is not polluted with repeated "-I."
2892 am__isrc=' -I$(srcdir)'
2893 # test to see if srcdir already configured
2894 if test -f $srcdir/config.status; then
2895 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2909 # Define the identity of the package.
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE "$PACKAGE"
2919 cat >>confdefs.h <<_ACEOF
2920 #define VERSION "$VERSION"
2923 # Some tools Automake needs.
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939 # For better backward compatibility. To be removed once Automake 1.9.x
2940 # dies out for good. For more background, see:
2941 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2942 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2943 mkdir_p='$(MKDIR_P)'
2945 # We need awk for the "check" target (and possibly the TAP driver). The
2946 # system "awk" is bad on some platforms.
2947 # Always define AMTAR for backward compatibility. Yes, it's still used
2948 # in the wild :-( We should find a proper way to deprecate it ...
2952 # We'll loop over all known methods to create a tar archive until one works.
2953 _am_tools='gnutar pax cpio none'
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2958 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2960 # Go ahead even if we have the value already cached. We do so because we
2961 # need to set the values for the 'am__tar' and 'am__untar' variables.
2962 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2964 for _am_tool in $_am_tools; do
2967 for _am_tar in tar gnutar gtar; do
2968 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2969 ($_am_tar --version) >&5 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && break
2974 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2975 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2976 am__untar="$_am_tar -xf -"
2979 # Must skip GNU tar: if it does not support --format= it doesn't create
2980 # ustar tarball either.
2981 (tar --version) >/dev/null 2>&1 && continue
2982 am__tar='tar chf - "$$tardir"'
2983 am__tar_='tar chf - "$tardir"'
2984 am__untar='tar xf -'
2987 am__tar='pax -L -x pax -w "$$tardir"'
2988 am__tar_='pax -L -x pax -w "$tardir"'
2992 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2993 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2994 am__untar='cpio -i -H pax -d'
3003 # If the value was cached, stop now. We just wanted to have am__tar
3004 # and am__untar set.
3005 test -n "${am_cv_prog_tar_pax}" && break
3007 # tar/untar a dummy directory, and stop if the command works.
3010 echo GrepMe > conftest.dir/file
3011 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3012 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }
3017 if test -s conftest.tar; then
3018 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3019 ($am__untar <conftest.tar) >&5 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3024 (cat conftest.dir/file) >&5 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3033 if ${am_cv_prog_tar_pax+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 am_cv_prog_tar_pax=$_am_tool
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3040 $as_echo "$am_cv_prog_tar_pax" >&6; }
3047 # POSIX will say in a future version that running "rm -f" with no argument
3048 # is OK; and we want to be able to make that assumption in our Makefile
3049 # recipes. So use an aggressive probe to check that the usage we want is
3050 # actually supported "in the wild" to an acceptable degree.
3051 # See automake bug#10828.
3052 # To make any issue more visible, cause the running configure to be aborted
3053 # by default if the 'rm' program in use doesn't match our expectations; the
3054 # user can still override this though.
3055 if rm -f && rm -fr && rm -rf; then : OK; else
3059 Your 'rm' program seems unable to run without file operands specified
3060 on the command line, even when the '-f' option is present. This is contrary
3061 to the behaviour of most rm programs out there, and not conforming with
3062 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3064 Please tell bug-automake@gnu.org about your system, including the value
3065 of your $PATH and any error possibly output before this message. This
3066 can help us improve future automake versions.
3069 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3070 echo 'Configuration will proceed anyway, since you have set the' >&2
3071 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3075 Aborting the configuration process, to ensure you take notice of the issue.
3077 You can download and install GNU coreutils to get an 'rm' implementation
3078 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3080 If you want to complete the configuration process using your problematic
3081 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3082 to "yes", and re-run configure.
3085 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3089 # Check whether --enable-silent-rules was given.
3090 if test "${enable_silent_rules+set}" = set; then :
3091 enableval=$enable_silent_rules;
3094 case $enable_silent_rules in # (((
3095 yes) AM_DEFAULT_VERBOSITY=0;;
3096 no) AM_DEFAULT_VERBOSITY=1;;
3097 *) AM_DEFAULT_VERBOSITY=1;;
3099 am_make=${MAKE-make}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3102 if ${am_cv_make_support_nested_variables+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 if $as_echo 'TRUE=$(BAR$(V))
3111 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3112 am_cv_make_support_nested_variables=yes
3114 am_cv_make_support_nested_variables=no
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3118 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3119 if test $am_cv_make_support_nested_variables = yes; then
3121 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 AM_V=$AM_DEFAULT_VERBOSITY
3124 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3129 ac_config_headers="$ac_config_headers config.h"
3132 DEPDIR="${am__leading_dot}deps"
3134 ac_config_commands="$ac_config_commands depfiles"
3137 am_make=${MAKE-make}
3138 cat > confinc << 'END'
3140 @echo this is the am__doit target
3143 # If we don't find an include directive, just comment out the code.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3149 # First try GNU make style include.
3150 echo "include confinc" > confmf
3151 # Ignore all kinds of additional output from 'make'.
3152 case `$am_make -s -f confmf 2> /dev/null` in #(
3153 *the\ am__doit\ target*)
3159 # Now try BSD make style include.
3160 if test "$am__include" = "#"; then
3161 echo '.include "confinc"' > confmf
3162 case `$am_make -s -f confmf 2> /dev/null` in #(
3163 *the\ am__doit\ target*)
3164 am__include=.include
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3173 $as_echo "$_am_result" >&6; }
3174 rm -f confinc confmf
3176 # Check whether --enable-dependency-tracking was given.
3177 if test "${enable_dependency_tracking+set}" = set; then :
3178 enableval=$enable_dependency_tracking;
3181 if test "x$enable_dependency_tracking" != xno; then
3182 am_depcomp="$ac_aux_dir/depcomp"
3186 if test "x$enable_dependency_tracking" != xno; then
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$ac_cv_prog_CC"; then
3241 # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC="gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3277 if test "x$ac_ct_CC" = x; then
3280 case $cross_compiling:$ac_tool_warned in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_CC="${ac_tool_prefix}cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy $ac_cv_prog_CC
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog in cl.exe
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$CC" && break
3433 if test -z "$CC"; then
3435 for ac_prog in cl.exe
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_ac_ct_CC="$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3474 test -n "$ac_ct_CC" && break
3477 if test "x$ac_ct_CC" = x; then
3480 case $cross_compiling:$ac_tool_warned in
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details" "$LINENO" 5; }
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 for ac_option in --version -v -V -qversion; do
3503 { { ac_try="$ac_compiler $ac_option >&5"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3512 if test -s conftest.err; then
3514 ... rest of stderr output deleted ...
3515 10q' conftest.err >conftest.er1
3516 cat conftest.er1 >&5
3518 rm -f conftest.er1 conftest.err
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 ac_clean_files_save=$ac_clean_files
3535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3536 # Try to create an executable without -o first, disregard a.out.
3537 # It will help us diagnose broken compilers, and finding out an intuition
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3540 $as_echo_n "checking whether the C compiler works... " >&6; }
3541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3543 # The possible output files:
3544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3547 for ac_file in $ac_files
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3556 if { { ac_try="$ac_link_default"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link_default") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3570 # so that the user can short-circuit this test for compilers unknown to
3572 for ac_file in $ac_files ''
3574 test -f "$ac_file" || continue
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3579 # We found the default executable, but exeext='' is most
3583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3585 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3587 # We set ac_cv_exeext here because the later test for it is not
3588 # safe: cross compilers may not add the suffix if given an `-o'
3589 # argument, so we may need to know it at that point already.
3590 # Even if this section looks crufty: it has the advantage of
3597 test "$ac_cv_exeext" = no && ac_cv_exeext=
3602 if test -z "$ac_file"; then :
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error 77 "C compiler cannot create executables
3611 See \`config.log' for more details" "$LINENO" 5; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3617 $as_echo_n "checking for C compiler default output file name... " >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3619 $as_echo "$ac_file" >&6; }
3620 ac_exeext=$ac_cv_exeext
3622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3623 ac_clean_files=$ac_clean_files_save
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try="$ac_link"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3641 for ac_file in conftest.exe conftest conftest.*; do
3642 test -f "$ac_file" || continue
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details" "$LINENO" 5; }
3656 rm -f conftest conftest$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3669 FILE *f = fopen ("conftest.out", "w");
3670 return ferror (f) || fclose (f) != 0;
3676 ac_clean_files="$ac_clean_files conftest.out"
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680 $as_echo_n "checking whether we are cross compiling... " >&6; }
3681 if test "$cross_compiling" != yes; then
3682 { { ac_try="$ac_link"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }
3693 if { ac_try='./conftest$ac_cv_exeext'
3694 { { case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_try") 2>&5
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; }; then
3706 if test "$cross_compiling" = maybe; then
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "cannot run C compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details" "$LINENO" 5; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3718 $as_echo "$cross_compiling" >&6; }
3720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if ${ac_cv_objext+:} false; then :
3725 $as_echo_n "(cached) " >&6
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try="$ac_compile"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details" "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775 if ${ac_cv_c_compiler_gnu+:} false; then :
3776 $as_echo_n "(cached) " >&6
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3792 if ac_fn_c_try_compile "$LINENO"; then :
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3808 ac_test_CFLAGS=${CFLAGS+set}
3809 ac_save_CFLAGS=$CFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3812 if ${ac_cv_prog_cc_g+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_save_c_werror_flag=$ac_c_werror_flag
3816 ac_c_werror_flag=yes
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 if ac_fn_c_try_compile "$LINENO"; then :
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 if ac_fn_c_try_compile "$LINENO"; then :
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872 $as_echo "$ac_cv_prog_cc_g" >&6; }
3873 if test "$ac_test_CFLAGS" = set; then
3874 CFLAGS=$ac_save_CFLAGS
3875 elif test $ac_cv_prog_cc_g = yes; then
3876 if test "$GCC" = yes; then
3882 if test "$GCC" = yes; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890 if ${ac_cv_prog_cc_c89+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 ac_cv_prog_cc_c89=no
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3901 struct buf { int x; };
3902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3903 static char *e (p, i)
3909 static char *f (char * (*g) (char **, int), char **p, ...)
3914 s = g (p, va_arg (v,int));
3919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3920 function prototypes and stuff, but not '\xHH' hex character constants.
3921 These don't provoke an error unfortunately, instead are silently treated
3922 as 'x'. The following induces an error, until -std is added to get
3923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3924 array size at least. It's necessary to write '\x00'==0 to get something
3925 that's true only with -std. */
3926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3929 inside strings and character constants. */
3931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3933 int test (int i, double x);
3934 struct s1 {int (*f) (int a);};
3935 struct s2 {int (*f) (double a);};
3936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3950 CC="$ac_save_CC $ac_arg"
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_cv_prog_cc_c89=$ac_arg
3954 rm -f core conftest.err conftest.$ac_objext
3955 test "x$ac_cv_prog_cc_c89" != "xno" && break
3957 rm -f conftest.$ac_ext
3962 case "x$ac_cv_prog_cc_c89" in
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965 $as_echo "none needed" >&6; } ;;
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3968 $as_echo "unsupported" >&6; } ;;
3970 CC="$CC $ac_cv_prog_cc_c89"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3974 if test "x$ac_cv_prog_cc_c89" != xno; then :
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3990 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3991 if ${am_cv_prog_cc_c_o+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 # Make sure it works both with $CC and with simple cc.
4006 # Following AC_PROG_CC_C_O, we do the test twice because some
4007 # compilers refuse to overwrite an existing .o file with -o,
4008 # though they will create one.
4009 am_cv_prog_cc_c_o=yes
4011 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4012 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } \
4016 && test -f conftest2.$ac_objext; then
4019 am_cv_prog_cc_c_o=no
4023 rm -f core conftest*
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4027 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4028 if test "$am_cv_prog_cc_c_o" != yes; then
4029 # Losing compiler, so override with the script.
4030 # FIXME: It is wrong to rewrite CC.
4031 # But if we don't then we get into trouble of one sort or another.
4032 # A longer-term fix would be to have automake use am__CC in this case,
4033 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4034 CC="$am_aux_dir/compile $CC"
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 depcc="$CC" am_compiler_list=
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046 $as_echo_n "checking dependency style of $depcc... " >&6; }
4047 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4048 $as_echo_n "(cached) " >&6
4050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051 # We make a subdir and do the tests there. Otherwise we can end up
4052 # making bogus files that we don't know about and never remove. For
4053 # instance it was reported that on HP-UX the gcc test will end up
4054 # making a dummy file named 'D' -- because '-MD' means "put the output
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4070 am_cv_CC_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4075 case " $depcc " in #(
4076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4079 for depmode in $am_compiler_list; do
4080 # Setup a source with many dependencies, because some compilers
4081 # like to wrap large dependency lists on column 80 (with \), and
4082 # we should not choose a depcomp mode which is confused by this.
4084 # We need to recreate these files for each test, as the compiler may
4085 # overwrite some of them when testing with obscure command lines.
4086 # This happens at least with the AIX C compiler.
4088 for i in 1 2 3 4 5 6; do
4089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4091 # Solaris 10 /bin/sh.
4092 echo '/* dummy */' > sub/conftst$i.h
4094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4096 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4097 # mode. It turns out that the SunPro C++ compiler does not properly
4098 # handle '-M -o', and we need to detect this. Also, some Intel
4099 # versions had trouble with output in subdirs.
4100 am__obj=sub/conftest.${OBJEXT-o}
4101 am__minus_obj="-o $am__obj"
4104 # This depmode causes a compiler race in universal mode.
4105 test "$am__universal" = false || continue
4108 # After this tag, mechanisms are not by side-effect, so they'll
4109 # only be used when explicitly requested.
4110 if test "x$enable_dependency_tracking" = xyes; then
4116 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4117 # This compiler won't grok '-c -o', but also, the minuso test has
4118 # not run yet. These depmodes are late enough in the game, and
4119 # so weak that their functioning should not be impacted.
4120 am__obj=conftest.${OBJEXT-o}
4125 if depmode=$depmode \
4126 source=sub/conftest.c object=$am__obj \
4127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129 >/dev/null 2>conftest.err &&
4130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134 # icc doesn't choke on unknown options, it will just issue warnings
4135 # or remarks (even with -Werror). So we grep stderr for any message
4136 # that says an option was ignored or not supported.
4137 # When given -MP, icc 7.0 and 7.1 complain thusly:
4138 # icc: Command line warning: ignoring option '-M'; no argument required
4139 # The diagnosis changed in icc 8.0:
4140 # icc: Command line remark: option '-MP' not supported
4141 if (grep 'ignoring option' conftest.err ||
4142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143 am_cv_CC_dependencies_compiler_type=$depmode
4152 am_cv_CC_dependencies_compiler_type=none
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4161 test "x$enable_dependency_tracking" != xno \
4162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4164 am__fastdepCC_FALSE='#'
4166 am__fastdepCC_TRUE='#'
4167 am__fastdepCC_FALSE=
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4183 if test -z "$CPP"; then
4184 if ${ac_cv_prog_CPP+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 # Double quotes because CPP needs to be expanded
4188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4202 # include <limits.h>
4204 # include <assert.h>
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: fails on valid input.
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4226 # Passes both tests.
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4248 $as_echo "$CPP" >&6; }
4250 for ac_c_preproc_warn_flag in '' yes
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
4256 # On the NeXT, cc -E runs the code through the compiler's parser,
4257 # not just through cpp. "Syntax error" is here to catch this case.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 # include <limits.h>
4263 # include <assert.h>
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: fails on valid input.
4273 rm -f conftest.err conftest.i conftest.$ac_ext
4275 # OK, works on sane cases. Now check whether nonexistent headers
4276 # can be detected and how.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282 # Broken: success on invalid input.
4285 # Passes both tests.
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293 rm -f conftest.i conftest.err conftest.$ac_ext
4294 if $ac_preproc_ok; then :
4297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4300 See \`config.log' for more details" "$LINENO" 5; }
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if ${ac_cv_path_GREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 if test -z "$GREP"; then
4316 ac_path_GREP_found=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 test -z "$as_dir" && as_dir=.
4323 for ac_prog in grep ggrep; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326 as_fn_executable_p "$ac_path_GREP" || continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328 # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334 $as_echo_n 0123456789 >"conftest.in"
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo 'GREP' >> "conftest.nl"
4341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343 as_fn_arith $ac_count + 1 && ac_count=$as_val
4344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_GREP="$ac_path_GREP"
4347 ac_path_GREP_max=$ac_count
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 $ac_path_GREP_found && break 3
4360 if test -z "$ac_cv_path_GREP"; then
4361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 ac_cv_path_GREP=$GREP
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4369 $as_echo "$ac_cv_path_GREP" >&6; }
4370 GREP="$ac_cv_path_GREP"
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4374 $as_echo_n "checking for egrep... " >&6; }
4375 if ${ac_cv_path_EGREP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4379 then ac_cv_path_EGREP="$GREP -E"
4381 if test -z "$EGREP"; then
4382 ac_path_EGREP_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in egrep; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4392 as_fn_executable_p "$ac_path_EGREP" || continue
4393 # Check for GNU ac_path_EGREP and select it if it is found.
4394 # Check for GNU $ac_path_EGREP
4395 case `"$ac_path_EGREP" --version 2>&1` in
4397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 $as_echo_n 0123456789 >"conftest.in"
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo 'EGREP' >> "conftest.nl"
4407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_EGREP="$ac_path_EGREP"
4413 ac_path_EGREP_max=$ac_count
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 $ac_path_EGREP_found && break 3
4426 if test -z "$ac_cv_path_EGREP"; then
4427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 ac_cv_path_EGREP=$EGREP
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4436 $as_echo "$ac_cv_path_EGREP" >&6; }
4437 EGREP="$ac_cv_path_EGREP"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4441 $as_echo_n "checking for ANSI C header files... " >&6; }
4442 if ${ac_cv_header_stdc+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_header_stdc=yes
4463 ac_cv_header_stdc=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then :
4478 ac_cv_header_stdc=no
4484 if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "free" >/dev/null 2>&1; then :
4495 ac_cv_header_stdc=no
4501 if test $ac_cv_header_stdc = yes; then
4502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503 if test "$cross_compiling" = yes; then :
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4510 #if ((' ' & 0x0FF) == 0x020)
4511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4514 # define ISLOWER(c) \
4515 (('a' <= (c) && (c) <= 'i') \
4516 || ('j' <= (c) && (c) <= 'r') \
4517 || ('s' <= (c) && (c) <= 'z'))
4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4526 for (i = 0; i < 256; i++)
4527 if (XOR (islower (i), ISLOWER (i))
4528 || toupper (i) != TOUPPER (i))
4533 if ac_fn_c_try_run "$LINENO"; then :
4536 ac_cv_header_stdc=no
4538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4539 conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4545 $as_echo "$ac_cv_header_stdc" >&6; }
4546 if test $ac_cv_header_stdc = yes; then
4548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4554 inttypes.h stdint.h unistd.h
4556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4560 cat >>confdefs.h <<_ACEOF
4561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4571 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4578 if test "$MINIX" = yes; then
4580 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4583 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4586 $as_echo "#define _MINIX 1" >>confdefs.h
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4592 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4593 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4599 # define __EXTENSIONS__ 1
4600 $ac_includes_default
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_cv_safe_to_define___extensions__=yes
4612 ac_cv_safe_to_define___extensions__=no
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4617 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4618 test $ac_cv_safe_to_define___extensions__ = yes &&
4619 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4621 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4623 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4625 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4627 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4631 ac_cpp='$CXXCPP $CPPFLAGS'
4632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4635 if test -z "$CXX"; then
4636 if test -n "$CCC"; then
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_CXX+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$CXX"; then
4650 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 if test -n "$CXX"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4672 $as_echo "$CXX" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 test -n "$CXX" && break
4682 if test -z "$CXX"; then
4684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$ac_ct_CXX"; then
4694 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_ac_ct_CXX="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4714 if test -n "$ac_ct_CXX"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4716 $as_echo "$ac_ct_CXX" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$ac_ct_CXX" && break
4726 if test "x$ac_ct_CXX" = x; then
4729 case $cross_compiling:$ac_tool_warned in
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4741 # Provide some information about the compiler.
4742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4745 for ac_option in --version -v -V -qversion; do
4746 { { ac_try="$ac_compiler $ac_option >&5"
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 $as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4755 if test -s conftest.err; then
4757 ... rest of stderr output deleted ...
4758 10q' conftest.err >conftest.er1
4759 cat conftest.er1 >&5
4761 rm -f conftest.er1 conftest.err
4762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4768 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4795 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4801 ac_test_CXXFLAGS=${CXXFLAGS+set}
4802 ac_save_CXXFLAGS=$CXXFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4804 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4805 if ${ac_cv_prog_cxx_g+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4809 ac_cxx_werror_flag=yes
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4823 if ac_fn_cxx_try_compile "$LINENO"; then :
4824 ac_cv_prog_cxx_g=yes
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4838 if ac_fn_cxx_try_compile "$LINENO"; then :
4841 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4854 if ac_fn_cxx_try_compile "$LINENO"; then :
4855 ac_cv_prog_cxx_g=yes
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4865 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4866 if test "$ac_test_CXXFLAGS" = set; then
4867 CXXFLAGS=$ac_save_CXXFLAGS
4868 elif test $ac_cv_prog_cxx_g = yes; then
4869 if test "$GXX" = yes; then
4875 if test "$GXX" = yes; then
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 depcc="$CXX" am_compiler_list=
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895 # We make a subdir and do the tests there. Otherwise we can end up
4896 # making bogus files that we don't know about and never remove. For
4897 # instance it was reported that on HP-UX the gcc test will end up
4898 # making a dummy file named 'D' -- because '-MD' means "put the output
4902 # Copy depcomp to subdir because otherwise we won't find it if we're
4903 # using a relative directory.
4904 cp "$am_depcomp" conftest.dir
4906 # We will build objects and dependencies in a subdirectory because
4907 # it helps to detect inapplicable dependency modes. For instance
4908 # both Tru64's cc and ICC support -MD to output dependencies as a
4909 # side effect of compilation, but ICC will put the dependencies in
4910 # the current directory while Tru64 will put them in the object
4914 am_cv_CXX_dependencies_compiler_type=none
4915 if test "$am_compiler_list" = ""; then
4916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4919 case " $depcc " in #(
4920 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4923 for depmode in $am_compiler_list; do
4924 # Setup a source with many dependencies, because some compilers
4925 # like to wrap large dependency lists on column 80 (with \), and
4926 # we should not choose a depcomp mode which is confused by this.
4928 # We need to recreate these files for each test, as the compiler may
4929 # overwrite some of them when testing with obscure command lines.
4930 # This happens at least with the AIX C compiler.
4932 for i in 1 2 3 4 5 6; do
4933 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4934 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4935 # Solaris 10 /bin/sh.
4936 echo '/* dummy */' > sub/conftst$i.h
4938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4940 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4941 # mode. It turns out that the SunPro C++ compiler does not properly
4942 # handle '-M -o', and we need to detect this. Also, some Intel
4943 # versions had trouble with output in subdirs.
4944 am__obj=sub/conftest.${OBJEXT-o}
4945 am__minus_obj="-o $am__obj"
4948 # This depmode causes a compiler race in universal mode.
4949 test "$am__universal" = false || continue
4952 # After this tag, mechanisms are not by side-effect, so they'll
4953 # only be used when explicitly requested.
4954 if test "x$enable_dependency_tracking" = xyes; then
4960 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4961 # This compiler won't grok '-c -o', but also, the minuso test has
4962 # not run yet. These depmodes are late enough in the game, and
4963 # so weak that their functioning should not be impacted.
4964 am__obj=conftest.${OBJEXT-o}
4969 if depmode=$depmode \
4970 source=sub/conftest.c object=$am__obj \
4971 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4972 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4973 >/dev/null 2>conftest.err &&
4974 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4976 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4978 # icc doesn't choke on unknown options, it will just issue warnings
4979 # or remarks (even with -Werror). So we grep stderr for any message
4980 # that says an option was ignored or not supported.
4981 # When given -MP, icc 7.0 and 7.1 complain thusly:
4982 # icc: Command line warning: ignoring option '-M'; no argument required
4983 # The diagnosis changed in icc 8.0:
4984 # icc: Command line remark: option '-MP' not supported
4985 if (grep 'ignoring option' conftest.err ||
4986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4987 am_cv_CXX_dependencies_compiler_type=$depmode
4996 am_cv_CXX_dependencies_compiler_type=none
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5001 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5002 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5005 test "x$enable_dependency_tracking" != xno \
5006 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5007 am__fastdepCXX_TRUE=
5008 am__fastdepCXX_FALSE='#'
5010 am__fastdepCXX_TRUE='#'
5011 am__fastdepCXX_FALSE=
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5018 if test "$LN_S" = "ln -s"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020 $as_echo "yes" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_CC+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -n "$CC"; then
5040 ac_cv_prog_CC="$CC" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 if test -n "$CC"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5062 $as_echo "$CC" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5070 if test -z "$ac_cv_prog_CC"; then
5072 # Extract the first word of "gcc", so it can be a program name with args.
5073 set dummy gcc; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 if test -n "$ac_ct_CC"; then
5080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_ac_ct_CC="gcc"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5102 $as_echo "$ac_ct_CC" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5108 if test "x$ac_ct_CC" = x; then
5111 case $cross_compiling:$ac_tool_warned in
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5123 if test -z "$CC"; then
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}cc; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_CC+:} false; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$CC"; then
5133 ac_cv_prog_CC="$CC" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_CC="${ac_tool_prefix}cc"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 if test -n "$CC"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5155 $as_echo "$CC" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5164 if test -z "$CC"; then
5165 # Extract the first word of "cc", so it can be a program name with args.
5166 set dummy cc; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_CC+:} false; then :
5170 $as_echo_n "(cached) " >&6
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5184 ac_prog_rejected=yes
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test $ac_prog_rejected = yes; then
5196 # We found a bogon in the path, so make sure we never use it.
5197 set dummy $ac_cv_prog_CC
5199 if test $# != 0; then
5200 # We chose a different compiler from the bogus one.
5201 # However, it has the same basename, so the bogon will be chosen
5202 # first if we set CC to just the basename; use the full file name.
5204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5210 if test -n "$CC"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5220 if test -z "$CC"; then
5221 if test -n "$ac_tool_prefix"; then
5222 for ac_prog in cl.exe
5224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_CC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$CC"; then
5232 ac_cv_prog_CC="$CC" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$CC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$CC" && break
5264 if test -z "$CC"; then
5266 for ac_prog in cl.exe
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$ac_ct_CC"; then
5276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_CC="$ac_prog"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5296 if test -n "$ac_ct_CC"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5298 $as_echo "$ac_ct_CC" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 test -n "$ac_ct_CC" && break
5308 if test "x$ac_ct_CC" = x; then
5311 case $cross_compiling:$ac_tool_warned in
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315 ac_tool_warned=yes ;;
5324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5326 as_fn_error $? "no acceptable C compiler found in \$PATH
5327 See \`config.log' for more details" "$LINENO" 5; }
5329 # Provide some information about the compiler.
5330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5333 for ac_option in --version -v -V -qversion; do
5334 { { ac_try="$ac_compiler $ac_option >&5"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5340 $as_echo "$ac_try_echo"; } >&5
5341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5343 if test -s conftest.err; then
5345 ... rest of stderr output deleted ...
5346 10q' conftest.err >conftest.er1
5347 cat conftest.er1 >&5
5349 rm -f conftest.er1 conftest.err
5350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351 test $ac_status = 0; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5355 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5356 if ${ac_cv_c_compiler_gnu+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5373 if ac_fn_c_try_compile "$LINENO"; then :
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5383 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5384 if test $ac_compiler_gnu = yes; then
5389 ac_test_CFLAGS=${CFLAGS+set}
5390 ac_save_CFLAGS=$CFLAGS
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5392 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5393 if ${ac_cv_prog_cc_g+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 ac_save_c_werror_flag=$ac_c_werror_flag
5397 ac_c_werror_flag=yes
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5411 if ac_fn_c_try_compile "$LINENO"; then :
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5426 if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_c_werror_flag=$ac_save_c_werror_flag
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5442 if ac_fn_c_try_compile "$LINENO"; then :
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_c_werror_flag=$ac_save_c_werror_flag
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5453 $as_echo "$ac_cv_prog_cc_g" >&6; }
5454 if test "$ac_test_CFLAGS" = set; then
5455 CFLAGS=$ac_save_CFLAGS
5456 elif test $ac_cv_prog_cc_g = yes; then
5457 if test "$GCC" = yes; then
5463 if test "$GCC" = yes; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5470 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5471 if ${ac_cv_prog_cc_c89+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 ac_cv_prog_cc_c89=no
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5482 struct buf { int x; };
5483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5484 static char *e (p, i)
5490 static char *f (char * (*g) (char **, int), char **p, ...)
5495 s = g (p, va_arg (v,int));
5500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5501 function prototypes and stuff, but not '\xHH' hex character constants.
5502 These don't provoke an error unfortunately, instead are silently treated
5503 as 'x'. The following induces an error, until -std is added to get
5504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5505 array size at least. It's necessary to write '\x00'==0 to get something
5506 that's true only with -std. */
5507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5510 inside strings and character constants. */
5512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5514 int test (int i, double x);
5515 struct s1 {int (*f) (int a);};
5516 struct s2 {int (*f) (double a);};
5517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5531 CC="$ac_save_CC $ac_arg"
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_prog_cc_c89=$ac_arg
5535 rm -f core conftest.err conftest.$ac_objext
5536 test "x$ac_cv_prog_cc_c89" != "xno" && break
5538 rm -f conftest.$ac_ext
5543 case "x$ac_cv_prog_cc_c89" in
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5546 $as_echo "none needed" >&6; } ;;
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5549 $as_echo "unsupported" >&6; } ;;
5551 CC="$CC $ac_cv_prog_cc_c89"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5555 if test "x$ac_cv_prog_cc_c89" != xno; then :
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566 ac_cpp='$CPP $CPPFLAGS'
5567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5571 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5572 if ${am_cv_prog_cc_c_o+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5586 # Make sure it works both with $CC and with simple cc.
5587 # Following AC_PROG_CC_C_O, we do the test twice because some
5588 # compilers refuse to overwrite an existing .o file with -o,
5589 # though they will create one.
5590 am_cv_prog_cc_c_o=yes
5592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } \
5597 && test -f conftest2.$ac_objext; then
5600 am_cv_prog_cc_c_o=no
5604 rm -f core conftest*
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5608 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5609 if test "$am_cv_prog_cc_c_o" != yes; then
5610 # Losing compiler, so override with the script.
5611 # FIXME: It is wrong to rewrite CC.
5612 # But if we don't then we get into trouble of one sort or another.
5613 # A longer-term fix would be to have automake use am__CC in this case,
5614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5615 CC="$am_aux_dir/compile $CC"
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 depcc="$CC" am_compiler_list=
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627 $as_echo_n "checking dependency style of $depcc... " >&6; }
5628 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632 # We make a subdir and do the tests there. Otherwise we can end up
5633 # making bogus files that we don't know about and never remove. For
5634 # instance it was reported that on HP-UX the gcc test will end up
5635 # making a dummy file named 'D' -- because '-MD' means "put the output
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5651 am_cv_CC_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5656 case " $depcc " in #(
5657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5660 for depmode in $am_compiler_list; do
5661 # Setup a source with many dependencies, because some compilers
5662 # like to wrap large dependency lists on column 80 (with \), and
5663 # we should not choose a depcomp mode which is confused by this.
5665 # We need to recreate these files for each test, as the compiler may
5666 # overwrite some of them when testing with obscure command lines.
5667 # This happens at least with the AIX C compiler.
5669 for i in 1 2 3 4 5 6; do
5670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672 # Solaris 10 /bin/sh.
5673 echo '/* dummy */' > sub/conftst$i.h
5675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle '-M -o', and we need to detect this. Also, some Intel
5680 # versions had trouble with output in subdirs.
5681 am__obj=sub/conftest.${OBJEXT-o}
5682 am__minus_obj="-o $am__obj"
5685 # This depmode causes a compiler race in universal mode.
5686 test "$am__universal" = false || continue
5689 # After this tag, mechanisms are not by side-effect, so they'll
5690 # only be used when explicitly requested.
5691 if test "x$enable_dependency_tracking" = xyes; then
5697 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698 # This compiler won't grok '-c -o', but also, the minuso test has
5699 # not run yet. These depmodes are late enough in the game, and
5700 # so weak that their functioning should not be impacted.
5701 am__obj=conftest.${OBJEXT-o}
5706 if depmode=$depmode \
5707 source=sub/conftest.c object=$am__obj \
5708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710 >/dev/null 2>conftest.err &&
5711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715 # icc doesn't choke on unknown options, it will just issue warnings
5716 # or remarks (even with -Werror). So we grep stderr for any message
5717 # that says an option was ignored or not supported.
5718 # When given -MP, icc 7.0 and 7.1 complain thusly:
5719 # icc: Command line warning: ignoring option '-M'; no argument required
5720 # The diagnosis changed in icc 8.0:
5721 # icc: Command line remark: option '-MP' not supported
5722 if (grep 'ignoring option' conftest.err ||
5723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724 am_cv_CC_dependencies_compiler_type=$depmode
5733 am_cv_CC_dependencies_compiler_type=none
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5738 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5739 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5742 test "x$enable_dependency_tracking" != xno \
5743 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5745 am__fastdepCC_FALSE='#'
5747 am__fastdepCC_TRUE='#'
5748 am__fastdepCC_FALSE=
5752 case $ac_cv_prog_cc_stdc in #(
5754 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5757 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5758 if ${ac_cv_prog_cc_c99+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 ac_cv_prog_cc_c99=no
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5766 #include <stdbool.h>
5771 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5772 #define debug(...) fprintf (stderr, __VA_ARGS__)
5773 #define showlist(...) puts (#__VA_ARGS__)
5774 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5776 test_varargs_macros (void)
5781 debug ("X = %d\n", x);
5782 showlist (The first, second, and third items.);
5783 report (x>y, "x is %d but y is %d", x, y);
5786 // Check long long types.
5787 #define BIG64 18446744073709551615ull
5788 #define BIG32 4294967295ul
5789 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5791 your preprocessor is broken;
5795 your preprocessor is broken;
5797 static long long int bignum = -9223372036854775807LL;
5798 static unsigned long long int ubignum = BIG64;
5800 struct incomplete_array
5808 const wchar_t *name;
5812 typedef const char *ccp;
5815 test_restrict (ccp restrict text)
5817 // See if C++-style comments work.
5818 // Iterate through items via the restricted pointer.
5819 // Also check for declarations in for loops.
5820 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5825 // Check varargs and va_copy.
5827 test_varargs (const char *format, ...)
5830 va_start (args, format);
5832 va_copy (args_copy, args);
5843 str = va_arg (args_copy, const char *);
5846 number = va_arg (args_copy, int);
5849 fnumber = va_arg (args_copy, double);
5864 _Bool success = false;
5867 if (test_restrict ("String literal") == 0)
5869 char *restrict newvar = "Another string";
5872 test_varargs ("s, d' f .", "string", 65, 34.234);
5873 test_varargs_macros ();
5875 // Check flexible array members.
5876 struct incomplete_array *ia =
5877 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5879 for (int i = 0; i < ia->datasize; ++i)
5880 ia->data[i] = i * 1.234;
5882 // Check named initializers.
5883 struct named_init ni = {
5885 .name = L"Test wide string",
5886 .average = 543.34343,
5891 int dynamic_array[ni.number];
5892 dynamic_array[ni.number - 1] = 543;
5894 // work around unused variable warnings
5895 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5896 || dynamic_array[ni.number - 1] != 543);
5902 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5904 CC="$ac_save_CC $ac_arg"
5905 if ac_fn_c_try_compile "$LINENO"; then :
5906 ac_cv_prog_cc_c99=$ac_arg
5908 rm -f core conftest.err conftest.$ac_objext
5909 test "x$ac_cv_prog_cc_c99" != "xno" && break
5911 rm -f conftest.$ac_ext
5916 case "x$ac_cv_prog_cc_c99" in
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5919 $as_echo "none needed" >&6; } ;;
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5922 $as_echo "unsupported" >&6; } ;;
5924 CC="$CC $ac_cv_prog_cc_c99"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5926 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5928 if test "x$ac_cv_prog_cc_c99" != xno; then :
5929 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5933 if ${ac_cv_prog_cc_c89+:} false; then :
5934 $as_echo_n "(cached) " >&6
5936 ac_cv_prog_cc_c89=no
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5944 struct buf { int x; };
5945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5946 static char *e (p, i)
5952 static char *f (char * (*g) (char **, int), char **p, ...)
5957 s = g (p, va_arg (v,int));
5962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5963 function prototypes and stuff, but not '\xHH' hex character constants.
5964 These don't provoke an error unfortunately, instead are silently treated
5965 as 'x'. The following induces an error, until -std is added to get
5966 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5967 array size at least. It's necessary to write '\x00'==0 to get something
5968 that's true only with -std. */
5969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5971 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5972 inside strings and character constants. */
5974 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5976 int test (int i, double x);
5977 struct s1 {int (*f) (int a);};
5978 struct s2 {int (*f) (double a);};
5979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5993 CC="$ac_save_CC $ac_arg"
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 ac_cv_prog_cc_c89=$ac_arg
5997 rm -f core conftest.err conftest.$ac_objext
5998 test "x$ac_cv_prog_cc_c89" != "xno" && break
6000 rm -f conftest.$ac_ext
6005 case "x$ac_cv_prog_cc_c89" in
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6008 $as_echo "none needed" >&6; } ;;
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6011 $as_echo "unsupported" >&6; } ;;
6013 CC="$CC $ac_cv_prog_cc_c89"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6015 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6017 if test "x$ac_cv_prog_cc_c89" != xno; then :
6018 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6020 ac_cv_prog_cc_stdc=no
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6027 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6028 if ${ac_cv_prog_cc_stdc+:} false; then :
6029 $as_echo_n "(cached) " >&6
6032 case $ac_cv_prog_cc_stdc in #(
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6035 $as_echo "unsupported" >&6; } ;; #(
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6038 $as_echo "none needed" >&6; } ;; #(
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6041 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6045 # SELinux support - off by default
6047 # Check whether --enable-selinux was given.
6048 if test "${enable_selinux+set}" = set; then :
6049 enableval=$enable_selinux; enable_selinux=$enableval
6054 if test "$enable_selinux" = "yes"; then
6056 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfilecon in -lselinux" >&5
6059 $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
6060 if ${ac_cv_lib_selinux_getfilecon+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-lselinux $LIBS"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6068 /* Override any GCC internal prototype to avoid an error.
6069 Use char because int might match the return type of a GCC
6070 builtin and then its argument prototype would still apply. */
6078 return getfilecon ();
6083 if ac_fn_c_try_link "$LINENO"; then :
6084 ac_cv_lib_selinux_getfilecon=yes
6086 ac_cv_lib_selinux_getfilecon=no
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 LIBS=$ac_check_lib_save_LIBS
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfilecon" >&5
6093 $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
6094 if test "x$ac_cv_lib_selinux_getfilecon" = xyes; then :
6095 SELINUX_LIB=-lselinux
6098 as_fn_error $? "Cannot find selinux static library" "$LINENO" 5
6104 # Call fork before all stat calls to stop hanging on NFS mounts
6106 # Check whether --enable-timeout_stat was given.
6107 if test "${enable_timeout_stat+set}" = set; then :
6108 enableval=$enable_timeout_stat; enable_timeout_stat=$enableval
6110 enable_timeout_stat="no"
6113 if test "$enable_timeout_stat" = "yes"; then
6115 $as_echo "#define WITH_TIMEOUT_STAT 1" >>confdefs.h
6118 if test "$enable_timeout_stat" = "static"; then
6120 $as_echo "#define WITH_TIMEOUT_STAT 2" >>confdefs.h
6123 if test "$enable_timeout_stat" = "static"; then
6124 WANT_TIMEOUT_STAT_TRUE=
6125 WANT_TIMEOUT_STAT_FALSE='#'
6127 WANT_TIMEOUT_STAT_TRUE='#'
6128 WANT_TIMEOUT_STAT_FALSE=
6132 # Use string search for network based file systems but only if the system
6133 # has /proc/self/mountinfo
6135 # Check whether --enable-mountinfo_list was given.
6136 if test "${enable_mountinfo_list+set}" = set; then :
6137 enableval=$enable_mountinfo_list; enable_mountinfo_list="yes"
6139 enable_mountinfo_list="no"
6142 if test "$enable_mountinfo_list" = "yes" -a -e /proc/self/mountinfo ; then
6144 $as_echo "#define WITH_MOUNTINFO_LIST 1" >>confdefs.h
6148 # Enable hardened compile and link flags
6149 # Check whether --enable-harden_flags was given.
6150 if test "${enable_harden_flags+set}" = set; then :
6151 enableval=$enable_harden_flags; enable_harden_flags=$enableval
6153 enable_harden_flags="yes"
6158 # Check whether --enable-ipv6 was given.
6159 if test "${enable_ipv6+set}" = set; then :
6160 enableval=$enable_ipv6; enable_ipv6=$enableval
6165 if test "$enable_ipv6" = "yes"; then
6167 $as_echo "#define WITH_IPV6 1" >>confdefs.h
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
6172 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
6173 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 ac_check_lib_save_LIBS=$LIBS
6177 LIBS="-ltinfo $LIBS"
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6181 /* Override any GCC internal prototype to avoid an error.
6182 Use char because int might match the return type of a GCC
6183 builtin and then its argument prototype would still apply. */
6196 if ac_fn_c_try_link "$LINENO"; then :
6197 ac_cv_lib_tinfo_tgetent=yes
6199 ac_cv_lib_tinfo_tgetent=no
6201 rm -f core conftest.err conftest.$ac_objext \
6202 conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
6206 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
6207 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6211 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
6212 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 ac_check_lib_save_LIBS=$LIBS
6216 LIBS="-lncurses $LIBS"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6220 /* Override any GCC internal prototype to avoid an error.
6221 Use char because int might match the return type of a GCC
6222 builtin and then its argument prototype would still apply. */
6235 if ac_fn_c_try_link "$LINENO"; then :
6236 ac_cv_lib_ncurses_tgetent=yes
6238 ac_cv_lib_ncurses_tgetent=no
6240 rm -f core conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6245 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6246 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
6247 TERMCAP_LIB=-lncurses
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
6250 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
6251 if ${ac_cv_lib_termcap_tgetent+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-ltermcap $LIBS"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 ac_cv_lib_termcap_tgetent=yes
6277 ac_cv_lib_termcap_tgetent=no
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
6284 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
6285 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
6286 TERMCAP_LIB=-ltermcap
6288 as_fn_error $? "Cannot find tinfo, ncurses or termcap libraries" "$LINENO" 5
6301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6302 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6304 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6305 if eval \${$as_ac_Header+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 eval "$as_ac_Header=yes"
6325 eval "$as_ac_Header=no"
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 eval ac_res=\$$as_ac_Header
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6331 $as_echo "$ac_res" >&6; }
6332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6333 cat >>confdefs.h <<_ACEOF
6334 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6337 ac_header_dirent=$ac_hdr; break
6341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6342 if test $ac_header_dirent = dirent.h; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6344 $as_echo_n "checking for library containing opendir... " >&6; }
6345 if ${ac_cv_search_opendir+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 ac_func_search_save_LIBS=$LIBS
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6352 /* Override any GCC internal prototype to avoid an error.
6353 Use char because int might match the return type of a GCC
6354 builtin and then its argument prototype would still apply. */
6367 for ac_lib in '' dir; do
6368 if test -z "$ac_lib"; then
6369 ac_res="none required"
6372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6374 if ac_fn_c_try_link "$LINENO"; then :
6375 ac_cv_search_opendir=$ac_res
6377 rm -f core conftest.err conftest.$ac_objext \
6379 if ${ac_cv_search_opendir+:} false; then :
6383 if ${ac_cv_search_opendir+:} false; then :
6386 ac_cv_search_opendir=no
6389 LIBS=$ac_func_search_save_LIBS
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6392 $as_echo "$ac_cv_search_opendir" >&6; }
6393 ac_res=$ac_cv_search_opendir
6394 if test "$ac_res" != no; then :
6395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6401 $as_echo_n "checking for library containing opendir... " >&6; }
6402 if ${ac_cv_search_opendir+:} false; then :
6403 $as_echo_n "(cached) " >&6
6405 ac_func_search_save_LIBS=$LIBS
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6424 for ac_lib in '' x; do
6425 if test -z "$ac_lib"; then
6426 ac_res="none required"
6429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_search_opendir=$ac_res
6434 rm -f core conftest.err conftest.$ac_objext \
6436 if ${ac_cv_search_opendir+:} false; then :
6440 if ${ac_cv_search_opendir+:} false; then :
6443 ac_cv_search_opendir=no
6446 LIBS=$ac_func_search_save_LIBS
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6449 $as_echo "$ac_cv_search_opendir" >&6; }
6450 ac_res=$ac_cv_search_opendir
6451 if test "$ac_res" != no; then :
6452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6459 $as_echo_n "checking for ANSI C header files... " >&6; }
6460 if ${ac_cv_header_stdc+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_header_stdc=yes
6481 ac_cv_header_stdc=no
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 if test $ac_cv_header_stdc = yes; then
6486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 $EGREP "memchr" >/dev/null 2>&1; then :
6496 ac_cv_header_stdc=no
6502 if test $ac_cv_header_stdc = yes; then
6503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "free" >/dev/null 2>&1; then :
6513 ac_cv_header_stdc=no
6519 if test $ac_cv_header_stdc = yes; then
6520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6521 if test "$cross_compiling" = yes; then :
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6528 #if ((' ' & 0x0FF) == 0x020)
6529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6532 # define ISLOWER(c) \
6533 (('a' <= (c) && (c) <= 'i') \
6534 || ('j' <= (c) && (c) <= 'r') \
6535 || ('s' <= (c) && (c) <= 'z'))
6536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6544 for (i = 0; i < 256; i++)
6545 if (XOR (islower (i), ISLOWER (i))
6546 || toupper (i) != TOUPPER (i))
6551 if ac_fn_c_try_run "$LINENO"; then :
6554 ac_cv_header_stdc=no
6556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557 conftest.$ac_objext conftest.beam conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6563 $as_echo "$ac_cv_header_stdc" >&6; }
6564 if test $ac_cv_header_stdc = yes; then
6566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6571 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6572 if ${ac_cv_header_sys_wait_h+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 #include <sys/wait.h>
6580 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6583 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6591 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_cv_header_sys_wait_h=yes
6599 ac_cv_header_sys_wait_h=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6604 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6605 if test $ac_cv_header_sys_wait_h = yes; then
6607 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6611 for ac_header in arpa/inet.h fcntl.h langinfo.h libintl.h limits.h locale.h mntent.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h termios.h unistd.h
6613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6616 cat >>confdefs.h <<_ACEOF
6617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6626 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6627 if ${ac_cv_c_const+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6638 /* Ultrix mips cc rejects this sort of thing. */
6639 typedef int charset[2];
6640 const charset cs = { 0, 0 };
6641 /* SunOS 4.1.1 cc rejects this. */
6642 char const *const *pcpcc;
6644 /* NEC SVR4.0.2 mips cc rejects this. */
6645 struct point {int x, y;};
6646 static struct point const zero = {0,0};
6647 /* AIX XL C 1.02.0.0 rejects this.
6648 It does not let you subtract one const X* pointer from another in
6649 an arm of an if-expression whose if-part is not a constant
6651 const char *g = "string";
6652 pcpcc = &g + (g ? g-g : 0);
6653 /* HPUX 7.0 cc rejects these. */
6655 ppc = (char**) pcpcc;
6656 pcpcc = (char const *const *) ppc;
6657 { /* SCO 3.2v4 cc rejects this sort of thing. */
6660 char const *s = 0 ? (char *) 0 : (char const *) 0;
6665 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6667 const int *foo = &x[0];
6670 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6671 typedef const int *iptr;
6675 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6676 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6677 struct s { int j; const int *ap[3]; } bx;
6678 struct s *b = &bx; b->j = 5;
6680 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6684 return !cs[0] && !zero.x;
6691 if ac_fn_c_try_compile "$LINENO"; then :
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6699 $as_echo "$ac_cv_c_const" >&6; }
6700 if test $ac_cv_c_const = no; then
6702 $as_echo "#define const /**/" >>confdefs.h
6706 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6707 if test "x$ac_cv_type_pid_t" = xyes; then :
6711 cat >>confdefs.h <<_ACEOF
6717 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6718 if test "x$ac_cv_type_size_t" = xyes; then :
6722 cat >>confdefs.h <<_ACEOF
6723 #define size_t unsigned int
6728 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6729 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_STRUCT_STAT_ST_RDEV 1
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6739 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6740 if ${ac_cv_type_uid_t+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <sys/types.h>
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "uid_t" >/dev/null 2>&1; then :
6750 ac_cv_type_uid_t=yes
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6758 $as_echo "$ac_cv_type_uid_t" >&6; }
6759 if test $ac_cv_type_uid_t = no; then
6761 $as_echo "#define uid_t int" >>confdefs.h
6764 $as_echo "#define gid_t int" >>confdefs.h
6769 # Check that harden CFLAGS and LDFLAGS will compile
6770 if test "$enable_harden_flags" = "yes"; then :
6771 HARDEN_CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security"
6772 HARDEN_LDFLAGS="-Wl,-z,relro"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler supports harden flags" >&5
6774 $as_echo_n "checking compiler supports harden flags... " >&6; }
6775 save_harden_cflags="$CFLAGS"
6776 CFLAGS="$CFLAGS $HARDEN_CFLAGS"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6790 $as_echo "yes" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }; HARDEN_CFLAGS=''
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 CFLAGS="$save_harden_cflags"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6808 if ${ac_cv_path_SED+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6812 for ac_i in 1 2 3 4 5 6 7; do
6813 ac_script="$ac_script$as_nl$ac_script"
6815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6816 { ac_script=; unset ac_script;}
6817 if test -z "$SED"; then
6818 ac_path_SED_found=false
6819 # Loop through the user's path and test for each of PROGNAME-LIST
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_prog in sed gsed; do
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6828 as_fn_executable_p "$ac_path_SED" || continue
6829 # Check for GNU ac_path_SED and select it if it is found.
6830 # Check for GNU $ac_path_SED
6831 case `"$ac_path_SED" --version 2>&1` in
6833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6836 $as_echo_n 0123456789 >"conftest.in"
6839 cat "conftest.in" "conftest.in" >"conftest.tmp"
6840 mv "conftest.tmp" "conftest.in"
6841 cp "conftest.in" "conftest.nl"
6842 $as_echo '' >> "conftest.nl"
6843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6845 as_fn_arith $ac_count + 1 && ac_count=$as_val
6846 if test $ac_count -gt ${ac_path_SED_max-0}; then
6847 # Best one so far, save it but keep looking for a better one
6848 ac_cv_path_SED="$ac_path_SED"
6849 ac_path_SED_max=$ac_count
6851 # 10*(2^10) chars as input seems more than enough
6852 test $ac_count -gt 10 && break
6854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6857 $ac_path_SED_found && break 3
6862 if test -z "$ac_cv_path_SED"; then
6863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6871 $as_echo "$ac_cv_path_SED" >&6; }
6872 SED="$ac_cv_path_SED"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6877 $as_echo_n "checking whether NLS is requested... " >&6; }
6878 # Check whether --enable-nls was given.
6879 if test "${enable_nls+set}" = set; then :
6880 enableval=$enable_nls; USE_NLS=$enableval
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6886 $as_echo "$USE_NLS" >&6; }
6891 GETTEXT_MACRO_VERSION=0.19
6896 # Prepare PATH_SEPARATOR.
6897 # The user is always right.
6898 if test "${PATH_SEPARATOR+set}" != set; then
6899 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6900 # contains only /bin. Note that ksh looks also at the FPATH variable,
6901 # so we have to set that as well for the test.
6903 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6904 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6905 || PATH_SEPARATOR=';'
6909 # Find out how to test for executable files. Don't use a zero-byte file,
6910 # as systems may use methods other than mode bits to determine executability.
6911 cat >conf$$.file <<_ASEOF
6915 chmod +x conf$$.file
6916 if test -x conf$$.file >/dev/null 2>&1; then
6917 ac_executable_p="test -x"
6919 ac_executable_p="test -f"
6923 # Extract the first word of "msgfmt", so it can be a program name with args.
6924 set dummy msgfmt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_path_MSGFMT+:} false; then :
6928 $as_echo_n "(cached) " >&6
6932 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6935 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6936 for ac_dir in $PATH; do
6938 test -z "$ac_dir" && ac_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6941 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6942 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6943 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6944 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6951 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6955 MSGFMT="$ac_cv_path_MSGFMT"
6956 if test "$MSGFMT" != ":"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6958 $as_echo "$MSGFMT" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6964 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6965 set dummy gmsgfmt; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_GMSGFMT+:} false; then :
6969 $as_echo_n "(cached) " >&6
6973 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6995 GMSGFMT=$ac_cv_path_GMSGFMT
6996 if test -n "$GMSGFMT"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6998 $as_echo "$GMSGFMT" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7006 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7007 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7008 *) MSGFMT_015=$MSGFMT ;;
7011 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7012 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7013 *) GMSGFMT_015=$GMSGFMT ;;
7018 # Prepare PATH_SEPARATOR.
7019 # The user is always right.
7020 if test "${PATH_SEPARATOR+set}" != set; then
7021 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7022 # contains only /bin. Note that ksh looks also at the FPATH variable,
7023 # so we have to set that as well for the test.
7025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7026 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7027 || PATH_SEPARATOR=';'
7031 # Find out how to test for executable files. Don't use a zero-byte file,
7032 # as systems may use methods other than mode bits to determine executability.
7033 cat >conf$$.file <<_ASEOF
7037 chmod +x conf$$.file
7038 if test -x conf$$.file >/dev/null 2>&1; then
7039 ac_executable_p="test -x"
7041 ac_executable_p="test -f"
7045 # Extract the first word of "xgettext", so it can be a program name with args.
7046 set dummy xgettext; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_path_XGETTEXT+:} false; then :
7050 $as_echo_n "(cached) " >&6
7054 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7057 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7058 for ac_dir in $PATH; do
7060 test -z "$ac_dir" && ac_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7063 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7064 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7065 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7066 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7073 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7077 XGETTEXT="$ac_cv_path_XGETTEXT"
7078 if test "$XGETTEXT" != ":"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7080 $as_echo "$XGETTEXT" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7088 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7089 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7090 *) XGETTEXT_015=$XGETTEXT ;;
7095 # Prepare PATH_SEPARATOR.
7096 # The user is always right.
7097 if test "${PATH_SEPARATOR+set}" != set; then
7098 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7099 # contains only /bin. Note that ksh looks also at the FPATH variable,
7100 # so we have to set that as well for the test.
7102 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7103 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7104 || PATH_SEPARATOR=';'
7108 # Find out how to test for executable files. Don't use a zero-byte file,
7109 # as systems may use methods other than mode bits to determine executability.
7110 cat >conf$$.file <<_ASEOF
7114 chmod +x conf$$.file
7115 if test -x conf$$.file >/dev/null 2>&1; then
7116 ac_executable_p="test -x"
7118 ac_executable_p="test -f"
7122 # Extract the first word of "msgmerge", so it can be a program name with args.
7123 set dummy msgmerge; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_path_MSGMERGE+:} false; then :
7127 $as_echo_n "(cached) " >&6
7131 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7135 for ac_dir in $PATH; do
7137 test -z "$ac_dir" && ac_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7140 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7141 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7142 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7149 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7153 MSGMERGE="$ac_cv_path_MSGMERGE"
7154 if test "$MSGMERGE" != ":"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7156 $as_echo "$MSGMERGE" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7163 test -n "$localedir" || localedir='${datadir}/locale'
7166 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7169 ac_config_commands="$ac_config_commands po-directories"
7173 if test "X$prefix" = "XNONE"; then
7174 acl_final_prefix="$ac_default_prefix"
7176 acl_final_prefix="$prefix"
7178 if test "X$exec_prefix" = "XNONE"; then
7179 acl_final_exec_prefix='${prefix}'
7181 acl_final_exec_prefix="$exec_prefix"
7183 acl_save_prefix="$prefix"
7184 prefix="$acl_final_prefix"
7185 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7186 prefix="$acl_save_prefix"
7188 # Make sure we can run config.sub.
7189 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7190 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7193 $as_echo_n "checking build system type... " >&6; }
7194 if ${ac_cv_build+:} false; then :
7195 $as_echo_n "(cached) " >&6
7197 ac_build_alias=$build_alias
7198 test "x$ac_build_alias" = x &&
7199 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7200 test "x$ac_build_alias" = x &&
7201 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7202 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7207 $as_echo "$ac_cv_build" >&6; }
7208 case $ac_cv_build in
7210 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7213 ac_save_IFS=$IFS; IFS='-'
7219 # Remember, the first character of IFS is used to create $*,
7220 # except with old shells:
7223 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7227 $as_echo_n "checking host system type... " >&6; }
7228 if ${ac_cv_host+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 if test "x$host_alias" = x; then
7232 ac_cv_host=$ac_cv_build
7234 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7240 $as_echo "$ac_cv_host" >&6; }
7243 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7246 ac_save_IFS=$IFS; IFS='-'
7252 # Remember, the first character of IFS is used to create $*,
7253 # except with old shells:
7256 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7261 # Check whether --with-gnu-ld was given.
7262 if test "${with_gnu_ld+set}" = set; then :
7263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7268 # Prepare PATH_SEPARATOR.
7269 # The user is always right.
7270 if test "${PATH_SEPARATOR+set}" != set; then
7271 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7272 # contains only /bin. Note that ksh looks also at the FPATH variable,
7273 # so we have to set that as well for the test.
7275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7276 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7277 || PATH_SEPARATOR=';'
7282 if test "$GCC" = yes; then
7283 # Check if gcc -print-prog-name=ld gives a path.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285 $as_echo_n "checking for ld used by $CC... " >&6; }
7288 # gcc leaves a trailing carriage return which upsets mingw
7289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7294 # Accept absolute paths.
7296 re_direlt='/[^/][^/]*/\.\./'
7297 # Canonicalize the pathname of ld
7298 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7299 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7300 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7302 test -z "$LD" && LD="$ac_prog"
7305 # If it fails, then pretend we aren't using GCC.
7309 # If it is relative, then search for the first ld in PATH.
7313 elif test "$with_gnu_ld" = yes; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315 $as_echo_n "checking for GNU ld... " >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318 $as_echo_n "checking for non-GNU ld... " >&6; }
7320 if ${acl_cv_path_LD+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -z "$LD"; then
7324 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7325 for ac_dir in $PATH; do
7327 test -z "$ac_dir" && ac_dir=.
7328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7329 acl_cv_path_LD="$ac_dir/$ac_prog"
7330 # Check to see if the program is GNU ld. I'd rather use --version,
7331 # but apparently some variants of GNU ld only accept -v.
7332 # Break only if it was the GNU/non-GNU ld that we prefer.
7333 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7334 *GNU* | *'with BFD'*)
7335 test "$with_gnu_ld" != no && break
7338 test "$with_gnu_ld" != yes && break
7345 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7349 LD="$acl_cv_path_LD"
7350 if test -n "$LD"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352 $as_echo "$LD" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360 if ${acl_cv_prog_gnu_ld+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364 case `$LD -v 2>&1 </dev/null` in
7365 *GNU* | *'with BFD'*)
7366 acl_cv_prog_gnu_ld=yes
7369 acl_cv_prog_gnu_ld=no
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7374 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7375 with_gnu_ld=$acl_cv_prog_gnu_ld
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7381 $as_echo_n "checking for shared library run path origin... " >&6; }
7382 if ${acl_cv_rpath+:} false; then :
7383 $as_echo_n "(cached) " >&6
7386 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7387 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7394 $as_echo "$acl_cv_rpath" >&6; }
7396 acl_libext="$acl_cv_libext"
7397 acl_shlibext="$acl_cv_shlibext"
7398 acl_libname_spec="$acl_cv_libname_spec"
7399 acl_library_names_spec="$acl_cv_library_names_spec"
7400 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7401 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7402 acl_hardcode_direct="$acl_cv_hardcode_direct"
7403 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7404 # Check whether --enable-rpath was given.
7405 if test "${enable_rpath+set}" = set; then :
7406 enableval=$enable_rpath; :
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7419 $as_echo_n "checking for 64-bit host... " >&6; }
7420 if ${gl_cv_solaris_64bit+:} false; then :
7421 $as_echo_n "(cached) " >&6
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7433 gl_cv_solaris_64bit=yes
7435 gl_cv_solaris_64bit=no
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7442 $as_echo "$gl_cv_solaris_64bit" >&6; }
7443 if test $gl_cv_solaris_64bit = yes; then
7444 acl_libdirstem=lib/64
7446 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7447 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7452 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7453 if test -n "$searchpath"; then
7454 acl_save_IFS="${IFS= }"; IFS=":"
7455 for searchdir in $searchpath; do
7456 if test -d "$searchdir"; then
7457 case "$searchdir" in
7458 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7460 # Better ignore directories of this form. They are misleading.
7462 *) searchdir=`cd "$searchdir" && pwd`
7463 case "$searchdir" in
7464 */lib64 ) acl_libdirstem=lib64 ;;
7473 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7488 acl_save_prefix="$prefix"
7489 prefix="$acl_final_prefix"
7490 acl_save_exec_prefix="$exec_prefix"
7491 exec_prefix="$acl_final_exec_prefix"
7493 eval additional_includedir=\"$includedir\"
7494 eval additional_libdir=\"$libdir\"
7496 exec_prefix="$acl_save_exec_prefix"
7497 prefix="$acl_save_prefix"
7500 # Check whether --with-libiconv-prefix was given.
7501 if test "${with_libiconv_prefix+set}" = set; then :
7502 withval=$with_libiconv_prefix;
7503 if test "X$withval" = "Xno"; then
7506 if test "X$withval" = "X"; then
7508 acl_save_prefix="$prefix"
7509 prefix="$acl_final_prefix"
7510 acl_save_exec_prefix="$exec_prefix"
7511 exec_prefix="$acl_final_exec_prefix"
7513 eval additional_includedir=\"$includedir\"
7514 eval additional_libdir=\"$libdir\"
7516 exec_prefix="$acl_save_exec_prefix"
7517 prefix="$acl_save_prefix"
7520 additional_includedir="$withval/include"
7521 additional_libdir="$withval/$acl_libdirstem"
7522 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7523 && ! test -d "$withval/$acl_libdirstem"; then
7524 additional_libdir="$withval/$acl_libdirstem2"
7538 names_already_handled=
7539 names_next_round='iconv '
7540 while test -n "$names_next_round"; do
7541 names_this_round="$names_next_round"
7543 for name in $names_this_round; do
7545 for n in $names_already_handled; do
7546 if test "$n" = "$name"; then
7551 if test -z "$already_handled"; then
7552 names_already_handled="$names_already_handled $name"
7553 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7554 eval value=\"\$HAVE_LIB$uppername\"
7555 if test -n "$value"; then
7556 if test "$value" = yes; then
7557 eval value=\"\$LIB$uppername\"
7558 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7559 eval value=\"\$LTLIB$uppername\"
7560 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7569 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7570 if test -n "$acl_shlibext"; then
7571 shrext=".$acl_shlibext" # typically: shrext=.so
7575 if test $use_additional = yes; then
7576 dir="$additional_libdir"
7577 if test -n "$acl_shlibext"; then
7578 if test -f "$dir/$libname$shrext"; then
7580 found_so="$dir/$libname$shrext"
7582 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7583 ver=`(cd "$dir" && \
7584 for f in "$libname$shrext".*; do echo "$f"; done \
7585 | sed -e "s,^$libname$shrext\\\\.,," \
7586 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7587 | sed 1q ) 2>/dev/null`
7588 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7590 found_so="$dir/$libname$shrext.$ver"
7593 eval library_names=\"$acl_library_names_spec\"
7594 for f in $library_names; do
7595 if test -f "$dir/$f"; then
7604 if test "X$found_dir" = "X"; then
7605 if test -f "$dir/$libname.$acl_libext"; then
7607 found_a="$dir/$libname.$acl_libext"
7610 if test "X$found_dir" != "X"; then
7611 if test -f "$dir/$libname.la"; then
7612 found_la="$dir/$libname.la"
7616 if test "X$found_dir" = "X"; then
7617 for x in $LDFLAGS $LTLIBICONV; do
7619 acl_save_prefix="$prefix"
7620 prefix="$acl_final_prefix"
7621 acl_save_exec_prefix="$exec_prefix"
7622 exec_prefix="$acl_final_exec_prefix"
7624 exec_prefix="$acl_save_exec_prefix"
7625 prefix="$acl_save_prefix"
7629 dir=`echo "X$x" | sed -e 's/^X-L//'`
7630 if test -n "$acl_shlibext"; then
7631 if test -f "$dir/$libname$shrext"; then
7633 found_so="$dir/$libname$shrext"
7635 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7636 ver=`(cd "$dir" && \
7637 for f in "$libname$shrext".*; do echo "$f"; done \
7638 | sed -e "s,^$libname$shrext\\\\.,," \
7639 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7640 | sed 1q ) 2>/dev/null`
7641 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7643 found_so="$dir/$libname$shrext.$ver"
7646 eval library_names=\"$acl_library_names_spec\"
7647 for f in $library_names; do
7648 if test -f "$dir/$f"; then
7657 if test "X$found_dir" = "X"; then
7658 if test -f "$dir/$libname.$acl_libext"; then
7660 found_a="$dir/$libname.$acl_libext"
7663 if test "X$found_dir" != "X"; then
7664 if test -f "$dir/$libname.la"; then
7665 found_la="$dir/$libname.la"
7670 if test "X$found_dir" != "X"; then
7675 if test "X$found_dir" != "X"; then
7676 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7677 if test "X$found_so" != "X"; then
7678 if test "$enable_rpath" = no \
7679 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7680 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7681 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7684 for x in $ltrpathdirs; do
7685 if test "X$x" = "X$found_dir"; then
7690 if test -z "$haveit"; then
7691 ltrpathdirs="$ltrpathdirs $found_dir"
7693 if test "$acl_hardcode_direct" = yes; then
7694 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7696 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7699 for x in $rpathdirs; do
7700 if test "X$x" = "X$found_dir"; then
7705 if test -z "$haveit"; then
7706 rpathdirs="$rpathdirs $found_dir"
7710 for x in $LDFLAGS $LIBICONV; do
7712 acl_save_prefix="$prefix"
7713 prefix="$acl_final_prefix"
7714 acl_save_exec_prefix="$exec_prefix"
7715 exec_prefix="$acl_final_exec_prefix"
7717 exec_prefix="$acl_save_exec_prefix"
7718 prefix="$acl_save_prefix"
7720 if test "X$x" = "X-L$found_dir"; then
7725 if test -z "$haveit"; then
7726 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7728 if test "$acl_hardcode_minus_L" != no; then
7729 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7731 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7737 if test "X$found_a" != "X"; then
7738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7740 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7743 additional_includedir=
7744 case "$found_dir" in
7745 */$acl_libdirstem | */$acl_libdirstem/)
7746 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7747 if test "$name" = 'iconv'; then
7748 LIBICONV_PREFIX="$basedir"
7750 additional_includedir="$basedir/include"
7752 */$acl_libdirstem2 | */$acl_libdirstem2/)
7753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7754 if test "$name" = 'iconv'; then
7755 LIBICONV_PREFIX="$basedir"
7757 additional_includedir="$basedir/include"
7760 if test "X$additional_includedir" != "X"; then
7761 if test "X$additional_includedir" != "X/usr/include"; then
7763 if test "X$additional_includedir" = "X/usr/local/include"; then
7764 if test -n "$GCC"; then
7766 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7770 if test -z "$haveit"; then
7771 for x in $CPPFLAGS $INCICONV; do
7773 acl_save_prefix="$prefix"
7774 prefix="$acl_final_prefix"
7775 acl_save_exec_prefix="$exec_prefix"
7776 exec_prefix="$acl_final_exec_prefix"
7778 exec_prefix="$acl_save_exec_prefix"
7779 prefix="$acl_save_prefix"
7781 if test "X$x" = "X-I$additional_includedir"; then
7786 if test -z "$haveit"; then
7787 if test -d "$additional_includedir"; then
7788 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7794 if test -n "$found_la"; then
7795 save_libdir="$libdir"
7797 */* | *\\*) . "$found_la" ;;
7798 *) . "./$found_la" ;;
7800 libdir="$save_libdir"
7801 for dep in $dependency_libs; do
7804 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7805 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7806 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7808 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7809 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7810 if test -n "$GCC"; then
7812 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7816 if test -z "$haveit"; then
7818 for x in $LDFLAGS $LIBICONV; do
7820 acl_save_prefix="$prefix"
7821 prefix="$acl_final_prefix"
7822 acl_save_exec_prefix="$exec_prefix"
7823 exec_prefix="$acl_final_exec_prefix"
7825 exec_prefix="$acl_save_exec_prefix"
7826 prefix="$acl_save_prefix"
7828 if test "X$x" = "X-L$additional_libdir"; then
7833 if test -z "$haveit"; then
7834 if test -d "$additional_libdir"; then
7835 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7839 for x in $LDFLAGS $LTLIBICONV; do
7841 acl_save_prefix="$prefix"
7842 prefix="$acl_final_prefix"
7843 acl_save_exec_prefix="$exec_prefix"
7844 exec_prefix="$acl_final_exec_prefix"
7846 exec_prefix="$acl_save_exec_prefix"
7847 prefix="$acl_save_prefix"
7849 if test "X$x" = "X-L$additional_libdir"; then
7854 if test -z "$haveit"; then
7855 if test -d "$additional_libdir"; then
7856 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7863 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7864 if test "$enable_rpath" != no; then
7866 for x in $rpathdirs; do
7867 if test "X$x" = "X$dir"; then
7872 if test -z "$haveit"; then
7873 rpathdirs="$rpathdirs $dir"
7876 for x in $ltrpathdirs; do
7877 if test "X$x" = "X$dir"; then
7882 if test -z "$haveit"; then
7883 ltrpathdirs="$ltrpathdirs $dir"
7888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7894 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7901 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7908 if test "X$rpathdirs" != "X"; then
7909 if test -n "$acl_hardcode_libdir_separator"; then
7911 for found_dir in $rpathdirs; do
7912 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7914 acl_save_libdir="$libdir"
7916 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7917 libdir="$acl_save_libdir"
7918 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7920 for found_dir in $rpathdirs; do
7921 acl_save_libdir="$libdir"
7923 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7924 libdir="$acl_save_libdir"
7925 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7929 if test "X$ltrpathdirs" != "X"; then
7930 for found_dir in $ltrpathdirs; do
7931 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7966 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7967 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 gt_save_LIBS="$LIBS"
7971 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #include <CoreFoundation/CFPreferences.h>
7978 CFPreferencesCopyAppValue(NULL, NULL)
7983 if ac_fn_c_try_link "$LINENO"; then :
7984 gt_cv_func_CFPreferencesCopyAppValue=yes
7986 gt_cv_func_CFPreferencesCopyAppValue=no
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7990 LIBS="$gt_save_LIBS"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7993 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7994 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7996 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8000 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8001 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8002 $as_echo_n "(cached) " >&6
8004 gt_save_LIBS="$LIBS"
8005 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <CoreFoundation/CFLocale.h>
8012 CFLocaleCopyCurrent();
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 gt_cv_func_CFLocaleCopyCurrent=yes
8020 gt_cv_func_CFLocaleCopyCurrent=no
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LIBS="$gt_save_LIBS"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8027 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8028 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8030 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8034 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8035 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8047 case " $gt_needs " in
8048 *" need-formatstring-macros "*) gt_api_version=3 ;;
8049 *" need-ngettext "*) gt_api_version=2 ;;
8050 *) gt_api_version=1 ;;
8052 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8053 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8055 if test "$USE_NLS" = "yes"; then
8056 gt_use_preinstalled_gnugettext=no
8059 if test $gt_api_version -ge 3; then
8060 gt_revision_test_code='
8061 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8062 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8064 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8067 gt_revision_test_code=
8069 if test $gt_api_version -ge 2; then
8070 gt_expression_test_code=' + * ngettext ("", "", 0)'
8072 gt_expression_test_code=
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8076 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8077 if eval \${$gt_func_gnugettext_libc+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8083 #include <libintl.h>
8084 $gt_revision_test_code
8085 extern int _nl_msg_cat_cntr;
8086 extern int *_nl_domain_bindings;
8092 bindtextdomain ("", "");
8093 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 eval "$gt_func_gnugettext_libc=yes"
8102 eval "$gt_func_gnugettext_libc=no"
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8107 eval ac_res=\$$gt_func_gnugettext_libc
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8109 $as_echo "$ac_res" >&6; }
8111 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8117 am_save_CPPFLAGS="$CPPFLAGS"
8119 for element in $INCICONV; do
8121 for x in $CPPFLAGS; do
8123 acl_save_prefix="$prefix"
8124 prefix="$acl_final_prefix"
8125 acl_save_exec_prefix="$exec_prefix"
8126 exec_prefix="$acl_final_exec_prefix"
8128 exec_prefix="$acl_save_exec_prefix"
8129 prefix="$acl_save_prefix"
8131 if test "X$x" = "X$element"; then
8136 if test -z "$haveit"; then
8137 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8143 $as_echo_n "checking for iconv... " >&6; }
8144 if ${am_cv_func_iconv+:} false; then :
8145 $as_echo_n "(cached) " >&6
8148 am_cv_func_iconv="no, consider installing GNU libiconv"
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8159 iconv_t cd = iconv_open("","");
8160 iconv(cd,NULL,NULL,NULL,NULL);
8166 if ac_fn_c_try_link "$LINENO"; then :
8167 am_cv_func_iconv=yes
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 if test "$am_cv_func_iconv" != yes; then
8172 am_save_LIBS="$LIBS"
8173 LIBS="$LIBS $LIBICONV"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8183 iconv_t cd = iconv_open("","");
8184 iconv(cd,NULL,NULL,NULL,NULL);
8190 if ac_fn_c_try_link "$LINENO"; then :
8192 am_cv_func_iconv=yes
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 LIBS="$am_save_LIBS"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8201 $as_echo "$am_cv_func_iconv" >&6; }
8202 if test "$am_cv_func_iconv" = yes; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8204 $as_echo_n "checking for working iconv... " >&6; }
8205 if ${am_cv_func_iconv_works+:} false; then :
8206 $as_echo_n "(cached) " >&6
8209 am_save_LIBS="$LIBS"
8210 if test $am_cv_lib_iconv = yes; then
8211 LIBS="$LIBS $LIBICONV"
8213 am_cv_func_iconv_works=no
8214 for ac_iconv_const in '' 'const'; do
8215 if test "$cross_compiling" = yes; then :
8217 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8218 *) am_cv_func_iconv_works="guessing yes" ;;
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8228 # define ICONV_CONST $ac_iconv_const
8235 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8238 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8239 if (cd_utf8_to_88591 != (iconv_t)(-1))
8241 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8243 ICONV_CONST char *inptr = input;
8244 size_t inbytesleft = strlen (input);
8246 size_t outbytesleft = sizeof (buf);
8247 size_t res = iconv (cd_utf8_to_88591,
8248 &inptr, &inbytesleft,
8249 &outptr, &outbytesleft);
8252 iconv_close (cd_utf8_to_88591);
8255 /* Test against Solaris 10 bug: Failures are not distinguishable from
8256 successful returns. */
8258 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8259 if (cd_ascii_to_88591 != (iconv_t)(-1))
8261 static ICONV_CONST char input[] = "\263";
8263 ICONV_CONST char *inptr = input;
8264 size_t inbytesleft = strlen (input);
8266 size_t outbytesleft = sizeof (buf);
8267 size_t res = iconv (cd_ascii_to_88591,
8268 &inptr, &inbytesleft,
8269 &outptr, &outbytesleft);
8272 iconv_close (cd_ascii_to_88591);
8275 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8277 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8278 if (cd_88591_to_utf8 != (iconv_t)(-1))
8280 static ICONV_CONST char input[] = "\304";
8281 static char buf[2] = { (char)0xDE, (char)0xAD };
8282 ICONV_CONST char *inptr = input;
8283 size_t inbytesleft = 1;
8285 size_t outbytesleft = 1;
8286 size_t res = iconv (cd_88591_to_utf8,
8287 &inptr, &inbytesleft,
8288 &outptr, &outbytesleft);
8289 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8291 iconv_close (cd_88591_to_utf8);
8294 #if 0 /* This bug could be worked around by the caller. */
8295 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8297 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8298 if (cd_88591_to_utf8 != (iconv_t)(-1))
8300 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8302 ICONV_CONST char *inptr = input;
8303 size_t inbytesleft = strlen (input);
8305 size_t outbytesleft = sizeof (buf);
8306 size_t res = iconv (cd_88591_to_utf8,
8307 &inptr, &inbytesleft,
8308 &outptr, &outbytesleft);
8311 iconv_close (cd_88591_to_utf8);
8315 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8317 if (/* Try standardized names. */
8318 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8319 /* Try IRIX, OSF/1 names. */
8320 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8321 /* Try AIX names. */
8322 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8323 /* Try HP-UX names. */
8324 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8332 if ac_fn_c_try_run "$LINENO"; then :
8333 am_cv_func_iconv_works=yes
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8336 conftest.$ac_objext conftest.beam conftest.$ac_ext
8339 test "$am_cv_func_iconv_works" = no || break
8341 LIBS="$am_save_LIBS"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8345 $as_echo "$am_cv_func_iconv_works" >&6; }
8346 case "$am_cv_func_iconv_works" in
8347 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8348 *) am_func_iconv=yes ;;
8351 am_func_iconv=no am_cv_lib_iconv=no
8353 if test "$am_func_iconv" = yes; then
8355 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8358 if test "$am_cv_lib_iconv" = yes; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8360 $as_echo_n "checking how to link with libiconv... " >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8362 $as_echo "$LIBICONV" >&6; }
8364 CPPFLAGS="$am_save_CPPFLAGS"
8381 acl_save_prefix="$prefix"
8382 prefix="$acl_final_prefix"
8383 acl_save_exec_prefix="$exec_prefix"
8384 exec_prefix="$acl_final_exec_prefix"
8386 eval additional_includedir=\"$includedir\"
8387 eval additional_libdir=\"$libdir\"
8389 exec_prefix="$acl_save_exec_prefix"
8390 prefix="$acl_save_prefix"
8393 # Check whether --with-libintl-prefix was given.
8394 if test "${with_libintl_prefix+set}" = set; then :
8395 withval=$with_libintl_prefix;
8396 if test "X$withval" = "Xno"; then
8399 if test "X$withval" = "X"; then
8401 acl_save_prefix="$prefix"
8402 prefix="$acl_final_prefix"
8403 acl_save_exec_prefix="$exec_prefix"
8404 exec_prefix="$acl_final_exec_prefix"
8406 eval additional_includedir=\"$includedir\"
8407 eval additional_libdir=\"$libdir\"
8409 exec_prefix="$acl_save_exec_prefix"
8410 prefix="$acl_save_prefix"
8413 additional_includedir="$withval/include"
8414 additional_libdir="$withval/$acl_libdirstem"
8415 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8416 && ! test -d "$withval/$acl_libdirstem"; then
8417 additional_libdir="$withval/$acl_libdirstem2"
8431 names_already_handled=
8432 names_next_round='intl '
8433 while test -n "$names_next_round"; do
8434 names_this_round="$names_next_round"
8436 for name in $names_this_round; do
8438 for n in $names_already_handled; do
8439 if test "$n" = "$name"; then
8444 if test -z "$already_handled"; then
8445 names_already_handled="$names_already_handled $name"
8446 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8447 eval value=\"\$HAVE_LIB$uppername\"
8448 if test -n "$value"; then
8449 if test "$value" = yes; then
8450 eval value=\"\$LIB$uppername\"
8451 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8452 eval value=\"\$LTLIB$uppername\"
8453 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8462 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8463 if test -n "$acl_shlibext"; then
8464 shrext=".$acl_shlibext" # typically: shrext=.so
8468 if test $use_additional = yes; then
8469 dir="$additional_libdir"
8470 if test -n "$acl_shlibext"; then
8471 if test -f "$dir/$libname$shrext"; then
8473 found_so="$dir/$libname$shrext"
8475 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8476 ver=`(cd "$dir" && \
8477 for f in "$libname$shrext".*; do echo "$f"; done \
8478 | sed -e "s,^$libname$shrext\\\\.,," \
8479 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8480 | sed 1q ) 2>/dev/null`
8481 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8483 found_so="$dir/$libname$shrext.$ver"
8486 eval library_names=\"$acl_library_names_spec\"
8487 for f in $library_names; do
8488 if test -f "$dir/$f"; then
8497 if test "X$found_dir" = "X"; then
8498 if test -f "$dir/$libname.$acl_libext"; then
8500 found_a="$dir/$libname.$acl_libext"
8503 if test "X$found_dir" != "X"; then
8504 if test -f "$dir/$libname.la"; then
8505 found_la="$dir/$libname.la"
8509 if test "X$found_dir" = "X"; then
8510 for x in $LDFLAGS $LTLIBINTL; do
8512 acl_save_prefix="$prefix"
8513 prefix="$acl_final_prefix"
8514 acl_save_exec_prefix="$exec_prefix"
8515 exec_prefix="$acl_final_exec_prefix"
8517 exec_prefix="$acl_save_exec_prefix"
8518 prefix="$acl_save_prefix"
8522 dir=`echo "X$x" | sed -e 's/^X-L//'`
8523 if test -n "$acl_shlibext"; then
8524 if test -f "$dir/$libname$shrext"; then
8526 found_so="$dir/$libname$shrext"
8528 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8529 ver=`(cd "$dir" && \
8530 for f in "$libname$shrext".*; do echo "$f"; done \
8531 | sed -e "s,^$libname$shrext\\\\.,," \
8532 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8533 | sed 1q ) 2>/dev/null`
8534 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8536 found_so="$dir/$libname$shrext.$ver"
8539 eval library_names=\"$acl_library_names_spec\"
8540 for f in $library_names; do
8541 if test -f "$dir/$f"; then
8550 if test "X$found_dir" = "X"; then
8551 if test -f "$dir/$libname.$acl_libext"; then
8553 found_a="$dir/$libname.$acl_libext"
8556 if test "X$found_dir" != "X"; then
8557 if test -f "$dir/$libname.la"; then
8558 found_la="$dir/$libname.la"
8563 if test "X$found_dir" != "X"; then
8568 if test "X$found_dir" != "X"; then
8569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8570 if test "X$found_so" != "X"; then
8571 if test "$enable_rpath" = no \
8572 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8573 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8574 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8577 for x in $ltrpathdirs; do
8578 if test "X$x" = "X$found_dir"; then
8583 if test -z "$haveit"; then
8584 ltrpathdirs="$ltrpathdirs $found_dir"
8586 if test "$acl_hardcode_direct" = yes; then
8587 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8589 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8590 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8592 for x in $rpathdirs; do
8593 if test "X$x" = "X$found_dir"; then
8598 if test -z "$haveit"; then
8599 rpathdirs="$rpathdirs $found_dir"
8603 for x in $LDFLAGS $LIBINTL; do
8605 acl_save_prefix="$prefix"
8606 prefix="$acl_final_prefix"
8607 acl_save_exec_prefix="$exec_prefix"
8608 exec_prefix="$acl_final_exec_prefix"
8610 exec_prefix="$acl_save_exec_prefix"
8611 prefix="$acl_save_prefix"
8613 if test "X$x" = "X-L$found_dir"; then
8618 if test -z "$haveit"; then
8619 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8621 if test "$acl_hardcode_minus_L" != no; then
8622 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8624 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8630 if test "X$found_a" != "X"; then
8631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8633 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8636 additional_includedir=
8637 case "$found_dir" in
8638 */$acl_libdirstem | */$acl_libdirstem/)
8639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8640 if test "$name" = 'intl'; then
8641 LIBINTL_PREFIX="$basedir"
8643 additional_includedir="$basedir/include"
8645 */$acl_libdirstem2 | */$acl_libdirstem2/)
8646 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8647 if test "$name" = 'intl'; then
8648 LIBINTL_PREFIX="$basedir"
8650 additional_includedir="$basedir/include"
8653 if test "X$additional_includedir" != "X"; then
8654 if test "X$additional_includedir" != "X/usr/include"; then
8656 if test "X$additional_includedir" = "X/usr/local/include"; then
8657 if test -n "$GCC"; then
8659 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8663 if test -z "$haveit"; then
8664 for x in $CPPFLAGS $INCINTL; do
8666 acl_save_prefix="$prefix"
8667 prefix="$acl_final_prefix"
8668 acl_save_exec_prefix="$exec_prefix"
8669 exec_prefix="$acl_final_exec_prefix"
8671 exec_prefix="$acl_save_exec_prefix"
8672 prefix="$acl_save_prefix"
8674 if test "X$x" = "X-I$additional_includedir"; then
8679 if test -z "$haveit"; then
8680 if test -d "$additional_includedir"; then
8681 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8687 if test -n "$found_la"; then
8688 save_libdir="$libdir"
8690 */* | *\\*) . "$found_la" ;;
8691 *) . "./$found_la" ;;
8693 libdir="$save_libdir"
8694 for dep in $dependency_libs; do
8697 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8698 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8699 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8701 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8702 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8703 if test -n "$GCC"; then
8705 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8709 if test -z "$haveit"; then
8711 for x in $LDFLAGS $LIBINTL; do
8713 acl_save_prefix="$prefix"
8714 prefix="$acl_final_prefix"
8715 acl_save_exec_prefix="$exec_prefix"
8716 exec_prefix="$acl_final_exec_prefix"
8718 exec_prefix="$acl_save_exec_prefix"
8719 prefix="$acl_save_prefix"
8721 if test "X$x" = "X-L$additional_libdir"; then
8726 if test -z "$haveit"; then
8727 if test -d "$additional_libdir"; then
8728 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8732 for x in $LDFLAGS $LTLIBINTL; do
8734 acl_save_prefix="$prefix"
8735 prefix="$acl_final_prefix"
8736 acl_save_exec_prefix="$exec_prefix"
8737 exec_prefix="$acl_final_exec_prefix"
8739 exec_prefix="$acl_save_exec_prefix"
8740 prefix="$acl_save_prefix"
8742 if test "X$x" = "X-L$additional_libdir"; then
8747 if test -z "$haveit"; then
8748 if test -d "$additional_libdir"; then
8749 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8756 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8757 if test "$enable_rpath" != no; then
8759 for x in $rpathdirs; do
8760 if test "X$x" = "X$dir"; then
8765 if test -z "$haveit"; then
8766 rpathdirs="$rpathdirs $dir"
8769 for x in $ltrpathdirs; do
8770 if test "X$x" = "X$dir"; then
8775 if test -z "$haveit"; then
8776 ltrpathdirs="$ltrpathdirs $dir"
8781 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8784 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8787 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8788 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8794 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8795 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8801 if test "X$rpathdirs" != "X"; then
8802 if test -n "$acl_hardcode_libdir_separator"; then
8804 for found_dir in $rpathdirs; do
8805 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8807 acl_save_libdir="$libdir"
8809 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8810 libdir="$acl_save_libdir"
8811 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8813 for found_dir in $rpathdirs; do
8814 acl_save_libdir="$libdir"
8816 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8817 libdir="$acl_save_libdir"
8818 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8822 if test "X$ltrpathdirs" != "X"; then
8823 for found_dir in $ltrpathdirs; do
8824 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8834 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8835 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 gt_save_CPPFLAGS="$CPPFLAGS"
8839 CPPFLAGS="$CPPFLAGS $INCINTL"
8840 gt_save_LIBS="$LIBS"
8841 LIBS="$LIBS $LIBINTL"
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8845 #include <libintl.h>
8846 $gt_revision_test_code
8847 extern int _nl_msg_cat_cntr;
8852 const char *_nl_expand_alias (const char *);
8858 bindtextdomain ("", "");
8859 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 eval "$gt_func_gnugettext_libintl=yes"
8868 eval "$gt_func_gnugettext_libintl=no"
8870 rm -f core conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8873 LIBS="$LIBS $LIBICONV"
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8877 #include <libintl.h>
8878 $gt_revision_test_code
8879 extern int _nl_msg_cat_cntr;
8884 const char *_nl_expand_alias (const char *);
8890 bindtextdomain ("", "");
8891 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 LIBINTL="$LIBINTL $LIBICONV"
8899 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8900 eval "$gt_func_gnugettext_libintl=yes"
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8906 CPPFLAGS="$gt_save_CPPFLAGS"
8907 LIBS="$gt_save_LIBS"
8909 eval ac_res=\$$gt_func_gnugettext_libintl
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8911 $as_echo "$ac_res" >&6; }
8914 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8915 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8916 && test "$PACKAGE" != gettext-runtime \
8917 && test "$PACKAGE" != gettext-tools; }; then
8918 gt_use_preinstalled_gnugettext=yes
8927 if test -n "$INTL_MACOSX_LIBS"; then
8928 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8929 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8930 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8931 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8935 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8936 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8938 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8946 $as_echo_n "checking whether to use NLS... " >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8948 $as_echo "$USE_NLS" >&6; }
8949 if test "$USE_NLS" = "yes"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8951 $as_echo_n "checking where the gettext function comes from... " >&6; }
8952 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8953 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8954 gt_source="external libintl"
8959 gt_source="included intl directory"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8962 $as_echo "$gt_source" >&6; }
8965 if test "$USE_NLS" = "yes"; then
8967 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8968 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8970 $as_echo_n "checking how to link with libintl... " >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8972 $as_echo "$LIBINTL" >&6; }
8974 for element in $INCINTL; do
8976 for x in $CPPFLAGS; do
8978 acl_save_prefix="$prefix"
8979 prefix="$acl_final_prefix"
8980 acl_save_exec_prefix="$exec_prefix"
8981 exec_prefix="$acl_final_exec_prefix"
8983 exec_prefix="$acl_save_exec_prefix"
8984 prefix="$acl_save_prefix"
8986 if test "X$x" = "X$element"; then
8991 if test -z "$haveit"; then
8992 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8999 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9002 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9019 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_eax" "ac_cv_member_struct_user_regs_struct_orig_eax" "#include <bits/types.h>
9020 #include <sys/user.h>
9022 if test "x$ac_cv_member_struct_user_regs_struct_orig_eax" = xyes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_EAX 1
9030 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "eax" "ac_cv_member_struct_user_regs_struct_eax" "#include <bits/types.h>
9031 #include <sys/user.h>
9033 if test "x$ac_cv_member_struct_user_regs_struct_eax" = xyes; then :
9035 cat >>confdefs.h <<_ACEOF
9036 #define HAVE_STRUCT_USER_REGS_STRUCT_EAX 1
9041 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ebx" "ac_cv_member_struct_user_regs_struct_ebx" "#include <bits/types.h>
9042 #include <sys/user.h>
9044 if test "x$ac_cv_member_struct_user_regs_struct_ebx" = xyes; then :
9046 cat >>confdefs.h <<_ACEOF
9047 #define HAVE_STRUCT_USER_REGS_STRUCT_EBX 1
9052 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ecx" "ac_cv_member_struct_user_regs_struct_ecx" "#include <bits/types.h>
9053 #include <sys/user.h>
9055 if test "x$ac_cv_member_struct_user_regs_struct_ecx" = xyes; then :
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_STRUCT_USER_REGS_STRUCT_ECX 1
9063 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "edx" "ac_cv_member_struct_user_regs_struct_edx" "#include <bits/types.h>
9064 #include <sys/user.h>
9066 if test "x$ac_cv_member_struct_user_regs_struct_edx" = xyes; then :
9068 cat >>confdefs.h <<_ACEOF
9069 #define HAVE_STRUCT_USER_REGS_STRUCT_EDX 1
9074 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_rax" "ac_cv_member_struct_user_regs_struct_orig_rax" "#include <bits/types.h>
9075 #include <sys/user.h>
9077 if test "x$ac_cv_member_struct_user_regs_struct_orig_rax" = xyes; then :
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_RAX 1
9085 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rax" "ac_cv_member_struct_user_regs_struct_rax" "#include <bits/types.h>
9086 #include <sys/user.h>
9088 if test "x$ac_cv_member_struct_user_regs_struct_rax" = xyes; then :
9090 cat >>confdefs.h <<_ACEOF
9091 #define HAVE_STRUCT_USER_REGS_STRUCT_RAX 1
9096 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdi" "ac_cv_member_struct_user_regs_struct_rdi" "#include <bits/types.h>
9097 #include <sys/user.h>
9099 if test "x$ac_cv_member_struct_user_regs_struct_rdi" = xyes; then :
9101 cat >>confdefs.h <<_ACEOF
9102 #define HAVE_STRUCT_USER_REGS_STRUCT_RDI 1
9107 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rsi" "ac_cv_member_struct_user_regs_struct_rsi" "#include <bits/types.h>
9108 #include <sys/user.h>
9110 if test "x$ac_cv_member_struct_user_regs_struct_rsi" = xyes; then :
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_STRUCT_USER_REGS_STRUCT_RSI 1
9118 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdx" "ac_cv_member_struct_user_regs_struct_rdx" "#include <bits/types.h>
9119 #include <sys/user.h>
9121 if test "x$ac_cv_member_struct_user_regs_struct_rdx" = xyes; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_STRUCT_USER_REGS_STRUCT_RDX 1
9130 ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_gpr3" "ac_cv_member_struct_pt_regs_orig_gpr3" "#include <linux/ptrace.h>
9132 if test "x$ac_cv_member_struct_pt_regs_orig_gpr3" = xyes; then :
9134 cat >>confdefs.h <<_ACEOF
9135 #define HAVE_STRUCT_PT_REGS_ORIG_GPR3 1
9140 ac_fn_c_check_member "$LINENO" "struct pt_regs" "gpr" "ac_cv_member_struct_pt_regs_gpr" "#include <linux/ptrace.h>
9142 if test "x$ac_cv_member_struct_pt_regs_gpr" = xyes; then :
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_STRUCT_PT_REGS_GPR 1
9151 ac_fn_c_check_member "$LINENO" "struct pt_regs" "uregs" "ac_cv_member_struct_pt_regs_uregs" "#include <asm/ptrace.h>
9153 if test "x$ac_cv_member_struct_pt_regs_uregs" = xyes; then :
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_STRUCT_PT_REGS_UREGS 1
9162 ac_fn_c_check_member "$LINENO" "struct pt_regs" "regs" "ac_cv_member_struct_pt_regs_regs" "#include <asm/ptrace.h>
9164 if test "x$ac_cv_member_struct_pt_regs_regs" = xyes; then :
9166 cat >>confdefs.h <<_ACEOF
9167 #define HAVE_STRUCT_PT_REGS_REGS 1
9172 ac_fn_c_check_member "$LINENO" "struct pt_regs" "cp0_status" "ac_cv_member_struct_pt_regs_cp0_status" "#include <asm/ptrace.h>
9174 if test "x$ac_cv_member_struct_pt_regs_cp0_status" = xyes; then :
9176 cat >>confdefs.h <<_ACEOF
9177 #define HAVE_STRUCT_PT_REGS_CP0_STATUS 1
9183 ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_d0" "ac_cv_member_struct_pt_regs_orig_d0" "#include <asm/ptrace.h>
9185 if test "x$ac_cv_member_struct_pt_regs_orig_d0" = xyes; then :
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_STRUCT_PT_REGS_ORIG_D0 1
9193 ac_fn_c_check_member "$LINENO" "struct pt_regs" "d0" "ac_cv_member_struct_pt_regs_d0" "#include <asm/ptrace.h>
9195 if test "x$ac_cv_member_struct_pt_regs_d0" = xyes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_STRUCT_PT_REGS_D0 1
9213 if test $want_fuser = yes; then
9215 WANT_FUSER_FALSE='#'
9222 if test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
9223 test $ac_cv_member_struct_user_regs_struct_eax = yes &&
9224 test $ac_cv_member_struct_user_regs_struct_ebx = yes &&
9225 test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
9226 test $ac_cv_member_struct_user_regs_struct_edx = yes ; then
9227 WANT_PEEKFD_I386_TRUE=
9228 WANT_PEEKFD_I386_FALSE='#'
9230 WANT_PEEKFD_I386_TRUE='#'
9231 WANT_PEEKFD_I386_FALSE=
9234 if test $ac_cv_member_struct_user_regs_struct_orig_rax = yes &&
9235 test $ac_cv_member_struct_user_regs_struct_rax = yes &&
9236 test $ac_cv_member_struct_user_regs_struct_rdi = yes &&
9237 test $ac_cv_member_struct_user_regs_struct_rsi = yes &&
9238 test $ac_cv_member_struct_user_regs_struct_rdx = yes ; then
9239 WANT_PEEKFD_X86_64_TRUE=
9240 WANT_PEEKFD_X86_64_FALSE='#'
9242 WANT_PEEKFD_X86_64_TRUE='#'
9243 WANT_PEEKFD_X86_64_FALSE=
9246 if test $ac_cv_member_struct_pt_regs_orig_gpr3 = yes &&
9247 test $ac_cv_member_struct_pt_regs_gpr = yes ; then
9248 WANT_PEEKFD_PPC_TRUE=
9249 WANT_PEEKFD_PPC_FALSE='#'
9251 WANT_PEEKFD_PPC_TRUE='#'
9252 WANT_PEEKFD_PPC_FALSE=
9255 if test $ac_cv_member_struct_pt_regs_uregs = yes; then
9256 WANT_PEEKFD_ARM_TRUE=
9257 WANT_PEEKFD_ARM_FALSE='#'
9259 WANT_PEEKFD_ARM_TRUE='#'
9260 WANT_PEEKFD_ARM_FALSE=
9263 if test $build_cpu = mipsel &&
9264 test $ac_cv_member_struct_pt_regs_regs = yes &&
9265 test $ac_cv_member_struct_pt_regs_cp0_status = yes; then
9266 WANT_PEEKFD_MIPS_TRUE=
9267 WANT_PEEKFD_MIPS_FALSE='#'
9269 WANT_PEEKFD_MIPS_TRUE='#'
9270 WANT_PEEKFD_MIPS_FALSE=
9273 if test $ac_cv_member_struct_pt_regs_orig_d0 = yes &&
9274 test $ac_cv_member_struct_pt_regs_d0 = yes; then
9275 WANT_PEEKFD_M68K_TRUE=
9276 WANT_PEEKFD_M68K_FALSE='#'
9278 WANT_PEEKFD_M68K_TRUE='#'
9279 WANT_PEEKFD_M68K_FALSE=
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9284 $as_echo_n "checking whether closedir returns void... " >&6; }
9285 if ${ac_cv_func_closedir_void+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 if test "$cross_compiling" = yes; then :
9289 ac_cv_func_closedir_void=yes
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 #include <$ac_header_dirent>
9302 return closedir (opendir (".")) != 0;
9307 if ac_fn_c_try_run "$LINENO"; then :
9308 ac_cv_func_closedir_void=no
9310 ac_cv_func_closedir_void=yes
9312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9313 conftest.$ac_objext conftest.beam conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9318 $as_echo "$ac_cv_func_closedir_void" >&6; }
9319 if test $ac_cv_func_closedir_void = yes; then
9321 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9325 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9326 # -lseq on Dynix/PTX, -lgen on Unixware.
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9328 $as_echo_n "checking for library containing getmntent... " >&6; }
9329 if ${ac_cv_search_getmntent+:} false; then :
9330 $as_echo_n "(cached) " >&6
9332 ac_func_search_save_LIBS=$LIBS
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9336 /* Override any GCC internal prototype to avoid an error.
9337 Use char because int might match the return type of a GCC
9338 builtin and then its argument prototype would still apply. */
9346 return getmntent ();
9351 for ac_lib in '' sun seq gen; do
9352 if test -z "$ac_lib"; then
9353 ac_res="none required"
9356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9358 if ac_fn_c_try_link "$LINENO"; then :
9359 ac_cv_search_getmntent=$ac_res
9361 rm -f core conftest.err conftest.$ac_objext \
9363 if ${ac_cv_search_getmntent+:} false; then :
9367 if ${ac_cv_search_getmntent+:} false; then :
9370 ac_cv_search_getmntent=no
9373 LIBS=$ac_func_search_save_LIBS
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9376 $as_echo "$ac_cv_search_getmntent" >&6; }
9377 ac_res=$ac_cv_search_getmntent
9378 if test "$ac_res" != no; then :
9379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9380 ac_cv_func_getmntent=yes
9382 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9385 ac_cv_func_getmntent=no
9389 if test $ac_cv_c_compiler_gnu = yes; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9391 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
9392 if ${ac_cv_prog_gcc_traditional+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 ac_pattern="Autoconf.*'x'"
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9402 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9403 ac_cv_prog_gcc_traditional=yes
9405 ac_cv_prog_gcc_traditional=no
9410 if test $ac_cv_prog_gcc_traditional = no; then
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9418 ac_cv_prog_gcc_traditional=yes
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
9425 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
9426 if test $ac_cv_prog_gcc_traditional = yes; then
9427 CC="$CC -traditional"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9432 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9433 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9434 $as_echo_n "(cached) " >&6
9436 rm -f conftest.sym conftest.file
9438 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_lstat_dereferences_slashed_symlink=no
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 $ac_includes_default
9449 /* Linux will dereference the symlink and fail, as required by POSIX.
9450 That is better in the sense that it means we will not
9451 have to compile and use the lstat wrapper. */
9452 return lstat ("conftest.sym/", &sbuf) == 0;
9457 if ac_fn_c_try_run "$LINENO"; then :
9458 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9460 ac_cv_func_lstat_dereferences_slashed_symlink=no
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9463 conftest.$ac_objext conftest.beam conftest.$ac_ext
9467 # If the `ln -s' command failed, then we probably don't even
9468 # have an lstat function.
9469 ac_cv_func_lstat_dereferences_slashed_symlink=no
9471 rm -f conftest.sym conftest.file
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9475 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9477 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9479 cat >>confdefs.h <<_ACEOF
9480 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9484 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
9485 case " $LIBOBJS " in
9486 *" lstat.$ac_objext "* ) ;;
9487 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
9494 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9495 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
9496 $as_echo_n "(cached) " >&6
9498 if test "$cross_compiling" = yes; then :
9499 ac_cv_func_lstat_empty_string_bug=yes
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 $ac_includes_default
9508 return lstat ("", &sbuf) == 0;
9513 if ac_fn_c_try_run "$LINENO"; then :
9514 ac_cv_func_lstat_empty_string_bug=no
9516 ac_cv_func_lstat_empty_string_bug=yes
9518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9519 conftest.$ac_objext conftest.beam conftest.$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
9524 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9525 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9526 case " $LIBOBJS " in
9527 *" lstat.$ac_objext "* ) ;;
9528 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9533 cat >>confdefs.h <<_ACEOF
9534 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9540 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9541 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9542 $as_echo_n "(cached) " >&6
9544 rm -f conftest.sym conftest.file
9546 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9547 if test "$cross_compiling" = yes; then :
9548 ac_cv_func_lstat_dereferences_slashed_symlink=no
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 $ac_includes_default
9557 /* Linux will dereference the symlink and fail, as required by POSIX.
9558 That is better in the sense that it means we will not
9559 have to compile and use the lstat wrapper. */
9560 return lstat ("conftest.sym/", &sbuf) == 0;
9565 if ac_fn_c_try_run "$LINENO"; then :
9566 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9568 ac_cv_func_lstat_dereferences_slashed_symlink=no
9570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9571 conftest.$ac_objext conftest.beam conftest.$ac_ext
9575 # If the `ln -s' command failed, then we probably don't even
9576 # have an lstat function.
9577 ac_cv_func_lstat_dereferences_slashed_symlink=no
9579 rm -f conftest.sym conftest.file
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9583 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9585 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9587 cat >>confdefs.h <<_ACEOF
9588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9592 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
9593 case " $LIBOBJS " in
9594 *" lstat.$ac_objext "* ) ;;
9595 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9601 for ac_header in stdlib.h
9603 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9604 if test "x$ac_cv_header_stdlib_h" = xyes; then :
9605 cat >>confdefs.h <<_ACEOF
9606 #define HAVE_STDLIB_H 1
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9614 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9615 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
9616 $as_echo_n "(cached) " >&6
9618 if test "$cross_compiling" = yes; then :
9619 ac_cv_func_malloc_0_nonnull=no
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9624 # include <stdlib.h>
9632 return ! malloc (0);
9637 if ac_fn_c_try_run "$LINENO"; then :
9638 ac_cv_func_malloc_0_nonnull=yes
9640 ac_cv_func_malloc_0_nonnull=no
9642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9643 conftest.$ac_objext conftest.beam conftest.$ac_ext
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9648 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9649 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9651 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
9654 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
9656 case " $LIBOBJS " in
9657 *" malloc.$ac_objext "* ) ;;
9658 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9663 $as_echo "#define malloc rpl_malloc" >>confdefs.h
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
9669 $as_echo_n "checking for working memcmp... " >&6; }
9670 if ${ac_cv_func_memcmp_working+:} false; then :
9671 $as_echo_n "(cached) " >&6
9673 if test "$cross_compiling" = yes; then :
9674 ac_cv_func_memcmp_working=no
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 $ac_includes_default
9683 /* Some versions of memcmp are not 8-bit clean. */
9684 char c0 = '\100', c1 = '\200', c2 = '\201';
9685 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9688 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9689 or more and with at least one buffer not starting on a 4-byte boundary.
9690 William Lewis provided this test program. */
9695 for (i = 0; i < 4; i++)
9699 strcpy (a, "--------01111111");
9700 strcpy (b, "--------10000000");
9701 if (memcmp (a, b, 16) >= 0)
9711 if ac_fn_c_try_run "$LINENO"; then :
9712 ac_cv_func_memcmp_working=yes
9714 ac_cv_func_memcmp_working=no
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9717 conftest.$ac_objext conftest.beam conftest.$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
9722 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9723 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9724 *" memcmp.$ac_objext "* ) ;;
9725 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9730 for ac_header in stdlib.h
9732 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9733 if test "x$ac_cv_header_stdlib_h" = xyes; then :
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_STDLIB_H 1
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
9743 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
9744 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
9745 $as_echo_n "(cached) " >&6
9747 if test "$cross_compiling" = yes; then :
9748 ac_cv_func_realloc_0_nonnull=no
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9753 # include <stdlib.h>
9761 return ! realloc (0, 0);
9766 if ac_fn_c_try_run "$LINENO"; then :
9767 ac_cv_func_realloc_0_nonnull=yes
9769 ac_cv_func_realloc_0_nonnull=no
9771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9772 conftest.$ac_objext conftest.beam conftest.$ac_ext
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
9777 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
9778 if test $ac_cv_func_realloc_0_nonnull = yes; then :
9780 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
9783 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
9785 case " $LIBOBJS " in
9786 *" realloc.$ac_objext "* ) ;;
9787 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
9792 $as_echo "#define realloc rpl_realloc" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
9798 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
9799 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 if test "$cross_compiling" = yes; then :
9803 ac_cv_func_stat_empty_string_bug=yes
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 $ac_includes_default
9812 return stat ("", &sbuf) == 0;
9817 if ac_fn_c_try_run "$LINENO"; then :
9818 ac_cv_func_stat_empty_string_bug=no
9820 ac_cv_func_stat_empty_string_bug=yes
9822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9823 conftest.$ac_objext conftest.beam conftest.$ac_ext
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
9828 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
9829 if test $ac_cv_func_stat_empty_string_bug = yes; then
9830 case " $LIBOBJS " in
9831 *" stat.$ac_objext "* ) ;;
9832 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
9837 cat >>confdefs.h <<_ACEOF
9838 #define HAVE_STAT_EMPTY_STRING_BUG 1
9843 for ac_func in atexit getmntent memset nl_langinfo rawmemchr regcomp rpmatch setlocale socket strcasecmp strchr strdup strerror strpbrk strrchr strtoul
9845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9847 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9848 cat >>confdefs.h <<_ACEOF
9849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9856 # Check whether --enable-largefile was given.
9857 if test "${enable_largefile+set}" = set; then :
9858 enableval=$enable_largefile;
9861 if test "$enable_largefile" != no; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9864 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9865 if ${ac_cv_sys_largefile_CC+:} false; then :
9866 $as_echo_n "(cached) " >&6
9868 ac_cv_sys_largefile_CC=no
9869 if test "$GCC" != yes; then
9872 # IRIX 6.2 and later do not support large files by default,
9873 # so use the C compiler's -n32 option if that helps.
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #include <sys/types.h>
9877 /* Check that off_t can represent 2**63 - 1 correctly.
9878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9879 since some C++ compilers masquerading as C compilers
9880 incorrectly reject 9223372036854775807. */
9881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9883 && LARGE_OFF_T % 2147483647 == 1)
9893 if ac_fn_c_try_compile "$LINENO"; then :
9896 rm -f core conftest.err conftest.$ac_objext
9898 if ac_fn_c_try_compile "$LINENO"; then :
9899 ac_cv_sys_largefile_CC=' -n32'; break
9901 rm -f core conftest.err conftest.$ac_objext
9905 rm -f conftest.$ac_ext
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9909 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9910 if test "$ac_cv_sys_largefile_CC" != no; then
9911 CC=$CC$ac_cv_sys_largefile_CC
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9915 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9916 if ${ac_cv_sys_file_offset_bits+:} false; then :
9917 $as_echo_n "(cached) " >&6
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <sys/types.h>
9923 /* Check that off_t can represent 2**63 - 1 correctly.
9924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9925 since some C++ compilers masquerading as C compilers
9926 incorrectly reject 9223372036854775807. */
9927 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9929 && LARGE_OFF_T % 2147483647 == 1)
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 ac_cv_sys_file_offset_bits=no; break
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #define _FILE_OFFSET_BITS 64
9946 #include <sys/types.h>
9947 /* Check that off_t can represent 2**63 - 1 correctly.
9948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9949 since some C++ compilers masquerading as C compilers
9950 incorrectly reject 9223372036854775807. */
9951 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9953 && LARGE_OFF_T % 2147483647 == 1)
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964 ac_cv_sys_file_offset_bits=64; break
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 ac_cv_sys_file_offset_bits=unknown
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9972 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9973 case $ac_cv_sys_file_offset_bits in #(
9976 cat >>confdefs.h <<_ACEOF
9977 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9982 if test $ac_cv_sys_file_offset_bits = unknown; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9984 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9985 if ${ac_cv_sys_large_files+:} false; then :
9986 $as_echo_n "(cached) " >&6
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 #include <sys/types.h>
9992 /* Check that off_t can represent 2**63 - 1 correctly.
9993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9994 since some C++ compilers masquerading as C compilers
9995 incorrectly reject 9223372036854775807. */
9996 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9998 && LARGE_OFF_T % 2147483647 == 1)
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 ac_cv_sys_large_files=no; break
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 #define _LARGE_FILES 1
10015 #include <sys/types.h>
10016 /* Check that off_t can represent 2**63 - 1 correctly.
10017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10018 since some C++ compilers masquerading as C compilers
10019 incorrectly reject 9223372036854775807. */
10020 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
10021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10022 && LARGE_OFF_T % 2147483647 == 1)
10032 if ac_fn_c_try_compile "$LINENO"; then :
10033 ac_cv_sys_large_files=1; break
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 ac_cv_sys_large_files=unknown
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10041 $as_echo "$ac_cv_sys_large_files" >&6; }
10042 case $ac_cv_sys_large_files in #(
10045 cat >>confdefs.h <<_ACEOF
10046 #define _LARGE_FILES $ac_cv_sys_large_files
10057 if test x"$DEJAGNU" = x
10059 DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
10063 ac_config_files="$ac_config_files Makefile doc/Makefile icons/Makefile po/Makefile.in testsuite/Makefile"
10065 cat >confcache <<\_ACEOF
10066 # This file is a shell script that caches the results of configure
10067 # tests run on this system so they can be shared between configure
10068 # scripts and configure runs, see configure's option --config-cache.
10069 # It is not useful on other systems. If it contains results you don't
10070 # want to keep, you may remove or edit it.
10072 # config.status only pays attention to the cache file if you give it
10073 # the --recheck option to rerun configure.
10075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10077 # following values.
10081 # The following way of writing the cache mishandles newlines in values,
10082 # but we know of no workaround that is simple, portable, and efficient.
10083 # So, we kill variables containing newlines.
10084 # Ultrix sh set writes to stderr and can't be redirected directly,
10085 # and sets the high bit in the cache file unless we assign to the vars.
10087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10088 eval ac_val=\$$ac_var
10092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10096 _ | IFS | as_nl) ;; #(
10097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10098 *) { eval $ac_var=; unset $ac_var;} ;;
10104 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10105 *${as_nl}ac_space=\ *)
10106 # `set' does not quote correctly, so add quotes: double-quote
10107 # substitution turns \\\\ into \\, and sed turns \\ into \.
10110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10113 # `set' quotes correctly as required by POSIX, so do not add quotes.
10114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10123 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10125 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10127 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10128 if test -w "$cache_file"; then
10129 if test "x$cache_file" != "x/dev/null"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10131 $as_echo "$as_me: updating cache $cache_file" >&6;}
10132 if test ! -f "$cache_file" || test -h "$cache_file"; then
10133 cat confcache >"$cache_file"
10135 case $cache_file in #(
10137 mv -f confcache "$cache_file"$$ &&
10138 mv -f "$cache_file"$$ "$cache_file" ;; #(
10140 mv -f confcache "$cache_file" ;;
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10152 # Let make expand exec_prefix.
10153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10155 DEFS=-DHAVE_CONFIG_H
10160 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10161 # 1. Remove the extension, and $U if already installed.
10162 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10163 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10164 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10165 # will be set to the directory where LIBOBJS objects are built.
10166 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10167 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10169 LIBOBJS=$ac_libobjs
10171 LTLIBOBJS=$ac_ltlibobjs
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10175 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10176 if test -n "$am_sleep_pid"; then
10177 # Hide warnings about reused PIDs.
10178 wait $am_sleep_pid 2>/dev/null
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10181 $as_echo "done" >&6; }
10182 if test -n "$EXEEXT"; then
10184 am__EXEEXT_FALSE='#'
10186 am__EXEEXT_TRUE='#'
10190 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10191 as_fn_error $? "conditional \"AMDEP\" was never defined.
10192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10194 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10195 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10198 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10199 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10203 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10206 if test -z "${WANT_TIMEOUT_STAT_TRUE}" && test -z "${WANT_TIMEOUT_STAT_FALSE}"; then
10207 as_fn_error $? "conditional \"WANT_TIMEOUT_STAT\" was never defined.
10208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10210 if test -z "${WANT_FUSER_TRUE}" && test -z "${WANT_FUSER_FALSE}"; then
10211 as_fn_error $? "conditional \"WANT_FUSER\" was never defined.
10212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10214 if test -z "${WANT_PEEKFD_I386_TRUE}" && test -z "${WANT_PEEKFD_I386_FALSE}"; then
10215 as_fn_error $? "conditional \"WANT_PEEKFD_I386\" was never defined.
10216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10218 if test -z "${WANT_PEEKFD_X86_64_TRUE}" && test -z "${WANT_PEEKFD_X86_64_FALSE}"; then
10219 as_fn_error $? "conditional \"WANT_PEEKFD_X86_64\" was never defined.
10220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10222 if test -z "${WANT_PEEKFD_PPC_TRUE}" && test -z "${WANT_PEEKFD_PPC_FALSE}"; then
10223 as_fn_error $? "conditional \"WANT_PEEKFD_PPC\" was never defined.
10224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10226 if test -z "${WANT_PEEKFD_ARM_TRUE}" && test -z "${WANT_PEEKFD_ARM_FALSE}"; then
10227 as_fn_error $? "conditional \"WANT_PEEKFD_ARM\" was never defined.
10228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10230 if test -z "${WANT_PEEKFD_MIPS_TRUE}" && test -z "${WANT_PEEKFD_MIPS_FALSE}"; then
10231 as_fn_error $? "conditional \"WANT_PEEKFD_MIPS\" was never defined.
10232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10234 if test -z "${WANT_PEEKFD_M68K_TRUE}" && test -z "${WANT_PEEKFD_M68K_FALSE}"; then
10235 as_fn_error $? "conditional \"WANT_PEEKFD_M68K\" was never defined.
10236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10239 : "${CONFIG_STATUS=./config.status}"
10241 ac_clean_files_save=$ac_clean_files
10242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10244 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10248 # Generated by $as_me.
10249 # Run this file to recreate the current configuration.
10250 # Compiler output produced by configure, useful for debugging
10251 # configure, is in config.log if it exists.
10254 ac_cs_recheck=false
10257 SHELL=\${CONFIG_SHELL-$SHELL}
10260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10261 ## -------------------- ##
10262 ## M4sh Initialization. ##
10263 ## -------------------- ##
10265 # Be more Bourne compatible
10266 DUALCASE=1; export DUALCASE # for MKS sh
10267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10271 # is contrary to our usage. Disable this feature.
10272 alias -g '${1+"$@"}'='"$@"'
10273 setopt NO_GLOB_SUBST
10275 case `(set -o) 2>/dev/null` in #(
10287 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10288 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10291 # Prefer a ksh shell builtin over an external printf program on Solaris,
10292 # but without wasting forks for bash or zsh.
10293 if test -z "$BASH_VERSION$ZSH_VERSION" \
10294 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10295 as_echo='print -r --'
10296 as_echo_n='print -rn --'
10297 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10298 as_echo='printf %s\n'
10299 as_echo_n='printf %s'
10301 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10302 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10303 as_echo_n='/usr/ucb/echo -n'
10305 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10306 as_echo_n_body='eval
10310 expr "X$arg" : "X\\(.*\\)$as_nl";
10311 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10313 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10315 export as_echo_n_body
10316 as_echo_n='sh -c $as_echo_n_body as_echo'
10318 export as_echo_body
10319 as_echo='sh -c $as_echo_body as_echo'
10322 # The user is always right.
10323 if test "${PATH_SEPARATOR+set}" != set; then
10325 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10326 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10333 # We need space, tab and new line, in precisely that order. Quoting is
10334 # there to prevent editors from complaining about space-tab.
10335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10336 # splitting by setting IFS to empty value.)
10339 # Find who we are. Look in the path if we contain no directory separator.
10342 *[\\/]* ) as_myself=$0 ;;
10343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10347 test -z "$as_dir" && as_dir=.
10348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10354 # We did not find ourselves, most probably we were run as `sh COMMAND'
10355 # in which case we are not to be found in the path.
10356 if test "x$as_myself" = x; then
10359 if test ! -f "$as_myself"; then
10360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10364 # Unset variables that we do not need and which cause bugs (e.g. in
10365 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10366 # suppresses any "Segmentation fault" message there. '((' could
10367 # trigger a bug in pdksh 5.2.14.
10368 for as_var in BASH_ENV ENV MAIL MAILPATH
10369 do eval test x\${$as_var+set} = xset \
10370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10386 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10387 # ----------------------------------------
10388 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10389 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10390 # script with STATUS, using 1 if that was 0.
10393 as_status=$1; test $as_status -eq 0 && as_status=1
10395 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10398 $as_echo "$as_me: error: $2" >&2
10399 as_fn_exit $as_status
10403 # as_fn_set_status STATUS
10404 # -----------------------
10405 # Set $? to STATUS, without forking.
10406 as_fn_set_status ()
10409 } # as_fn_set_status
10411 # as_fn_exit STATUS
10412 # -----------------
10413 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10417 as_fn_set_status $1
10423 # Portably unset VAR.
10426 { eval $1=; unset $1;}
10428 as_unset=as_fn_unset
10429 # as_fn_append VAR VALUE
10430 # ----------------------
10431 # Append the text in VALUE to the end of the definition contained in VAR. Take
10432 # advantage of any shell optimizations that allow amortized linear growth over
10433 # repeated appends, instead of the typical quadratic growth present in naive
10435 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10436 eval 'as_fn_append ()
10447 # as_fn_arith ARG...
10448 # ------------------
10449 # Perform arithmetic evaluation on the ARGs, and store the result in the
10450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10451 # must be portable across $(()) and expr.
10452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10453 eval 'as_fn_arith ()
10460 as_val=`expr "$@" || test $? -eq 1`
10465 if expr a : '\(a\)' >/dev/null 2>&1 &&
10466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10473 as_basename=basename
10478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10484 as_me=`$as_basename -- "$0" ||
10485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10486 X"$0" : 'X\(//\)$' \| \
10487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10489 sed '/^.*\/\([^/][^/]*\)\/*$/{
10503 # Avoid depending upon Character Ranges.
10504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10507 as_cr_digits='0123456789'
10508 as_cr_alnum=$as_cr_Letters$as_cr_digits
10510 ECHO_C= ECHO_N= ECHO_T=
10511 case `echo -n x` in #(((((
10513 case `echo 'xy\c'` in
10514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10523 rm -f conf$$ conf$$.exe conf$$.file
10524 if test -d conf$$.dir; then
10525 rm -f conf$$.dir/conf$$.file
10528 mkdir conf$$.dir 2>/dev/null
10530 if (echo >conf$$.file) 2>/dev/null; then
10531 if ln -s conf$$.file conf$$ 2>/dev/null; then
10533 # ... but there are two gotchas:
10534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10536 # In both cases, we have to default to `cp -pR'.
10537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10539 elif ln conf$$.file conf$$ 2>/dev/null; then
10547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10548 rmdir conf$$.dir 2>/dev/null
10553 # Create "$as_dir" as a directory, including parents if necessary.
10558 -*) as_dir=./$as_dir;;
10560 test -d "$as_dir" || eval $as_mkdir_p || {
10564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10565 *) as_qdir=$as_dir;;
10567 as_dirs="'$as_qdir' $as_dirs"
10568 as_dir=`$as_dirname -- "$as_dir" ||
10569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570 X"$as_dir" : 'X\(//\)[^/]' \| \
10571 X"$as_dir" : 'X\(//\)$' \| \
10572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10573 $as_echo X"$as_dir" |
10574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10578 /^X\(\/\/\)[^/].*/{
10591 test -d "$as_dir" && break
10593 test -z "$as_dirs" || eval "mkdir $as_dirs"
10594 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10598 if mkdir -p . 2>/dev/null; then
10599 as_mkdir_p='mkdir -p "$as_dir"'
10601 test -d ./-p && rmdir ./-p
10606 # as_fn_executable_p FILE
10607 # -----------------------
10608 # Test if FILE is an executable regular file.
10609 as_fn_executable_p ()
10611 test -f "$1" && test -x "$1"
10612 } # as_fn_executable_p
10613 as_test_x='test -x'
10614 as_executable_p=as_fn_executable_p
10616 # Sed expression to map a string onto a valid CPP name.
10617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10619 # Sed expression to map a string onto a valid variable name.
10620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10624 ## ----------------------------------- ##
10625 ## Main body of $CONFIG_STATUS script. ##
10626 ## ----------------------------------- ##
10628 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10631 # Save the log message, to keep $0 and so on meaningful, and to
10632 # report actual input values of CONFIG_FILES etc. instead of their
10633 # values after options handling.
10635 This file was extended by psmisc $as_me 23.0, which was
10636 generated by GNU Autoconf 2.69. Invocation command line was
10638 CONFIG_FILES = $CONFIG_FILES
10639 CONFIG_HEADERS = $CONFIG_HEADERS
10640 CONFIG_LINKS = $CONFIG_LINKS
10641 CONFIG_COMMANDS = $CONFIG_COMMANDS
10644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10649 case $ac_config_files in *"
10650 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10653 case $ac_config_headers in *"
10654 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10659 # Files that config.status was made for.
10660 config_files="$ac_config_files"
10661 config_headers="$ac_config_headers"
10662 config_commands="$ac_config_commands"
10666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10668 \`$as_me' instantiates files and other configuration actions
10669 from templates according to the current configuration. Unless the files
10670 and actions are specified as TAGs, all are instantiated by default.
10672 Usage: $0 [OPTION]... [TAG]...
10674 -h, --help print this help, then exit
10675 -V, --version print version number and configuration settings, then exit
10676 --config print configuration, then exit
10677 -q, --quiet, --silent
10678 do not print progress messages
10679 -d, --debug don't remove temporary files
10680 --recheck update $as_me by reconfiguring in the same conditions
10681 --file=FILE[:TEMPLATE]
10682 instantiate the configuration file FILE
10683 --header=FILE[:TEMPLATE]
10684 instantiate the configuration header FILE
10686 Configuration files:
10689 Configuration headers:
10692 Configuration commands:
10695 Report bugs to the package provider."
10698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10699 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10701 psmisc config.status 23.0
10702 configured by $0, generated by GNU Autoconf 2.69,
10703 with options \\"\$ac_cs_config\\"
10705 Copyright (C) 2012 Free Software Foundation, Inc.
10706 This config.status script is free software; the Free Software Foundation
10707 gives unlimited permission to copy, distribute and modify it."
10714 test -n "\$AWK" || AWK=awk
10717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10718 # The default lists apply if the user does not specify any file.
10724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10741 # Handling of the options.
10742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10745 $as_echo "$ac_cs_version"; exit ;;
10746 --config | --confi | --conf | --con | --co | --c )
10747 $as_echo "$ac_cs_config"; exit ;;
10748 --debug | --debu | --deb | --de | --d | -d )
10750 --file | --fil | --fi | --f )
10753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10754 '') as_fn_error $? "missing file argument" ;;
10756 as_fn_append CONFIG_FILES " '$ac_optarg'"
10757 ac_need_defaults=false;;
10758 --header | --heade | --head | --hea )
10761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10763 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10764 ac_need_defaults=false;;
10766 # Conflict between --help and --header
10767 as_fn_error $? "ambiguous option: \`$1'
10768 Try \`$0 --help' for more information.";;
10769 --help | --hel | -h )
10770 $as_echo "$ac_cs_usage"; exit ;;
10771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10775 # This is an error.
10776 -*) as_fn_error $? "unrecognized option: \`$1'
10777 Try \`$0 --help' for more information." ;;
10779 *) as_fn_append ac_config_targets " $1"
10780 ac_need_defaults=false ;;
10786 ac_configure_extra_args=
10788 if $ac_cs_silent; then
10790 ac_configure_extra_args="$ac_configure_extra_args --silent"
10794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10795 if \$ac_cs_recheck; then
10796 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10798 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10799 CONFIG_SHELL='$SHELL'
10800 export CONFIG_SHELL
10805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10810 ## Running $as_me. ##
10816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10821 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10822 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10823 # from automake < 1.5.
10824 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10825 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10826 LINGUAS="${LINGUAS-%UNSET%}"
10831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10833 # Handling of arguments.
10834 for ac_config_target in $ac_config_targets
10836 case $ac_config_target in
10837 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10838 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10839 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10841 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10842 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
10843 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10844 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10846 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10851 # If the user did not use the arguments to specify the items to instantiate,
10852 # then the envvar interface is used. Set only those that are not.
10853 # We use the long form for the default assignment because of an extremely
10854 # bizarre bug on SunOS 4.1.3.
10855 if $ac_need_defaults; then
10856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10861 # Have a temporary directory for convenience. Make it in the build tree
10862 # simply because there is no reason against having it here, and in addition,
10863 # creating and moving files from /tmp can sometimes cause problems.
10864 # Hook for its removal unless debugging.
10865 # Note that there is a small window in which the directory will not be cleaned:
10866 # after its creation but before its name has been assigned to `$tmp'.
10870 trap 'exit_status=$?
10871 : "${ac_tmp:=$tmp}"
10872 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10874 trap 'as_fn_exit 1' 1 2 13 15
10876 # Create a (secure) tmp directory for tmp files.
10879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10883 tmp=./conf$$-$RANDOM
10884 (umask 077 && mkdir "$tmp")
10885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10888 # Set up the scripts for CONFIG_FILES section.
10889 # No need to generate them if there are no CONFIG_FILES.
10890 # This happens for instance with `./config.status config.h'.
10891 if test -n "$CONFIG_FILES"; then
10894 ac_cr=`echo X | tr X '\015'`
10895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10896 # But we know of no other shell where ac_cr would be empty at this
10897 # point, so we can use a bashism as a fallback.
10898 if test "x$ac_cr" = x; then
10899 eval ac_cr=\$\'\\r\'
10901 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10905 ac_cs_awk_cr=$ac_cr
10908 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10913 echo "cat >conf$$subs.awk <<_ACEOF" &&
10914 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10916 } >conf$$subs.sh ||
10917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10918 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10920 for ac_last_try in false false false false false :; do
10921 . ./conf$$subs.sh ||
10922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10924 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10925 if test $ac_delim_n = $ac_delim_num; then
10927 elif $ac_last_try; then
10928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10933 rm -f conf$$subs.sh
10935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10940 s/^/S["/; s/!.*/"]=/
10950 s/\(.\{148\}\)..*/\1/
10952 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10964 s/\(.\{148\}\)..*/\1/
10966 s/["\\]/\\&/g; s/^/"/; s/$/"/
10970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10975 ' <conf$$subs.awk | sed '
10980 ' >>$CONFIG_STATUS || ac_write_fail=1
10981 rm -f conf$$subs.awk
10982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10984 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10985 for (key in S) S_is_set[key] = 1
10991 nfields = split(line, field, "@")
10993 len = length(field[1])
10994 for (i = 2; i < nfields; i++) {
10996 keylen = length(key)
10997 if (S_is_set[key]) {
10999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11000 len += length(value) + length(field[++i])
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11012 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11016 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11017 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11020 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11021 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11022 # trailing colons and then remove the whole line if VPATH becomes empty
11023 # (actually we leave an empty line to preserve line numbers).
11024 if test "x$srcdir" = x.; then
11025 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11044 fi # test -n "$CONFIG_FILES"
11046 # Set up the scripts for CONFIG_HEADERS section.
11047 # No need to generate them if there are no CONFIG_HEADERS.
11048 # This happens for instance with `./config.status Makefile'.
11049 if test -n "$CONFIG_HEADERS"; then
11050 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11054 # Transform confdefs.h into an awk script `defines.awk', embedded as
11055 # here-document in config.status, that substitutes the proper values into
11056 # config.h.in to produce config.h.
11058 # Create a delimiter string that does not exist in confdefs.h, to ease
11059 # handling of long lines.
11061 for ac_last_try in false false :; do
11062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11063 if test -z "$ac_tt"; then
11065 elif $ac_last_try; then
11066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11072 # For the awk script, D is an array of macro values keyed by name,
11073 # likewise P contains macro parameters if any. Preserve backslash
11074 # newline sequences.
11076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11078 s/.\{148\}/&'"$ac_delim"'/g
11081 s/^[ ]*#[ ]*define[ ][ ]*/ /
11088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11090 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11095 D["\1"]=" \3\\\\\\n"\\/p
11097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11102 s/.\{148\}/&'"$ac_delim"'/g
11107 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11110 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11112 ' <confdefs.h | sed '
11113 s/'"$ac_delim"'/"\\\
11114 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11117 for (key in D) D_is_set[key] = 1
11120 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11122 split(line, arg, " ")
11123 if (arg[1] == "#") {
11127 defundef = substr(arg[1], 2)
11130 split(mac1, mac2, "(") #)
11132 prefix = substr(line, 1, index(line, defundef) - 1)
11133 if (D_is_set[macro]) {
11134 # Preserve the white space surrounding the "#".
11135 print prefix "define", macro P[macro] D[macro]
11138 # Replace #undef with comments. This is necessary, for example,
11139 # in the case of _POSIX_SOURCE, which is predefined and required
11140 # on some systems where configure will not decide to define it.
11141 if (defundef == "undef") {
11142 print "/*", prefix defundef, macro, "*/"
11150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11152 fi # test -n "$CONFIG_HEADERS"
11155 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11160 :[FHLC]) ac_mode=$ac_tag; continue;;
11162 case $ac_mode$ac_tag in
11164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11165 :[FH]-) ac_tag=-:-;;
11166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11183 -) ac_f="$ac_tmp/stdin";;
11184 *) # Look for the file first in the build tree, then in the source tree
11185 # (if the path is not absolute). The absolute path cannot be DOS-style,
11186 # because $ac_f cannot contain `:'.
11190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11195 as_fn_append ac_file_inputs " '$ac_f'"
11198 # Let's still pretend it is `configure' which instantiates (i.e., don't
11199 # use $as_me), people would be surprised to read:
11200 # /* config.h. Generated by config.status. */
11201 configure_input='Generated from '`
11202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11204 if test x"$ac_file" != x-; then
11205 configure_input="$ac_file. $configure_input"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11207 $as_echo "$as_me: creating $ac_file" >&6;}
11209 # Neutralize special characters interpreted by sed in replacement strings.
11210 case $configure_input in #(
11211 *\&* | *\|* | *\\* )
11212 ac_sed_conf_input=`$as_echo "$configure_input" |
11213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11214 *) ac_sed_conf_input=$configure_input;;
11218 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11224 ac_dir=`$as_dirname -- "$ac_file" ||
11225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11226 X"$ac_file" : 'X\(//\)[^/]' \| \
11227 X"$ac_file" : 'X\(//\)$' \| \
11228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11229 $as_echo X"$ac_file" |
11230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11234 /^X\(\/\/\)[^/].*/{
11247 as_dir="$ac_dir"; as_fn_mkdir_p
11251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11254 # A ".." for each directory in $ac_dir_suffix.
11255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11256 case $ac_top_builddir_sub in
11257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11261 ac_abs_top_builddir=$ac_pwd
11262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11263 # for backward compatibility:
11264 ac_top_builddir=$ac_top_build_prefix
11267 .) # We are building in place.
11269 ac_top_srcdir=$ac_top_builddir_sub
11270 ac_abs_top_srcdir=$ac_pwd ;;
11271 [\\/]* | ?:[\\/]* ) # Absolute name.
11272 ac_srcdir=$srcdir$ac_dir_suffix;
11273 ac_top_srcdir=$srcdir
11274 ac_abs_top_srcdir=$srcdir ;;
11275 *) # Relative name.
11276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11277 ac_top_srcdir=$ac_top_build_prefix$srcdir
11278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11293 ac_MKDIR_P=$MKDIR_P
11295 [\\/$]* | ?:[\\/]* ) ;;
11296 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11301 # If the template does not know about datarootdir, expand it.
11302 # FIXME: This hack should be removed a few years after 2.60.
11303 ac_datarootdir_hack=; ac_datarootdir_seen=
11314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11315 *datarootdir*) ac_datarootdir_seen=yes;;
11316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11321 ac_datarootdir_hack='
11322 s&@datadir@&$datadir&g
11323 s&@docdir@&$docdir&g
11324 s&@infodir@&$infodir&g
11325 s&@localedir@&$localedir&g
11326 s&@mandir@&$mandir&g
11327 s&\\\${datarootdir}&$datarootdir&g' ;;
11331 # Neutralize VPATH when `$srcdir' = `.'.
11332 # Shell code in configure.ac might set extrasub.
11333 # FIXME: do we really want to maintain this feature?
11334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11335 ac_sed_extra="$ac_vpsub
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11341 s|@configure_input@|$ac_sed_conf_input|;t t
11342 s&@top_builddir@&$ac_top_builddir_sub&;t t
11343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11344 s&@srcdir@&$ac_srcdir&;t t
11345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11346 s&@top_srcdir@&$ac_top_srcdir&;t t
11347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11348 s&@builddir@&$ac_builddir&;t t
11349 s&@abs_builddir@&$ac_abs_builddir&;t t
11350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11351 s&@INSTALL@&$ac_INSTALL&;t t
11352 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11353 $ac_datarootdir_hack
11355 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11356 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11358 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11361 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11363 which seems to be undefined. Please make sure it is defined" >&5
11364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11365 which seems to be undefined. Please make sure it is defined" >&2;}
11367 rm -f "$ac_tmp/stdin"
11369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11378 if test x"$ac_file" != x-; then
11380 $as_echo "/* $configure_input */" \
11381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11382 } >"$ac_tmp/config.h" \
11383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11389 mv "$ac_tmp/config.h" "$ac_file" \
11390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11393 $as_echo "/* $configure_input */" \
11394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11395 || as_fn_error $? "could not create -" "$LINENO" 5
11397 # Compute "$ac_file"'s index in $config_headers.
11400 for _am_header in $config_headers :; do
11401 case $_am_header in
11402 $_am_arg | $_am_arg:* )
11405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11408 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11409 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11410 X"$_am_arg" : 'X\(//\)[^/]' \| \
11411 X"$_am_arg" : 'X\(//\)$' \| \
11412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11413 $as_echo X"$_am_arg" |
11414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11418 /^X\(\/\/\)[^/].*/{
11430 s/.*/./; q'`/stamp-h$_am_stamp_count
11433 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11434 $as_echo "$as_me: executing $ac_file commands" >&6;}
11439 case $ac_file$ac_mode in
11440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11441 # Older Autoconf quotes --file arguments for eval, but not when files
11442 # are listed without --file. Let's play safe and only enable the eval
11443 # if we detect the quoting.
11444 case $CONFIG_FILES in
11445 *\'*) eval set x "$CONFIG_FILES" ;;
11446 *) set x $CONFIG_FILES ;;
11451 # Strip MF so we end up with the name of the file.
11452 mf=`echo "$mf" | sed -e 's/:.*$//'`
11453 # Check whether this is an Automake generated Makefile or not.
11454 # We used to match only the files named 'Makefile.in', but
11455 # some people rename them; so instead we look at the file content.
11456 # Grep'ing the first line is not enough: some people post-process
11457 # each Makefile.in and add a new line on top of each file to say so.
11458 # Grep'ing the whole file is not good either: AIX grep has a line
11459 # limit of 2048, but all sed's we know have understand at least 4000.
11460 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11461 dirpart=`$as_dirname -- "$mf" ||
11462 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11463 X"$mf" : 'X\(//\)[^/]' \| \
11464 X"$mf" : 'X\(//\)$' \| \
11465 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11471 /^X\(\/\/\)[^/].*/{
11487 # Extract the definition of DEPDIR, am__include, and am__quote
11488 # from the Makefile without running 'make'.
11489 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11490 test -z "$DEPDIR" && continue
11491 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11492 test -z "$am__include" && continue
11493 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11494 # Find all dependency output files, they are included files with
11495 # $(DEPDIR) in their names. We invoke sed twice because it is the
11496 # simplest approach to changing $(DEPDIR) to its actual value in the
11498 for file in `sed -n "
11499 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11501 # Make sure the directory exists.
11502 test -f "$dirpart/$file" && continue
11503 fdir=`$as_dirname -- "$file" ||
11504 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11505 X"$file" : 'X\(//\)[^/]' \| \
11506 X"$file" : 'X\(//\)$' \| \
11507 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11508 $as_echo X"$file" |
11509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11513 /^X\(\/\/\)[^/].*/{
11526 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11527 # echo "creating $dirpart/$file"
11528 echo '# dummy' > "$dirpart/$file"
11533 "po-directories":C)
11534 for ac_file in $CONFIG_FILES; do
11535 # Support "outfile[:infile[:infile...]]"
11537 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11539 # PO directories have a Makefile.in generated from Makefile.in.in.
11540 case "$ac_file" in */Makefile.in)
11541 # Adjust a relative srcdir.
11542 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11543 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11544 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11545 # In autoconf-2.13 it is called $ac_given_srcdir.
11546 # In autoconf-2.50 it is called $srcdir.
11547 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11548 case "$ac_given_srcdir" in
11549 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11550 /*) top_srcdir="$ac_given_srcdir" ;;
11551 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11553 # Treat a directory as a PO directory if and only if it has a
11554 # POTFILES.in file. This allows packages to have multiple PO
11555 # directories under different names or in different locations.
11556 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11557 rm -f "$ac_dir/POTFILES"
11558 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11559 gt_tab=`printf '\t'`
11560 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11561 POMAKEFILEDEPS="POTFILES.in"
11562 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11563 # on $ac_dir but don't depend on user-specified configuration
11565 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11566 # The LINGUAS file contains the set of available languages.
11567 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11568 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11570 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11571 # Hide the ALL_LINGUAS assignment from automake < 1.5.
11572 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11573 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11575 # The set of available languages was given in configure.in.
11576 # Hide the ALL_LINGUAS assignment from automake < 1.5.
11577 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11581 # Compute UPDATEPOFILES
11582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11583 # Compute DUMMYPOFILES
11584 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11586 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11587 case "$ac_given_srcdir" in
11589 *) srcdirpre='$(srcdir)/' ;;
11595 for lang in $ALL_LINGUAS; do
11596 POFILES="$POFILES $srcdirpre$lang.po"
11597 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11598 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11599 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11601 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11602 # environment variable.
11604 if test -n "$ALL_LINGUAS"; then
11605 for presentlang in $ALL_LINGUAS; do
11607 if test "%UNSET%" != "$LINGUAS"; then
11608 desiredlanguages="$LINGUAS"
11610 desiredlanguages="$ALL_LINGUAS"
11612 for desiredlang in $desiredlanguages; do
11613 # Use the presentlang catalog if desiredlang is
11614 # a. equal to presentlang, or
11615 # b. a variant of presentlang (because in this case,
11616 # presentlang can be used as a fallback for messages
11617 # which are not translated in the desiredlang catalog).
11618 case "$desiredlang" in
11619 "$presentlang"*) useit=yes;;
11622 if test $useit = yes; then
11623 INST_LINGUAS="$INST_LINGUAS $presentlang"
11628 if test -n "$INST_LINGUAS"; then
11629 for lang in $INST_LINGUAS; do
11630 CATALOGS="$CATALOGS $lang.gmo"
11633 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11634 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11635 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11636 if test -f "$f"; then
11638 *.orig | *.bak | *~) ;;
11639 *) cat "$f" >> "$ac_dir/Makefile" ;;
11654 ac_clean_files=$ac_clean_files_save
11656 test $ac_write_fail = 0 ||
11657 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11660 # configure is writing to config.log, and then calls config.status.
11661 # config.status does its own redirection, appending to config.log.
11662 # Unfortunately, on DOS this fails, as config.log is still kept open
11663 # by configure, so config.status won't be able to write to it; its
11664 # output is simply discarded. So we exec the FD to /dev/null,
11665 # effectively closing config.log, so it can be properly (re)opened and
11666 # appended to by config.status. When coming back to configure, we
11667 # need to make the FD available again.
11668 if test "$no_create" != yes; then
11670 ac_config_status_args=
11671 test "$silent" = yes &&
11672 ac_config_status_args="$ac_config_status_args --quiet"
11674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11677 # would make configure fail if this is the last instruction.
11678 $ac_cs_success || as_fn_exit 1
11680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11682 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}