2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU Hello 2.8.
5 # Report bugs to <bug-hello@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-hello@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='GNU Hello'
562 PACKAGE_TARNAME='hello'
563 PACKAGE_VERSION='2.8'
564 PACKAGE_STRING='GNU Hello 2.8'
565 PACKAGE_BUGREPORT='bug-hello@gnu.org'
566 PACKAGE_URL='http://www.gnu.org/software/hello/'
568 ac_unique_file="src/hello.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
607 gl_getopt_required=POSIX
608 gl_getopt_required=POSIX
610 ac_subst_vars='gltests_LTLIBOBJS
624 XGETTEXT_EXTRA_OPTIONS
632 GETTEXT_MACRO_VERSION
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
656 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
659 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
661 NEXT_AS_FIRST_DIRECTIVE_STRING_H
737 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
751 REPLACE_CANONICALIZE_FILE_NAME
756 HAVE_STRUCT_RANDOM_DATA
778 HAVE_CANONICALIZE_FILE_NAME
808 GNULIB_CANONICALIZE_FILE_NAME
812 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
814 GL_GENERATE_STDDEF_H_FALSE
815 GL_GENERATE_STDDEF_H_TRUE
820 GL_GENERATE_STDBOOL_H_FALSE
821 GL_GENERATE_STDBOOL_H_TRUE
823 HAVE_MSVC_INVALID_PARAMETER_HANDLER
918 LOCALCHARSET_TESTS_ENVIRONMENT
922 GNULIB_GL_UNISTD_H_GETOPT
925 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
928 UNISTD_H_HAVE_WINSOCK2_H
949 REPLACE_GETDOMAINNAME
959 HAVE_DECL_SETHOSTNAME
960 HAVE_DECL_GETUSERSHELL
961 HAVE_DECL_GETPAGESIZE
963 HAVE_DECL_GETDOMAINNAME
1002 GNULIB_UNISTD_H_SIGPIPE
1003 GNULIB_UNISTD_H_NONBLOCKING
1029 GNULIB_GETDTABLESIZE
1030 GNULIB_GETDOMAINNAME
1052 GL_GENERATE_ERRNO_H_FALSE
1053 GL_GENERATE_ERRNO_H_TRUE
1055 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1058 PRAGMA_SYSTEM_HEADER
1059 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1063 GL_COND_LIBTOOL_FALSE
1064 GL_COND_LIBTOOL_TRUE
1104 INSTALL_STRIP_PROGRAM
1146 program_transform_name
1159 enable_option_checking
1160 enable_dependency_tracking
1164 with_libiconv_prefix
1167 ac_precious_vars='build_alias
1178 # Initialize some variables set by options.
1180 ac_init_version=false
1181 ac_unrecognized_opts=
1182 ac_unrecognized_sep=
1183 # The variables have the same names as the options, with
1184 # dashes changed to underlines.
1185 cache_file=/dev/null
1192 program_transform_name=s,x,x,
1200 # Installation directory options.
1201 # These are left unexpanded so users can "make install exec_prefix=/foo"
1202 # and all the variables that are supposed to be based on exec_prefix
1203 # by default will actually change.
1204 # Use braces instead of parens because sh, perl, etc. also accept them.
1205 # (The list follows the same order as the GNU Coding Standards.)
1206 bindir='${exec_prefix}/bin'
1207 sbindir='${exec_prefix}/sbin'
1208 libexecdir='${exec_prefix}/libexec'
1209 datarootdir='${prefix}/share'
1210 datadir='${datarootdir}'
1211 sysconfdir='${prefix}/etc'
1212 sharedstatedir='${prefix}/com'
1213 localstatedir='${prefix}/var'
1214 includedir='${prefix}/include'
1215 oldincludedir='/usr/include'
1216 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217 infodir='${datarootdir}/info'
1222 libdir='${exec_prefix}/lib'
1223 localedir='${datarootdir}/locale'
1224 mandir='${datarootdir}/man'
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1238 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1243 # Accept the important Cygnus configure options, so we can diagnose typos.
1245 case $ac_dashdash$ac_option in
1249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252 bindir=$ac_optarg ;;
1254 -build | --build | --buil | --bui | --bu)
1255 ac_prev=build_alias ;;
1256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257 build_alias=$ac_optarg ;;
1259 -cache-file | --cache-file | --cache-fil | --cache-fi \
1260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261 ac_prev=cache_file ;;
1262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264 cache_file=$ac_optarg ;;
1266 --config-cache | -C)
1267 cache_file=config.cache ;;
1269 -datadir | --datadir | --datadi | --datad)
1271 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272 datadir=$ac_optarg ;;
1274 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275 | --dataroo | --dataro | --datar)
1276 ac_prev=datarootdir ;;
1277 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279 datarootdir=$ac_optarg ;;
1281 -disable-* | --disable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid feature name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "enable_$ac_useropt"
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval enable_$ac_useropt=no ;;
1297 -docdir | --docdir | --docdi | --doc | --do)
1299 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300 docdir=$ac_optarg ;;
1302 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305 dvidir=$ac_optarg ;;
1307 -enable-* | --enable-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid feature name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1316 "enable_$ac_useropt"
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval enable_$ac_useropt=\$ac_optarg ;;
1323 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325 | --exec | --exe | --ex)
1326 ac_prev=exec_prefix ;;
1327 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329 | --exec=* | --exe=* | --ex=*)
1330 exec_prefix=$ac_optarg ;;
1332 -gas | --gas | --ga | --g)
1333 # Obsolete; use --with-gas.
1336 -help | --help | --hel | --he | -h)
1337 ac_init_help=long ;;
1338 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339 ac_init_help=recursive ;;
1340 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341 ac_init_help=short ;;
1343 -host | --host | --hos | --ho)
1344 ac_prev=host_alias ;;
1345 -host=* | --host=* | --hos=* | --ho=*)
1346 host_alias=$ac_optarg ;;
1348 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 htmldir=$ac_optarg ;;
1354 -includedir | --includedir | --includedi | --included | --include \
1355 | --includ | --inclu | --incl | --inc)
1356 ac_prev=includedir ;;
1357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358 | --includ=* | --inclu=* | --incl=* | --inc=*)
1359 includedir=$ac_optarg ;;
1361 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364 infodir=$ac_optarg ;;
1366 -libdir | --libdir | --libdi | --libd)
1368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369 libdir=$ac_optarg ;;
1371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372 | --libexe | --libex | --libe)
1373 ac_prev=libexecdir ;;
1374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375 | --libexe=* | --libex=* | --libe=*)
1376 libexecdir=$ac_optarg ;;
1378 -localedir | --localedir | --localedi | --localed | --locale)
1379 ac_prev=localedir ;;
1380 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381 localedir=$ac_optarg ;;
1383 -localstatedir | --localstatedir | --localstatedi | --localstated \
1384 | --localstate | --localstat | --localsta | --localst | --locals)
1385 ac_prev=localstatedir ;;
1386 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388 localstatedir=$ac_optarg ;;
1390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393 mandir=$ac_optarg ;;
1395 -nfp | --nfp | --nf)
1396 # Obsolete; use --without-fp.
1399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400 | --no-cr | --no-c | -n)
1403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409 | --oldin | --oldi | --old | --ol | --o)
1410 ac_prev=oldincludedir ;;
1411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414 oldincludedir=$ac_optarg ;;
1416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419 prefix=$ac_optarg ;;
1421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422 | --program-pre | --program-pr | --program-p)
1423 ac_prev=program_prefix ;;
1424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426 program_prefix=$ac_optarg ;;
1428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429 | --program-suf | --program-su | --program-s)
1430 ac_prev=program_suffix ;;
1431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433 program_suffix=$ac_optarg ;;
1435 -program-transform-name | --program-transform-name \
1436 | --program-transform-nam | --program-transform-na \
1437 | --program-transform-n | --program-transform- \
1438 | --program-transform | --program-transfor \
1439 | --program-transfo | --program-transf \
1440 | --program-trans | --program-tran \
1441 | --progr-tra | --program-tr | --program-t)
1442 ac_prev=program_transform_name ;;
1443 -program-transform-name=* | --program-transform-name=* \
1444 | --program-transform-nam=* | --program-transform-na=* \
1445 | --program-transform-n=* | --program-transform-=* \
1446 | --program-transform=* | --program-transfor=* \
1447 | --program-transfo=* | --program-transf=* \
1448 | --program-trans=* | --program-tran=* \
1449 | --progr-tra=* | --program-tr=* | --program-t=*)
1450 program_transform_name=$ac_optarg ;;
1452 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455 pdfdir=$ac_optarg ;;
1457 -psdir | --psdir | --psdi | --psd | --ps)
1459 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 sbindir=$ac_optarg ;;
1472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474 | --sharedst | --shareds | --shared | --share | --shar \
1476 ac_prev=sharedstatedir ;;
1477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 sharedstatedir=$ac_optarg ;;
1483 -site | --site | --sit)
1485 -site=* | --site=* | --sit=*)
1488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491 srcdir=$ac_optarg ;;
1493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494 | --syscon | --sysco | --sysc | --sys | --sy)
1495 ac_prev=sysconfdir ;;
1496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498 sysconfdir=$ac_optarg ;;
1500 -target | --target | --targe | --targ | --tar | --ta | --t)
1501 ac_prev=target_alias ;;
1502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503 target_alias=$ac_optarg ;;
1505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1508 -version | --version | --versio | --versi | --vers | -V)
1509 ac_init_version=: ;;
1512 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515 as_fn_error $? "invalid package name: $ac_useropt"
1516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1525 eval with_$ac_useropt=\$ac_optarg ;;
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531 as_fn_error $? "invalid package name: $ac_useropt"
1532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1541 eval with_$ac_useropt=no ;;
1544 # Obsolete; use --with-x.
1547 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548 | --x-incl | --x-inc | --x-in | --x-i)
1549 ac_prev=x_includes ;;
1550 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552 x_includes=$ac_optarg ;;
1554 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556 ac_prev=x_libraries ;;
1557 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559 x_libraries=$ac_optarg ;;
1561 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562 Try \`$0 --help' for more information"
1566 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567 # Reject names that are not valid shell variable names.
1568 case $ac_envvar in #(
1569 '' | [0-9]* | *[!_$as_cr_alnum]* )
1570 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1572 eval $ac_envvar=\$ac_optarg
1573 export $ac_envvar ;;
1576 # FIXME: should be removed in autoconf 3.0.
1577 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1580 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1586 if test -n "$ac_prev"; then
1587 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1588 as_fn_error $? "missing argument to $ac_option"
1591 if test -n "$ac_unrecognized_opts"; then
1592 case $enable_option_checking in
1594 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1595 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1599 # Check all directory arguments for consistency.
1600 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601 datadir sysconfdir sharedstatedir localstatedir includedir \
1602 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603 libdir localedir mandir
1605 eval ac_val=\$$ac_var
1606 # Remove trailing slashes.
1609 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610 eval $ac_var=\$ac_val;;
1612 # Be sure to have absolute directory names.
1614 [\\/$]* | ?:[\\/]* ) continue;;
1615 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1620 # There might be people who depend on the old broken behavior: `$host'
1621 # used to hold the argument of --host etc.
1622 # FIXME: To remove some day.
1625 target=$target_alias
1627 # FIXME: To remove some day.
1628 if test "x$host_alias" != x; then
1629 if test "x$build_alias" = x; then
1630 cross_compiling=maybe
1631 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632 If a cross compiler is detected then cross compile mode will be used" >&2
1633 elif test "x$build_alias" != "x$host_alias"; then
1639 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641 test "$silent" = yes && exec 6>/dev/null
1644 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645 ac_ls_di=`ls -di .` &&
1646 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1647 as_fn_error $? "working directory cannot be determined"
1648 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1649 as_fn_error $? "pwd does not report name of working directory"
1652 # Find the source files, if location was not specified.
1653 if test -z "$srcdir"; then
1654 ac_srcdir_defaulted=yes
1655 # Try the directory containing this script, then the parent directory.
1656 ac_confdir=`$as_dirname -- "$as_myself" ||
1657 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658 X"$as_myself" : 'X\(//\)[^/]' \| \
1659 X"$as_myself" : 'X\(//\)$' \| \
1660 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661 $as_echo X"$as_myself" |
1662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1680 if test ! -r "$srcdir/$ac_unique_file"; then
1684 ac_srcdir_defaulted=no
1686 if test ! -r "$srcdir/$ac_unique_file"; then
1687 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1688 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1690 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1694 # When building in place, set srcdir=.
1695 if test "$ac_abs_confdir" = "$ac_pwd"; then
1698 # Remove unnecessary trailing slashes from srcdir.
1699 # Double slashes in file names in object file debugging info
1700 # mess up M-x gdb in Emacs.
1702 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704 for ac_var in $ac_precious_vars; do
1705 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706 eval ac_env_${ac_var}_value=\$${ac_var}
1707 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1712 # Report the --help message.
1714 if test "$ac_init_help" = "long"; then
1715 # Omit some internal or obsolete options to make the list less imposing.
1716 # This message is too long to be a string in the A/UX 3.1 sh.
1718 \`configure' configures GNU Hello 2.8 to adapt to many kinds of systems.
1720 Usage: $0 [OPTION]... [VAR=VALUE]...
1722 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723 VAR=VALUE. See below for descriptions of some of the useful variables.
1725 Defaults for the options are specified in brackets.
1728 -h, --help display this help and exit
1729 --help=short display options specific to this package
1730 --help=recursive display the short help of all the included packages
1731 -V, --version display version information and exit
1732 -q, --quiet, --silent do not print \`checking ...' messages
1733 --cache-file=FILE cache test results in FILE [disabled]
1734 -C, --config-cache alias for \`--cache-file=config.cache'
1735 -n, --no-create do not create output files
1736 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738 Installation directories:
1739 --prefix=PREFIX install architecture-independent files in PREFIX
1740 [$ac_default_prefix]
1741 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1744 By default, \`make install' will install all the files in
1745 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1746 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747 for instance \`--prefix=\$HOME'.
1749 For better control, use the options below.
1751 Fine tuning of the installation directories:
1752 --bindir=DIR user executables [EPREFIX/bin]
1753 --sbindir=DIR system admin executables [EPREFIX/sbin]
1754 --libexecdir=DIR program executables [EPREFIX/libexec]
1755 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1756 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1757 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1758 --libdir=DIR object code libraries [EPREFIX/lib]
1759 --includedir=DIR C header files [PREFIX/include]
1760 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1761 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1762 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1763 --infodir=DIR info documentation [DATAROOTDIR/info]
1764 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1765 --mandir=DIR man documentation [DATAROOTDIR/man]
1766 --docdir=DIR documentation root [DATAROOTDIR/doc/hello]
1767 --htmldir=DIR html documentation [DOCDIR]
1768 --dvidir=DIR dvi documentation [DOCDIR]
1769 --pdfdir=DIR pdf documentation [DOCDIR]
1770 --psdir=DIR ps documentation [DOCDIR]
1776 --program-prefix=PREFIX prepend PREFIX to installed program names
1777 --program-suffix=SUFFIX append SUFFIX to installed program names
1778 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1786 if test -n "$ac_init_help"; then
1787 case $ac_init_help in
1788 short | recursive ) echo "Configuration of GNU Hello 2.8:";;
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1796 --disable-dependency-tracking speeds up one-time build
1797 --enable-dependency-tracking do not reject slow dependency extractors
1798 --disable-nls do not use Native Language Support
1799 --disable-rpath do not hardcode runtime library paths
1802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1804 --with-gnu-ld assume the C compiler uses GNU ld default=no
1805 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1806 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1807 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1808 --without-libintl-prefix don't search for libintl in includedir and libdir
1810 Some influential environment variables:
1811 CC C compiler command
1812 CFLAGS C compiler flags
1813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1814 nonstandard directory <lib dir>
1815 LIBS libraries to pass to the linker, e.g. -l<library>
1816 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1817 you have headers in a nonstandard directory <include dir>
1820 Use these variables to override the choices made by `configure' or to help
1821 it to find libraries and programs with nonstandard names/locations.
1823 Report bugs to <bug-hello@gnu.org>.
1824 GNU Hello home page: <http://www.gnu.org/software/hello/>.
1825 General help using GNU software: <http://www.gnu.org/gethelp/>.
1830 if test "$ac_init_help" = "recursive"; then
1831 # If there are subdirs, report their specific --help.
1832 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1833 test -d "$ac_dir" ||
1834 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1841 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1842 # A ".." for each directory in $ac_dir_suffix.
1843 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1844 case $ac_top_builddir_sub in
1845 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1846 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1849 ac_abs_top_builddir=$ac_pwd
1850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1851 # for backward compatibility:
1852 ac_top_builddir=$ac_top_build_prefix
1855 .) # We are building in place.
1857 ac_top_srcdir=$ac_top_builddir_sub
1858 ac_abs_top_srcdir=$ac_pwd ;;
1859 [\\/]* | ?:[\\/]* ) # Absolute name.
1860 ac_srcdir=$srcdir$ac_dir_suffix;
1861 ac_top_srcdir=$srcdir
1862 ac_abs_top_srcdir=$srcdir ;;
1864 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1865 ac_top_srcdir=$ac_top_build_prefix$srcdir
1866 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1870 cd "$ac_dir" || { ac_status=$?; continue; }
1871 # Check for guested configure.
1872 if test -f "$ac_srcdir/configure.gnu"; then
1874 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1875 elif test -f "$ac_srcdir/configure"; then
1877 $SHELL "$ac_srcdir/configure" --help=recursive
1879 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1881 cd "$ac_pwd" || { ac_status=$?; break; }
1885 test -n "$ac_init_help" && exit $ac_status
1886 if $ac_init_version; then
1888 GNU Hello configure 2.8
1889 generated by GNU Autoconf 2.68
1891 Copyright (C) 2010 Free Software Foundation, Inc.
1892 This configure script is free software; the Free Software Foundation
1893 gives unlimited permission to copy, distribute and modify it.
1898 ## ------------------------ ##
1899 ## Autoconf initialization. ##
1900 ## ------------------------ ##
1902 # ac_fn_c_try_compile LINENO
1903 # --------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_compile
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1982 ac_fn_c_check_header_mongrel ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if eval \${$3+:} false; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_header_compiler=yes
2006 ac_header_compiler=no
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020 ac_header_preproc=yes
2022 ac_header_preproc=no
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2028 # So? What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ( $as_echo "## -------------------------------- ##
2048 ## Report this to bug-hello@gnu.org ##
2049 ## -------------------------------- ##"
2050 ) | sed "s/^/$as_me: WARNING: /" >&2
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2058 eval "$3=\$ac_header_compiler"
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_header_mongrel
2068 # ac_fn_c_try_run LINENO
2069 # ----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2071 # that executables *can* be run.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_link"
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>&5
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2086 { { case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_try") 2>&5
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; }; }; then :
2098 $as_echo "$as_me: program exited with status $ac_status" >&5
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2102 ac_retval=$ac_status
2104 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 as_fn_set_status $ac_retval
2110 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists and can be compiled using the include files in
2113 # INCLUDES, setting the cache variable VAR accordingly.
2114 ac_fn_c_check_header_compile ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2127 if ac_fn_c_try_compile "$LINENO"; then :
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_header_compile
2141 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142 # --------------------------------------------
2143 # Tries to find the compile-time value of EXPR in a program that includes
2144 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 ac_fn_c_compute_int ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if test "$cross_compiling" = yes; then
2150 # Depending upon the size, compute the lo and hi bounds.
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) >= 0)];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=$ac_mid; break
2183 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2184 if test $ac_lo -le $ac_mid; then
2188 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) < 0)];
2206 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_lo=$ac_mid; break
2225 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226 if test $ac_mid -le $ac_hi; then
2230 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2259 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2271 static long int longval () { return $2; }
2272 static unsigned long int ulongval () { return $2; }
2279 FILE *f = fopen ("conftest.val", "w");
2284 long int i = longval ();
2287 fprintf (f, "%ld", i);
2291 unsigned long int i = ulongval ();
2294 fprintf (f, "%lu", i);
2296 /* Do not output a trailing newline, as this causes \r\n confusion
2297 on some platforms. */
2298 return ferror (f) || fclose (f) != 0;
2304 if ac_fn_c_try_run "$LINENO"; then :
2305 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2310 conftest.$ac_objext conftest.beam conftest.$ac_ext
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_compute_int
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 $as_test_x conftest$ac_exeext
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status $ac_retval
2363 } # ac_fn_c_try_link
2365 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2366 # ---------------------------------------------
2367 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2369 ac_fn_c_check_decl ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 as_decl_name=`echo $2|sed 's/ *(.*//'`
2373 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2375 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2376 if eval \${$3+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2385 #ifndef $as_decl_name
2387 (void) $as_decl_use;
2389 (void) $as_decl_name;
2397 if ac_fn_c_try_compile "$LINENO"; then :
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_decl
2411 # ac_fn_c_check_func LINENO FUNC VAR
2412 # ----------------------------------
2413 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2414 ac_fn_c_check_func ()
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420 $as_echo_n "(cached) " >&6
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2424 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2426 #define $2 innocuous_$2
2428 /* System header to define __stub macros and hopefully few prototypes,
2429 which can conflict with char $2 (); below.
2430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2431 <limits.h> exists even on freestanding compilers. */
2434 # include <limits.h>
2436 # include <assert.h>
2441 /* Override any GCC internal prototype to avoid an error.
2442 Use char because int might match the return type of a GCC
2443 builtin and then its argument prototype would still apply. */
2448 /* The GNU C library defines this for functions which it implements
2449 to always fail with ENOSYS. Some functions are actually named
2450 something starting with __ and the normal name is an alias. */
2451 #if defined __stub_$2 || defined __stub___$2
2463 if ac_fn_c_try_link "$LINENO"; then :
2468 rm -f core conftest.err conftest.$ac_objext \
2469 conftest$ac_exeext conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476 } # ac_fn_c_check_func
2478 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2479 # -------------------------------------------
2480 # Tests whether TYPE exists after having included INCLUDES, setting cache
2481 # variable VAR accordingly.
2482 ac_fn_c_check_type ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2486 $as_echo_n "checking for $2... " >&6; }
2487 if eval \${$3+:} false; then :
2488 $as_echo_n "(cached) " >&6
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2516 if ac_fn_c_try_compile "$LINENO"; then :
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 } # ac_fn_c_check_type
2531 cat >config.log <<_ACEOF
2532 This file contains any messages produced by compilers while
2533 running configure, to aid debugging if configure makes a mistake.
2535 It was created by GNU Hello $as_me 2.8, which was
2536 generated by GNU Autoconf 2.68. Invocation command line was
2548 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2549 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2550 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2551 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2552 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2554 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2555 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2557 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2558 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2559 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2560 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2561 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2562 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2563 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 $as_echo "PATH: $as_dir"
2588 # Keep a trace of the command line.
2589 # Strip out --no-create and --no-recursion so they do not pile up.
2590 # Strip out --silent because we don't want to record it for future runs.
2591 # Also quote any args containing shell meta-characters.
2592 # Make two passes to allow for proper duplicate-argument suppression.
2596 ac_must_keep_next=false
2602 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2604 | -silent | --silent | --silen | --sile | --sil)
2607 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2610 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2612 as_fn_append ac_configure_args1 " '$ac_arg'"
2613 if test $ac_must_keep_next = true; then
2614 ac_must_keep_next=false # Got value, back to normal.
2617 *=* | --config-cache | -C | -disable-* | --disable-* \
2618 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2619 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2620 | -with-* | --with-* | -without-* | --without-* | --x)
2621 case "$ac_configure_args0 " in
2622 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2625 -* ) ac_must_keep_next=true ;;
2628 as_fn_append ac_configure_args " '$ac_arg'"
2633 { ac_configure_args0=; unset ac_configure_args0;}
2634 { ac_configure_args1=; unset ac_configure_args1;}
2636 # When interrupted or exit'd, cleanup temporary files, and complete
2637 # config.log. We remove comments because anyway the quotes in there
2638 # would cause problems or look ugly.
2639 # WARNING: Use '\'' to represent an apostrophe within the trap.
2640 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2641 trap 'exit_status=$?
2642 # Save into config.log some information that might help in debugging.
2646 $as_echo "## ---------------- ##
2647 ## Cache variables. ##
2648 ## ---------------- ##"
2650 # The following way of writing the cache mishandles newlines in values,
2652 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2653 eval ac_val=\$$ac_var
2657 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2661 _ | IFS | as_nl) ;; #(
2662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2663 *) { eval $ac_var=; unset $ac_var;} ;;
2668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2669 *${as_nl}ac_space=\ *)
2671 "s/'\''/'\''\\\\'\'''\''/g;
2672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2682 $as_echo "## ----------------- ##
2683 ## Output variables. ##
2684 ## ----------------- ##"
2686 for ac_var in $ac_subst_vars
2688 eval ac_val=\$$ac_var
2690 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2692 $as_echo "$ac_var='\''$ac_val'\''"
2696 if test -n "$ac_subst_files"; then
2697 $as_echo "## ------------------- ##
2698 ## File substitutions. ##
2699 ## ------------------- ##"
2701 for ac_var in $ac_subst_files
2703 eval ac_val=\$$ac_var
2705 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2707 $as_echo "$ac_var='\''$ac_val'\''"
2712 if test -s confdefs.h; then
2713 $as_echo "## ----------- ##
2720 test "$ac_signal" != 0 &&
2721 $as_echo "$as_me: caught signal $ac_signal"
2722 $as_echo "$as_me: exit $exit_status"
2724 rm -f core *.core core.conftest.* &&
2725 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2728 for ac_signal in 1 2 13 15; do
2729 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2733 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2734 rm -f -r conftest* confdefs.h
2736 $as_echo "/* confdefs.h */" > confdefs.h
2738 # Predefined preprocessor variables.
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_NAME "$PACKAGE_NAME"
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_STRING "$PACKAGE_STRING"
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_URL "$PACKAGE_URL"
2765 # Let the site file select an alternate cache file if it wants to.
2766 # Prefer an explicitly selected file to automatically selected ones.
2769 if test -n "$CONFIG_SITE"; then
2770 # We do not want a PATH search for config.site.
2771 case $CONFIG_SITE in #((
2772 -*) ac_site_file1=./$CONFIG_SITE;;
2773 */*) ac_site_file1=$CONFIG_SITE;;
2774 *) ac_site_file1=./$CONFIG_SITE;;
2776 elif test "x$prefix" != xNONE; then
2777 ac_site_file1=$prefix/share/config.site
2778 ac_site_file2=$prefix/etc/config.site
2780 ac_site_file1=$ac_default_prefix/share/config.site
2781 ac_site_file2=$ac_default_prefix/etc/config.site
2783 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2785 test "x$ac_site_file" = xNONE && continue
2786 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2788 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2789 sed 's/^/| /' "$ac_site_file" >&5
2791 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 as_fn_error $? "failed to load site script $ac_site_file
2794 See \`config.log' for more details" "$LINENO" 5; }
2798 if test -r "$cache_file"; then
2799 # Some versions of bash will fail to source /dev/null (special files
2800 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2801 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2803 $as_echo "$as_me: loading cache $cache_file" >&6;}
2805 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2806 *) . "./$cache_file";;
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2811 $as_echo "$as_me: creating cache $cache_file" >&6;}
2815 as_fn_append ac_header_list " stdio_ext.h"
2816 as_fn_append ac_func_list " __fpending"
2817 gl_getopt_required=GNU
2818 as_fn_append ac_header_list " getopt.h"
2819 as_fn_append ac_header_list " unistd.h"
2820 as_fn_append ac_func_list " symlink"
2821 as_fn_append ac_func_list " mbsinit"
2822 as_fn_append ac_func_list " mbrtowc"
2823 as_fn_append ac_func_list " _set_invalid_parameter_handler"
2824 as_fn_append ac_header_list " sys/socket.h"
2825 as_fn_append ac_header_list " wchar.h"
2826 as_fn_append ac_header_list " features.h"
2827 as_fn_append ac_func_list " iswcntrl"
2828 as_fn_append ac_header_list " wctype.h"
2829 gt_needs="$gt_needs "
2830 # Check that the precious variables saved in the cache have kept the same
2832 ac_cache_corrupted=false
2833 for ac_var in $ac_precious_vars; do
2834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2835 eval ac_new_set=\$ac_env_${ac_var}_set
2836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2837 eval ac_new_val=\$ac_env_${ac_var}_value
2838 case $ac_old_set,$ac_new_set in
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2841 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2842 ac_cache_corrupted=: ;;
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2845 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2846 ac_cache_corrupted=: ;;
2849 if test "x$ac_old_val" != "x$ac_new_val"; then
2850 # differences in whitespace do not lead to failure.
2851 ac_old_val_w=`echo x $ac_old_val`
2852 ac_new_val_w=`echo x $ac_new_val`
2853 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2855 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2856 ac_cache_corrupted=:
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2859 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2860 eval $ac_var=\$ac_old_val
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2863 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2865 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2868 # Pass precious variables to config.status.
2869 if test "$ac_new_set" = set; then
2871 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2872 *) ac_arg=$ac_var=$ac_new_val ;;
2874 case " $ac_configure_args " in
2875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2876 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2880 if $ac_cache_corrupted; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2884 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2885 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2887 ## -------------------- ##
2888 ## Main body of script. ##
2889 ## -------------------- ##
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 for ac_dir in build-aux "$srcdir"/build-aux; do
2901 if test -f "$ac_dir/install-sh"; then
2903 ac_install_sh="$ac_aux_dir/install-sh -c"
2905 elif test -f "$ac_dir/install.sh"; then
2907 ac_install_sh="$ac_aux_dir/install.sh -c"
2909 elif test -f "$ac_dir/shtool"; then
2911 ac_install_sh="$ac_aux_dir/shtool install -c"
2915 if test -z "$ac_aux_dir"; then
2916 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2919 # These three variables are undocumented and unsupported,
2920 # and are intended to be withdrawn in a future Autoconf release.
2921 # They can cause serious problems if a builder's source tree is in a directory
2922 # whose full name contains unusual characters.
2923 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2924 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2925 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2928 am__api_version='1.11'
2930 # Find a good install program. We prefer a C program (faster),
2931 # so one script is as good as another. But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2937 # AmigaOS /C/install, which installs bootblocks on floppy discs
2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941 # OS/2's system install, which has a completely different semantic
2942 # ./install, which can be erroneously created by make from ./install.sh.
2943 # Reject install programs that cannot install multiple files.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2946 if test -z "$INSTALL"; then
2947 if ${ac_cv_path_install+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in #((
2957 ./ | .// | /[cC]/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2968 if test $ac_prog = install &&
2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2977 rm -rf conftest.one conftest.two conftest.dir
2978 echo one > conftest.one
2979 echo two > conftest.two
2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982 test -s conftest.one && test -s conftest.two &&
2983 test -s conftest.dir/conftest.one &&
2984 test -s conftest.dir/conftest.two
2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2999 rm -rf conftest.one conftest.two conftest.dir
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for INSTALL within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 INSTALL=$ac_install_sh
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013 $as_echo "$INSTALL" >&6; }
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 echo timestamp > conftest.file
3028 # Reject unsafe characters in $srcdir or the absolute working directory
3029 # name. Accept space and tab only in the latter.
3033 *[\\\"\#\$\&\'\`$am_lf]*)
3034 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3037 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3038 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041 # Do `set' in a subshell so we don't clobber the current shell's
3042 # arguments. Must try -L first in case configure is actually a
3043 # symlink; some systems play weird games with the mod time of symlinks
3044 # (eg FreeBSD returns the mod time of the symlink's containing
3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3048 if test "$*" = "X"; then
3050 set X `ls -t "$srcdir/configure" conftest.file`
3053 if test "$*" != "X $srcdir/configure conftest.file" \
3054 && test "$*" != "X conftest.file $srcdir/configure"; then
3056 # If neither matched, then we have a broken ls. This can happen
3057 # if, for instance, CONFIG_SHELL is bash and it inherits a
3058 # broken ls alias from the environment. This has actually
3059 # happened. Such a system could not be considered "sane".
3060 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" "$LINENO" 5
3064 test "$2" = conftest.file
3070 as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 test "$program_prefix" != NONE &&
3076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3077 # Use a double $ so make ignores it.
3078 test "$program_suffix" != NONE &&
3079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080 # Double any \ or $.
3081 # By default was `s,x,x', remove it if useless.
3082 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3085 # expand $ac_aux_dir to an absolute path
3086 am_aux_dir=`cd $ac_aux_dir && pwd`
3088 if test x"${MISSING+set}" != xset; then
3091 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3093 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3102 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if test x"${install_sh}" != xset; then
3108 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3110 install_sh="\${SHELL} $am_aux_dir/install-sh"
3114 # Installed binaries are usually stripped using `strip' when the user
3115 # run `make install-strip'. However `strip' might not be the right
3116 # tool to use in cross-compilation environments, therefore Automake
3117 # will honor the `STRIP' environment variable to overrule this program.
3118 if test "$cross_compiling" != no; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}strip; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_STRIP+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$STRIP"; then
3128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 STRIP=$ac_cv_prog_STRIP
3148 if test -n "$STRIP"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3150 $as_echo "$STRIP" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$ac_cv_prog_STRIP"; then
3160 # Extract the first word of "strip", so it can be a program name with args.
3161 set dummy strip; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$ac_ct_STRIP"; then
3168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_ac_ct_STRIP="strip"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3188 if test -n "$ac_ct_STRIP"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3190 $as_echo "$ac_ct_STRIP" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3196 if test "x$ac_ct_STRIP" = x; then
3199 case $cross_compiling:$ac_tool_warned in
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3208 STRIP="$ac_cv_prog_STRIP"
3212 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3215 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3216 if test -z "$MKDIR_P"; then
3217 if ${ac_cv_path_mkdir+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3224 test -z "$as_dir" && as_dir=.
3225 for ac_prog in mkdir gmkdir; do
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3228 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229 'mkdir (GNU coreutils) '* | \
3230 'mkdir (coreutils) '* | \
3231 'mkdir (fileutils) '4.1*)
3232 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3242 test -d ./--version && rmdir ./--version
3243 if test "${ac_cv_path_mkdir+set}" = set; then
3244 MKDIR_P="$ac_cv_path_mkdir -p"
3246 # As a last resort, use the slow shell script. Don't cache a
3247 # value for MKDIR_P within a source directory, because that will
3248 # break other packages using the cache if that directory is
3249 # removed, or if the value is a relative name.
3250 MKDIR_P="$ac_install_sh -d"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254 $as_echo "$MKDIR_P" >&6; }
3259 [\\/$]* | ?:[\\/]*) ;;
3260 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3263 for ac_prog in gawk mawk nawk awk
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_AWK+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_AWK="$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 if test -n "$AWK"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295 $as_echo "$AWK" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$AWK" && break
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 cat >conftest.make <<\_ACEOF
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 SET_MAKE="MAKE=${MAKE-make}"
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3343 rmdir .tst 2>/dev/null
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347 # is not polluted with repeated "-I."
3348 am__isrc=' -I$(srcdir)'
3349 # test to see if srcdir already configured
3350 if test -f $srcdir/config.status; then
3351 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357 if (cygpath --version) >/dev/null 2>/dev/null; then
3358 CYGPATH_W='cygpath -w'
3365 # Define the identity of the package.
3370 cat >>confdefs.h <<_ACEOF
3371 #define PACKAGE "$PACKAGE"
3375 cat >>confdefs.h <<_ACEOF
3376 #define VERSION "$VERSION"
3379 # Some tools Automake needs.
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # We need awk for the "check" target. The system "awk" is bad on
3397 # Always define AMTAR for backward compatibility. Yes, it's still used
3398 # in the wild :-( We should find a proper way to deprecate it ...
3401 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3408 # Minimum Autoconf version required.
3411 # Where to generate output; srcdir location.
3412 ac_config_headers="$ac_config_headers config.h:config.in"
3415 # We need a C compiler.
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_prog_CC+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3460 if test -z "$ac_cv_prog_CC"; then
3462 # Extract the first word of "gcc", so it can be a program name with args.
3463 set dummy gcc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_CC="gcc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 if test "x$ac_ct_CC" = x; then
3501 case $cross_compiling:$ac_tool_warned in
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}cc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}cc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3554 if test -z "$CC"; then
3555 # Extract the first word of "cc", so it can be a program name with args.
3556 set dummy cc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3574 ac_prog_rejected=yes
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 if test $ac_prog_rejected = yes; then
3586 # We found a bogon in the path, so make sure we never use it.
3587 set dummy $ac_cv_prog_CC
3589 if test $# != 0; then
3590 # We chose a different compiler from the bogus one.
3591 # However, it has the same basename, so the bogon will be chosen
3592 # first if we set CC to just the basename; use the full file name.
3594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in cl.exe
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$CC"; then
3622 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 if test -n "$CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 $as_echo "$CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$CC" && break
3654 if test -z "$CC"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3665 if test -n "$ac_ct_CC"; then
3666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_ac_ct_CC="$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$ac_ct_CC" && break
3698 if test "x$ac_ct_CC" = x; then
3701 case $cross_compiling:$ac_tool_warned in
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "no acceptable C compiler found in \$PATH
3717 See \`config.log' for more details" "$LINENO" 5; }
3719 # Provide some information about the compiler.
3720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3723 for ac_option in --version -v -V -qversion; do
3724 { { ac_try="$ac_compiler $ac_option >&5"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3733 if test -s conftest.err; then
3735 ... rest of stderr output deleted ...
3736 10q' conftest.err >conftest.er1
3737 cat conftest.er1 >&5
3739 rm -f conftest.er1 conftest.err
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 ac_clean_files_save=$ac_clean_files
3756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3757 # Try to create an executable without -o first, disregard a.out.
3758 # It will help us diagnose broken compilers, and finding out an intuition
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3761 $as_echo_n "checking whether the C compiler works... " >&6; }
3762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3764 # The possible output files:
3765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3768 for ac_file in $ac_files
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3777 if { { ac_try="$ac_link_default"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_link_default") 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; then :
3788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3791 # so that the user can short-circuit this test for compilers unknown to
3793 for ac_file in $ac_files ''
3795 test -f "$ac_file" || continue
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3800 # We found the default executable, but exeext='' is most
3804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3808 # We set ac_cv_exeext here because the later test for it is not
3809 # safe: cross compilers may not add the suffix if given an `-o'
3810 # argument, so we may need to know it at that point already.
3811 # Even if this section looks crufty: it has the advantage of
3818 test "$ac_cv_exeext" = no && ac_cv_exeext=
3823 if test -z "$ac_file"; then :
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error 77 "C compiler cannot create executables
3832 See \`config.log' for more details" "$LINENO" 5; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835 $as_echo "yes" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3838 $as_echo_n "checking for C compiler default output file name... " >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3840 $as_echo "$ac_file" >&6; }
3841 ac_exeext=$ac_cv_exeext
3843 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3844 ac_clean_files=$ac_clean_files_save
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3846 $as_echo_n "checking for suffix of executables... " >&6; }
3847 if { { ac_try="$ac_link"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3860 # work properly (i.e., refer to `conftest.exe'), while it won't with
3862 for ac_file in conftest.exe conftest conftest.*; do
3863 test -f "$ac_file" || continue
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3875 See \`config.log' for more details" "$LINENO" 5; }
3877 rm -f conftest conftest$ac_cv_exeext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 $as_echo "$ac_cv_exeext" >&6; }
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3890 FILE *f = fopen ("conftest.out", "w");
3891 return ferror (f) || fclose (f) != 0;
3897 ac_clean_files="$ac_clean_files conftest.out"
3898 # Check that the compiler produces executables we can run. If not, either
3899 # the compiler is broken, or we cross compile.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3901 $as_echo_n "checking whether we are cross compiling... " >&6; }
3902 if test "$cross_compiling" != yes; then
3903 { { ac_try="$ac_link"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 if { ac_try='./conftest$ac_cv_exeext'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3927 if test "$cross_compiling" = maybe; then
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details" "$LINENO" 5; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3939 $as_echo "$cross_compiling" >&6; }
3941 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3944 $as_echo_n "checking for suffix of object files... " >&6; }
3945 if ${ac_cv_objext+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 rm -f conftest.o conftest.obj
3960 if { { ac_try="$ac_compile"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_compile") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 for ac_file in conftest.o conftest.obj conftest.*; do
3972 test -f "$ac_file" || continue;
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3980 $as_echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot compute suffix of object files: cannot compile
3986 See \`config.log' for more details" "$LINENO" 5; }
3988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991 $as_echo "$ac_cv_objext" >&6; }
3992 OBJEXT=$ac_cv_objext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3996 if ${ac_cv_c_compiler_gnu+:} false; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4013 if ac_fn_c_try_compile "$LINENO"; then :
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4023 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4024 if test $ac_compiler_gnu = yes; then
4029 ac_test_CFLAGS=${CFLAGS+set}
4030 ac_save_CFLAGS=$CFLAGS
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4032 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4033 if ${ac_cv_prog_cc_g+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 ac_save_c_werror_flag=$ac_c_werror_flag
4037 ac_c_werror_flag=yes
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4066 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_c_werror_flag=$ac_save_c_werror_flag
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_c_werror_flag=$ac_save_c_werror_flag
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4093 $as_echo "$ac_cv_prog_cc_g" >&6; }
4094 if test "$ac_test_CFLAGS" = set; then
4095 CFLAGS=$ac_save_CFLAGS
4096 elif test $ac_cv_prog_cc_g = yes; then
4097 if test "$GCC" = yes; then
4103 if test "$GCC" = yes; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4110 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4111 if ${ac_cv_prog_cc_c89+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 ac_cv_prog_cc_c89=no
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/stat.h>
4122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4123 struct buf { int x; };
4124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4125 static char *e (p, i)
4131 static char *f (char * (*g) (char **, int), char **p, ...)
4136 s = g (p, va_arg (v,int));
4141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4142 function prototypes and stuff, but not '\xHH' hex character constants.
4143 These don't provoke an error unfortunately, instead are silently treated
4144 as 'x'. The following induces an error, until -std is added to get
4145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4146 array size at least. It's necessary to write '\x00'==0 to get something
4147 that's true only with -std. */
4148 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4151 inside strings and character constants. */
4153 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4155 int test (int i, double x);
4156 struct s1 {int (*f) (int a);};
4157 struct s2 {int (*f) (double a);};
4158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4172 CC="$ac_save_CC $ac_arg"
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_prog_cc_c89=$ac_arg
4176 rm -f core conftest.err conftest.$ac_objext
4177 test "x$ac_cv_prog_cc_c89" != "xno" && break
4179 rm -f conftest.$ac_ext
4184 case "x$ac_cv_prog_cc_c89" in
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4187 $as_echo "none needed" >&6; } ;;
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190 $as_echo "unsupported" >&6; } ;;
4192 CC="$CC $ac_cv_prog_cc_c89"
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4194 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4196 if test "x$ac_cv_prog_cc_c89" != xno; then :
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 DEPDIR="${am__leading_dot}deps"
4207 ac_config_commands="$ac_config_commands depfiles"
4210 am_make=${MAKE-make}
4211 cat > confinc << 'END'
4213 @echo this is the am__doit target
4216 # If we don't find an include directive, just comment out the code.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4222 # First try GNU make style include.
4223 echo "include confinc" > confmf
4224 # Ignore all kinds of additional output from `make'.
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4232 # Now try BSD make style include.
4233 if test "$am__include" = "#"; then
4234 echo '.include "confinc"' > confmf
4235 case `$am_make -s -f confmf 2> /dev/null` in #(
4236 *the\ am__doit\ target*)
4237 am__include=.include
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4246 $as_echo "$_am_result" >&6; }
4247 rm -f confinc confmf
4249 # Check whether --enable-dependency-tracking was given.
4250 if test "${enable_dependency_tracking+set}" = set; then :
4251 enableval=$enable_dependency_tracking;
4254 if test "x$enable_dependency_tracking" != xno; then
4255 am_depcomp="$ac_aux_dir/depcomp"
4259 if test "x$enable_dependency_tracking" != xno; then
4269 depcc="$CC" am_compiler_list=
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4272 $as_echo_n "checking dependency style of $depcc... " >&6; }
4273 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4277 # We make a subdir and do the tests there. Otherwise we can end up
4278 # making bogus files that we don't know about and never remove. For
4279 # instance it was reported that on HP-UX the gcc test will end up
4280 # making a dummy file named `D' -- because `-MD' means `put the output
4284 # Copy depcomp to subdir because otherwise we won't find it if we're
4285 # using a relative directory.
4286 cp "$am_depcomp" conftest.dir
4288 # We will build objects and dependencies in a subdirectory because
4289 # it helps to detect inapplicable dependency modes. For instance
4290 # both Tru64's cc and ICC support -MD to output dependencies as a
4291 # side effect of compilation, but ICC will put the dependencies in
4292 # the current directory while Tru64 will put them in the object
4296 am_cv_CC_dependencies_compiler_type=none
4297 if test "$am_compiler_list" = ""; then
4298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4301 case " $depcc " in #(
4302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4305 for depmode in $am_compiler_list; do
4306 # Setup a source with many dependencies, because some compilers
4307 # like to wrap large dependency lists on column 80 (with \), and
4308 # we should not choose a depcomp mode which is confused by this.
4310 # We need to recreate these files for each test, as the compiler may
4311 # overwrite some of them when testing with obscure command lines.
4312 # This happens at least with the AIX C compiler.
4314 for i in 1 2 3 4 5 6; do
4315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4316 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4317 # Solaris 8's {/usr,}/bin/sh.
4318 touch sub/conftst$i.h
4320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4322 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4323 # mode. It turns out that the SunPro C++ compiler does not properly
4324 # handle `-M -o', and we need to detect this. Also, some Intel
4325 # versions had trouble with output in subdirs
4326 am__obj=sub/conftest.${OBJEXT-o}
4327 am__minus_obj="-o $am__obj"
4330 # This depmode causes a compiler race in universal mode.
4331 test "$am__universal" = false || continue
4334 # after this tag, mechanisms are not by side-effect, so they'll
4335 # only be used when explicitly requested
4336 if test "x$enable_dependency_tracking" = xyes; then
4342 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4343 # This compiler won't grok `-c -o', but also, the minuso test has
4344 # not run yet. These depmodes are late enough in the game, and
4345 # so weak that their functioning should not be impacted.
4346 am__obj=conftest.${OBJEXT-o}
4351 if depmode=$depmode \
4352 source=sub/conftest.c object=$am__obj \
4353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4355 >/dev/null 2>conftest.err &&
4356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4360 # icc doesn't choke on unknown options, it will just issue warnings
4361 # or remarks (even with -Werror). So we grep stderr for any message
4362 # that says an option was ignored or not supported.
4363 # When given -MP, icc 7.0 and 7.1 complain thusly:
4364 # icc: Command line warning: ignoring option '-M'; no argument required
4365 # The diagnosis changed in icc 8.0:
4366 # icc: Command line remark: option '-MP' not supported
4367 if (grep 'ignoring option' conftest.err ||
4368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369 am_cv_CC_dependencies_compiler_type=$depmode
4378 am_cv_CC_dependencies_compiler_type=none
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4383 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4384 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4387 test "x$enable_dependency_tracking" != xno \
4388 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4390 am__fastdepCC_FALSE='#'
4392 am__fastdepCC_TRUE='#'
4393 am__fastdepCC_FALSE=
4398 # Since we use gnulib: gl_EARLY must be called as soon as possible after
4399 # the C compiler is checked. The others could be later, but we just
4400 # keep everything together.
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4413 if test -z "$CPP"; then
4414 if ${ac_cv_prog_CPP+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 # Double quotes because CPP needs to be expanded
4418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421 for ac_c_preproc_warn_flag in '' yes
4423 # Use a header file that comes with gcc, so configuring glibc
4424 # with a fresh cross-compiler works.
4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426 # <limits.h> exists even on freestanding compilers.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4432 # include <limits.h>
4434 # include <assert.h>
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4441 # Broken: fails on valid input.
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4446 # OK, works on sane cases. Now check whether nonexistent headers
4447 # can be detected and how.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453 # Broken: success on invalid input.
4456 # Passes both tests.
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478 $as_echo "$CPP" >&6; }
4480 for ac_c_preproc_warn_flag in '' yes
4482 # Use a header file that comes with gcc, so configuring glibc
4483 # with a fresh cross-compiler works.
4484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 # <limits.h> exists even on freestanding compilers.
4486 # On the NeXT, cc -E runs the code through the compiler's parser,
4487 # not just through cpp. "Syntax error" is here to catch this case.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4491 # include <limits.h>
4493 # include <assert.h>
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: fails on valid input.
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4505 # OK, works on sane cases. Now check whether nonexistent headers
4506 # can be detected and how.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <ac_nonexistent.h>
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4512 # Broken: success on invalid input.
4515 # Passes both tests.
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.i conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then :
4527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details" "$LINENO" 5; }
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -z "$GREP"; then
4546 ac_path_GREP_found=false
4547 # Loop through the user's path and test for each of PROGNAME-LIST
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 test -z "$as_dir" && as_dir=.
4553 for ac_prog in grep ggrep; do
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558 # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 $as_echo_n 0123456789 >"conftest.in"
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 $as_echo 'GREP' >> "conftest.nl"
4571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573 as_fn_arith $ac_count + 1 && ac_count=$as_val
4574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_GREP="$ac_path_GREP"
4577 ac_path_GREP_max=$ac_count
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 $ac_path_GREP_found && break 3
4590 if test -z "$ac_cv_path_GREP"; then
4591 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 ac_cv_path_GREP=$GREP
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600 GREP="$ac_cv_path_GREP"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609 then ac_cv_path_EGREP="$GREP -E"
4611 if test -z "$EGREP"; then
4612 ac_path_EGREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in egrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624 # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 $as_echo_n 0123456789 >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'EGREP' >> "conftest.nl"
4637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_EGREP="$ac_path_EGREP"
4643 ac_path_EGREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 $ac_path_EGREP_found && break 3
4656 if test -z "$ac_cv_path_EGREP"; then
4657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 ac_cv_path_EGREP=$EGREP
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667 EGREP="$ac_cv_path_EGREP"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4673 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4674 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4675 $as_echo_n "(cached) " >&6
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4688 gl_cv_c_amsterdam_compiler=yes
4690 gl_cv_c_amsterdam_compiler=no
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4697 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4698 if test -z "$AR"; then
4699 if test $gl_cv_c_amsterdam_compiler = yes; then
4701 if test -z "$ARFLAGS"; then
4705 if test -n "$ac_tool_prefix"; then
4706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}ar; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_AR+:} false; then :
4711 $as_echo_n "(cached) " >&6
4713 if test -n "$AR"; then
4714 ac_cv_prog_AR="$AR" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_AR="${ac_tool_prefix}ar"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 if test -n "$AR"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4736 $as_echo "$AR" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4744 if test -z "$ac_cv_prog_AR"; then
4746 # Extract the first word of "ar", so it can be a program name with args.
4747 set dummy ar; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$ac_ct_AR"; then
4754 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_ac_ct_AR="ar"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4774 if test -n "$ac_ct_AR"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4776 $as_echo "$ac_ct_AR" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4782 if test "x$ac_ct_AR" = x; then
4785 case $cross_compiling:$ac_tool_warned in
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4797 if test -z "$ARFLAGS"; then
4802 if test -z "$ARFLAGS"; then
4808 if test -z "$RANLIB"; then
4809 if test $gl_cv_c_amsterdam_compiler = yes; then
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_RANLIB+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$RANLIB"; then
4821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 RANLIB=$ac_cv_prog_RANLIB
4841 if test -n "$RANLIB"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4843 $as_echo "$RANLIB" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852 ac_ct_RANLIB=$RANLIB
4853 # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$ac_ct_RANLIB"; then
4861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_RANLIB="ranlib"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4883 $as_echo "$ac_ct_RANLIB" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4889 if test "x$ac_ct_RANLIB" = x; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4898 RANLIB=$ac_ct_RANLIB
4901 RANLIB="$ac_cv_prog_RANLIB"
4908 # Make sure we can run config.sub.
4909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4910 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4913 $as_echo_n "checking build system type... " >&6; }
4914 if ${ac_cv_build+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 ac_build_alias=$build_alias
4918 test "x$ac_build_alias" = x &&
4919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4920 test "x$ac_build_alias" = x &&
4921 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4923 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4927 $as_echo "$ac_cv_build" >&6; }
4928 case $ac_cv_build in
4930 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4933 ac_save_IFS=$IFS; IFS='-'
4939 # Remember, the first character of IFS is used to create $*,
4940 # except with old shells:
4943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4947 $as_echo_n "checking host system type... " >&6; }
4948 if ${ac_cv_host+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 if test "x$host_alias" = x; then
4952 ac_cv_host=$ac_cv_build
4954 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4955 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4960 $as_echo "$ac_cv_host" >&6; }
4963 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4966 ac_save_IFS=$IFS; IFS='-'
4972 # Remember, the first character of IFS is used to create $*,
4973 # except with old shells:
4976 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4980 $as_echo_n "checking for ANSI C header files... " >&6; }
4981 if ${ac_cv_header_stdc+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_cv_header_stdc=yes
5002 ac_cv_header_stdc=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 if test $ac_cv_header_stdc = yes; then
5007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "memchr" >/dev/null 2>&1; then :
5017 ac_cv_header_stdc=no
5023 if test $ac_cv_header_stdc = yes; then
5024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "free" >/dev/null 2>&1; then :
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042 if test "$cross_compiling" = yes; then :
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 #if ((' ' & 0x0FF) == 0x020)
5050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5053 # define ISLOWER(c) \
5054 (('a' <= (c) && (c) <= 'i') \
5055 || ('j' <= (c) && (c) <= 'r') \
5056 || ('s' <= (c) && (c) <= 'z'))
5057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5065 for (i = 0; i < 256; i++)
5066 if (XOR (islower (i), ISLOWER (i))
5067 || toupper (i) != TOUPPER (i))
5072 if ac_fn_c_try_run "$LINENO"; then :
5075 ac_cv_header_stdc=no
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078 conftest.$ac_objext conftest.beam conftest.$ac_ext
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5084 $as_echo "$ac_cv_header_stdc" >&6; }
5085 if test $ac_cv_header_stdc = yes; then
5087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093 inttypes.h stdint.h unistd.h
5095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5099 cat >>confdefs.h <<_ACEOF
5100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5119 if test "$MINIX" = yes; then
5121 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5124 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5127 $as_echo "#define _MINIX 1" >>confdefs.h
5134 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5142 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5148 # define __EXTENSIONS__ 1
5149 $ac_includes_default
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_safe_to_define___extensions__=yes
5161 ac_cv_safe_to_define___extensions__=no
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5167 test $ac_cv_safe_to_define___extensions__ = yes &&
5168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5172 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5174 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5176 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5178 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5189 # Code from module announce-gen:
5190 # Code from module c-ctype:
5191 # Code from module c-strcase:
5192 # Code from module c-strcaseeq:
5193 # Code from module close-stream:
5194 # Code from module closeout:
5195 # Code from module configmake:
5196 # Code from module do-release-commit-and-tag:
5197 # Code from module errno:
5198 # Code from module error:
5199 # Code from module exitfail:
5200 # Code from module extensions:
5202 # Code from module fdl:
5203 # Code from module fpending:
5204 # Code from module gendocs:
5205 # Code from module getopt-gnu:
5206 # Code from module getopt-posix:
5207 # Code from module gettext:
5208 # Code from module gettext-h:
5209 # Code from module gnumakefile:
5210 # Code from module gnupload:
5211 # Code from module havelib:
5212 # Code from module include_next:
5213 # Code from module inline:
5214 # Code from module intprops:
5215 # Code from module localcharset:
5216 # Code from module maintainer-makefile:
5217 # Code from module mbrtowc:
5218 # Code from module mbsinit:
5219 # Code from module msvc-inval:
5220 # Code from module msvc-nothrow:
5221 # Code from module nocrash:
5222 # Code from module progname:
5223 # Code from module quotearg:
5224 # Code from module quotearg-simple:
5225 # Code from module readme-release:
5226 # Code from module snippet/_Noreturn:
5227 # Code from module snippet/arg-nonnull:
5228 # Code from module snippet/c++defs:
5229 # Code from module snippet/warn-on-use:
5230 # Code from module ssize_t:
5231 # Code from module stdbool:
5232 # Code from module stddef:
5233 # Code from module stdlib:
5234 # Code from module streq:
5235 # Code from module strerror:
5236 # Code from module strerror-override:
5237 # Code from module string:
5238 # Code from module unistd:
5239 # Code from module useless-if-before-free:
5240 # Code from module vc-list-files:
5241 # Code from module verify:
5242 # Code from module wchar:
5243 # Code from module wctype-h:
5244 # Code from module xalloc:
5245 # Code from module xalloc-die:
5246 # Code from module xalloc-oversized:
5253 LIBC_FATAL_STDERR_=1
5254 export LIBC_FATAL_STDERR_
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5259 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5260 if ${gl_cv_have_include_next+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 rm -rf conftestd1a conftestd1b conftestd2
5264 mkdir conftestd1a conftestd1b conftestd2
5265 cat <<EOF > conftestd1a/conftest.h
5266 #define DEFINED_IN_CONFTESTD1
5267 #include_next <conftest.h>
5268 #ifdef DEFINED_IN_CONFTESTD2
5271 #error "include_next doesn't work"
5274 cat <<EOF > conftestd1b/conftest.h
5275 #define DEFINED_IN_CONFTESTD1
5277 #include_next <conftest.h>
5278 #ifdef DEFINED_IN_CONFTESTD2
5281 #error "include_next doesn't work"
5284 cat <<EOF > conftestd2/conftest.h
5285 #ifndef DEFINED_IN_CONFTESTD1
5286 #error "include_next test doesn't work"
5288 #define DEFINED_IN_CONFTESTD2
5290 gl_save_CPPFLAGS="$CPPFLAGS"
5291 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <conftest.h>
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 gl_cv_have_include_next=yes
5299 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <conftest.h>
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 gl_cv_have_include_next=buggy
5307 gl_cv_have_include_next=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 CPPFLAGS="$gl_save_CPPFLAGS"
5314 rm -rf conftestd1a conftestd1b conftestd2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5318 $as_echo "$gl_cv_have_include_next" >&6; }
5319 PRAGMA_SYSTEM_HEADER=
5320 if test $gl_cv_have_include_next = yes; then
5321 INCLUDE_NEXT=include_next
5322 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5323 if test -n "$GCC"; then
5324 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5327 if test $gl_cv_have_include_next = buggy; then
5328 INCLUDE_NEXT=include
5329 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5331 INCLUDE_NEXT=include
5332 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5339 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5340 if ${gl_cv_pragma_columns+:} false; then :
5341 $as_echo_n "(cached) " >&6
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352 $EGREP "choke me" >/dev/null 2>&1; then :
5353 gl_cv_pragma_columns=yes
5355 gl_cv_pragma_columns=no
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5362 $as_echo "$gl_cv_pragma_columns" >&6; }
5363 if test $gl_cv_pragma_columns = yes; then
5364 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5373 $as_echo_n "checking for complete errno.h... " >&6; }
5374 if ${gl_cv_header_errno_h_complete+:} false; then :
5375 $as_echo_n "(cached) " >&6
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5388 #if !defined ENOLINK
5394 #if !defined EMULTIHOP
5397 #if !defined EBADMSG
5400 #if !defined EOVERFLOW
5403 #if !defined ENOTSUP
5406 #if !defined ENETRESET
5409 #if !defined ECONNABORTED
5418 #if !defined ECANCELED
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "booboo" >/dev/null 2>&1; then :
5425 gl_cv_header_errno_h_complete=no
5427 gl_cv_header_errno_h_complete=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5434 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5435 if test $gl_cv_header_errno_h_complete = yes; then
5446 if test $gl_cv_have_include_next = yes; then
5447 gl_cv_next_errno_h='<'errno.h'>'
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5450 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5451 if ${gl_cv_next_errno_h+:} false; then :
5452 $as_echo_n "(cached) " >&6
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5461 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5462 *) gl_absname_cpp="$ac_cpp" ;;
5467 gl_dirsep_regex='[/\\]'
5470 gl_dirsep_regex='\/'
5473 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5475 gl_header_literal_regex=`echo 'errno.h' \
5476 | sed -e "$gl_make_literal_regex_sed"`
5477 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5478 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5483 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5484 sed -n "$gl_absolute_header_sed"`'"'
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5489 $as_echo "$gl_cv_next_errno_h" >&6; }
5491 NEXT_ERRNO_H=$gl_cv_next_errno_h
5493 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5494 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5495 gl_next_as_first_directive='<'errno.h'>'
5497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5498 gl_next_as_first_directive=$gl_cv_next_errno_h
5500 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5508 if test -n "$ERRNO_H"; then
5509 GL_GENERATE_ERRNO_H_TRUE=
5510 GL_GENERATE_ERRNO_H_FALSE='#'
5512 GL_GENERATE_ERRNO_H_TRUE='#'
5513 GL_GENERATE_ERRNO_H_FALSE=
5517 if test -n "$ERRNO_H"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5519 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5520 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
5521 $as_echo_n "(cached) " >&6
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "yes" >/dev/null 2>&1; then :
5535 gl_cv_header_errno_h_EMULTIHOP=yes
5537 gl_cv_header_errno_h_EMULTIHOP=no
5541 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5545 #define _XOPEN_SOURCE_EXTENDED 1
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 $EGREP "yes" >/dev/null 2>&1; then :
5554 gl_cv_header_errno_h_EMULTIHOP=hidden
5558 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5559 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5560 #define _XOPEN_SOURCE_EXTENDED 1
5562 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5574 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5575 case $gl_cv_header_errno_h_EMULTIHOP in
5577 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5580 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5588 if test -n "$ERRNO_H"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5590 $as_echo_n "checking for ENOLINK value... " >&6; }
5591 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
5592 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605 $EGREP "yes" >/dev/null 2>&1; then :
5606 gl_cv_header_errno_h_ENOLINK=yes
5608 gl_cv_header_errno_h_ENOLINK=no
5612 if test $gl_cv_header_errno_h_ENOLINK = no; then
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 #define _XOPEN_SOURCE_EXTENDED 1
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 $EGREP "yes" >/dev/null 2>&1; then :
5625 gl_cv_header_errno_h_ENOLINK=hidden
5629 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5630 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5631 #define _XOPEN_SOURCE_EXTENDED 1
5633 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5645 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5646 case $gl_cv_header_errno_h_ENOLINK in
5648 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5651 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5659 if test -n "$ERRNO_H"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5661 $as_echo_n "checking for EOVERFLOW value... " >&6; }
5662 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
5663 $as_echo_n "(cached) " >&6
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676 $EGREP "yes" >/dev/null 2>&1; then :
5677 gl_cv_header_errno_h_EOVERFLOW=yes
5679 gl_cv_header_errno_h_EOVERFLOW=no
5683 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5687 #define _XOPEN_SOURCE_EXTENDED 1
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "yes" >/dev/null 2>&1; then :
5696 gl_cv_header_errno_h_EOVERFLOW=hidden
5700 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5701 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
5702 #define _XOPEN_SOURCE_EXTENDED 1
5704 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5716 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5717 case $gl_cv_header_errno_h_EOVERFLOW in
5719 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5722 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5730 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5731 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5737 cat >>confdefs.h <<_ACEOF
5738 #define HAVE_DECL_STRERROR_R $ac_have_decl
5741 for ac_func in strerror_r
5743 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5744 if test "x$ac_cv_func_strerror_r" = xyes; then :
5745 cat >>confdefs.h <<_ACEOF
5746 #define HAVE_STRERROR_R 1
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5753 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5754 if ${ac_cv_func_strerror_r_char_p+:} false; then :
5755 $as_echo_n "(cached) " >&6
5758 ac_cv_func_strerror_r_char_p=no
5759 if test $ac_cv_have_decl_strerror_r = yes; then
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 $ac_includes_default
5768 char x = *strerror_r (0, buf, sizeof buf);
5769 char *p = strerror_r (0, buf, sizeof buf);
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_func_strerror_r_char_p=yes
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 # strerror_r is not declared. Choose between
5782 # systems that have relatively inaccessible declarations for the
5783 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5784 # former has a strerror_r that returns char*, while the latter
5785 # has a strerror_r that returns `int'.
5786 # This test should segfault on the DEC system.
5787 if test "$cross_compiling" = yes; then :
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 extern char *strerror_r ();
5798 char x = *strerror_r (0, buf, sizeof buf);
5799 return ! isalpha (x);
5804 if ac_fn_c_try_run "$LINENO"; then :
5805 ac_cv_func_strerror_r_char_p=yes
5807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5808 conftest.$ac_objext conftest.beam conftest.$ac_ext
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5815 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5816 if test $ac_cv_func_strerror_r_char_p = yes; then
5818 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5823 $as_echo_n "checking for inline... " >&6; }
5824 if ${ac_cv_c_inline+:} false; then :
5825 $as_echo_n "(cached) " >&6
5828 for ac_kw in inline __inline__ __inline; do
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5833 static $ac_kw foo_t static_foo () {return 0; }
5834 $ac_kw foo_t foo () {return 0; }
5838 if ac_fn_c_try_compile "$LINENO"; then :
5839 ac_cv_c_inline=$ac_kw
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 test "$ac_cv_c_inline" != no && break
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5847 $as_echo "$ac_cv_c_inline" >&6; }
5849 case $ac_cv_c_inline in
5852 case $ac_cv_c_inline in
5854 *) ac_val=$ac_cv_c_inline;;
5856 cat >>confdefs.h <<_ACEOF
5858 #define inline $ac_val
5865 XGETTEXT_EXTRA_OPTIONS=
5870 for ac_header in $ac_header_list
5872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889 for ac_func in $ac_func_list
5891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5893 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5894 cat >>confdefs.h <<_ACEOF
5895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5911 GNULIB_EUIDACCESS=0;
5919 GNULIB_GETDOMAINNAME=0;
5920 GNULIB_GETDTABLESIZE=0;
5922 GNULIB_GETHOSTNAME=0;
5924 GNULIB_GETLOGIN_R=0;
5925 GNULIB_GETPAGESIZE=0;
5926 GNULIB_GETUSERSHELL=0;
5927 GNULIB_GROUP_MEMBER=0;
5939 GNULIB_READLINKAT=0;
5941 GNULIB_SETHOSTNAME=0;
5946 GNULIB_UNISTD_H_NONBLOCKING=0;
5947 GNULIB_UNISTD_H_SIGPIPE=0;
5962 HAVE_GETDTABLESIZE=1;
5967 HAVE_GROUP_MEMBER=1;
5983 HAVE_DECL_ENVIRON=1;
5985 HAVE_DECL_FDATASYNC=1;
5986 HAVE_DECL_GETDOMAINNAME=1;
5987 HAVE_DECL_GETLOGIN_R=1;
5988 HAVE_DECL_GETPAGESIZE=1;
5989 HAVE_DECL_GETUSERSHELL=1;
5990 HAVE_DECL_SETHOSTNAME=1;
5991 HAVE_DECL_TTYNAME_R=1;
6000 REPLACE_GETDOMAINNAME=0;
6001 REPLACE_GETLOGIN_R=0;
6002 REPLACE_GETGROUPS=0;
6003 REPLACE_GETPAGESIZE=0;
6016 REPLACE_TTYNAME_R=0;
6021 UNISTD_H_HAVE_WINSOCK2_H=0;
6022 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6040 if test $gl_cv_have_include_next = yes; then
6041 gl_cv_next_getopt_h='<'getopt.h'>'
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
6044 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
6045 if ${gl_cv_next_getopt_h+:} false; then :
6046 $as_echo_n "(cached) " >&6
6049 if test $ac_cv_header_getopt_h = yes; then
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6059 *) gl_absname_cpp="$ac_cpp" ;;
6064 gl_dirsep_regex='[/\\]'
6067 gl_dirsep_regex='\/'
6070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6072 gl_header_literal_regex=`echo 'getopt.h' \
6073 | sed -e "$gl_make_literal_regex_sed"`
6074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6080 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6081 sed -n "$gl_absolute_header_sed"`'"'
6083 gl_cv_next_getopt_h='<'getopt.h'>'
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
6089 $as_echo "$gl_cv_next_getopt_h" >&6; }
6091 NEXT_GETOPT_H=$gl_cv_next_getopt_h
6093 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6095 gl_next_as_first_directive='<'getopt.h'>'
6097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6098 gl_next_as_first_directive=$gl_cv_next_getopt_h
6100 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
6105 if test $ac_cv_header_getopt_h = yes; then
6114 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6115 for ac_header in getopt.h
6117 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
6118 if test "x$ac_cv_header_getopt_h" = xyes; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define HAVE_GETOPT_H 1
6124 gl_replace_getopt=yes
6131 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6132 for ac_func in getopt_long_only
6134 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
6135 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define HAVE_GETOPT_LONG_ONLY 1
6141 gl_replace_getopt=yes
6147 if test -z "$gl_replace_getopt"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
6149 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
6150 if ${gl_cv_func_getopt_posix+:} false; then :
6151 $as_echo_n "(cached) " >&6
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6160 int *p = &optreset; return optreset;
6165 if ac_fn_c_try_link "$LINENO"; then :
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6174 return !getopt_clip;
6179 if ac_fn_c_try_compile "$LINENO"; then :
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6189 gl_save_CPPFLAGS=$CPPFLAGS
6190 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
6191 if test "$cross_compiling" = yes; then :
6193 mingw*) gl_cv_func_getopt_posix="guessing no";;
6194 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
6195 *) gl_cv_func_getopt_posix="guessing yes";;
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6210 static char program[] = "program";
6211 static char a[] = "-a";
6212 static char foo[] = "foo";
6213 static char bar[] = "bar";
6214 char *argv[] = { program, a, foo, bar, NULL };
6217 optind = OPTIND_MIN;
6220 c = getopt (4, argv, "ab");
6223 c = getopt (4, argv, "ab");
6229 /* Some internal state exists at this point. */
6231 static char program[] = "program";
6232 static char donald[] = "donald";
6233 static char p[] = "-p";
6234 static char billy[] = "billy";
6235 static char duck[] = "duck";
6236 static char a[] = "-a";
6237 static char bar[] = "bar";
6238 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
6241 optind = OPTIND_MIN;
6244 c = getopt (7, argv, "+abp:q:");
6247 if (!(strcmp (argv[0], "program") == 0))
6249 if (!(strcmp (argv[1], "donald") == 0))
6251 if (!(strcmp (argv[2], "-p") == 0))
6253 if (!(strcmp (argv[3], "billy") == 0))
6255 if (!(strcmp (argv[4], "duck") == 0))
6257 if (!(strcmp (argv[5], "-a") == 0))
6259 if (!(strcmp (argv[6], "bar") == 0))
6264 /* Detect MacOS 10.5, AIX 7.1 bug. */
6266 static char program[] = "program";
6267 static char ab[] = "-ab";
6268 char *argv[3] = { program, ab, NULL };
6269 optind = OPTIND_MIN;
6271 if (getopt (2, argv, "ab:") != 'a')
6273 if (getopt (2, argv, "ab:") != '?')
6285 if ac_fn_c_try_run "$LINENO"; then :
6286 gl_cv_func_getopt_posix=yes
6288 gl_cv_func_getopt_posix=no
6290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6291 conftest.$ac_objext conftest.beam conftest.$ac_ext
6294 CPPFLAGS=$gl_save_CPPFLAGS
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
6298 $as_echo "$gl_cv_func_getopt_posix" >&6; }
6299 case "$gl_cv_func_getopt_posix" in
6300 *no) gl_replace_getopt=yes ;;
6304 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
6306 $as_echo_n "checking for working GNU getopt function... " >&6; }
6307 if ${gl_cv_func_getopt_gnu+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
6311 # optstring is necessary for programs like m4 that have POSIX-mandated
6312 # semantics for supporting options interspersed with files.
6313 # Also, since getopt_long is a GNU extension, we require optind=0.
6314 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
6315 # so take care to revert to the correct (non-)export state.
6316 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
6317 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
6318 xx) gl_had_POSIXLY_CORRECT=exported ;;
6319 x) gl_had_POSIXLY_CORRECT=yes ;;
6320 *) gl_had_POSIXLY_CORRECT= ;;
6323 export POSIXLY_CORRECT
6324 if test "$cross_compiling" = yes; then :
6325 case $host_os:$ac_cv_have_decl_optreset in
6326 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
6327 *:yes) gl_cv_func_getopt_gnu=no;;
6328 *) gl_cv_func_getopt_gnu=yes;;
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6339 #if defined __MACH__ && defined __APPLE__
6340 /* Avoid a crash on MacOS X. */
6341 #include <mach/mach.h>
6342 #include <mach/mach_error.h>
6343 #include <mach/thread_status.h>
6344 #include <mach/exception.h>
6345 #include <mach/task.h>
6346 #include <pthread.h>
6347 /* The exception port on which our thread listens. */
6348 static mach_port_t our_exception_port;
6349 /* The main function of the thread listening for exceptions of type
6352 mach_exception_thread (void *arg)
6354 /* Buffer for a message to be received. */
6356 mach_msg_header_t head;
6357 mach_msg_body_t msgh_body;
6360 mach_msg_return_t retval;
6361 /* Wait for a message on the exception port. */
6362 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6363 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6364 if (retval != MACH_MSG_SUCCESS)
6371 mach_port_t self = mach_task_self ();
6372 /* Allocate a port on which the thread shall listen for exceptions. */
6373 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6375 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6376 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6377 MACH_MSG_TYPE_MAKE_SEND)
6379 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6381 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6382 /* Create the thread listening on the exception port. */
6383 pthread_attr_t attr;
6385 if (pthread_attr_init (&attr) == 0
6386 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6387 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6388 pthread_attr_destroy (&attr);
6389 /* Replace the exception port info for these exceptions with our own.
6390 Note that we replace the exception port for the entire task, not only
6391 for a particular thread. This has the effect that when our exception
6392 port gets the message, the thread specific exception port has already
6393 been asked, and we don't need to bother about it.
6394 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6395 task_set_exception_ports (self, mask, our_exception_port,
6396 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6401 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6402 /* Avoid a crash on native Windows. */
6403 #define WIN32_LEAN_AND_MEAN
6404 #include <windows.h>
6405 #include <winerror.h>
6407 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6409 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6411 case EXCEPTION_ACCESS_VIOLATION:
6412 case EXCEPTION_IN_PAGE_ERROR:
6413 case EXCEPTION_STACK_OVERFLOW:
6414 case EXCEPTION_GUARD_PAGE:
6415 case EXCEPTION_PRIV_INSTRUCTION:
6416 case EXCEPTION_ILLEGAL_INSTRUCTION:
6417 case EXCEPTION_DATATYPE_MISALIGNMENT:
6418 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6419 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6422 return EXCEPTION_CONTINUE_SEARCH;
6427 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6430 /* Avoid a crash on POSIX systems. */
6432 /* A POSIX signal handler. */
6434 exception_handler (int sig)
6442 signal (SIGSEGV, exception_handler);
6445 signal (SIGBUS, exception_handler);
6459 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
6460 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
6461 OSF/1 5.1, Solaris 10. */
6463 static char conftest[] = "conftest";
6464 static char plus[] = "-+";
6465 char *argv[3] = { conftest, plus, NULL };
6467 if (getopt (2, argv, "+a") != '?')
6470 /* This code succeeds on glibc 2.8, mingw,
6471 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
6472 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
6474 static char program[] = "program";
6475 static char p[] = "-p";
6476 static char foo[] = "foo";
6477 static char bar[] = "bar";
6478 char *argv[] = { program, p, foo, bar, NULL };
6481 if (getopt (4, argv, "p::") != 'p')
6483 else if (optarg != NULL)
6485 else if (getopt (4, argv, "p::") != -1)
6487 else if (optind != 2)
6490 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
6492 static char program[] = "program";
6493 static char foo[] = "foo";
6494 static char p[] = "-p";
6495 char *argv[] = { program, foo, p, NULL };
6497 if (getopt (3, argv, "-p") != 1)
6499 else if (getopt (3, argv, "-p") != 'p')
6502 /* This code fails on glibc 2.11. */
6504 static char program[] = "program";
6505 static char b[] = "-b";
6506 static char a[] = "-a";
6507 char *argv[] = { program, b, a, NULL };
6508 optind = opterr = 0;
6509 if (getopt (3, argv, "+:a:b") != 'b')
6511 else if (getopt (3, argv, "+:a:b") != ':')
6514 /* This code dumps core on glibc 2.14. */
6516 static char program[] = "program";
6517 static char w[] = "-W";
6518 static char dummy[] = "dummy";
6519 char *argv[] = { program, w, dummy, NULL };
6520 optind = opterr = 1;
6521 if (getopt (3, argv, "W;") != 'W')
6530 if ac_fn_c_try_run "$LINENO"; then :
6531 gl_cv_func_getopt_gnu=yes
6533 gl_cv_func_getopt_gnu=no
6535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6536 conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 case $gl_had_POSIXLY_CORRECT in
6541 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
6542 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
6547 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
6548 if test "$gl_cv_func_getopt_gnu" = "no"; then
6549 gl_replace_getopt=yes
6560 if test -n "$gl_replace_getopt"; then :
6567 if test $REPLACE_GETOPT = 1; then
6571 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
6577 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
6578 if test "x$ac_cv_have_decl_getenv" = xyes; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define HAVE_DECL_GETENV $ac_have_decl
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6591 if ${am_cv_langinfo_codeset+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 #include <langinfo.h>
6600 char* cs = nl_langinfo(CODESET); return !cs;
6605 if ac_fn_c_try_link "$LINENO"; then :
6606 am_cv_langinfo_codeset=yes
6608 am_cv_langinfo_codeset=no
6610 rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6615 $as_echo "$am_cv_langinfo_codeset" >&6; }
6616 if test $am_cv_langinfo_codeset = yes; then
6618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6632 $as_echo_n "checking for working fcntl.h... " >&6; }
6633 if ${gl_cv_header_working_fcntl_h+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 if test "$cross_compiling" = yes; then :
6637 gl_cv_header_working_fcntl_h=cross-compiling
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <sys/types.h>
6642 #include <sys/stat.h>
6644 # include <unistd.h>
6645 #else /* on Windows with MSVC */
6647 # include <stdlib.h>
6648 # defined sleep(n) _sleep ((n) * 1000)
6655 #define O_NOFOLLOW 0
6657 static int const constants[] =
6659 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6660 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6667 int result = !constants;
6670 static char const sym[] = "conftest.sym";
6671 if (symlink (".", sym) != 0)
6675 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6686 static char const file[] = "confdefs.h";
6687 int fd = open (file, O_RDONLY | O_NOATIME);
6693 if (fstat (fd, &st0) != 0)
6699 if (read (fd, &c, 1) != 1)
6703 if (close (fd) != 0)
6708 if (stat (file, &st1) != 0)
6711 if (st0.st_atime != st1.st_atime)
6723 if ac_fn_c_try_run "$LINENO"; then :
6724 gl_cv_header_working_fcntl_h=yes
6727 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6728 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6729 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6730 *) gl_cv_header_working_fcntl_h='no';;
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734 conftest.$ac_objext conftest.beam conftest.$ac_ext
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6739 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6741 case $gl_cv_header_working_fcntl_h in #(
6742 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_WORKING_O_NOATIME $ac_val
6751 case $gl_cv_header_working_fcntl_h in #(
6752 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6756 cat >>confdefs.h <<_ACEOF
6757 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6761 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6762 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6774 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6775 if ${ac_cv_gnu_library_2_1+:} false; then :
6776 $as_echo_n "(cached) " >&6
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6781 #include <features.h>
6782 #ifdef __GNU_LIBRARY__
6783 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793 $EGREP "Lucky" >/dev/null 2>&1; then :
6794 ac_cv_gnu_library_2_1=yes
6796 ac_cv_gnu_library_2_1=no
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6804 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6806 GLIBC21="$ac_cv_gnu_library_2_1"
6816 GNULIB_MBSNRTOWCS=0;
6819 GNULIB_WCSNRTOMBS=0;
6836 GNULIB_WCSCASECMP=0;
6837 GNULIB_WCSNCASECMP=0;
6887 HAVE_DECL_WCWIDTH=1;
6888 REPLACE_MBSTATE_T=0;
6894 REPLACE_MBSRTOWCS=0;
6895 REPLACE_MBSNRTOWCS=0;
6897 REPLACE_WCSRTOMBS=0;
6898 REPLACE_WCSNRTOMBS=0;
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6905 $as_echo_n "checking for mbstate_t... " >&6; }
6906 if ${ac_cv_type_mbstate_t+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 $ac_includes_default
6912 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6914 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6915 included before <wchar.h>. */
6923 mbstate_t x; return sizeof x;
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 ac_cv_type_mbstate_t=yes
6931 ac_cv_type_mbstate_t=no
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6936 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6937 if test $ac_cv_type_mbstate_t = yes; then
6939 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6943 $as_echo "#define mbstate_t int" >>confdefs.h
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6955 $as_echo_n "checking for a traditional japanese locale... " >&6; }
6956 if ${gt_cv_locale_ja+:} false; then :
6957 $as_echo_n "(cached) " >&6
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6965 #if HAVE_LANGINFO_CODESET
6966 # include <langinfo.h>
6975 /* Check whether the given locale name is recognized by the system. */
6976 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6977 /* On native Windows, setlocale(category, "") looks at the system settings,
6978 not at the environment variables. Also, when an encoding suffix such
6979 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6980 category of the locale to "C". */
6981 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6982 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6985 if (setlocale (LC_ALL, "") == NULL) return 1;
6987 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6988 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6989 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6990 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6991 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6992 some unit tests fail.
6993 On MirBSD 10, when an unsupported locale is specified, setlocale()
6994 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6995 #if HAVE_LANGINFO_CODESET
6997 const char *cs = nl_langinfo (CODESET);
6998 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6999 || strcmp (cs, "UTF-8") == 0)
7004 /* On Cygwin, avoid locale names without encoding suffix, because the
7005 locale_charset() function relies on the encoding suffix. Note that
7006 LC_ALL is set on the command line. */
7007 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7009 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
7011 if (MB_CUR_MAX == 1)
7013 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7014 This excludes the UTF-8 encoding (except on MirBSD). */
7015 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7016 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7017 for (p = buf; *p != '\0'; p++)
7018 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7025 (eval $ac_link) 2>&5
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7030 # Handle native Windows specially, because there setlocale() interprets
7031 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7032 # "fr" or "fra" as "French" or "French_France.1252",
7033 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7034 # "ja" as "Japanese" or "Japanese_Japan.932",
7037 # Note that on native Windows, the Japanese locale is
7038 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
7039 # cannot use it here.
7040 gt_cv_locale_ja=none
7043 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7044 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7045 # configure script would override the LC_ALL setting. Likewise for
7046 # LC_CTYPE, which is also set at the beginning of the configure script.
7047 # Test for the AIX locale name.
7048 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7049 gt_cv_locale_ja=ja_JP
7051 # Test for the locale name with explicit encoding suffix.
7052 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7053 gt_cv_locale_ja=ja_JP.EUC-JP
7055 # Test for the HP-UX, OSF/1, NetBSD locale name.
7056 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7057 gt_cv_locale_ja=ja_JP.eucJP
7059 # Test for the IRIX, FreeBSD locale name.
7060 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7061 gt_cv_locale_ja=ja_JP.EUC
7063 # Test for the Solaris 7 locale name.
7064 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7067 # Special test for NetBSD 1.6.
7068 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
7069 gt_cv_locale_ja=ja_JP.eucJP
7072 gt_cv_locale_ja=none
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
7086 $as_echo "$gt_cv_locale_ja" >&6; }
7087 LOCALE_JA=$gt_cv_locale_ja
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
7094 $as_echo_n "checking for a transitional chinese locale... " >&6; }
7095 if ${gt_cv_locale_zh_CN+:} false; then :
7096 $as_echo_n "(cached) " >&6
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7105 #if HAVE_LANGINFO_CODESET
7106 # include <langinfo.h>
7115 /* Check whether the given locale name is recognized by the system. */
7116 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7117 /* On native Windows, setlocale(category, "") looks at the system settings,
7118 not at the environment variables. Also, when an encoding suffix such
7119 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7120 category of the locale to "C". */
7121 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7122 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7125 if (setlocale (LC_ALL, "") == NULL) return 1;
7127 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7128 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7129 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7130 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7131 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7132 some unit tests fail.
7133 On MirBSD 10, when an unsupported locale is specified, setlocale()
7134 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7135 #if HAVE_LANGINFO_CODESET
7137 const char *cs = nl_langinfo (CODESET);
7138 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7139 || strcmp (cs, "UTF-8") == 0)
7144 /* On Cygwin, avoid locale names without encoding suffix, because the
7145 locale_charset() function relies on the encoding suffix. Note that
7146 LC_ALL is set on the command line. */
7147 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7149 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7150 This excludes the UTF-8 encoding (except on MirBSD). */
7151 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7152 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7153 for (p = buf; *p != '\0'; p++)
7154 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7156 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7157 single wide character. This excludes the GB2312 and GBK encodings. */
7158 if (mblen ("\203\062\332\066", 5) != 4)
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7165 (eval $ac_link) 2>&5
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7170 # Handle native Windows specially, because there setlocale() interprets
7171 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7172 # "fr" or "fra" as "French" or "French_France.1252",
7173 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7174 # "ja" as "Japanese" or "Japanese_Japan.932",
7177 # Test for the hypothetical native Windows locale name.
7178 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7179 gt_cv_locale_zh_CN=Chinese_China.54936
7182 gt_cv_locale_zh_CN=none
7186 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7187 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7188 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7189 gt_cv_locale_zh_CN=none
7192 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7193 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7194 # configure script would override the LC_ALL setting. Likewise for
7195 # LC_CTYPE, which is also set at the beginning of the configure script.
7196 # Test for the locale name without encoding suffix.
7197 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7198 gt_cv_locale_zh_CN=zh_CN
7200 # Test for the locale name with explicit encoding suffix.
7201 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7202 gt_cv_locale_zh_CN=zh_CN.GB18030
7205 gt_cv_locale_zh_CN=none
7211 # If there was a link error, due to mblen(), the system is so old that
7212 # it certainly doesn't have a chinese locale.
7213 gt_cv_locale_zh_CN=none
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7219 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7220 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7226 $as_echo_n "checking for a french Unicode locale... " >&6; }
7227 if ${gt_cv_locale_fr_utf8+:} false; then :
7228 $as_echo_n "(cached) " >&6
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7236 #if HAVE_LANGINFO_CODESET
7237 # include <langinfo.h>
7244 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7245 imitates locale dependent behaviour by looking at the environment
7246 variables, and all locales use the UTF-8 encoding. */
7247 #if !(defined __BEOS__ || defined __HAIKU__)
7248 /* Check whether the given locale name is recognized by the system. */
7249 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7250 /* On native Windows, setlocale(category, "") looks at the system settings,
7251 not at the environment variables. Also, when an encoding suffix such
7252 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7253 category of the locale to "C". */
7254 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7255 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7258 if (setlocale (LC_ALL, "") == NULL) return 1;
7260 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7261 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7262 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7263 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7264 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7265 some unit tests fail. */
7266 # if HAVE_LANGINFO_CODESET
7268 const char *cs = nl_langinfo (CODESET);
7269 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7274 /* On Cygwin, avoid locale names without encoding suffix, because the
7275 locale_charset() function relies on the encoding suffix. Note that
7276 LC_ALL is set on the command line. */
7277 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7279 /* Check whether in the abbreviation of the second month, the second
7280 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7281 two bytes long, with UTF-8 encoding. */
7282 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7283 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7284 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7287 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7288 /* Check whether the decimal separator is a comma.
7289 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7290 are nl_langinfo(RADIXCHAR) are both ".". */
7291 if (localeconv () ->decimal_point[0] != ',') return 1;
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298 (eval $ac_link) 2>&5
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7303 # Handle native Windows specially, because there setlocale() interprets
7304 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7305 # "fr" or "fra" as "French" or "French_France.1252",
7306 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7307 # "ja" as "Japanese" or "Japanese_Japan.932",
7310 # Test for the hypothetical native Windows locale name.
7311 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7312 gt_cv_locale_fr_utf8=French_France.65001
7315 gt_cv_locale_fr_utf8=none
7319 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7320 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7321 # configure script would override the LC_ALL setting. Likewise for
7322 # LC_CTYPE, which is also set at the beginning of the configure script.
7323 # Test for the usual locale name.
7324 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7325 gt_cv_locale_fr_utf8=fr_FR
7327 # Test for the locale name with explicit encoding suffix.
7328 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7329 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7331 # Test for the Solaris 7 locale name.
7332 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333 gt_cv_locale_fr_utf8=fr.UTF-8
7336 gt_cv_locale_fr_utf8=none
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7347 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7348 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7354 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7355 if ${ac_cv_header_stdbool_h+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7361 #include <stdbool.h>
7363 "error: bool is not defined"
7366 "error: false is not defined"
7369 "error: false is not 0"
7372 "error: true is not defined"
7375 "error: true is not 1"
7377 #ifndef __bool_true_false_are_defined
7378 "error: __bool_true_false_are_defined is not defined"
7381 struct s { _Bool s: 1; _Bool t; } s;
7383 char a[true == 1 ? 1 : -1];
7384 char b[false == 0 ? 1 : -1];
7385 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7386 char d[(bool) 0.5 == true ? 1 : -1];
7387 /* See body of main program for 'e'. */
7388 char f[(_Bool) 0.0 == false ? 1 : -1];
7390 char h[sizeof (_Bool)];
7392 enum { j = false, k = true, l = false * true, m = true * 256 };
7393 /* The following fails for
7394 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7396 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7397 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7398 /* Catch a bug in an HP-UX C compiler. See
7399 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7400 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7412 /* Refer to every declared value, to avoid compiler optimizations. */
7413 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7414 + !m + !n + !o + !p + !q + !pq);
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 ac_cv_header_stdbool_h=yes
7423 ac_cv_header_stdbool_h=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7428 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7429 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7430 if test "x$ac_cv_type__Bool" = xyes; then :
7432 cat >>confdefs.h <<_ACEOF
7433 #define HAVE__BOOL 1
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7446 $as_echo_n "checking for wchar_t... " >&6; }
7447 if ${gt_cv_c_wchar_t+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7453 wchar_t foo = (wchar_t)'\0';
7462 if ac_fn_c_try_compile "$LINENO"; then :
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7470 $as_echo "$gt_cv_c_wchar_t" >&6; }
7471 if test $gt_cv_c_wchar_t = yes; then
7473 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7480 GNULIB_CALLOC_POSIX=0;
7481 GNULIB_CANONICALIZE_FILE_NAME=0;
7482 GNULIB_GETLOADAVG=0;
7485 GNULIB_MALLOC_POSIX=0;
7492 GNULIB_POSIX_OPENPT=0;
7498 GNULIB_REALLOC_POSIX=0;
7505 GNULIB_SYSTEM_POSIX=0;
7511 HAVE_CANONICALIZE_FILE_NAME=1;
7512 HAVE_DECL_GETLOADAVG=1;
7520 HAVE_POSIX_OPENPT=1;
7533 HAVE_STRUCT_RANDOM_DATA=1;
7534 HAVE_SYS_LOADAVG_H=0;
7536 HAVE_DECL_UNSETENV=1;
7538 REPLACE_CANONICALIZE_FILE_NAME=0;
7542 REPLACE_PTSNAME_R=0;
7570 GNULIB_STRCASESTR=0;
7577 GNULIB_MBSCASECMP=0;
7578 GNULIB_MBSNCASECMP=0;
7579 GNULIB_MBSPCASECMP=0;
7580 GNULIB_MBSCASESTR=0;
7587 GNULIB_STRERROR_R=0;
7589 GNULIB_STRVERSCMP=0;
7596 HAVE_DECL_MEMRCHR=1;
7602 HAVE_DECL_STRNDUP=1;
7603 HAVE_DECL_STRNLEN=1;
7607 HAVE_DECL_STRTOK_R=1;
7608 HAVE_DECL_STRERROR_R=1;
7609 HAVE_DECL_STRSIGNAL=1;
7616 REPLACE_STRCASESTR=0;
7617 REPLACE_STRCHRNUL=0;
7619 REPLACE_STRERROR_R=0;
7623 REPLACE_STRSIGNAL=0;
7625 UNDEFINE_STRTOK_R=0;
7628 REPLACE_STRERROR_0=0
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
7630 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
7631 if ${gl_cv_func_strerror_0_works+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test "$cross_compiling" = yes; then :
7635 gl_cv_func_strerror_0_works="guessing no"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7649 if (!*str) result |= 1;
7650 if (errno) result |= 2;
7651 if (strstr (str, "nknown") || strstr (str, "ndefined"))
7658 if ac_fn_c_try_run "$LINENO"; then :
7659 gl_cv_func_strerror_0_works=yes
7661 gl_cv_func_strerror_0_works=no
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7664 conftest.$ac_objext conftest.beam conftest.$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
7670 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
7671 if test "$gl_cv_func_strerror_0_works" != yes; then
7672 REPLACE_STRERROR_0=1
7674 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7681 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7682 if ${ac_cv_c_restrict+:} false; then :
7683 $as_echo_n "(cached) " >&6
7686 # The order here caters to the fact that C++ does not require restrict.
7687 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 typedef int * int_ptr;
7691 int foo (int_ptr $ac_kw ip) {
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 ac_cv_c_restrict=$ac_kw
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 test "$ac_cv_c_restrict" != no && break
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7714 $as_echo "$ac_cv_c_restrict" >&6; }
7716 case $ac_cv_c_restrict in
7718 no) $as_echo "#define restrict /**/" >>confdefs.h
7720 *) cat >>confdefs.h <<_ACEOF
7721 #define restrict $ac_cv_c_restrict
7737 if test $gl_cv_have_include_next = yes; then
7738 gl_cv_next_string_h='<'string.h'>'
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7741 $as_echo_n "checking absolute name of <string.h>... " >&6; }
7742 if ${gl_cv_next_string_h+:} false; then :
7743 $as_echo_n "(cached) " >&6
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7753 *) gl_absname_cpp="$ac_cpp" ;;
7758 gl_dirsep_regex='[/\\]'
7761 gl_dirsep_regex='\/'
7764 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7766 gl_header_literal_regex=`echo 'string.h' \
7767 | sed -e "$gl_make_literal_regex_sed"`
7768 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7769 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7774 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7775 sed -n "$gl_absolute_header_sed"`'"'
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7780 $as_echo "$gl_cv_next_string_h" >&6; }
7782 NEXT_STRING_H=$gl_cv_next_string_h
7784 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7786 gl_next_as_first_directive='<'string.h'>'
7788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7789 gl_next_as_first_directive=$gl_cv_next_string_h
7791 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
7798 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
7799 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7801 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7802 if eval \${$as_gl_Symbol+:} false; then :
7803 $as_echo_n "(cached) " >&6
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 eval "$as_gl_Symbol=yes"
7821 eval "$as_gl_Symbol=no"
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 eval ac_res=\$$as_gl_Symbol
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
7829 cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7833 eval ac_cv_have_decl_$gl_func=yes
7838 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7839 if test "x$ac_cv_type_pid_t" = xyes; then :
7843 cat >>confdefs.h <<_ACEOF
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7851 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7852 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
7853 $as_echo_n "(cached) " >&6
7855 gl_cv_header_wchar_h_correct_inline=yes
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7859 #define wcstod renamed_wcstod
7860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7862 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7863 included before <wchar.h>. */
7868 extern int zero (void);
7869 int main () { return zero(); }
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873 (eval $ac_compile) 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 mv conftest.$ac_objext conftest1.$ac_objext
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7881 #define wcstod renamed_wcstod
7882 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7884 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7885 included before <wchar.h>. */
7890 int zero (void) { return 0; }
7893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7894 (eval $ac_compile) 2>&5
7896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; }; then
7898 mv conftest.$ac_objext conftest2.$ac_objext
7899 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7902 gl_cv_header_wchar_h_correct_inline=no
7906 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7910 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7911 if test $gl_cv_header_wchar_h_correct_inline = no; then
7912 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7913 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7914 C99 mode. You have four options:
7915 - Add the flag -fgnu89-inline to CC and reconfigure, or
7916 - Fix your include files, using parts of
7917 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7918 - Use a gcc version older than 4.3, or
7919 - Don't use the flags -std=c99 or -std=gnu99.
7920 Configuration aborted." "$LINENO" 5
7929 if test $ac_cv_header_features_h = yes; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7938 $as_echo_n "checking for wint_t... " >&6; }
7939 if ${gt_cv_c_wint_t+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7945 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7947 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7948 before <wchar.h>. */
7953 wint_t foo = (wchar_t)'\0';
7962 if ac_fn_c_try_compile "$LINENO"; then :
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7970 $as_echo "$gt_cv_c_wint_t" >&6; }
7971 if test $gt_cv_c_wint_t = yes; then
7973 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
7994 GL_COND_LIBTOOL_TRUE=
7995 GL_COND_LIBTOOL_FALSE='#'
7997 GL_COND_LIBTOOL_TRUE='#'
7998 GL_COND_LIBTOOL_FALSE=
8001 gl_cond_libtool=false
8014 gl_source_base='lib'
8020 cat >>confdefs.h <<_ACEOF
8021 #define GNULIB_CLOSE_STREAM 1
8029 if test "x$datarootdir" = x; then
8030 datarootdir='${datadir}'
8033 if test "x$docdir" = x; then
8034 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8037 if test "x$htmldir" = x; then
8041 if test "x$dvidir" = x; then
8045 if test "x$pdfdir" = x; then
8049 if test "x$psdir" = x; then
8053 if test "x$lispdir" = x; then
8054 lispdir='${datarootdir}/emacs/site-lisp'
8057 if test "x$localedir" = x; then
8058 localedir='${datarootdir}/locale'
8062 pkglibexecdir='${libexecdir}/${PACKAGE}'
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
8068 $as_echo_n "checking for error_at_line... " >&6; }
8069 if ${ac_cv_lib_error_at_line+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8078 error_at_line (0, 0, "", 0, "an error occurred");
8083 if ac_fn_c_try_link "$LINENO"; then :
8084 ac_cv_lib_error_at_line=yes
8086 ac_cv_lib_error_at_line=no
8088 rm -f core conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
8092 $as_echo "$ac_cv_lib_error_at_line" >&6; }
8094 if test $ac_cv_lib_error_at_line = no; then
8103 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
8113 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
8117 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
8124 # if HAVE_STDIO_EXT_H
8125 # include <stdio_ext.h>
8128 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
8130 if test "x$ac_cv_have_decl___fpending" = xyes; then :
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_DECL___FPENDING $ac_have_decl
8141 if test $ac_cv_func___fpending = no; then
8150 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
8154 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
8155 if ${ac_cv_sys_pending_output_n_bytes+:} false; then :
8156 $as_echo_n "(cached) " >&6
8162 'fp->_IO_write_ptr - fp->_IO_write_base' \
8164 '# traditional Unix' \
8165 'fp->_ptr - fp->_base' \
8168 'fp->_p - fp->_bf._base' \
8171 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
8174 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
8177 'fp->__bufp - fp->__buffer' \
8179 '# old glibc iostream?' \
8180 'fp->_pptr - fp->_pbase' \
8183 'fp->_ptr - fp->_buffer' \
8186 'fp->_ptr - fp->_buf' \
8189 'fp->wp - fp->buf' \
8192 '(*fp)->_ptr - (*fp)->_base' \
8194 '# e.g., DGUX R4.11; the info is not available' \
8198 # Skip each embedded comment.
8199 case "$ac_expr" in '#'*) continue;; esac
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8207 FILE *fp = stdin; (void) ($ac_expr);
8212 if ac_fn_c_try_compile "$LINENO"; then :
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 test "$fp_done" = yes && break
8220 ac_cv_sys_pending_output_n_bytes=$ac_expr
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
8225 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
8227 cat >>confdefs.h <<_ACEOF
8228 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
8238 if test $REPLACE_GETOPT = 1; then
8247 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8257 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8262 GNULIB_GL_UNISTD_H_GETOPT=1
8267 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
8277 if test -n "$gl_replace_getopt"; then :
8284 if test $REPLACE_GETOPT = 1; then
8288 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
8294 if test $REPLACE_GETOPT = 1; then
8303 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
8313 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
8318 GNULIB_GL_UNISTD_H_GETOPT=1
8324 # Autoconf 2.61a.99 and earlier don't support linking a file only
8325 # in VPATH builds. But since GNUmakefile is for maintainer use
8326 # only, it does not matter if we skip the link with older autoconf.
8327 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
8328 # builds, so use a shell variable to bypass this.
8329 GNUmakefile=GNUmakefile
8330 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
8335 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
8336 if ${gl_cv_c_inline_effective+:} false; then :
8337 $as_echo_n "(cached) " >&6
8339 if test $ac_cv_c_inline = no; then
8340 gl_cv_c_inline_effective=no
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8348 #ifdef __NO_INLINE__
8349 #error "inline is not effective"
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356 gl_cv_c_inline_effective=yes
8358 gl_cv_c_inline_effective=no
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
8365 $as_echo "$gl_cv_c_inline_effective" >&6; }
8366 if test $gl_cv_c_inline_effective = yes; then
8368 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
8380 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
8393 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8398 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8399 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
8400 $as_echo_n "(cached) " >&6
8404 # Guess no on AIX and OSF/1.
8405 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8406 # Guess yes otherwise.
8407 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8409 if test $LOCALE_JA != none; then
8410 if test "$cross_compiling" = yes; then :
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8418 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8420 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8421 included before <wchar.h>. */
8428 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8430 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8434 memset (&state, '\0', sizeof (mbstate_t));
8435 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8436 if (mbsinit (&state))
8442 if ac_fn_c_try_run "$LINENO"; then :
8443 gl_cv_func_mbrtowc_incomplete_state=yes
8445 gl_cv_func_mbrtowc_incomplete_state=no
8447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8448 conftest.$ac_objext conftest.beam conftest.$ac_ext
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8455 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8461 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8462 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
8463 $as_echo_n "(cached) " >&6
8467 # Guess no on Solaris 8.
8468 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8469 # Guess yes otherwise.
8470 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8472 if test $LOCALE_ZH_CN != none; then
8473 if test "$cross_compiling" = yes; then :
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8482 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8485 included before <wchar.h>. */
8492 /* This fails on Solaris 8:
8493 mbrtowc returns 2, and sets wc to 0x00F0.
8494 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
8495 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8497 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
8501 memset (&state, '\0', sizeof (mbstate_t));
8502 if (mbrtowc (&wc, input + 3, 6, &state) != 4
8503 && mbtowc (&wc, input + 3, 6) == 4)
8509 if ac_fn_c_try_run "$LINENO"; then :
8510 gl_cv_func_mbrtowc_sanitycheck=yes
8512 gl_cv_func_mbrtowc_sanitycheck=no
8514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8515 conftest.$ac_objext conftest.beam conftest.$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
8522 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
8525 case "$gl_cv_func_mbrtowc_incomplete_state" in
8527 *) REPLACE_MBSTATE_T=1 ;;
8529 case "$gl_cv_func_mbrtowc_sanitycheck" in
8531 *) REPLACE_MBSTATE_T=1 ;;
8539 if test $ac_cv_func_mbrtowc = no; then
8541 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
8542 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8544 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8545 included before <wchar.h>. */
8552 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
8558 cat >>confdefs.h <<_ACEOF
8559 #define HAVE_DECL_MBRTOWC $ac_have_decl
8562 if test $ac_cv_have_decl_mbrtowc = yes; then
8566 if test $REPLACE_MBSTATE_T = 1; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
8573 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
8574 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
8575 $as_echo_n "(cached) " >&6
8579 # Guess no on Solaris.
8580 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
8581 # Guess yes otherwise.
8582 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
8584 if test $LOCALE_FR_UTF8 != none; then
8585 if test "$cross_compiling" = yes; then :
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8594 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8596 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8597 included before <wchar.h>. */
8606 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8608 char input[] = "\303\237er";
8613 memset (&state, '\0', sizeof (mbstate_t));
8614 wc = (wchar_t) 0xBADFACE;
8615 ret = mbrtowc (&wc, input, 5, &state);
8618 if (!mbsinit (&state))
8621 memset (&state, '\0', sizeof (mbstate_t));
8622 ret = mbrtowc (NULL, input, 5, &state);
8623 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
8625 if (!mbsinit (&state))
8631 if ac_fn_c_try_run "$LINENO"; then :
8632 gl_cv_func_mbrtowc_null_arg1=yes
8634 gl_cv_func_mbrtowc_null_arg1=no
8636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637 conftest.$ac_objext conftest.beam conftest.$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
8644 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
8650 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
8651 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
8652 $as_echo_n "(cached) " >&6
8656 # Guess no on OSF/1.
8657 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
8658 # Guess yes otherwise.
8659 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
8661 if test $LOCALE_FR_UTF8 != none; then
8662 if test "$cross_compiling" = yes; then :
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8670 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8672 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8673 included before <wchar.h>. */
8680 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8686 memset (&state, '\0', sizeof (mbstate_t));
8687 wc = (wchar_t) 0xBADFACE;
8688 mbrtowc (&wc, NULL, 5, &state);
8689 /* Check that wc was not modified. */
8690 if (wc != (wchar_t) 0xBADFACE)
8696 if ac_fn_c_try_run "$LINENO"; then :
8697 gl_cv_func_mbrtowc_null_arg2=yes
8699 gl_cv_func_mbrtowc_null_arg2=no
8701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8702 conftest.$ac_objext conftest.beam conftest.$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
8709 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
8717 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
8718 if ${gl_cv_func_mbrtowc_retval+:} false; then :
8719 $as_echo_n "(cached) " >&6
8723 # Guess no on HP-UX, Solaris, native Windows.
8724 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
8725 # Guess yes otherwise.
8726 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
8728 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
8729 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
8730 if test "$cross_compiling" = yes; then :
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8740 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8741 included before <wchar.h>. */
8749 int found_some_locale = 0;
8750 /* This fails on Solaris. */
8751 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
8753 char input[] = "B\303\274\303\237er"; /* "Büßer" */
8757 memset (&state, '\0', sizeof (mbstate_t));
8758 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8761 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
8764 found_some_locale = 1;
8766 /* This fails on HP-UX 11.11. */
8767 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8769 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8773 memset (&state, '\0', sizeof (mbstate_t));
8774 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8777 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
8780 found_some_locale = 1;
8782 /* This fails on native Windows. */
8783 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
8785 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
8789 memset (&state, '\0', sizeof (mbstate_t));
8790 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8793 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8796 found_some_locale = 1;
8798 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
8800 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
8804 memset (&state, '\0', sizeof (mbstate_t));
8805 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8808 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8811 found_some_locale = 1;
8813 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
8815 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
8819 memset (&state, '\0', sizeof (mbstate_t));
8820 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
8823 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
8826 found_some_locale = 1;
8828 return (found_some_locale ? result : 77);
8831 if ac_fn_c_try_run "$LINENO"; then :
8832 gl_cv_func_mbrtowc_retval=yes
8834 if test $? != 77; then
8835 gl_cv_func_mbrtowc_retval=no
8839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8840 conftest.$ac_objext conftest.beam conftest.$ac_ext
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
8847 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
8853 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
8854 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
8855 $as_echo_n "(cached) " >&6
8859 # Guess no on Solaris 8 and 9.
8860 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
8861 # Guess yes otherwise.
8862 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
8864 if test $LOCALE_ZH_CN != none; then
8865 if test "$cross_compiling" = yes; then :
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8873 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8875 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8876 included before <wchar.h>. */
8883 /* This fails on Solaris 8 and 9. */
8884 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8889 memset (&state, '\0', sizeof (mbstate_t));
8890 if (mbrtowc (&wc, "", 1, &state) != 0)
8896 if ac_fn_c_try_run "$LINENO"; then :
8897 gl_cv_func_mbrtowc_nul_retval=yes
8899 gl_cv_func_mbrtowc_nul_retval=no
8901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8902 conftest.$ac_objext conftest.beam conftest.$ac_ext
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
8909 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
8911 case "$gl_cv_func_mbrtowc_null_arg1" in
8914 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
8919 case "$gl_cv_func_mbrtowc_null_arg2" in
8922 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
8927 case "$gl_cv_func_mbrtowc_retval" in
8930 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
8935 case "$gl_cv_func_mbrtowc_nul_retval" in
8938 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
8946 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
8955 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
8972 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
8987 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8992 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8993 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
8994 $as_echo_n "(cached) " >&6
8998 # Guess no on AIX and OSF/1.
8999 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9000 # Guess yes otherwise.
9001 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9003 if test $LOCALE_JA != none; then
9004 if test "$cross_compiling" = yes; then :
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9012 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9014 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9015 included before <wchar.h>. */
9022 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9024 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9028 memset (&state, '\0', sizeof (mbstate_t));
9029 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9030 if (mbsinit (&state))
9036 if ac_fn_c_try_run "$LINENO"; then :
9037 gl_cv_func_mbrtowc_incomplete_state=yes
9039 gl_cv_func_mbrtowc_incomplete_state=no
9041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9042 conftest.$ac_objext conftest.beam conftest.$ac_ext
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9049 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9055 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9056 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
9057 $as_echo_n "(cached) " >&6
9061 # Guess no on Solaris 8.
9062 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9063 # Guess yes otherwise.
9064 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9066 if test $LOCALE_ZH_CN != none; then
9067 if test "$cross_compiling" = yes; then :
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9076 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9078 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9079 included before <wchar.h>. */
9086 /* This fails on Solaris 8:
9087 mbrtowc returns 2, and sets wc to 0x00F0.
9088 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9089 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9091 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9095 memset (&state, '\0', sizeof (mbstate_t));
9096 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9097 && mbtowc (&wc, input + 3, 6) == 4)
9103 if ac_fn_c_try_run "$LINENO"; then :
9104 gl_cv_func_mbrtowc_sanitycheck=yes
9106 gl_cv_func_mbrtowc_sanitycheck=no
9108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9109 conftest.$ac_objext conftest.beam conftest.$ac_ext
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9116 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9119 case "$gl_cv_func_mbrtowc_incomplete_state" in
9121 *) REPLACE_MBSTATE_T=1 ;;
9123 case "$gl_cv_func_mbrtowc_sanitycheck" in
9125 *) REPLACE_MBSTATE_T=1 ;;
9133 if test $ac_cv_func_mbsinit = no; then
9135 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9139 included before <wchar.h>. */
9146 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_DECL_MBSINIT $ac_have_decl
9156 if test $ac_cv_have_decl_mbsinit = yes; then
9160 if test $REPLACE_MBSTATE_T = 1; then
9164 mingw*) REPLACE_MBSINIT=1 ;;
9169 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
9178 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
9195 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
9201 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
9202 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
9204 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
9207 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
9211 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
9220 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
9226 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
9235 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
9238 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
9240 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
9246 cat >>confdefs.h <<_ACEOF
9247 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
9250 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
9252 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
9267 $as_echo_n "checking for ssize_t... " >&6; }
9268 if ${gt_cv_ssize_t+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <sys/types.h>
9277 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9283 if ac_fn_c_try_compile "$LINENO"; then :
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
9291 $as_echo "$gt_cv_ssize_t" >&6; }
9292 if test $gt_cv_ssize_t = no; then
9294 $as_echo "#define ssize_t int" >>confdefs.h
9301 # Define two additional variables used in the Makefile substitution.
9303 if test "$ac_cv_header_stdbool_h" = yes; then
9306 STDBOOL_H='stdbool.h'
9309 if test -n "$STDBOOL_H"; then
9310 GL_GENERATE_STDBOOL_H_TRUE=
9311 GL_GENERATE_STDBOOL_H_FALSE='#'
9313 GL_GENERATE_STDBOOL_H_TRUE='#'
9314 GL_GENERATE_STDBOOL_H_FALSE=
9318 if test "$ac_cv_type__Bool" = yes; then
9329 if test $gt_cv_c_wchar_t = no; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
9334 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
9335 if ${gl_cv_decl_null_works+:} false; then :
9336 $as_echo_n "(cached) " >&6
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9341 int test[2 * (sizeof NULL == sizeof (void *)) -1];
9351 if ac_fn_c_try_compile "$LINENO"; then :
9352 gl_cv_decl_null_works=yes
9354 gl_cv_decl_null_works=no
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
9359 $as_echo "$gl_cv_decl_null_works" >&6; }
9360 if test $gl_cv_decl_null_works = no; then
9365 if test -n "$STDDEF_H"; then
9366 GL_GENERATE_STDDEF_H_TRUE=
9367 GL_GENERATE_STDDEF_H_FALSE='#'
9369 GL_GENERATE_STDDEF_H_TRUE='#'
9370 GL_GENERATE_STDDEF_H_FALSE=
9373 if test -n "$STDDEF_H"; then
9382 if test $gl_cv_have_include_next = yes; then
9383 gl_cv_next_stddef_h='<'stddef.h'>'
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
9386 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
9387 if ${gl_cv_next_stddef_h+:} false; then :
9388 $as_echo_n "(cached) " >&6
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9397 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9398 *) gl_absname_cpp="$ac_cpp" ;;
9403 gl_dirsep_regex='[/\\]'
9406 gl_dirsep_regex='\/'
9409 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9411 gl_header_literal_regex=`echo 'stddef.h' \
9412 | sed -e "$gl_make_literal_regex_sed"`
9413 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9414 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9419 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9420 sed -n "$gl_absolute_header_sed"`'"'
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
9425 $as_echo "$gl_cv_next_stddef_h" >&6; }
9427 NEXT_STDDEF_H=$gl_cv_next_stddef_h
9429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9431 gl_next_as_first_directive='<'stddef.h'>'
9433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9434 gl_next_as_first_directive=$gl_cv_next_stddef_h
9436 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
9453 if test $gl_cv_have_include_next = yes; then
9454 gl_cv_next_stdlib_h='<'stdlib.h'>'
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
9457 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
9458 if ${gl_cv_next_stdlib_h+:} false; then :
9459 $as_echo_n "(cached) " >&6
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9468 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9469 *) gl_absname_cpp="$ac_cpp" ;;
9474 gl_dirsep_regex='[/\\]'
9477 gl_dirsep_regex='\/'
9480 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9482 gl_header_literal_regex=`echo 'stdlib.h' \
9483 | sed -e "$gl_make_literal_regex_sed"`
9484 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9485 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9490 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9491 sed -n "$gl_absolute_header_sed"`'"'
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
9496 $as_echo "$gl_cv_next_stdlib_h" >&6; }
9498 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
9500 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9502 gl_next_as_first_directive='<'stdlib.h'>'
9504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9505 gl_next_as_first_directive=$gl_cv_next_stdlib_h
9507 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
9514 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
9515 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9518 if eval \${$as_gl_Symbol+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 #if HAVE_SYS_LOADAVG_H
9525 # include <sys/loadavg.h>
9528 # include <random.h>
9540 if ac_fn_c_try_compile "$LINENO"; then :
9541 eval "$as_gl_Symbol=yes"
9543 eval "$as_gl_Symbol=no"
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 eval ac_res=\$$as_gl_Symbol
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9549 $as_echo "$ac_res" >&6; }
9550 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9551 cat >>confdefs.h <<_ACEOF
9552 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9555 eval ac_cv_have_decl_$gl_func=yes
9565 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
9567 $as_echo_n "checking for working strerror function... " >&6; }
9568 if ${gl_cv_func_working_strerror+:} false; then :
9569 $as_echo_n "(cached) " >&6
9571 if test "$cross_compiling" = yes; then :
9572 gl_cv_func_working_strerror="guessing no"
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9581 if (!*strerror (-2)) return 1;
9586 if ac_fn_c_try_run "$LINENO"; then :
9587 gl_cv_func_working_strerror=yes
9589 gl_cv_func_working_strerror=no
9591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9592 conftest.$ac_objext conftest.beam conftest.$ac_ext
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
9598 $as_echo "$gl_cv_func_working_strerror" >&6; }
9599 if test "$gl_cv_func_working_strerror" != yes; then
9607 if test $REPLACE_STRERROR = 1; then
9616 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
9621 cat >>confdefs.h <<_ACEOF
9622 #define GNULIB_STRERROR 1
9637 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
9643 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
9652 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
9658 if test $ac_cv_header_sys_socket_h != yes; then
9659 for ac_header in winsock2.h
9661 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9662 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9663 cat >>confdefs.h <<_ACEOF
9664 #define HAVE_WINSOCK2_H 1
9672 if test "$ac_cv_header_winsock2_h" = yes; then
9674 UNISTD_H_HAVE_WINSOCK2_H=1
9675 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9698 if test $gl_cv_have_include_next = yes; then
9699 gl_cv_next_unistd_h='<'unistd.h'>'
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
9702 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
9703 if ${gl_cv_next_unistd_h+:} false; then :
9704 $as_echo_n "(cached) " >&6
9707 if test $ac_cv_header_unistd_h = yes; then
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9716 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9717 *) gl_absname_cpp="$ac_cpp" ;;
9722 gl_dirsep_regex='[/\\]'
9725 gl_dirsep_regex='\/'
9728 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9730 gl_header_literal_regex=`echo 'unistd.h' \
9731 | sed -e "$gl_make_literal_regex_sed"`
9732 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9738 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9739 sed -n "$gl_absolute_header_sed"`'"'
9741 gl_cv_next_unistd_h='<'unistd.h'>'
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
9747 $as_echo "$gl_cv_next_unistd_h" >&6; }
9749 NEXT_UNISTD_H=$gl_cv_next_unistd_h
9751 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9753 gl_next_as_first_directive='<'unistd.h'>'
9755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9756 gl_next_as_first_directive=$gl_cv_next_unistd_h
9758 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
9763 if test $ac_cv_header_unistd_h = yes; then
9773 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
9774 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9776 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9777 if eval \${$as_gl_Symbol+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9784 # include <unistd.h>
9786 /* Some systems declare various items in the wrong headers. */
9787 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9790 # include <stdlib.h>
9791 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9805 if ac_fn_c_try_compile "$LINENO"; then :
9806 eval "$as_gl_Symbol=yes"
9808 eval "$as_gl_Symbol=no"
9810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 eval ac_res=\$$as_gl_Symbol
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9814 $as_echo "$ac_res" >&6; }
9815 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9816 cat >>confdefs.h <<_ACEOF
9817 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9820 eval ac_cv_have_decl_$gl_func=yes
9837 if test $gl_cv_have_include_next = yes; then
9838 gl_cv_next_wchar_h='<'wchar.h'>'
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
9841 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
9842 if ${gl_cv_next_wchar_h+:} false; then :
9843 $as_echo_n "(cached) " >&6
9846 if test $ac_cv_header_wchar_h = yes; then
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9855 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9856 *) gl_absname_cpp="$ac_cpp" ;;
9861 gl_dirsep_regex='[/\\]'
9864 gl_dirsep_regex='\/'
9867 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9869 gl_header_literal_regex=`echo 'wchar.h' \
9870 | sed -e "$gl_make_literal_regex_sed"`
9871 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9872 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9877 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9878 sed -n "$gl_absolute_header_sed"`'"'
9880 gl_cv_next_wchar_h='<'wchar.h'>'
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
9886 $as_echo "$gl_cv_next_wchar_h" >&6; }
9888 NEXT_WCHAR_H=$gl_cv_next_wchar_h
9890 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9892 gl_next_as_first_directive='<'wchar.h'>'
9894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9895 gl_next_as_first_directive=$gl_cv_next_wchar_h
9897 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
9902 if test $ac_cv_header_wchar_h = yes; then
9912 if test $gt_cv_c_wint_t = yes; then
9920 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
9921 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9923 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9924 if eval \${$as_gl_Symbol+:} false; then :
9925 $as_echo_n "(cached) " >&6
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9933 included before <wchar.h>. */
9934 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9935 # include <stddef.h>
9950 if ac_fn_c_try_compile "$LINENO"; then :
9951 eval "$as_gl_Symbol=yes"
9953 eval "$as_gl_Symbol=no"
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 eval ac_res=\$$as_gl_Symbol
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9959 $as_echo "$ac_res" >&6; }
9960 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9961 cat >>confdefs.h <<_ACEOF
9962 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9965 eval ac_cv_have_decl_$gl_func=yes
9975 if test $ac_cv_func_iswcntrl = yes; then
9985 if test $gt_cv_c_wint_t = yes; then
10001 if test $gl_cv_have_include_next = yes; then
10002 gl_cv_next_wctype_h='<'wctype.h'>'
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10005 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10006 if ${gl_cv_next_wctype_h+:} false; then :
10007 $as_echo_n "(cached) " >&6
10010 if test $ac_cv_header_wctype_h = yes; then
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 #include <wctype.h>
10019 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10020 *) gl_absname_cpp="$ac_cpp" ;;
10025 gl_dirsep_regex='[/\\]'
10028 gl_dirsep_regex='\/'
10031 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10033 gl_header_literal_regex=`echo 'wctype.h' \
10034 | sed -e "$gl_make_literal_regex_sed"`
10035 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10041 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10042 sed -n "$gl_absolute_header_sed"`'"'
10044 gl_cv_next_wctype_h='<'wctype.h'>'
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10050 $as_echo "$gl_cv_next_wctype_h" >&6; }
10052 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
10054 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10056 gl_next_as_first_directive='<'wctype.h'>'
10058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10059 gl_next_as_first_directive=$gl_cv_next_wctype_h
10061 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10066 if test $ac_cv_header_wctype_h = yes; then
10067 if test $ac_cv_func_iswcntrl = yes; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10069 $as_echo_n "checking whether iswcntrl works... " >&6; }
10070 if ${gl_cv_func_iswcntrl_works+:} false; then :
10071 $as_echo_n "(cached) " >&6
10074 if test "$cross_compiling" = yes; then :
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 #include <stdlib.h>
10078 #if __GNU_LIBRARY__ == 1
10079 Linux libc5 i18n is broken.
10089 if ac_fn_c_try_compile "$LINENO"; then :
10090 gl_cv_func_iswcntrl_works=yes
10092 gl_cv_func_iswcntrl_works=no
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10100 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10101 included before <wchar.h>.
10102 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10103 must be included before <wchar.h>. */
10104 #include <stddef.h>
10108 #include <wctype.h>
10109 int main () { return iswprint ('x') == 0; }
10112 if ac_fn_c_try_run "$LINENO"; then :
10113 gl_cv_func_iswcntrl_works=yes
10115 gl_cv_func_iswcntrl_works=no
10117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118 conftest.$ac_objext conftest.beam conftest.$ac_ext
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10124 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10132 if test "$gl_cv_func_iswcntrl_works" = no; then
10139 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10143 if test $REPLACE_ISWCNTRL = 1; then
10146 for ac_func in towlower
10148 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10149 if test "x$ac_cv_func_towlower" = xyes; then :
10150 cat >>confdefs.h <<_ACEOF
10151 #define HAVE_TOWLOWER 1
10157 if test $ac_cv_func_towlower = yes; then
10160 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10161 included before <wchar.h>.
10162 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10163 must be included before <wchar.h>. */
10164 #include <stddef.h>
10169 # include <wctype.h>
10173 if test "x$ac_cv_have_decl_towlower" = xyes; then :
10179 cat >>confdefs.h <<_ACEOF
10180 #define HAVE_DECL_TOWLOWER $ac_have_decl
10183 if test $ac_cv_have_decl_towlower = yes; then
10192 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10197 $as_echo_n "checking for wctype_t... " >&6; }
10198 if ${gl_cv_type_wctype_t+:} false; then :
10199 $as_echo_n "(cached) " >&6
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10204 included before <wchar.h>.
10205 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10206 must be included before <wchar.h>. */
10207 #include <stddef.h>
10212 # include <wctype.h>
10224 if ac_fn_c_try_compile "$LINENO"; then :
10225 gl_cv_type_wctype_t=yes
10227 gl_cv_type_wctype_t=no
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10233 $as_echo "$gl_cv_type_wctype_t" >&6; }
10234 if test $gl_cv_type_wctype_t = no; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10239 $as_echo_n "checking for wctrans_t... " >&6; }
10240 if ${gl_cv_type_wctrans_t+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10246 included before <wchar.h>.
10247 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10248 must be included before <wchar.h>. */
10249 #include <stddef.h>
10253 #include <wctype.h>
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265 gl_cv_type_wctrans_t=yes
10267 gl_cv_type_wctrans_t=no
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
10273 $as_echo "$gl_cv_type_wctrans_t" >&6; }
10274 if test $gl_cv_type_wctrans_t = no; then
10279 for gl_func in wctype iswctype wctrans towctrans ; do
10280 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10282 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10283 if eval \${$as_gl_Symbol+:} false; then :
10284 $as_echo_n "(cached) " >&6
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10291 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10292 included before <wchar.h>. */
10293 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10294 # include <stddef.h>
10295 # include <stdio.h>
10297 # include <wchar.h>
10299 #include <wctype.h>
10310 if ac_fn_c_try_compile "$LINENO"; then :
10311 eval "$as_gl_Symbol=yes"
10313 eval "$as_gl_Symbol=no"
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 eval ac_res=\$$as_gl_Symbol
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10319 $as_echo "$ac_res" >&6; }
10320 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10325 eval ac_cv_have_decl_$gl_func=yes
10339 # End of code from modules
10360 gl_source_base='tests'
10361 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
10363 gl_module_indicator_condition=$gltests_WITNESS
10373 LIBHELLO_LIBDEPS="$gl_libdeps"
10375 LIBHELLO_LTLIBDEPS="$gl_ltlibdeps"
10379 # GNU help2man creates man pages from --help output; in many cases, this
10380 # is sufficient, and obviates the need to maintain man pages separately.
10381 # However, this means invoking executables, which we generally cannot do
10382 # when cross-compiling, so we test to avoid that (the variable
10383 # "cross_compiling" is set by AC_PROG_CC).
10384 if test $cross_compiling = no; then
10386 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
10392 # i18n support from GNU gettext.
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10396 $as_echo_n "checking whether NLS is requested... " >&6; }
10397 # Check whether --enable-nls was given.
10398 if test "${enable_nls+set}" = set; then :
10399 enableval=$enable_nls; USE_NLS=$enableval
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10405 $as_echo "$USE_NLS" >&6; }
10410 GETTEXT_MACRO_VERSION=0.18
10415 # Prepare PATH_SEPARATOR.
10416 # The user is always right.
10417 if test "${PATH_SEPARATOR+set}" != set; then
10418 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10419 # contains only /bin. Note that ksh looks also at the FPATH variable,
10420 # so we have to set that as well for the test.
10422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10423 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10424 || PATH_SEPARATOR=';'
10428 # Find out how to test for executable files. Don't use a zero-byte file,
10429 # as systems may use methods other than mode bits to determine executability.
10430 cat >conf$$.file <<_ASEOF
10434 chmod +x conf$$.file
10435 if test -x conf$$.file >/dev/null 2>&1; then
10436 ac_executable_p="test -x"
10438 ac_executable_p="test -f"
10442 # Extract the first word of "msgfmt", so it can be a program name with args.
10443 set dummy msgfmt; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if ${ac_cv_path_MSGFMT+:} false; then :
10447 $as_echo_n "(cached) " >&6
10451 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10454 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10455 for ac_dir in $PATH; do
10457 test -z "$ac_dir" && ac_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10460 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10461 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10462 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10463 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10470 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10474 MSGFMT="$ac_cv_path_MSGFMT"
10475 if test "$MSGFMT" != ":"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10477 $as_echo "$MSGFMT" >&6; }
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10483 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10484 set dummy gmsgfmt; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_path_GMSGFMT+:} false; then :
10488 $as_echo_n "(cached) " >&6
10492 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10514 GMSGFMT=$ac_cv_path_GMSGFMT
10515 if test -n "$GMSGFMT"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10517 $as_echo "$GMSGFMT" >&6; }
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10525 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10526 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10527 *) MSGFMT_015=$MSGFMT ;;
10530 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10531 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10532 *) GMSGFMT_015=$GMSGFMT ;;
10537 # Prepare PATH_SEPARATOR.
10538 # The user is always right.
10539 if test "${PATH_SEPARATOR+set}" != set; then
10540 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10541 # contains only /bin. Note that ksh looks also at the FPATH variable,
10542 # so we have to set that as well for the test.
10544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10545 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10546 || PATH_SEPARATOR=';'
10550 # Find out how to test for executable files. Don't use a zero-byte file,
10551 # as systems may use methods other than mode bits to determine executability.
10552 cat >conf$$.file <<_ASEOF
10556 chmod +x conf$$.file
10557 if test -x conf$$.file >/dev/null 2>&1; then
10558 ac_executable_p="test -x"
10560 ac_executable_p="test -f"
10564 # Extract the first word of "xgettext", so it can be a program name with args.
10565 set dummy xgettext; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_path_XGETTEXT+:} false; then :
10569 $as_echo_n "(cached) " >&6
10571 case "$XGETTEXT" in
10573 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10576 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10577 for ac_dir in $PATH; do
10579 test -z "$ac_dir" && ac_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10582 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10583 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10584 (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
10585 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10592 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10596 XGETTEXT="$ac_cv_path_XGETTEXT"
10597 if test "$XGETTEXT" != ":"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10599 $as_echo "$XGETTEXT" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10607 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10608 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10609 *) XGETTEXT_015=$XGETTEXT ;;
10614 # Prepare PATH_SEPARATOR.
10615 # The user is always right.
10616 if test "${PATH_SEPARATOR+set}" != set; then
10617 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10618 # contains only /bin. Note that ksh looks also at the FPATH variable,
10619 # so we have to set that as well for the test.
10621 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10622 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10623 || PATH_SEPARATOR=';'
10627 # Find out how to test for executable files. Don't use a zero-byte file,
10628 # as systems may use methods other than mode bits to determine executability.
10629 cat >conf$$.file <<_ASEOF
10633 chmod +x conf$$.file
10634 if test -x conf$$.file >/dev/null 2>&1; then
10635 ac_executable_p="test -x"
10637 ac_executable_p="test -f"
10641 # Extract the first word of "msgmerge", so it can be a program name with args.
10642 set dummy msgmerge; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_path_MSGMERGE+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 case "$MSGMERGE" in
10650 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10653 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10654 for ac_dir in $PATH; do
10656 test -z "$ac_dir" && ac_dir=.
10657 for ac_exec_ext in '' $ac_executable_extensions; do
10658 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10659 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10660 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10661 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10668 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10672 MSGMERGE="$ac_cv_path_MSGMERGE"
10673 if test "$MSGMERGE" != ":"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10675 $as_echo "$MSGMERGE" >&6; }
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10682 test -n "$localedir" || localedir='${datadir}/locale'
10685 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10688 ac_config_commands="$ac_config_commands po-directories"
10692 if test "X$prefix" = "XNONE"; then
10693 acl_final_prefix="$ac_default_prefix"
10695 acl_final_prefix="$prefix"
10697 if test "X$exec_prefix" = "XNONE"; then
10698 acl_final_exec_prefix='${prefix}'
10700 acl_final_exec_prefix="$exec_prefix"
10702 acl_save_prefix="$prefix"
10703 prefix="$acl_final_prefix"
10704 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10705 prefix="$acl_save_prefix"
10708 # Check whether --with-gnu-ld was given.
10709 if test "${with_gnu_ld+set}" = set; then :
10710 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10715 # Prepare PATH_SEPARATOR.
10716 # The user is always right.
10717 if test "${PATH_SEPARATOR+set}" != set; then
10718 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10719 # contains only /bin. Note that ksh looks also at the FPATH variable,
10720 # so we have to set that as well for the test.
10722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10723 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10724 || PATH_SEPARATOR=';'
10728 if test "$GCC" = yes; then
10729 # Check if gcc -print-prog-name=ld gives a path.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10731 $as_echo_n "checking for ld used by GCC... " >&6; }
10734 # gcc leaves a trailing carriage return which upsets mingw
10735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10740 # Accept absolute paths.
10741 [\\/]* | [A-Za-z]:[\\/]*)
10742 re_direlt='/[^/][^/]*/\.\./'
10743 # Canonicalize the path of ld
10744 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10745 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10746 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10748 test -z "$LD" && LD="$ac_prog"
10751 # If it fails, then pretend we aren't using GCC.
10755 # If it is relative, then search for the first ld in PATH.
10756 with_gnu_ld=unknown
10759 elif test "$with_gnu_ld" = yes; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10761 $as_echo_n "checking for GNU ld... " >&6; }
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10764 $as_echo_n "checking for non-GNU ld... " >&6; }
10766 if ${acl_cv_path_LD+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 if test -z "$LD"; then
10770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10771 for ac_dir in $PATH; do
10772 test -z "$ac_dir" && ac_dir=.
10773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10774 acl_cv_path_LD="$ac_dir/$ac_prog"
10775 # Check to see if the program is GNU ld. I'd rather use --version,
10776 # but apparently some GNU ld's only accept -v.
10777 # Break only if it was the GNU/non-GNU ld that we prefer.
10778 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10779 *GNU* | *'with BFD'*)
10780 test "$with_gnu_ld" != no && break ;;
10782 test "$with_gnu_ld" != yes && break ;;
10788 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10792 LD="$acl_cv_path_LD"
10793 if test -n "$LD"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10795 $as_echo "$LD" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10800 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10802 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10803 if ${acl_cv_prog_gnu_ld+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10807 case `$LD -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809 acl_cv_prog_gnu_ld=yes ;;
10811 acl_cv_prog_gnu_ld=no ;;
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10815 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10816 with_gnu_ld=$acl_cv_prog_gnu_ld
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10822 $as_echo_n "checking for shared library run path origin... " >&6; }
10823 if ${acl_cv_rpath+:} false; then :
10824 $as_echo_n "(cached) " >&6
10827 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10828 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10830 rm -f ./conftest.sh
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10835 $as_echo "$acl_cv_rpath" >&6; }
10837 acl_libext="$acl_cv_libext"
10838 acl_shlibext="$acl_cv_shlibext"
10839 acl_libname_spec="$acl_cv_libname_spec"
10840 acl_library_names_spec="$acl_cv_library_names_spec"
10841 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10842 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10843 acl_hardcode_direct="$acl_cv_hardcode_direct"
10844 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10845 # Check whether --enable-rpath was given.
10846 if test "${enable_rpath+set}" = set; then :
10847 enableval=$enable_rpath; :
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10860 $as_echo_n "checking for 64-bit host... " >&6; }
10861 if ${gl_cv_solaris_64bit+:} false; then :
10862 $as_echo_n "(cached) " >&6
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10873 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10874 gl_cv_solaris_64bit=yes
10876 gl_cv_solaris_64bit=no
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10883 $as_echo "$gl_cv_solaris_64bit" >&6; }
10884 if test $gl_cv_solaris_64bit = yes; then
10885 acl_libdirstem=lib/64
10886 case "$host_cpu" in
10887 sparc*) acl_libdirstem2=lib/sparcv9 ;;
10888 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10893 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10894 if test -n "$searchpath"; then
10895 acl_save_IFS="${IFS= }"; IFS=":"
10896 for searchdir in $searchpath; do
10897 if test -d "$searchdir"; then
10898 case "$searchdir" in
10899 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10901 # Better ignore directories of this form. They are misleading.
10903 *) searchdir=`cd "$searchdir" && pwd`
10904 case "$searchdir" in
10905 */lib64 ) acl_libdirstem=lib64 ;;
10910 IFS="$acl_save_IFS"
10914 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
10934 eval additional_includedir=\"$includedir\"
10935 eval additional_libdir=\"$libdir\"
10937 exec_prefix="$acl_save_exec_prefix"
10938 prefix="$acl_save_prefix"
10941 # Check whether --with-libiconv-prefix was given.
10942 if test "${with_libiconv_prefix+set}" = set; then :
10943 withval=$with_libiconv_prefix;
10944 if test "X$withval" = "Xno"; then
10947 if test "X$withval" = "X"; then
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10954 eval additional_includedir=\"$includedir\"
10955 eval additional_libdir=\"$libdir\"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10961 additional_includedir="$withval/include"
10962 additional_libdir="$withval/$acl_libdirstem"
10963 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10964 && ! test -d "$withval/$acl_libdirstem"; then
10965 additional_libdir="$withval/$acl_libdirstem2"
10979 names_already_handled=
10980 names_next_round='iconv '
10981 while test -n "$names_next_round"; do
10982 names_this_round="$names_next_round"
10984 for name in $names_this_round; do
10986 for n in $names_already_handled; do
10987 if test "$n" = "$name"; then
10988 already_handled=yes
10992 if test -z "$already_handled"; then
10993 names_already_handled="$names_already_handled $name"
10994 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10995 eval value=\"\$HAVE_LIB$uppername\"
10996 if test -n "$value"; then
10997 if test "$value" = yes; then
10998 eval value=\"\$LIB$uppername\"
10999 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11000 eval value=\"\$LTLIB$uppername\"
11001 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11010 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11011 if test -n "$acl_shlibext"; then
11012 shrext=".$acl_shlibext" # typically: shrext=.so
11016 if test $use_additional = yes; then
11017 dir="$additional_libdir"
11018 if test -n "$acl_shlibext"; then
11019 if test -f "$dir/$libname$shrext"; then
11021 found_so="$dir/$libname$shrext"
11023 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11024 ver=`(cd "$dir" && \
11025 for f in "$libname$shrext".*; do echo "$f"; done \
11026 | sed -e "s,^$libname$shrext\\\\.,," \
11027 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11028 | sed 1q ) 2>/dev/null`
11029 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11031 found_so="$dir/$libname$shrext.$ver"
11034 eval library_names=\"$acl_library_names_spec\"
11035 for f in $library_names; do
11036 if test -f "$dir/$f"; then
11045 if test "X$found_dir" = "X"; then
11046 if test -f "$dir/$libname.$acl_libext"; then
11048 found_a="$dir/$libname.$acl_libext"
11051 if test "X$found_dir" != "X"; then
11052 if test -f "$dir/$libname.la"; then
11053 found_la="$dir/$libname.la"
11057 if test "X$found_dir" = "X"; then
11058 for x in $LDFLAGS $LTLIBICONV; do
11060 acl_save_prefix="$prefix"
11061 prefix="$acl_final_prefix"
11062 acl_save_exec_prefix="$exec_prefix"
11063 exec_prefix="$acl_final_exec_prefix"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11070 dir=`echo "X$x" | sed -e 's/^X-L//'`
11071 if test -n "$acl_shlibext"; then
11072 if test -f "$dir/$libname$shrext"; then
11074 found_so="$dir/$libname$shrext"
11076 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11077 ver=`(cd "$dir" && \
11078 for f in "$libname$shrext".*; do echo "$f"; done \
11079 | sed -e "s,^$libname$shrext\\\\.,," \
11080 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11081 | sed 1q ) 2>/dev/null`
11082 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11084 found_so="$dir/$libname$shrext.$ver"
11087 eval library_names=\"$acl_library_names_spec\"
11088 for f in $library_names; do
11089 if test -f "$dir/$f"; then
11098 if test "X$found_dir" = "X"; then
11099 if test -f "$dir/$libname.$acl_libext"; then
11101 found_a="$dir/$libname.$acl_libext"
11104 if test "X$found_dir" != "X"; then
11105 if test -f "$dir/$libname.la"; then
11106 found_la="$dir/$libname.la"
11111 if test "X$found_dir" != "X"; then
11116 if test "X$found_dir" != "X"; then
11117 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11118 if test "X$found_so" != "X"; then
11119 if test "$enable_rpath" = no \
11120 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11121 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11122 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11125 for x in $ltrpathdirs; do
11126 if test "X$x" = "X$found_dir"; then
11131 if test -z "$haveit"; then
11132 ltrpathdirs="$ltrpathdirs $found_dir"
11134 if test "$acl_hardcode_direct" = yes; then
11135 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11137 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11138 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11140 for x in $rpathdirs; do
11141 if test "X$x" = "X$found_dir"; then
11146 if test -z "$haveit"; then
11147 rpathdirs="$rpathdirs $found_dir"
11151 for x in $LDFLAGS $LIBICONV; do
11153 acl_save_prefix="$prefix"
11154 prefix="$acl_final_prefix"
11155 acl_save_exec_prefix="$exec_prefix"
11156 exec_prefix="$acl_final_exec_prefix"
11158 exec_prefix="$acl_save_exec_prefix"
11159 prefix="$acl_save_prefix"
11161 if test "X$x" = "X-L$found_dir"; then
11166 if test -z "$haveit"; then
11167 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11169 if test "$acl_hardcode_minus_L" != no; then
11170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11172 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11178 if test "X$found_a" != "X"; then
11179 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11181 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11184 additional_includedir=
11185 case "$found_dir" in
11186 */$acl_libdirstem | */$acl_libdirstem/)
11187 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11188 if test "$name" = 'iconv'; then
11189 LIBICONV_PREFIX="$basedir"
11191 additional_includedir="$basedir/include"
11193 */$acl_libdirstem2 | */$acl_libdirstem2/)
11194 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11195 if test "$name" = 'iconv'; then
11196 LIBICONV_PREFIX="$basedir"
11198 additional_includedir="$basedir/include"
11201 if test "X$additional_includedir" != "X"; then
11202 if test "X$additional_includedir" != "X/usr/include"; then
11204 if test "X$additional_includedir" = "X/usr/local/include"; then
11205 if test -n "$GCC"; then
11207 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11211 if test -z "$haveit"; then
11212 for x in $CPPFLAGS $INCICONV; do
11214 acl_save_prefix="$prefix"
11215 prefix="$acl_final_prefix"
11216 acl_save_exec_prefix="$exec_prefix"
11217 exec_prefix="$acl_final_exec_prefix"
11219 exec_prefix="$acl_save_exec_prefix"
11220 prefix="$acl_save_prefix"
11222 if test "X$x" = "X-I$additional_includedir"; then
11227 if test -z "$haveit"; then
11228 if test -d "$additional_includedir"; then
11229 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11235 if test -n "$found_la"; then
11236 save_libdir="$libdir"
11237 case "$found_la" in
11238 */* | *\\*) . "$found_la" ;;
11239 *) . "./$found_la" ;;
11241 libdir="$save_libdir"
11242 for dep in $dependency_libs; do
11245 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11246 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11247 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11249 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11250 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11251 if test -n "$GCC"; then
11253 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11257 if test -z "$haveit"; then
11259 for x in $LDFLAGS $LIBICONV; do
11261 acl_save_prefix="$prefix"
11262 prefix="$acl_final_prefix"
11263 acl_save_exec_prefix="$exec_prefix"
11264 exec_prefix="$acl_final_exec_prefix"
11266 exec_prefix="$acl_save_exec_prefix"
11267 prefix="$acl_save_prefix"
11269 if test "X$x" = "X-L$additional_libdir"; then
11274 if test -z "$haveit"; then
11275 if test -d "$additional_libdir"; then
11276 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11280 for x in $LDFLAGS $LTLIBICONV; do
11282 acl_save_prefix="$prefix"
11283 prefix="$acl_final_prefix"
11284 acl_save_exec_prefix="$exec_prefix"
11285 exec_prefix="$acl_final_exec_prefix"
11287 exec_prefix="$acl_save_exec_prefix"
11288 prefix="$acl_save_prefix"
11290 if test "X$x" = "X-L$additional_libdir"; then
11295 if test -z "$haveit"; then
11296 if test -d "$additional_libdir"; then
11297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11304 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11305 if test "$enable_rpath" != no; then
11307 for x in $rpathdirs; do
11308 if test "X$x" = "X$dir"; then
11313 if test -z "$haveit"; then
11314 rpathdirs="$rpathdirs $dir"
11317 for x in $ltrpathdirs; do
11318 if test "X$x" = "X$dir"; then
11323 if test -z "$haveit"; then
11324 ltrpathdirs="$ltrpathdirs $dir"
11329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11335 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11342 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11349 if test "X$rpathdirs" != "X"; then
11350 if test -n "$acl_hardcode_libdir_separator"; then
11352 for found_dir in $rpathdirs; do
11353 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11355 acl_save_libdir="$libdir"
11357 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11358 libdir="$acl_save_libdir"
11359 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11361 for found_dir in $rpathdirs; do
11362 acl_save_libdir="$libdir"
11363 libdir="$found_dir"
11364 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11365 libdir="$acl_save_libdir"
11366 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11370 if test "X$ltrpathdirs" != "X"; then
11371 for found_dir in $ltrpathdirs; do
11372 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11407 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11408 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
11409 $as_echo_n "(cached) " >&6
11411 gt_save_LIBS="$LIBS"
11412 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415 #include <CoreFoundation/CFPreferences.h>
11419 CFPreferencesCopyAppValue(NULL, NULL)
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 gt_cv_func_CFPreferencesCopyAppValue=yes
11427 gt_cv_func_CFPreferencesCopyAppValue=no
11429 rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11431 LIBS="$gt_save_LIBS"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11434 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11435 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11437 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11441 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11442 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11443 $as_echo_n "(cached) " >&6
11445 gt_save_LIBS="$LIBS"
11446 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 #include <CoreFoundation/CFLocale.h>
11453 CFLocaleCopyCurrent();
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 gt_cv_func_CFLocaleCopyCurrent=yes
11461 gt_cv_func_CFLocaleCopyCurrent=no
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LIBS="$gt_save_LIBS"
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11468 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11469 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11471 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11475 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11476 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11488 case " $gt_needs " in
11489 *" need-formatstring-macros "*) gt_api_version=3 ;;
11490 *" need-ngettext "*) gt_api_version=2 ;;
11491 *) gt_api_version=1 ;;
11493 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11494 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11496 if test "$USE_NLS" = "yes"; then
11497 gt_use_preinstalled_gnugettext=no
11500 if test $gt_api_version -ge 3; then
11501 gt_revision_test_code='
11502 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11503 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11505 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11508 gt_revision_test_code=
11510 if test $gt_api_version -ge 2; then
11511 gt_expression_test_code=' + * ngettext ("", "", 0)'
11513 gt_expression_test_code=
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11517 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11518 if eval \${$gt_func_gnugettext_libc+:} false; then :
11519 $as_echo_n "(cached) " >&6
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 #include <libintl.h>
11525 $gt_revision_test_code
11526 extern int _nl_msg_cat_cntr;
11527 extern int *_nl_domain_bindings;
11533 bindtextdomain ("", "");
11534 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 eval "$gt_func_gnugettext_libc=yes"
11543 eval "$gt_func_gnugettext_libc=no"
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11548 eval ac_res=\$$gt_func_gnugettext_libc
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11550 $as_echo "$ac_res" >&6; }
11552 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11558 am_save_CPPFLAGS="$CPPFLAGS"
11560 for element in $INCICONV; do
11562 for x in $CPPFLAGS; do
11564 acl_save_prefix="$prefix"
11565 prefix="$acl_final_prefix"
11566 acl_save_exec_prefix="$exec_prefix"
11567 exec_prefix="$acl_final_exec_prefix"
11569 exec_prefix="$acl_save_exec_prefix"
11570 prefix="$acl_save_prefix"
11572 if test "X$x" = "X$element"; then
11577 if test -z "$haveit"; then
11578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11584 $as_echo_n "checking for iconv... " >&6; }
11585 if ${am_cv_func_iconv+:} false; then :
11586 $as_echo_n "(cached) " >&6
11589 am_cv_func_iconv="no, consider installing GNU libiconv"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 #include <stdlib.h>
11600 iconv_t cd = iconv_open("","");
11601 iconv(cd,NULL,NULL,NULL,NULL);
11607 if ac_fn_c_try_link "$LINENO"; then :
11608 am_cv_func_iconv=yes
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 if test "$am_cv_func_iconv" != yes; then
11613 am_save_LIBS="$LIBS"
11614 LIBS="$LIBS $LIBICONV"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 #include <stdlib.h>
11624 iconv_t cd = iconv_open("","");
11625 iconv(cd,NULL,NULL,NULL,NULL);
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 am_cv_lib_iconv=yes
11633 am_cv_func_iconv=yes
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS="$am_save_LIBS"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11642 $as_echo "$am_cv_func_iconv" >&6; }
11643 if test "$am_cv_func_iconv" = yes; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11645 $as_echo_n "checking for working iconv... " >&6; }
11646 if ${am_cv_func_iconv_works+:} false; then :
11647 $as_echo_n "(cached) " >&6
11650 am_save_LIBS="$LIBS"
11651 if test $am_cv_lib_iconv = yes; then
11652 LIBS="$LIBS $LIBICONV"
11654 if test "$cross_compiling" = yes; then :
11657 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11658 *) am_cv_func_iconv_works="guessing yes" ;;
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11666 #include <string.h>
11670 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11673 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11674 if (cd_utf8_to_88591 != (iconv_t)(-1))
11676 static const char input[] = "\342\202\254"; /* EURO SIGN */
11678 const char *inptr = input;
11679 size_t inbytesleft = strlen (input);
11680 char *outptr = buf;
11681 size_t outbytesleft = sizeof (buf);
11682 size_t res = iconv (cd_utf8_to_88591,
11683 (char **) &inptr, &inbytesleft,
11684 &outptr, &outbytesleft);
11687 iconv_close (cd_utf8_to_88591);
11690 /* Test against Solaris 10 bug: Failures are not distinguishable from
11691 successful returns. */
11693 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11694 if (cd_ascii_to_88591 != (iconv_t)(-1))
11696 static const char input[] = "\263";
11698 const char *inptr = input;
11699 size_t inbytesleft = strlen (input);
11700 char *outptr = buf;
11701 size_t outbytesleft = sizeof (buf);
11702 size_t res = iconv (cd_ascii_to_88591,
11703 (char **) &inptr, &inbytesleft,
11704 &outptr, &outbytesleft);
11707 iconv_close (cd_ascii_to_88591);
11710 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11712 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11713 if (cd_88591_to_utf8 != (iconv_t)(-1))
11715 static const char input[] = "\304";
11716 static char buf[2] = { (char)0xDE, (char)0xAD };
11717 const char *inptr = input;
11718 size_t inbytesleft = 1;
11719 char *outptr = buf;
11720 size_t outbytesleft = 1;
11721 size_t res = iconv (cd_88591_to_utf8,
11722 (char **) &inptr, &inbytesleft,
11723 &outptr, &outbytesleft);
11724 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11726 iconv_close (cd_88591_to_utf8);
11729 #if 0 /* This bug could be worked around by the caller. */
11730 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11732 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11733 if (cd_88591_to_utf8 != (iconv_t)(-1))
11735 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11737 const char *inptr = input;
11738 size_t inbytesleft = strlen (input);
11739 char *outptr = buf;
11740 size_t outbytesleft = sizeof (buf);
11741 size_t res = iconv (cd_88591_to_utf8,
11742 (char **) &inptr, &inbytesleft,
11743 &outptr, &outbytesleft);
11746 iconv_close (cd_88591_to_utf8);
11750 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11752 if (/* Try standardized names. */
11753 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11754 /* Try IRIX, OSF/1 names. */
11755 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11756 /* Try AIX names. */
11757 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11758 /* Try HP-UX names. */
11759 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11764 if ac_fn_c_try_run "$LINENO"; then :
11765 am_cv_func_iconv_works=yes
11767 am_cv_func_iconv_works=no
11769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11770 conftest.$ac_objext conftest.beam conftest.$ac_ext
11773 LIBS="$am_save_LIBS"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11777 $as_echo "$am_cv_func_iconv_works" >&6; }
11778 case "$am_cv_func_iconv_works" in
11779 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11780 *) am_func_iconv=yes ;;
11783 am_func_iconv=no am_cv_lib_iconv=no
11785 if test "$am_func_iconv" = yes; then
11787 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11790 if test "$am_cv_lib_iconv" = yes; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11792 $as_echo_n "checking how to link with libiconv... " >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11794 $as_echo "$LIBICONV" >&6; }
11796 CPPFLAGS="$am_save_CPPFLAGS"
11813 acl_save_prefix="$prefix"
11814 prefix="$acl_final_prefix"
11815 acl_save_exec_prefix="$exec_prefix"
11816 exec_prefix="$acl_final_exec_prefix"
11818 eval additional_includedir=\"$includedir\"
11819 eval additional_libdir=\"$libdir\"
11821 exec_prefix="$acl_save_exec_prefix"
11822 prefix="$acl_save_prefix"
11825 # Check whether --with-libintl-prefix was given.
11826 if test "${with_libintl_prefix+set}" = set; then :
11827 withval=$with_libintl_prefix;
11828 if test "X$withval" = "Xno"; then
11831 if test "X$withval" = "X"; then
11833 acl_save_prefix="$prefix"
11834 prefix="$acl_final_prefix"
11835 acl_save_exec_prefix="$exec_prefix"
11836 exec_prefix="$acl_final_exec_prefix"
11838 eval additional_includedir=\"$includedir\"
11839 eval additional_libdir=\"$libdir\"
11841 exec_prefix="$acl_save_exec_prefix"
11842 prefix="$acl_save_prefix"
11845 additional_includedir="$withval/include"
11846 additional_libdir="$withval/$acl_libdirstem"
11847 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11848 && ! test -d "$withval/$acl_libdirstem"; then
11849 additional_libdir="$withval/$acl_libdirstem2"
11863 names_already_handled=
11864 names_next_round='intl '
11865 while test -n "$names_next_round"; do
11866 names_this_round="$names_next_round"
11868 for name in $names_this_round; do
11870 for n in $names_already_handled; do
11871 if test "$n" = "$name"; then
11872 already_handled=yes
11876 if test -z "$already_handled"; then
11877 names_already_handled="$names_already_handled $name"
11878 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11879 eval value=\"\$HAVE_LIB$uppername\"
11880 if test -n "$value"; then
11881 if test "$value" = yes; then
11882 eval value=\"\$LIB$uppername\"
11883 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11884 eval value=\"\$LTLIB$uppername\"
11885 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11894 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11895 if test -n "$acl_shlibext"; then
11896 shrext=".$acl_shlibext" # typically: shrext=.so
11900 if test $use_additional = yes; then
11901 dir="$additional_libdir"
11902 if test -n "$acl_shlibext"; then
11903 if test -f "$dir/$libname$shrext"; then
11905 found_so="$dir/$libname$shrext"
11907 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11908 ver=`(cd "$dir" && \
11909 for f in "$libname$shrext".*; do echo "$f"; done \
11910 | sed -e "s,^$libname$shrext\\\\.,," \
11911 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11912 | sed 1q ) 2>/dev/null`
11913 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11915 found_so="$dir/$libname$shrext.$ver"
11918 eval library_names=\"$acl_library_names_spec\"
11919 for f in $library_names; do
11920 if test -f "$dir/$f"; then
11929 if test "X$found_dir" = "X"; then
11930 if test -f "$dir/$libname.$acl_libext"; then
11932 found_a="$dir/$libname.$acl_libext"
11935 if test "X$found_dir" != "X"; then
11936 if test -f "$dir/$libname.la"; then
11937 found_la="$dir/$libname.la"
11941 if test "X$found_dir" = "X"; then
11942 for x in $LDFLAGS $LTLIBINTL; do
11944 acl_save_prefix="$prefix"
11945 prefix="$acl_final_prefix"
11946 acl_save_exec_prefix="$exec_prefix"
11947 exec_prefix="$acl_final_exec_prefix"
11949 exec_prefix="$acl_save_exec_prefix"
11950 prefix="$acl_save_prefix"
11954 dir=`echo "X$x" | sed -e 's/^X-L//'`
11955 if test -n "$acl_shlibext"; then
11956 if test -f "$dir/$libname$shrext"; then
11958 found_so="$dir/$libname$shrext"
11960 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11961 ver=`(cd "$dir" && \
11962 for f in "$libname$shrext".*; do echo "$f"; done \
11963 | sed -e "s,^$libname$shrext\\\\.,," \
11964 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11965 | sed 1q ) 2>/dev/null`
11966 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11968 found_so="$dir/$libname$shrext.$ver"
11971 eval library_names=\"$acl_library_names_spec\"
11972 for f in $library_names; do
11973 if test -f "$dir/$f"; then
11982 if test "X$found_dir" = "X"; then
11983 if test -f "$dir/$libname.$acl_libext"; then
11985 found_a="$dir/$libname.$acl_libext"
11988 if test "X$found_dir" != "X"; then
11989 if test -f "$dir/$libname.la"; then
11990 found_la="$dir/$libname.la"
11995 if test "X$found_dir" != "X"; then
12000 if test "X$found_dir" != "X"; then
12001 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12002 if test "X$found_so" != "X"; then
12003 if test "$enable_rpath" = no \
12004 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12005 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12009 for x in $ltrpathdirs; do
12010 if test "X$x" = "X$found_dir"; then
12015 if test -z "$haveit"; then
12016 ltrpathdirs="$ltrpathdirs $found_dir"
12018 if test "$acl_hardcode_direct" = yes; then
12019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12021 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12024 for x in $rpathdirs; do
12025 if test "X$x" = "X$found_dir"; then
12030 if test -z "$haveit"; then
12031 rpathdirs="$rpathdirs $found_dir"
12035 for x in $LDFLAGS $LIBINTL; do
12037 acl_save_prefix="$prefix"
12038 prefix="$acl_final_prefix"
12039 acl_save_exec_prefix="$exec_prefix"
12040 exec_prefix="$acl_final_exec_prefix"
12042 exec_prefix="$acl_save_exec_prefix"
12043 prefix="$acl_save_prefix"
12045 if test "X$x" = "X-L$found_dir"; then
12050 if test -z "$haveit"; then
12051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12053 if test "$acl_hardcode_minus_L" != no; then
12054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12062 if test "X$found_a" != "X"; then
12063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12065 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12068 additional_includedir=
12069 case "$found_dir" in
12070 */$acl_libdirstem | */$acl_libdirstem/)
12071 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12072 if test "$name" = 'intl'; then
12073 LIBINTL_PREFIX="$basedir"
12075 additional_includedir="$basedir/include"
12077 */$acl_libdirstem2 | */$acl_libdirstem2/)
12078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12079 if test "$name" = 'intl'; then
12080 LIBINTL_PREFIX="$basedir"
12082 additional_includedir="$basedir/include"
12085 if test "X$additional_includedir" != "X"; then
12086 if test "X$additional_includedir" != "X/usr/include"; then
12088 if test "X$additional_includedir" = "X/usr/local/include"; then
12089 if test -n "$GCC"; then
12091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12095 if test -z "$haveit"; then
12096 for x in $CPPFLAGS $INCINTL; do
12098 acl_save_prefix="$prefix"
12099 prefix="$acl_final_prefix"
12100 acl_save_exec_prefix="$exec_prefix"
12101 exec_prefix="$acl_final_exec_prefix"
12103 exec_prefix="$acl_save_exec_prefix"
12104 prefix="$acl_save_prefix"
12106 if test "X$x" = "X-I$additional_includedir"; then
12111 if test -z "$haveit"; then
12112 if test -d "$additional_includedir"; then
12113 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12119 if test -n "$found_la"; then
12120 save_libdir="$libdir"
12121 case "$found_la" in
12122 */* | *\\*) . "$found_la" ;;
12123 *) . "./$found_la" ;;
12125 libdir="$save_libdir"
12126 for dep in $dependency_libs; do
12129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12130 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12131 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12133 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12134 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12135 if test -n "$GCC"; then
12137 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12141 if test -z "$haveit"; then
12143 for x in $LDFLAGS $LIBINTL; do
12145 acl_save_prefix="$prefix"
12146 prefix="$acl_final_prefix"
12147 acl_save_exec_prefix="$exec_prefix"
12148 exec_prefix="$acl_final_exec_prefix"
12150 exec_prefix="$acl_save_exec_prefix"
12151 prefix="$acl_save_prefix"
12153 if test "X$x" = "X-L$additional_libdir"; then
12158 if test -z "$haveit"; then
12159 if test -d "$additional_libdir"; then
12160 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12164 for x in $LDFLAGS $LTLIBINTL; do
12166 acl_save_prefix="$prefix"
12167 prefix="$acl_final_prefix"
12168 acl_save_exec_prefix="$exec_prefix"
12169 exec_prefix="$acl_final_exec_prefix"
12171 exec_prefix="$acl_save_exec_prefix"
12172 prefix="$acl_save_prefix"
12174 if test "X$x" = "X-L$additional_libdir"; then
12179 if test -z "$haveit"; then
12180 if test -d "$additional_libdir"; then
12181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12188 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12189 if test "$enable_rpath" != no; then
12191 for x in $rpathdirs; do
12192 if test "X$x" = "X$dir"; then
12197 if test -z "$haveit"; then
12198 rpathdirs="$rpathdirs $dir"
12201 for x in $ltrpathdirs; do
12202 if test "X$x" = "X$dir"; then
12207 if test -z "$haveit"; then
12208 ltrpathdirs="$ltrpathdirs $dir"
12213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12219 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12220 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12226 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12233 if test "X$rpathdirs" != "X"; then
12234 if test -n "$acl_hardcode_libdir_separator"; then
12236 for found_dir in $rpathdirs; do
12237 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12239 acl_save_libdir="$libdir"
12241 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12242 libdir="$acl_save_libdir"
12243 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12245 for found_dir in $rpathdirs; do
12246 acl_save_libdir="$libdir"
12247 libdir="$found_dir"
12248 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12249 libdir="$acl_save_libdir"
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12254 if test "X$ltrpathdirs" != "X"; then
12255 for found_dir in $ltrpathdirs; do
12256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12266 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12267 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12268 $as_echo_n "(cached) " >&6
12270 gt_save_CPPFLAGS="$CPPFLAGS"
12271 CPPFLAGS="$CPPFLAGS $INCINTL"
12272 gt_save_LIBS="$LIBS"
12273 LIBS="$LIBS $LIBINTL"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 #include <libintl.h>
12278 $gt_revision_test_code
12279 extern int _nl_msg_cat_cntr;
12284 const char *_nl_expand_alias (const char *);
12290 bindtextdomain ("", "");
12291 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 eval "$gt_func_gnugettext_libintl=yes"
12300 eval "$gt_func_gnugettext_libintl=no"
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12305 LIBS="$LIBS $LIBICONV"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 #include <libintl.h>
12310 $gt_revision_test_code
12311 extern int _nl_msg_cat_cntr;
12316 const char *_nl_expand_alias (const char *);
12322 bindtextdomain ("", "");
12323 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 LIBINTL="$LIBINTL $LIBICONV"
12331 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12332 eval "$gt_func_gnugettext_libintl=yes"
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12338 CPPFLAGS="$gt_save_CPPFLAGS"
12339 LIBS="$gt_save_LIBS"
12341 eval ac_res=\$$gt_func_gnugettext_libintl
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12343 $as_echo "$ac_res" >&6; }
12346 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12347 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12348 && test "$PACKAGE" != gettext-runtime \
12349 && test "$PACKAGE" != gettext-tools; }; then
12350 gt_use_preinstalled_gnugettext=yes
12359 if test -n "$INTL_MACOSX_LIBS"; then
12360 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12361 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12362 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12363 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12367 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12368 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12370 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12378 $as_echo_n "checking whether to use NLS... " >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12380 $as_echo "$USE_NLS" >&6; }
12381 if test "$USE_NLS" = "yes"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12383 $as_echo_n "checking where the gettext function comes from... " >&6; }
12384 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12385 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12386 gt_source="external libintl"
12391 gt_source="included intl directory"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12394 $as_echo "$gt_source" >&6; }
12397 if test "$USE_NLS" = "yes"; then
12399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12400 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12402 $as_echo_n "checking how to link with libintl... " >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12404 $as_echo "$LIBINTL" >&6; }
12406 for element in $INCINTL; do
12408 for x in $CPPFLAGS; do
12410 acl_save_prefix="$prefix"
12411 prefix="$acl_final_prefix"
12412 acl_save_exec_prefix="$exec_prefix"
12413 exec_prefix="$acl_final_exec_prefix"
12415 exec_prefix="$acl_save_exec_prefix"
12416 prefix="$acl_save_prefix"
12418 if test "X$x" = "X$element"; then
12423 if test -z "$haveit"; then
12424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12431 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12434 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12443 INTLLIBS="$LIBINTL"
12451 ac_config_files="$ac_config_files Makefile contrib/Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile"
12453 cat >confcache <<\_ACEOF
12454 # This file is a shell script that caches the results of configure
12455 # tests run on this system so they can be shared between configure
12456 # scripts and configure runs, see configure's option --config-cache.
12457 # It is not useful on other systems. If it contains results you don't
12458 # want to keep, you may remove or edit it.
12460 # config.status only pays attention to the cache file if you give it
12461 # the --recheck option to rerun configure.
12463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12465 # following values.
12469 # The following way of writing the cache mishandles newlines in values,
12470 # but we know of no workaround that is simple, portable, and efficient.
12471 # So, we kill variables containing newlines.
12472 # Ultrix sh set writes to stderr and can't be redirected directly,
12473 # and sets the high bit in the cache file unless we assign to the vars.
12475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12476 eval ac_val=\$$ac_var
12480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12484 _ | IFS | as_nl) ;; #(
12485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12486 *) { eval $ac_var=; unset $ac_var;} ;;
12492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12493 *${as_nl}ac_space=\ *)
12494 # `set' does not quote correctly, so add quotes: double-quote
12495 # substitution turns \\\\ into \\, and sed turns \\ into \.
12498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12501 # `set' quotes correctly as required by POSIX, so do not add quotes.
12502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12516 if test -w "$cache_file"; then
12517 if test "x$cache_file" != "x/dev/null"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12519 $as_echo "$as_me: updating cache $cache_file" >&6;}
12520 if test ! -f "$cache_file" || test -h "$cache_file"; then
12521 cat confcache >"$cache_file"
12523 case $cache_file in #(
12525 mv -f confcache "$cache_file"$$ &&
12526 mv -f "$cache_file"$$ "$cache_file" ;; #(
12528 mv -f confcache "$cache_file" ;;
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12540 # Let make expand exec_prefix.
12541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12543 DEFS=-DHAVE_CONFIG_H
12548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12549 # 1. Remove the extension, and $U if already installed.
12550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12551 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12553 # will be set to the directory where LIBOBJS objects are built.
12554 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12555 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12557 LIBOBJS=$ac_libobjs
12559 LTLIBOBJS=$ac_ltlibobjs
12562 if test -n "$EXEEXT"; then
12564 am__EXEEXT_FALSE='#'
12566 am__EXEEXT_TRUE='#'
12570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12571 as_fn_error $? "conditional \"AMDEP\" was never defined.
12572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12575 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12578 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12579 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
12580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12582 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
12583 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
12584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12586 CONFIG_INCLUDE=config.h
12588 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12589 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12592 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12593 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12599 if test -n "$gl_LIBOBJS"; then
12600 # Remove the extension.
12601 sed_drop_objext='s/\.o$//;s/\.obj$//'
12602 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12603 gl_libobjs="$gl_libobjs $i.$ac_objext"
12604 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12607 gl_LIBOBJS=$gl_libobjs
12609 gl_LTLIBOBJS=$gl_ltlibobjs
12615 if test -n "$gltests_LIBOBJS"; then
12616 # Remove the extension.
12617 sed_drop_objext='s/\.o$//;s/\.obj$//'
12618 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12619 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12620 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12623 gltests_LIBOBJS=$gltests_libobjs
12625 gltests_LTLIBOBJS=$gltests_ltlibobjs
12629 : "${CONFIG_STATUS=./config.status}"
12631 ac_clean_files_save=$ac_clean_files
12632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12638 # Generated by $as_me.
12639 # Run this file to recreate the current configuration.
12640 # Compiler output produced by configure, useful for debugging
12641 # configure, is in config.log if it exists.
12644 ac_cs_recheck=false
12647 SHELL=\${CONFIG_SHELL-$SHELL}
12650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12651 ## -------------------- ##
12652 ## M4sh Initialization. ##
12653 ## -------------------- ##
12655 # Be more Bourne compatible
12656 DUALCASE=1; export DUALCASE # for MKS sh
12657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12661 # is contrary to our usage. Disable this feature.
12662 alias -g '${1+"$@"}'='"$@"'
12663 setopt NO_GLOB_SUBST
12665 case `(set -o) 2>/dev/null` in #(
12677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12681 # Prefer a ksh shell builtin over an external printf program on Solaris,
12682 # but without wasting forks for bash or zsh.
12683 if test -z "$BASH_VERSION$ZSH_VERSION" \
12684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12685 as_echo='print -r --'
12686 as_echo_n='print -rn --'
12687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12688 as_echo='printf %s\n'
12689 as_echo_n='printf %s'
12691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12693 as_echo_n='/usr/ucb/echo -n'
12695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12696 as_echo_n_body='eval
12700 expr "X$arg" : "X\\(.*\\)$as_nl";
12701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12705 export as_echo_n_body
12706 as_echo_n='sh -c $as_echo_n_body as_echo'
12708 export as_echo_body
12709 as_echo='sh -c $as_echo_body as_echo'
12712 # The user is always right.
12713 if test "${PATH_SEPARATOR+set}" != set; then
12715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12723 # We need space, tab and new line, in precisely that order. Quoting is
12724 # there to prevent editors from complaining about space-tab.
12725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12726 # splitting by setting IFS to empty value.)
12729 # Find who we are. Look in the path if we contain no directory separator.
12732 *[\\/]* ) as_myself=$0 ;;
12733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12737 test -z "$as_dir" && as_dir=.
12738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12744 # We did not find ourselves, most probably we were run as `sh COMMAND'
12745 # in which case we are not to be found in the path.
12746 if test "x$as_myself" = x; then
12749 if test ! -f "$as_myself"; then
12750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12754 # Unset variables that we do not need and which cause bugs (e.g. in
12755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12756 # suppresses any "Segmentation fault" message there. '((' could
12757 # trigger a bug in pdksh 5.2.14.
12758 for as_var in BASH_ENV ENV MAIL MAILPATH
12759 do eval test x\${$as_var+set} = xset \
12760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12777 # ----------------------------------------
12778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12780 # script with STATUS, using 1 if that was 0.
12783 as_status=$1; test $as_status -eq 0 && as_status=1
12785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12788 $as_echo "$as_me: error: $2" >&2
12789 as_fn_exit $as_status
12793 # as_fn_set_status STATUS
12794 # -----------------------
12795 # Set $? to STATUS, without forking.
12796 as_fn_set_status ()
12799 } # as_fn_set_status
12801 # as_fn_exit STATUS
12802 # -----------------
12803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12807 as_fn_set_status $1
12813 # Portably unset VAR.
12816 { eval $1=; unset $1;}
12818 as_unset=as_fn_unset
12819 # as_fn_append VAR VALUE
12820 # ----------------------
12821 # Append the text in VALUE to the end of the definition contained in VAR. Take
12822 # advantage of any shell optimizations that allow amortized linear growth over
12823 # repeated appends, instead of the typical quadratic growth present in naive
12825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12826 eval 'as_fn_append ()
12837 # as_fn_arith ARG...
12838 # ------------------
12839 # Perform arithmetic evaluation on the ARGs, and store the result in the
12840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12841 # must be portable across $(()) and expr.
12842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12843 eval 'as_fn_arith ()
12850 as_val=`expr "$@" || test $? -eq 1`
12855 if expr a : '\(a\)' >/dev/null 2>&1 &&
12856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12863 as_basename=basename
12868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12874 as_me=`$as_basename -- "$0" ||
12875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12876 X"$0" : 'X\(//\)$' \| \
12877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12879 sed '/^.*\/\([^/][^/]*\)\/*$/{
12893 # Avoid depending upon Character Ranges.
12894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12897 as_cr_digits='0123456789'
12898 as_cr_alnum=$as_cr_Letters$as_cr_digits
12900 ECHO_C= ECHO_N= ECHO_T=
12901 case `echo -n x` in #(((((
12903 case `echo 'xy\c'` in
12904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12913 rm -f conf$$ conf$$.exe conf$$.file
12914 if test -d conf$$.dir; then
12915 rm -f conf$$.dir/conf$$.file
12918 mkdir conf$$.dir 2>/dev/null
12920 if (echo >conf$$.file) 2>/dev/null; then
12921 if ln -s conf$$.file conf$$ 2>/dev/null; then
12923 # ... but there are two gotchas:
12924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12926 # In both cases, we have to default to `cp -p'.
12927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12929 elif ln conf$$.file conf$$ 2>/dev/null; then
12937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12938 rmdir conf$$.dir 2>/dev/null
12943 # Create "$as_dir" as a directory, including parents if necessary.
12948 -*) as_dir=./$as_dir;;
12950 test -d "$as_dir" || eval $as_mkdir_p || {
12954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12955 *) as_qdir=$as_dir;;
12957 as_dirs="'$as_qdir' $as_dirs"
12958 as_dir=`$as_dirname -- "$as_dir" ||
12959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12960 X"$as_dir" : 'X\(//\)[^/]' \| \
12961 X"$as_dir" : 'X\(//\)$' \| \
12962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12963 $as_echo X"$as_dir" |
12964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12968 /^X\(\/\/\)[^/].*/{
12981 test -d "$as_dir" && break
12983 test -z "$as_dirs" || eval "mkdir $as_dirs"
12984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12988 if mkdir -p . 2>/dev/null; then
12989 as_mkdir_p='mkdir -p "$as_dir"'
12991 test -d ./-p && rmdir ./-p
12995 if test -x / >/dev/null 2>&1; then
12996 as_test_x='test -x'
12998 if ls -dL / >/dev/null 2>&1; then
13005 if test -d "$1"; then
13011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13012 ???[sx]*):;;*)false;;esac;fi
13016 as_executable_p=$as_test_x
13018 # Sed expression to map a string onto a valid CPP name.
13019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13021 # Sed expression to map a string onto a valid variable name.
13022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13026 ## ----------------------------------- ##
13027 ## Main body of $CONFIG_STATUS script. ##
13028 ## ----------------------------------- ##
13030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13033 # Save the log message, to keep $0 and so on meaningful, and to
13034 # report actual input values of CONFIG_FILES etc. instead of their
13035 # values after options handling.
13037 This file was extended by GNU Hello $as_me 2.8, which was
13038 generated by GNU Autoconf 2.68. Invocation command line was
13040 CONFIG_FILES = $CONFIG_FILES
13041 CONFIG_HEADERS = $CONFIG_HEADERS
13042 CONFIG_LINKS = $CONFIG_LINKS
13043 CONFIG_COMMANDS = $CONFIG_COMMANDS
13046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13051 case $ac_config_files in *"
13052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13055 case $ac_config_headers in *"
13056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13061 # Files that config.status was made for.
13062 config_files="$ac_config_files"
13063 config_headers="$ac_config_headers"
13064 config_links="$ac_config_links"
13065 config_commands="$ac_config_commands"
13069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13071 \`$as_me' instantiates files and other configuration actions
13072 from templates according to the current configuration. Unless the files
13073 and actions are specified as TAGs, all are instantiated by default.
13075 Usage: $0 [OPTION]... [TAG]...
13077 -h, --help print this help, then exit
13078 -V, --version print version number and configuration settings, then exit
13079 --config print configuration, then exit
13080 -q, --quiet, --silent
13081 do not print progress messages
13082 -d, --debug don't remove temporary files
13083 --recheck update $as_me by reconfiguring in the same conditions
13084 --file=FILE[:TEMPLATE]
13085 instantiate the configuration file FILE
13086 --header=FILE[:TEMPLATE]
13087 instantiate the configuration header FILE
13089 Configuration files:
13092 Configuration headers:
13095 Configuration links:
13098 Configuration commands:
13101 Report bugs to <bug-hello@gnu.org>.
13102 GNU Hello home page: <http://www.gnu.org/software/hello/>.
13103 General help using GNU software: <http://www.gnu.org/gethelp/>."
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13109 GNU Hello config.status 2.8
13110 configured by $0, generated by GNU Autoconf 2.68,
13111 with options \\"\$ac_cs_config\\"
13113 Copyright (C) 2010 Free Software Foundation, Inc.
13114 This config.status script is free software; the Free Software Foundation
13115 gives unlimited permission to copy, distribute and modify it."
13122 test -n "\$AWK" || AWK=awk
13125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13126 # The default lists apply if the user does not specify any file.
13132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13149 # Handling of the options.
13150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13153 $as_echo "$ac_cs_version"; exit ;;
13154 --config | --confi | --conf | --con | --co | --c )
13155 $as_echo "$ac_cs_config"; exit ;;
13156 --debug | --debu | --deb | --de | --d | -d )
13158 --file | --fil | --fi | --f )
13161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13162 '') as_fn_error $? "missing file argument" ;;
13164 as_fn_append CONFIG_FILES " '$ac_optarg'"
13165 ac_need_defaults=false;;
13166 --header | --heade | --head | --hea )
13169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13172 ac_need_defaults=false;;
13174 # Conflict between --help and --header
13175 as_fn_error $? "ambiguous option: \`$1'
13176 Try \`$0 --help' for more information.";;
13177 --help | --hel | -h )
13178 $as_echo "$ac_cs_usage"; exit ;;
13179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13183 # This is an error.
13184 -*) as_fn_error $? "unrecognized option: \`$1'
13185 Try \`$0 --help' for more information." ;;
13187 *) as_fn_append ac_config_targets " $1"
13188 ac_need_defaults=false ;;
13194 ac_configure_extra_args=
13196 if $ac_cs_silent; then
13198 ac_configure_extra_args="$ac_configure_extra_args --silent"
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 if \$ac_cs_recheck; then
13204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13207 CONFIG_SHELL='$SHELL'
13208 export CONFIG_SHELL
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13218 ## Running $as_me. ##
13224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13229 GNUmakefile=$GNUmakefile
13230 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13231 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13232 # from automake < 1.5.
13233 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13234 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13235 LINGUAS="${LINGUAS-%UNSET%}"
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13242 # Handling of arguments.
13243 for ac_config_target in $ac_config_targets
13245 case $ac_config_target in
13246 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13247 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13248 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
13249 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13250 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13251 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13252 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13253 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13254 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13255 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13256 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13257 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13259 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13264 # If the user did not use the arguments to specify the items to instantiate,
13265 # then the envvar interface is used. Set only those that are not.
13266 # We use the long form for the default assignment because of an extremely
13267 # bizarre bug on SunOS 4.1.3.
13268 if $ac_need_defaults; then
13269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13271 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13272 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13275 # Have a temporary directory for convenience. Make it in the build tree
13276 # simply because there is no reason against having it here, and in addition,
13277 # creating and moving files from /tmp can sometimes cause problems.
13278 # Hook for its removal unless debugging.
13279 # Note that there is a small window in which the directory will not be cleaned:
13280 # after its creation but before its name has been assigned to `$tmp'.
13284 trap 'exit_status=$?
13285 : "${ac_tmp:=$tmp}"
13286 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13288 trap 'as_fn_exit 1' 1 2 13 15
13290 # Create a (secure) tmp directory for tmp files.
13293 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13297 tmp=./conf$$-$RANDOM
13298 (umask 077 && mkdir "$tmp")
13299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13302 # Set up the scripts for CONFIG_FILES section.
13303 # No need to generate them if there are no CONFIG_FILES.
13304 # This happens for instance with `./config.status config.h'.
13305 if test -n "$CONFIG_FILES"; then
13308 ac_cr=`echo X | tr X '\015'`
13309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13310 # But we know of no other shell where ac_cr would be empty at this
13311 # point, so we can use a bashism as a fallback.
13312 if test "x$ac_cr" = x; then
13313 eval ac_cr=\$\'\\r\'
13315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13319 ac_cs_awk_cr=$ac_cr
13322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13327 echo "cat >conf$$subs.awk <<_ACEOF" &&
13328 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13330 } >conf$$subs.sh ||
13331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13334 for ac_last_try in false false false false false :; do
13335 . ./conf$$subs.sh ||
13336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13338 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13339 if test $ac_delim_n = $ac_delim_num; then
13341 elif $ac_last_try; then
13342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13347 rm -f conf$$subs.sh
13349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13354 s/^/S["/; s/!.*/"]=/
13364 s/\(.\{148\}\)..*/\1/
13366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13378 s/\(.\{148\}\)..*/\1/
13380 s/["\\]/\\&/g; s/^/"/; s/$/"/
13384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13389 ' <conf$$subs.awk | sed '
13394 ' >>$CONFIG_STATUS || ac_write_fail=1
13395 rm -f conf$$subs.awk
13396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13399 for (key in S) S_is_set[key] = 1
13405 nfields = split(line, field, "@")
13407 len = length(field[1])
13408 for (i = 2; i < nfields; i++) {
13410 keylen = length(key)
13411 if (S_is_set[key]) {
13413 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13414 len += length(value) + length(field[++i])
13425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13427 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13430 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13431 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13434 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13435 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13436 # trailing colons and then remove the whole line if VPATH becomes empty
13437 # (actually we leave an empty line to preserve line numbers).
13438 if test "x$srcdir" = x.; then
13439 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 fi # test -n "$CONFIG_FILES"
13460 # Set up the scripts for CONFIG_HEADERS section.
13461 # No need to generate them if there are no CONFIG_HEADERS.
13462 # This happens for instance with `./config.status Makefile'.
13463 if test -n "$CONFIG_HEADERS"; then
13464 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13468 # Transform confdefs.h into an awk script `defines.awk', embedded as
13469 # here-document in config.status, that substitutes the proper values into
13470 # config.h.in to produce config.h.
13472 # Create a delimiter string that does not exist in confdefs.h, to ease
13473 # handling of long lines.
13475 for ac_last_try in false false :; do
13476 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13477 if test -z "$ac_tt"; then
13479 elif $ac_last_try; then
13480 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13486 # For the awk script, D is an array of macro values keyed by name,
13487 # likewise P contains macro parameters if any. Preserve backslash
13488 # newline sequences.
13490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13492 s/.\{148\}/&'"$ac_delim"'/g
13495 s/^[ ]*#[ ]*define[ ][ ]*/ /
13502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13504 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13509 D["\1"]=" \3\\\\\\n"\\/p
13511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13516 s/.\{148\}/&'"$ac_delim"'/g
13521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13526 ' <confdefs.h | sed '
13527 s/'"$ac_delim"'/"\\\
13528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531 for (key in D) D_is_set[key] = 1
13534 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13536 split(line, arg, " ")
13537 if (arg[1] == "#") {
13541 defundef = substr(arg[1], 2)
13544 split(mac1, mac2, "(") #)
13546 prefix = substr(line, 1, index(line, defundef) - 1)
13547 if (D_is_set[macro]) {
13548 # Preserve the white space surrounding the "#".
13549 print prefix "define", macro P[macro] D[macro]
13552 # Replace #undef with comments. This is necessary, for example,
13553 # in the case of _POSIX_SOURCE, which is predefined and required
13554 # on some systems where configure will not decide to define it.
13555 if (defundef == "undef") {
13556 print "/*", prefix defundef, macro, "*/"
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13566 fi # test -n "$CONFIG_HEADERS"
13569 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
13574 :[FHLC]) ac_mode=$ac_tag; continue;;
13576 case $ac_mode$ac_tag in
13578 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13579 :[FH]-) ac_tag=-:-;;
13580 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13597 -) ac_f="$ac_tmp/stdin";;
13598 *) # Look for the file first in the build tree, then in the source tree
13599 # (if the path is not absolute). The absolute path cannot be DOS-style,
13600 # because $ac_f cannot contain `:'.
13604 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13606 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13608 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13609 as_fn_append ac_file_inputs " '$ac_f'"
13612 # Let's still pretend it is `configure' which instantiates (i.e., don't
13613 # use $as_me), people would be surprised to read:
13614 # /* config.h. Generated by config.status. */
13615 configure_input='Generated from '`
13616 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618 if test x"$ac_file" != x-; then
13619 configure_input="$ac_file. $configure_input"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13621 $as_echo "$as_me: creating $ac_file" >&6;}
13623 # Neutralize special characters interpreted by sed in replacement strings.
13624 case $configure_input in #(
13625 *\&* | *\|* | *\\* )
13626 ac_sed_conf_input=`$as_echo "$configure_input" |
13627 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13628 *) ac_sed_conf_input=$configure_input;;
13632 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13638 ac_dir=`$as_dirname -- "$ac_file" ||
13639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640 X"$ac_file" : 'X\(//\)[^/]' \| \
13641 X"$ac_file" : 'X\(//\)$' \| \
13642 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13643 $as_echo X"$ac_file" |
13644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13648 /^X\(\/\/\)[^/].*/{
13661 as_dir="$ac_dir"; as_fn_mkdir_p
13665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13668 # A ".." for each directory in $ac_dir_suffix.
13669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13670 case $ac_top_builddir_sub in
13671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13675 ac_abs_top_builddir=$ac_pwd
13676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13677 # for backward compatibility:
13678 ac_top_builddir=$ac_top_build_prefix
13681 .) # We are building in place.
13683 ac_top_srcdir=$ac_top_builddir_sub
13684 ac_abs_top_srcdir=$ac_pwd ;;
13685 [\\/]* | ?:[\\/]* ) # Absolute name.
13686 ac_srcdir=$srcdir$ac_dir_suffix;
13687 ac_top_srcdir=$srcdir
13688 ac_abs_top_srcdir=$srcdir ;;
13689 *) # Relative name.
13690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13691 ac_top_srcdir=$ac_top_build_prefix$srcdir
13692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13705 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13707 ac_MKDIR_P=$MKDIR_P
13709 [\\/$]* | ?:[\\/]* ) ;;
13710 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 # If the template does not know about datarootdir, expand it.
13716 # FIXME: This hack should be removed a few years after 2.60.
13717 ac_datarootdir_hack=; ac_datarootdir_seen=
13728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13729 *datarootdir*) ac_datarootdir_seen=yes;;
13730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735 ac_datarootdir_hack='
13736 s&@datadir@&$datadir&g
13737 s&@docdir@&$docdir&g
13738 s&@infodir@&$infodir&g
13739 s&@localedir@&$localedir&g
13740 s&@mandir@&$mandir&g
13741 s&\\\${datarootdir}&$datarootdir&g' ;;
13745 # Neutralize VPATH when `$srcdir' = `.'.
13746 # Shell code in configure.ac might set extrasub.
13747 # FIXME: do we really want to maintain this feature?
13748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749 ac_sed_extra="$ac_vpsub
13752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13755 s|@configure_input@|$ac_sed_conf_input|;t t
13756 s&@top_builddir@&$ac_top_builddir_sub&;t t
13757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13758 s&@srcdir@&$ac_srcdir&;t t
13759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13760 s&@top_srcdir@&$ac_top_srcdir&;t t
13761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13762 s&@builddir@&$ac_builddir&;t t
13763 s&@abs_builddir@&$ac_abs_builddir&;t t
13764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13765 s&@INSTALL@&$ac_INSTALL&;t t
13766 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13767 $ac_datarootdir_hack
13769 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13770 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13773 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13775 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13777 which seems to be undefined. Please make sure it is defined" >&5
13778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13779 which seems to be undefined. Please make sure it is defined" >&2;}
13781 rm -f "$ac_tmp/stdin"
13783 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13784 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13792 if test x"$ac_file" != x-; then
13794 $as_echo "/* $configure_input */" \
13795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13796 } >"$ac_tmp/config.h" \
13797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13798 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13803 mv "$ac_tmp/config.h" "$ac_file" \
13804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13807 $as_echo "/* $configure_input */" \
13808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13809 || as_fn_error $? "could not create -" "$LINENO" 5
13811 # Compute "$ac_file"'s index in $config_headers.
13814 for _am_header in $config_headers :; do
13815 case $_am_header in
13816 $_am_arg | $_am_arg:* )
13819 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13822 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13823 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13824 X"$_am_arg" : 'X\(//\)[^/]' \| \
13825 X"$_am_arg" : 'X\(//\)$' \| \
13826 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13827 $as_echo X"$_am_arg" |
13828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13832 /^X\(\/\/\)[^/].*/{
13844 s/.*/./; q'`/stamp-h$_am_stamp_count
13851 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
13854 # Prefer the file from the source tree if names are identical.
13855 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
13856 ac_source=$srcdir/$ac_source
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
13860 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
13862 if test ! -r "$ac_source"; then
13863 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
13867 # Try a relative symlink, then a hard link, then a copy.
13869 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
13870 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
13872 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
13873 ln "$ac_source" "$ac_file" 2>/dev/null ||
13874 cp -p "$ac_source" "$ac_file" ||
13875 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
13878 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13879 $as_echo "$as_me: executing $ac_file commands" >&6;}
13884 case $ac_file$ac_mode in
13885 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13886 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13887 # are listed without --file. Let's play safe and only enable the eval
13888 # if we detect the quoting.
13889 case $CONFIG_FILES in
13890 *\'*) eval set x "$CONFIG_FILES" ;;
13891 *) set x $CONFIG_FILES ;;
13896 # Strip MF so we end up with the name of the file.
13897 mf=`echo "$mf" | sed -e 's/:.*$//'`
13898 # Check whether this is an Automake generated Makefile or not.
13899 # We used to match only the files named `Makefile.in', but
13900 # some people rename them; so instead we look at the file content.
13901 # Grep'ing the first line is not enough: some people post-process
13902 # each Makefile.in and add a new line on top of each file to say so.
13903 # Grep'ing the whole file is not good either: AIX grep has a line
13904 # limit of 2048, but all sed's we know have understand at least 4000.
13905 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13906 dirpart=`$as_dirname -- "$mf" ||
13907 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13908 X"$mf" : 'X\(//\)[^/]' \| \
13909 X"$mf" : 'X\(//\)$' \| \
13910 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13916 /^X\(\/\/\)[^/].*/{
13932 # Extract the definition of DEPDIR, am__include, and am__quote
13933 # from the Makefile without running `make'.
13934 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13935 test -z "$DEPDIR" && continue
13936 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13937 test -z "am__include" && continue
13938 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13939 # When using ansi2knr, U may be empty or an underscore; expand it
13940 U=`sed -n 's/^U = //p' < "$mf"`
13941 # Find all dependency output files, they are included files with
13942 # $(DEPDIR) in their names. We invoke sed twice because it is the
13943 # simplest approach to changing $(DEPDIR) to its actual value in the
13945 for file in `sed -n "
13946 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13947 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13948 # Make sure the directory exists.
13949 test -f "$dirpart/$file" && continue
13950 fdir=`$as_dirname -- "$file" ||
13951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952 X"$file" : 'X\(//\)[^/]' \| \
13953 X"$file" : 'X\(//\)$' \| \
13954 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13955 $as_echo X"$file" |
13956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13960 /^X\(\/\/\)[^/].*/{
13973 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13974 # echo "creating $dirpart/$file"
13975 echo '# dummy' > "$dirpart/$file"
13980 "po-directories":C)
13981 for ac_file in $CONFIG_FILES; do
13982 # Support "outfile[:infile[:infile...]]"
13984 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13986 # PO directories have a Makefile.in generated from Makefile.in.in.
13987 case "$ac_file" in */Makefile.in)
13988 # Adjust a relative srcdir.
13989 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13990 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13991 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13992 # In autoconf-2.13 it is called $ac_given_srcdir.
13993 # In autoconf-2.50 it is called $srcdir.
13994 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13995 case "$ac_given_srcdir" in
13996 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13997 /*) top_srcdir="$ac_given_srcdir" ;;
13998 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14000 # Treat a directory as a PO directory if and only if it has a
14001 # POTFILES.in file. This allows packages to have multiple PO
14002 # directories under different names or in different locations.
14003 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14004 rm -f "$ac_dir/POTFILES"
14005 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14006 gt_tab=`printf '\t'`
14007 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"
14008 POMAKEFILEDEPS="POTFILES.in"
14009 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14010 # on $ac_dir but don't depend on user-specified configuration
14012 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14013 # The LINGUAS file contains the set of available languages.
14014 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14015 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14017 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14018 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14019 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14020 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14022 # The set of available languages was given in configure.in.
14023 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14024 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14027 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14028 # Compute UPDATEPOFILES
14029 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14030 # Compute DUMMYPOFILES
14031 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14033 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14034 case "$ac_given_srcdir" in
14036 *) srcdirpre='$(srcdir)/' ;;
14042 for lang in $ALL_LINGUAS; do
14043 POFILES="$POFILES $srcdirpre$lang.po"
14044 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14045 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14046 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14048 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14049 # environment variable.
14051 if test -n "$ALL_LINGUAS"; then
14052 for presentlang in $ALL_LINGUAS; do
14054 if test "%UNSET%" != "$LINGUAS"; then
14055 desiredlanguages="$LINGUAS"
14057 desiredlanguages="$ALL_LINGUAS"
14059 for desiredlang in $desiredlanguages; do
14060 # Use the presentlang catalog if desiredlang is
14061 # a. equal to presentlang, or
14062 # b. a variant of presentlang (because in this case,
14063 # presentlang can be used as a fallback for messages
14064 # which are not translated in the desiredlang catalog).
14065 case "$desiredlang" in
14066 "$presentlang"*) useit=yes;;
14069 if test $useit = yes; then
14070 INST_LINGUAS="$INST_LINGUAS $presentlang"
14075 if test -n "$INST_LINGUAS"; then
14076 for lang in $INST_LINGUAS; do
14077 CATALOGS="$CATALOGS $lang.gmo"
14080 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14081 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"
14082 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14083 if test -f "$f"; then
14085 *.orig | *.bak | *~) ;;
14086 *) cat "$f" >> "$ac_dir/Makefile" ;;
14101 ac_clean_files=$ac_clean_files_save
14103 test $ac_write_fail = 0 ||
14104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14107 # configure is writing to config.log, and then calls config.status.
14108 # config.status does its own redirection, appending to config.log.
14109 # Unfortunately, on DOS this fails, as config.log is still kept open
14110 # by configure, so config.status won't be able to write to it; its
14111 # output is simply discarded. So we exec the FD to /dev/null,
14112 # effectively closing config.log, so it can be properly (re)opened and
14113 # appended to by config.status. When coming back to configure, we
14114 # need to make the FD available again.
14115 if test "$no_create" != yes; then
14117 ac_config_status_args=
14118 test "$silent" = yes &&
14119 ac_config_status_args="$ac_config_status_args --quiet"
14121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14124 # would make configure fail if this is the last instruction.
14125 $ac_cs_success || as_fn_exit 1
14127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}